/* hyllyri.fi: one stylesheet, black only. Tokens first. Every text pair is checked for 7:1 and every
   border and focus pair for 3:1 by scripts/check.mjs; the numbers are in AGENTS.md (Colours).
   Design rules (AGENTS.md, Design rules): no gradients, no blur or glass, no pills, no glow, no
   keyframe animations. Motion is hover and focus transitions only, off with reduced motion.
   Type is the product's (AGENTS.md, Family with the product): Montserrat for text, Teko 500 uppercase
   for h1, h2 and large numbers. The four font files are byte-identical copies of the product's
   (scripts/check.mjs compares them). Font sizes come only from the --step tokens, weights are 400,
   600 and 700 (Montserrat) and 500 (Teko), radii only --radius and --radius-device. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2?v=54d9a78b7f") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2?v=06b16db7a9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/teko-latin-ext.woff2?v=32b0bed5bd") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/teko-latin.woff2?v=52cf860d9a") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Layout-stable fallback, as in the product (src/ui/fonts.css): Arial or Roboto scaled to Montserrat. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 113.4%;
  ascent-override: 85.4%;
  descent-override: 22.1%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0b1312;
  --line: #1f2b2a;
  --line-strong: #5e7774;
  --text: #edf2f0;
  --text-muted: #b4c1be;
  --accent: #74d9c5;
  --brand: #0b5351;
  --brand-strong: #073b3a;
  --on-brand: #ffffff;
  --focus: #b8f5e6;

  --font: Montserrat, "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Teko, Montserrat, "Montserrat Fallback", system-ui, sans-serif;
  /* Text steps (Montserrat) */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.3125rem, 1.15rem + 0.7vw, 1.625rem);
  /* Display steps (Teko, condensed, so they run larger) */
  --step-3: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem);
  --step-4: clamp(3rem, 1.6rem + 6vw, 7rem);
  --step-5: clamp(3.25rem, 1.2rem + 8vw, 8.5rem);
  --step-6: clamp(5rem, 3rem + 9vw, 12.5rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 4.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 10rem);
  --max: 84rem;
  --radius: 0.25rem;
  --radius-device: 1.6rem;
  /* Icon sizes: small in buttons and links, base, and the mark: the large green icon that leads a
     feature row, a topic, a market-day step or a list item (AGENTS.md, Icons). */
  --icon-sm: 1.125rem;
  --icon: 1.5rem;
  --icon-lg: 2.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

img, picture { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
/* Display headings in Teko uppercase, as in the product (styles.css: h1, h2). */
h1, h2 { font-family: var(--font-display); font-weight: 500; line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; max-width: 64ch; text-wrap: pretty; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--text); }

a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

/* Focus ring as in the product: 3 px, 3 px away, with a 2 px ring of the page colour under it. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 2px var(--bg); }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100vh;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.icon { width: var(--icon); height: var(--icon); flex: none; }
/* The mark: one pattern for every icon that leads content. Plain Phosphor fill in the accent green
   (12.47:1 on bg, 11.18:1 on surface; 3:1 needed for a graphic), above a heading or left of a list
   item, never in a circle or badge. Decorative: the text next to it carries the meaning. */
.mark { display: block; width: var(--icon-lg); height: var(--icon-lg); color: var(--accent); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Eyebrow: small spaced capitals in green above a heading. */
.eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); max-width: 46ch; }
.lead--strong { color: var(--text); font-size: var(--step-2); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; max-width: 32ch; }
h2 + .lead, h1 + .lead { margin-top: 1.5rem; }
.lead + .lead, .lead + p { margin-top: 1rem; }

