/* ==========================================================================
   Flora Homeopati
   Single stylesheet. Tokens first, then base, layout, components, motion.

   Two rules that keep this file from rotting:
   1. `.section` owns every scrap of vertical section spacing. No other
      selector sets padding-block on a section — not a variant, not a
      component, not a one-off. Variants set background and colour only.
   2. Every colour is a token. There are no loose hex values below :root.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted, latin + latin-ext only.
   Fraunces carries its full axis set (opsz, SOFT, WONK, wght); Jost carries
   wght. Unicode ranges are Google's own, so å ä ö resolve from the latin
   slice and latin-ext only downloads when a page actually needs it.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') 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: 'Fraunces';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') 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: 'Fraunces';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin.woff2') 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: 'Fraunces';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin-ext.woff2') 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: 'Jost';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') 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: 'Jost';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') 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;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* The potency ramp: one sage hue diluted step by step into the page. */
  --bone: #EFEDE2;   /* page background */
  --oat: #E1DFCE;    /* alternating sections, card fill */
  --sage: #B3B59C;   /* image blocks, large quiet surfaces */
  --olive: #5C6149;  /* buttons, links, active states */
  --ink: #2A2A25;    /* body + headings */
  --rule: #C9C6B2;   /* hairlines, borders, dividers */
  --mist: #C7D3D6;   /* cool accent — at most once per page */

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Sole owner of section rhythm. Referenced only by `.section`. */
  --space-section: clamp(72px, 10vw, 128px);

  --rail-w: 160px;
  --rail-gap: 56px;
  --measure: 62ch;
  --content-max: 720px;
  --page-max: 1140px;
  --gutter: 20px;

  --dur: 180ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* Depth comes from the tint ramp, never from blur. Radius is 0 everywhere
   except form fields. */
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
/* Olive on olive is invisible — the CTA band and filled buttons need a light ring. */
.band-cta :focus-visible,
.btn--fill:focus-visible {
  outline-color: var(--bone);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--olive);
  color: var(--bone);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: 12px; }

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  /* opsz high for the high-contrast display cut; WONK only ever here. */
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1, 'wght' 300;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  font-variation-settings: 'opsz' 72, 'SOFT' 0, 'WONK' 0, 'wght' 300;
}

h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* The only italic on the site: Latin terms, remedy and botanical names. */
.latin {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 14, 'SOFT' 0, 'WONK' 0, 'wght' 400;
}

.label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   Links — 1px underline growing from the left
   -------------------------------------------------------------------------- */

a { color: var(--olive); }

