/* ── Sea Container — design tokens ─────────────────────────────
   paper   #F6F8F7  cool off-white (sea haze)
   ink     #14212E  marine ink
   steel   #55677A  gull steel gray
   signal  #0C7489  signal teal (links, accents)
   plate   #E8EDEC  plate background
   hazard  #F2B705  safety yellow — used only on the brand mark
   Display: Barlow Semi Condensed · Body: Source Serif 4 · Data: IBM Plex Mono
──────────────────────────────────────────────────────────────── */
:root {
  --paper: #F6F8F7;
  --ink: #14212E;
  --steel: #55677A;
  --signal: #0C7489;
  --plate: #E8EDEC;
  --hazard: #F2B705;
  --display: "Barlow Semi Condensed", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 68rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); }
.small { font-size: 0.8rem; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* ── corrugation: the signature ── */
.corrugation {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 14px,
    var(--steel) 14px 22px,
    var(--ink) 22px 28px
  );
}

/* ── masthead ── */
.masthead { background: var(--ink); }
.masthead-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  width: 1.15rem; height: 1.15rem; background: var(--hazard);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #D5DEE4; text-decoration: none; padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--hazard); }

/* ── hero ── */
.hero { padding: 3.5rem 0 2rem; max-width: 46rem; }
.hero-compact { padding: 2.5rem 0 1rem; }
.kicker { color: var(--steel); font-size: 0.8rem; letter-spacing: 0.18em; margin: 0 0 0.75rem; }
.hero-title {
  font-family: var(--display); font-weight: 700; line-height: 1.05;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 1rem; text-wrap: balance;
}
.hero-sub { color: var(--steel); font-size: 1.15rem; margin: 0; }

/* ── plates: container-code category tags ── */
.plate {
  display: inline-block;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--plate);
  border: 1px solid var(--steel); border-radius: 2px;
  padding: 0.2rem 0.55rem;
}
a.plate:hover { border-color: var(--signal); color: var(--signal); }
.plate-small { padding: 0.1rem 0.45rem; align-self: start; }

/* ── lead story ── */
.lead-story {
  border-top: 3px solid var(--ink);
  padding: 1.5rem 0 2rem; margin-bottom: 1rem;
}
.lead-story h2 { font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.15; margin: 0.75rem 0 0.5rem; }
.lead-story h2 a { color: var(--ink); text-decoration: none; }
.lead-story h2 a:hover { color: var(--signal); }
.lead-story p { max-width: 46rem; margin: 0 0 0.5rem; }

/* ── lists ── */
.section-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1rem; color: var(--steel);
  border-top: 3px solid var(--ink); padding-top: 0.6rem; margin: 2rem 0 1rem;
}
.story-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.story-list li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--plate);
}
.story-list h3 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 0.2rem; line-height: 1.25; }
.story-list h3 a { color: var(--ink); text-decoration: none; }
.story-list h3 a:hover { color: var(--signal); }
.story-list p { margin: 0 0 0.2rem; color: var(--steel); font-size: 0.95rem; }
.story-list .empty { display: block; color: var(--steel); }
.byline { color: var(--steel); font-size: 0.75rem; letter-spacing: 0.05em; }

/* ── category grid ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.cat-card {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--steel); border-radius: 3px; padding: 1.1rem;
  background: #fff;
}
.cat-card:hover { border-color: var(--signal); }
.cat-card h3 { font-family: var(--display); margin: 0.6rem 0 0.3rem; font-size: 1.2rem; }
.cat-card p { margin: 0; color: var(--steel); font-size: 0.9rem; }

/* ── article ── */
.article { max-width: 46rem; padding: 2.5rem 0 3rem; }
.article-head h1 {
  font-family: var(--display); font-weight: 700; line-height: 1.1;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0.75rem 0 0.5rem; text-wrap: balance;
}
.standfirst { font-size: 1.2rem; color: var(--steel); margin: 0 0 0.5rem; }
.prose h2 { font-family: var(--display); font-size: 1.5rem; margin: 2rem 0 0.5rem; }
.prose h3 { font-family: var(--display); font-size: 1.2rem; margin: 1.5rem 0 0.4rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--steel); padding: 0.5rem 0.7rem; text-align: left; }
.prose th { background: var(--plate); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.prose blockquote { border-left: 4px solid var(--signal); margin: 1rem 0; padding: 0.2rem 0 0.2rem 1rem; color: var(--steel); }
.prose img { max-width: 100%; height: auto; }

/* ── footer ── */
.footer { margin-top: 2rem; background: var(--ink); color: #C9D4DB; }
.footer-inner { padding: 2rem 1.25rem 2.5rem; }
.footer a { color: #E8EDEC; }
.footer-brand { color: var(--hazard); letter-spacing: 0.2em; font-size: 0.8rem; }
.footer p { max-width: 40rem; }