/* Buttons: real links, square corners, 48 px tall. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.button .icon { width: var(--icon-sm); height: var(--icon-sm); transition: transform 150ms ease; }
.button:hover { background: var(--surface); border-color: var(--text); color: var(--text); }
.button:hover .icon { transform: translate(2px, 0); }
/* Filled teal with a white edge, as the product's primary button in its dark mode. */
.button--primary { background: var(--brand); border-color: var(--on-brand); color: var(--on-brand); }
.button--primary:hover { background: var(--brand-strong); border-color: var(--on-brand); color: var(--on-brand); }
.button--small { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: var(--step--1); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* A link that stands alone under a block: arrow, 44 px tall. */
.more { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: 1.25rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--accent); }
.more .icon { width: var(--icon-sm); height: var(--icon-sm); transition: transform 150ms ease; }
.more:hover { border-color: var(--text); }
.more:hover .icon { transform: translate(3px, 0); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; padding-block: 0.875rem; }
/* The name in Teko uppercase, as the title in the product's header band. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); letter-spacing: 0.03em; line-height: 1; text-transform: uppercase; }
.brand span { padding-top: 0.12em; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand:hover { color: var(--text); }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: 0.25rem 1.5rem; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; color: var(--text-muted); text-decoration: none; font-size: var(--step--1); font-weight: 600; border-block: 2px solid var(--bg); transition: color 150ms ease, border-color 150ms ease; }
.site-nav a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-link, .menu-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 2.75rem; min-height: 2.75rem; padding-inline: 0.6rem; color: var(--text); font-size: var(--step--1); font-weight: 700; text-decoration: none; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.lang-link:hover, .menu-link:hover { border-color: var(--text); color: var(--text); }
.menu-link { display: none; }
.menu-link .icon { width: var(--icon-sm); height: var(--icon-sm); }
/* Narrow screens: no script, so the header shows a "Menu" link to the page list in the footer. */
@media (max-width: 70rem) {
  .site-nav { display: none; }
  .menu-link { display: inline-flex; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 30rem) {
  .header-demo { display: none; }
}

/* Sections: black throughout, separated by rules. A short green bar starts each section head. */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--surface { background: var(--surface); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section-head::before, .page-hero-text::before { content: ""; width: 4.5rem; height: 3px; margin-bottom: 0.75rem; background: var(--accent); }
.section-head .eyebrow { margin-bottom: 0; }
.section-head > .mark, .topic-head > .mark { margin-bottom: 0.25rem; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
@media (min-width: 60rem) {
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 4rem; }
  .section-head--split::before { grid-column: 1 / -1; }
  .section-head--split .eyebrow, .section-head--split > .mark { grid-column: 1 / -1; }
}

/* Device frames drawn in CSS: a browser window and a phone. The pictures inside are real screens. */
.frame { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.frame img { width: 100%; }
.frame--browser { position: relative; padding-top: 1.75rem; }
.frame--browser::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1.75rem; border-bottom: 1px solid var(--line); }
.frame--browser::after { content: ""; position: absolute; top: 0.5rem; left: 0.75rem; width: min(38%, 14rem); height: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.frame--phone { padding: 0.4rem; border-radius: var(--radius-device); background: var(--surface); }
.frame--phone img { border-radius: calc(var(--radius-device) - 0.4rem); }
figcaption { margin-top: 0.75rem; color: var(--text-muted); font-size: var(--step--1); }

/* Photos: one treatment everywhere (slightly muted, square corners). */
.photo img, .band-photo img { width: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.04); }
.photo img { aspect-ratio: 4 / 5; border-radius: var(--radius); }

/* Home hero: a large heading on the left edge, then the text beside a composition of real screens
   that runs off the right edge of the page. */
/* The screens run past the right edge; the section clips them so the page never scrolls sideways. */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) 0; overflow-x: clip; }
.hero h1 { font-size: var(--step-5); line-height: 0.88; max-width: 24ch; }
/* Short hero title: a measure that breaks it into two solid lines on desktop (the product screens stay above the fold), and the outcome in the
   accent colour (plain colour, no gradient or glow; site AGENTS.md slop rules). */
.hero .hero-title { font-size: var(--step-5); line-height: 0.88; max-width: 21ch; letter-spacing: 0; }
.hero-title__accent { color: var(--accent); }
/* Eyebrow led by a short solid rule instead of a pill or badge. */
.eyebrow--rule { display: flex; align-items: center; gap: 0.875rem; }
.eyebrow--rule::before { content: ""; flex: none; width: 2.5rem; height: 3px; background: var(--accent); }
.hero-grid { display: grid; gap: 3rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero-text { padding-top: 1.5rem; border-top: 3px solid var(--accent); }
.hero-note { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: var(--step--1); max-width: 52ch; }
.hero-stage { position: relative; padding-bottom: 3rem; }
.hero-stage .frame--phone { position: absolute; right: 4%; bottom: 0; width: 34%; max-width: 15rem; }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 5rem; align-items: start; }
  .hero-stage { margin-right: calc(-1 * var(--gutter) - 7vw); padding-bottom: 5rem; }
  .hero-stage .frame--phone { right: auto; left: -3.5rem; width: 15rem; }
}