.link {
  position: relative;
  color: var(--olive);
  text-decoration: none;
  padding-bottom: 1px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.link:hover::after,
.link:focus-visible::after { transform: scaleX(1); }

/* Prose links stay underlined — inside a paragraph, hover-only underlining
   hides the fact that they are links at all. */
.prose a,
.rich a { color: var(--olive); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose a:hover,
.rich a:hover { text-decoration-color: var(--ink); }

/* --------------------------------------------------------------------------
   Buttons — hover shifts the background one step down the ramp
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border: 1px solid var(--olive);
  background: transparent;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.btn--fill { background: var(--olive); color: var(--bone); }
.btn--fill:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.btn:not(.btn--fill):hover:not(:disabled) { background: var(--oat); }
.btn:disabled { opacity: 0.55; cursor: default; }

/* On the olive CTA band the ramp runs the other way. */
.band-cta .btn { border-color: var(--bone); color: var(--bone); }
.band-cta .btn:hover { background: var(--bone); color: var(--olive); }

/* --------------------------------------------------------------------------
   Layout — page, section, rail
   -------------------------------------------------------------------------- */

.page {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sole owner of section spacing. Do not set padding-block on a variant. */
.section { padding-block: var(--space-section); }
.section--oat { background: var(--oat); }
.section--olive { background: var(--olive); color: var(--bone); }
.section--olive h2 { color: var(--bone); }

/* A full-bleed image band is not a `.section`: it has no padding by
   definition, so it gets its own class rather than overriding one. */
.band { display: block; background: var(--sage); }
.band img { width: 100%; }

/* The rail. Mobile-first: the marker sits inline above its content as an
   eyebrow. At 1024px it moves out into the left margin. */
.rail-grid { display: block; }

.rail {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
}
.rail__num {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--olive);
  white-space: nowrap;
}
.rail__label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.rail__date {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--olive);
  white-space: nowrap;
}

.rail-grid__body > * { max-width: var(--content-max); }
.rail-grid__body > .full { max-width: none; }
.rail-grid__body > h1,
.rail-grid__body > h2 { margin-bottom: clamp(20px, 2vw, 28px); }

/* Spacing utilities for gaps *inside* a section. Deliberately named so they
   can never be mistaken for — or used to override — section padding. */
.stack-s { margin-top: 20px; }
.stack-m { margin-top: 32px; }
.stack-l { margin-top: 48px; }

@media (min-width: 1024px) {
  .rail-grid {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, var(--content-max));
    column-gap: var(--rail-gap);
    align-items: start;
    /* Left-aligned, not centred: the rail is the left edge of the composition. */
    justify-content: start;
  }
  .rail {
    display: block;
    margin: 0;
    /* Optical alignment with the first line of a heading. */
    padding-top: 0.55em;
  }
  .rail__num { display: block; margin-bottom: 4px; }
  .rail__label { display: block; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-variation-settings: 'opsz' 36, 'SOFT' 0, 'WONK' 0, 'wght' 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  padding-block: 8px;
}

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav__link[aria-current='page'] { color: var(--olive); }

.lang {
  display: flex;
  align-items: center;
  /* Override the default <p> bottom margin: it's a flex item here, and a
     margin on a flex item shifts where `align-items: center` centers it. */
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang__on,
.lang__off {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  text-decoration: none;
}
.lang__on { color: var(--ink); }
.lang__off { color: var(--olive); }
.lang__sep {
  width: 1px;
  align-self: stretch;
  margin-block: 14px;
  background: var(--rule);
}

/* Mobile menu button + full-screen overlay */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  display: block;
  width: 18px; height: 1px;
  background: var(--ink);
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before,
.menu-btn__bars::after { content: ''; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 20px;
  background: var(--oat);
  overflow-y: auto;
}
.menu[data-open='true'] { display: flex; }
.menu__top { display: flex; justify-content: flex-end; }
.menu__close {
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.menu__list {
  margin: auto 0;
  padding: 0;
  list-style: none;
}
.menu__list li + li { border-top: 1px solid var(--rule); }
.menu__link {
  display: block;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-variation-settings: 'opsz' 48, 'SOFT' 0, 'WONK' 0, 'wght' 300;
  color: var(--ink);
  text-decoration: none;
}
.menu__link[aria-current='page'] { color: var(--olive); }

@media (min-width: 768px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { display: flex; align-items: center; min-height: 78vh; }
.hero__inner { width: 100%; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }

/* A hairline under the h1, hanging the same width as the rail. Marks the
   h1 as the opening aphorism rather than decorating it. */
.hero__rule {
  width: 120px;
  height: 1px;
  margin-bottom: 28px;
  background: var(--rule);
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--content-max);
}
@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--oat);
}
.card__media { background: var(--sage); }
/* Specimens are mounted toward the top of a sheet, so a centred crop cuts
   the plant. Bias upward. */
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 32%; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card h3 { margin-bottom: 6px; }
.card__sub { margin-bottom: 18px; font-size: 0.9375rem; }
.card__divider { height: 1px; margin-bottom: 18px; background: var(--rule); }
.card__meta { margin-bottom: 20px; font-size: 0.9375rem; line-height: 1.9; }
.card__meta span { display: block; }
.card__cta { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Numbered steps — a real sequence, so the numbering carries information
   -------------------------------------------------------------------------- */

.steps { margin: 0; padding: 0; list-style: none; max-width: var(--content-max); counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 16px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--olive);
  padding-top: 0.35em;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }

/* --------------------------------------------------------------------------
   Notes list — plain reverse-chronological. No cards, no thumbnails.
   -------------------------------------------------------------------------- */

.notes { margin: 0; padding: 0; list-style: none; max-width: var(--content-max); }
.notes li { padding-block: 26px; border-top: 1px solid var(--rule); }
.notes li:last-child { border-bottom: 1px solid var(--rule); }
.notes h3 { margin-bottom: 6px; }
.notes h3 a { color: var(--ink); text-decoration: none; }
.notes__excerpt { margin: 0; font-size: 0.9375rem; }
.notes__date { display: block; margin-bottom: 8px; }

/* The date moves into the rail only where the list is itself top-level — the
   notes index. Nested inside a section that already has a rail (the home
   page's "latest" block) it would draw a second rail inside the first. */
@media (min-width: 1024px) {
  .notes--railed li { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); column-gap: var(--rail-gap); }
  .notes--railed .notes__date { margin-bottom: 0; padding-top: 0.3em; }
}

/* --------------------------------------------------------------------------
   Prose — blog post body
   -------------------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 2em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.4em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.8em 0;
  padding-left: 24px;
  border-left: 1px solid var(--olive);
  font-size: 1.0625rem;
}
.prose figure { margin: 2em 0; }
.prose figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--olive);
}
.prose hr { height: 1px; margin: 2.5em 0; border: 0; background: var(--rule); }

.postnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  max-width: var(--content-max);
}
.postnav__next { margin-left: auto; }

/* Pull-quote — Fraunces italic at h2 size, hanging into the rail. */
.pullquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  font-variation-settings: 'opsz' 72, 'SOFT' 0, 'WONK' 0, 'wght' 300;
  max-width: 20ch;
}
.pullquote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}
/* The quote sits directly in `.page`, outside any rail grid — so it starts at
   the rail's own left edge, hanging a full rail-width left of every other
   heading on the page. The rail must stay empty here or the § marker would
   land underneath the quote. */