/* Reference strip under the hero */
.reference-strip { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-block: 1.25rem; border-top: 1px solid var(--line); }
.reference-strip .label { color: var(--text-muted); font-size: var(--step--1); }
.reference-strip .club { display: inline-flex; align-items: center; gap: 0.9rem; font-weight: 600; }
.reference-strip img, .band-club img { width: 3rem; height: 3rem; border-radius: 50%; }

/* Numbered rows: what you get, ways to pay. A ruled list, not a card grid. */
.rows { list-style: none; border-top: 1px solid var(--line-strong); }
.row { display: grid; gap: 0.75rem 3rem; padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); border-bottom: 1px solid var(--line); }
.row-number { color: var(--accent); font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1; letter-spacing: 0.04em; }
.row h3 { display: grid; justify-items: start; gap: 1rem; font-size: var(--step-2); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.row p { color: var(--text-muted); }
@media (min-width: 56rem) {
  .row { grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .row-number { padding-top: 0.3rem; }
}

/* Full-bleed photo band with a black text block cut into its lower edge. */
.band { border-top: 1px solid var(--line); }
.band-photo img { height: clamp(16rem, 8rem + 38vw, 40rem); }
.band-text { position: relative; max-width: 52rem; margin-top: clamp(-9rem, -10vw, -3rem); padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem) clamp(1.5rem, 1rem + 2.5vw, 3.5rem) var(--section) 0; background: var(--bg); border-top: 3px solid var(--accent); }
.band-text h2 { max-width: 22ch; }
.band-text--plain { margin-top: 0; padding-top: var(--section); border-top: 0; }
.band-text p { margin-top: 1.5rem; color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; max-width: 44ch; }
.band-club { display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; font-weight: 600; color: var(--text); }

/* A market day: numbered steps with screens, the picture side alternating. */
.day { list-style: none; }
.day-step { display: grid; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.day-number { display: block; font-family: var(--font-display); font-size: var(--step-6); font-weight: 500; line-height: 0.8; letter-spacing: 0; color: var(--accent); }
.day-when { display: block; margin-top: 0.75rem; color: var(--text-muted); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.day-step .mark { margin-top: 1.5rem; }
.day-step h3 { margin-top: 0.75rem; font-family: var(--font-display); font-size: var(--step-3); font-weight: 500; letter-spacing: 0.01em; line-height: 0.92; text-transform: uppercase; }
.day-step p { margin-top: 1.25rem; color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.day-media .frame--phone { width: min(62%, 16rem); }
@media (min-width: 60rem) {
  .day-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 6rem; }
  .day-step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .day-step:nth-child(even) .day-media { order: -1; }
  .day-step:nth-child(even) .day-media .frame--phone { margin-inline-start: auto; }
  .day-media .frame--phone { width: 17rem; }
}

/* Split: a photo that bleeds to the page edge on one side, text on the other. */
.bleed { border-top: 1px solid var(--line); }
.bleed-grid { display: grid; }
.bleed-photo img { width: 100%; height: 100%; min-height: 18rem; max-height: 30rem; object-fit: cover; object-position: 50% 35%; filter: saturate(0.82) contrast(1.04); }
.bleed-text { padding: var(--section) var(--gutter); }
@media (min-width: 60rem) {
  .bleed-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .bleed-photo img { max-height: none; position: absolute; inset: 0; }
  .bleed-photo { position: relative; }
  .bleed-photo picture { position: absolute; inset: 0; }
  .bleed-text { padding-inline: clamp(3rem, 6vw, 7rem) var(--gutter); max-width: 52rem; }
}

/* Facts: a ruled list of short statements. */
.facts { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line-strong); }
.facts li { padding-block: 1rem; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.facts li p { max-width: none; }
/* The mark sits in a column of its own, so the sentence keeps its inline flow. */
.facts--icons li { position: relative; min-height: calc(var(--icon-lg) + 2.5rem); padding-block: 1.25rem; padding-inline-start: calc(var(--icon-lg) + 1.25rem); }
.facts--icons li > .mark { position: absolute; top: 1.25rem; left: 0; }
@media (min-width: 44rem) {
  .facts--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}

/* Figures: real numbers set large (contrast ratio, target size). */
.figures { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.figures li { padding-block: 1.5rem 1.75rem; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.figure-value { display: block; margin-bottom: 0.5rem; color: var(--accent); font-family: var(--font-display); font-size: var(--step-6); font-weight: 500; line-height: 0.85; letter-spacing: 0; text-transform: uppercase; }
@media (min-width: 44rem) {
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures li { padding-inline: 2rem; border-inline-start: 1px solid var(--line); }
  .figures li:first-child { padding-inline-start: 0; border-inline-start: 0; }
}

/* Honest notes: what is not there yet. Green edge, a status word, plain text. */
.notes { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 52rem) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; } }
.note { padding: 1.5rem 0 0.5rem 1.5rem; border-inline-start: 3px solid var(--brand); }
.note h3 { margin-bottom: 0.6rem; font-size: var(--step-1); }
.note p { color: var(--text-muted); }
.status { display: inline-block; margin-bottom: 0.9rem; padding: 0.2rem 0.6rem; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.04em; }

/* Two columns: a heading that stays in view on the left, the content on the right. */
.topic-grid { display: grid; gap: 2.5rem; }
.topic-head { display: grid; gap: 1.25rem; align-content: start; }
.topic-head::before { content: ""; width: 4.5rem; height: 3px; margin-bottom: 0.75rem; background: var(--accent); }
.topic-head .eyebrow { margin-bottom: 0; }
.topic-head .status, .topic-head .more, .topic-head .actions { justify-self: start; margin: 0; }
.topic-head p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.topic-body > .frame, .topic-body > .topic-media { margin-bottom: 2.5rem; }
.topic-body > .facts:first-child, .topic-body > .rows:first-child { margin-top: 0; }
.topic-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30%); gap: 1.5rem; align-items: end; }
.topic-body > .frame--phone { width: min(60%, 16rem); }
@media (min-width: 64rem) {
  .topic-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 5rem; }
  .topic-head { position: sticky; top: 2rem; }
  .topic--flip .topic-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .topic--flip .topic-head { order: 2; }
}

/* Page hero of the inner pages */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(3rem, 2rem + 4vw, 6rem); }
.page-hero-grid { display: grid; gap: 3rem; align-items: end; }
.page-hero-text { display: grid; align-content: start; }
.page-hero-text .eyebrow { margin-top: 0.5rem; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 1.75rem; max-width: 44ch; }
.page-hero .frame--phone { width: min(60%, 17rem); }
@media (min-width: 60rem) {
  .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5rem; }
  .page-hero-grid--wide { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .page-hero .frame--phone { margin-inline-start: auto; width: 17rem; }
}

/* Questions on the home page: native details, no script */
.faq { border-top: 1px solid var(--line-strong); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding-block: 1.25rem; cursor: pointer; list-style: none; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2rem; text-align: center; font-size: var(--step-2); font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding-bottom: 1.5rem; color: var(--text-muted); }

/* Questions page: every answer open, grouped under headings */
.qa { border-top: 1px solid var(--line-strong); }
.qa-item { display: grid; gap: 0.75rem 3rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.qa-item h3 { font-size: var(--step-1); font-weight: 700; }
.qa-item p { color: var(--text-muted); }
@media (min-width: 56rem) { .qa-item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Long text (privacy) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 3.5rem; margin-bottom: 1rem; font-size: var(--step-3); }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { margin-top: 1rem; padding-inline-start: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose .facts { padding-inline-start: 0; }
.prose .facts li + li { margin-top: 0; }
.prose .updated { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--step--1); }

/* Closing band: the one filled green block on each page. White text only (8.86:1). */
.cta { background: var(--brand); color: var(--on-brand); }
.cta .wrap { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 2.5rem + 5vw, 7.5rem); }
.cta h2 { max-width: 18ch; font-size: var(--step-4); line-height: 0.88; }
.cta p { color: var(--on-brand); font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.cta .address { display: block; font-family: var(--font-display); font-size: var(--step-3); font-weight: 500; line-height: 1; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.cta a:not(.button) { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-brand); }
.cta .button { background: var(--bg); border-color: var(--bg); color: var(--text); }
.cta .button:hover { background: var(--surface); border-color: var(--on-brand); }
.cta .button--ghost { background: var(--brand); border-color: var(--on-brand); color: var(--on-brand); }
.cta .button--ghost:hover { background: var(--brand-strong); }
.cta .actions { margin-top: 0; }
.cta :focus-visible { outline-color: var(--on-brand); box-shadow: 0 0 0 2px var(--brand-strong); }
@media (min-width: 60rem) {
  .cta .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 5rem; }
}