@media (min-width: 1024px) {
  .pullquote { max-width: 26ch; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.bio { display: grid; grid-template-columns: 1fr; gap: 32px; }
.bio__portrait { background: var(--sage); }
.bio__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (min-width: 768px) {
  .bio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
}

/* Scope-of-practice block. Plain, not a warning box — it is honest
   information, not an alert. */
.scope {
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--oat);
}
.scope h3 { margin-bottom: 12px; }
.scope ul { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; }
.scope li { margin-bottom: 0.3em; }

/* --------------------------------------------------------------------------
   Book page
   -------------------------------------------------------------------------- */

.book { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) {
  .book { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 64px; align-items: start; }
}

.aside { font-size: 0.9375rem; }
.aside h3 { margin-bottom: 8px; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.aside section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.field { margin-bottom: 24px; max-width: 34rem; }
.field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;      /* the one place radius is not 0 */
  background: var(--bone);
  color: var(--ink);
  font-weight: 300;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--olive); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--olive) 50%),
                    linear-gradient(135deg, var(--olive) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field__hint { margin: 0 0 8px; font-size: 0.8125rem; color: var(--olive); max-width: none; }
.field__error {
  display: none;
  margin: 7px 0 0;
  font-size: 0.8125rem;
  color: var(--olive);
  max-width: none;
}
.field[data-invalid='true'] .field__error { display: block; }
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: var(--olive); border-width: 2px; }

/* "(optional)" is a label, not emphasis — it should read quieter than the
   field name it qualifies. */
.field__opt { text-transform: none; letter-spacing: 0.02em; color: var(--olive); }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; max-width: 34rem; }
.check .field__error { grid-column: 2; }
.check input {
  width: 20px; height: 20px;
  margin: 3px 0 0;
  min-height: 0;
  accent-color: var(--olive);
}
.check label { font-size: 0.9375rem; }

/* Honeypot: off-screen wrapper, never display:none — bots read the CSS too. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid var(--olive);
  background: var(--oat);
  font-size: 0.9375rem;
  max-width: 34rem;
}
.form-done {
  padding: 32px;
  border: 1px solid var(--rule);
  background: var(--oat);
  max-width: 34rem;
}
.form-done h2 { margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Language-mismatch bar (home page only)
   -------------------------------------------------------------------------- */

.langbar {
  border-bottom: 1px solid var(--rule);
  background: var(--oat);
  font-size: 0.9375rem;
}
.langbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 12px; }
.langbar p { margin: 0; max-width: none; }
.langbar__dismiss {
  margin-left: auto;
  min-height: 44px;
  padding-inline: 8px;
  border: 0;
  background: transparent;
  color: var(--olive);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   CTA band + footer
   -------------------------------------------------------------------------- */

.band-cta { background: var(--olive); color: var(--bone); }
.band-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-block: clamp(48px, 6vw, 72px);
}
.band-cta p { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25; font-variation-settings: 'opsz' 48, 'SOFT' 0, 'WONK' 0, 'wght' 300; }
.band-cta .btn { margin-left: auto; }

.footer { border-top: 1px solid var(--rule); background: var(--bone); font-size: 0.9375rem; }
.footer__inner { padding-block: 56px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}
.footer h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer p { max-width: 40ch; }

.footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink);
}
.footer__legal p { max-width: 68ch; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Motion — every rule below is inside no-preference, so `reduce` gets a
   completely static site without a single counter-rule.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .link::after { transition: transform var(--dur) var(--ease); }
  .btn,
  .field input, .field select, .field textarea,
  .footer a, .nav__link { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }

  /* Page load: rail markers settle first, then the h1, then the body.
     Stated per element rather than by :nth-child, so the order survives the
     rail and the content sitting in different grid columns. Pure CSS, so it
     finishes even if no JS runs. */
  [data-load] { opacity: 0; animation: settle 420ms var(--ease) forwards; }
  [data-load='1'] { animation-delay: 0ms; }
  [data-load='2'] { animation-delay: 150ms; }
  [data-load='3'] { animation-delay: 260ms; }
  [data-load='4'] { animation-delay: 340ms; }
  [data-load='5'] { animation-delay: 400ms; }

  @keyframes settle {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  /* Scroll reveal. `reveal.js` adds `data-reveal` itself, so with JS off
     nothing is ever hidden. */
  [data-reveal] { opacity: 0; transform: translateY(12px); }
  [data-reveal='in'] { opacity: 1; transform: none; transition: opacity 500ms ease-out, transform 500ms ease-out; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .header, .footer, .band-cta, .band, .skip, .menu { display: none; }
  body { background: none; color: #000; }
}