/* Contact page */
.contact-address { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-family: var(--font-display); font-size: var(--step-4); font-weight: 500; letter-spacing: 0.01em; line-height: 1; color: var(--text); overflow-wrap: anywhere; }
.contact-address .mark { flex: none; }
.email-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: 0.75rem; }
.email-link .icon { width: var(--icon-sm); height: var(--icon-sm); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2.5rem; font-size: var(--step--1); color: var(--text-muted); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: 4rem; } }
.site-footer h2 { margin-bottom: 0.5rem; font-size: var(--step-2); letter-spacing: 0.03em; color: var(--accent); }
.site-footer ul { list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; color: var(--text); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer nav a[aria-current="page"] { color: var(--accent); }
.footer-brand { color: var(--text); font-family: var(--font-display); font-size: var(--step-3); font-weight: 500; letter-spacing: 0.03em; line-height: 1; text-transform: uppercase; }
.footer-about p { max-width: 38ch; }
.site-footer .address { color: var(--text); font-weight: 600; }
.credits { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: none; font-size: var(--step--1); }

/* 404 */
.not-found { min-height: 60vh; display: grid; align-content: center; gap: 1.5rem; padding-block: var(--section); }
.not-found h1 { font-size: var(--step-5); line-height: 0.88; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .button, .lang-link, .menu-link, .status { border: 1px solid ButtonText; }
  .section-head::before, .topic-head::before, .page-hero-text::before { background: CanvasText; }
}

/* Print: black on white, no navigation or buttons, every answer and link address visible. */
@media print {
  :root { --step--1: 9pt; --step-0: 11pt; --step-1: 12pt; --step-2: 13pt; --step-3: 20pt; --step-4: 26pt; --step-5: 30pt; --step-6: 30pt; }
  html, body { background: #fff; color: #000; }
  .site-header nav, .header-tools, .skip-link, .actions, .site-footer nav, .more, .band-photo, .bleed-photo, .photo { display: none; }
  .site-header, .section, .band, .bleed, .site-footer, .credits, .rows, .row, .facts, .facts li, .figures, .figures li, .qa, .qa-item, .day-step, .faq, .faq details, .hero-text, .band-text { border-color: #000; }
  h1, h2, h3, p, li, strong, a, .lead, .eyebrow, .brand, .row p, .day-step p, .facts li, .figures li, .figure-value, .day-number, .row-number, .note p, .qa-item p, .prose p, .prose li, .faq .answer, .footer-brand, .site-footer, .site-footer h2, .site-footer .address, .cta p, .cta, .status, .contact-address, .day-when { color: #000; }
  .cta, .band-text, .section--surface { background: #fff; }
  .mark { color: #000; }
  .section, .page-hero, .hero { padding-block: 1.5rem; }
  .band-text { margin-top: 0; padding-bottom: 1.5rem; }
  .hero-stage { margin-right: 0; }
  .frame { border-color: #000; max-width: 60%; break-inside: avoid; }
  .row, .day-step, .qa-item, .note, .facts li, .figures li { break-inside: avoid; }
  .faq details::details-content { content-visibility: visible; display: block; }
  .faq summary::after { content: ""; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; }
}
