/* Steadion landing page. Plain CSS: no build step, no third-party requests. */

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #eaf1ee;
  --ink: #0e1d19;
  --muted: #44574f;
  --line: rgba(14, 29, 25, 0.12);
  /* Text, links and figure graphics use --accent-ink (AA on every surface). The app's brighter teal (#12a594) is only 2.87:1 on --bg, so it is deliberately not a token. */
  --accent-ink: #0a7266;
  --focus: #0a7266;
  /* From the app icon ("Target Band"). */
  --hero-1: #111827;
  --hero-2: #1e3a2f;
  --band: #22c55e;
  --mint: #4ade80;
  /* --band at two fixed strengths: the soft wash behind a panel, and the highlight tint (rule, <mark>). */
  --band-wash: rgba(34, 197, 94, 0.16);
  --band-tint: rgba(34, 197, 94, 0.22);
  /* Out-of-range marker in the post figures. 3:1 or better on both themes' backgrounds and the figure box (the old #d97706 was 2.97:1 on light). */
  --warm: #c2620a;
  /* The header pill: dark text on the mint fill, a lighter mint on hover. */
  --pill-ink: #0b1f17;
  --pill-hover: #86efac;
  --on-hero: #f2f7f4;
  --on-hero-muted: #b9c9c1;
  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Dark tokens, twice: for the device's dark mode unless the visitor forced light, and for a forced dark
   (theme.js sets data-theme on <html>). Keep the two blocks identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1311;
    --surface: #101c19;
    --surface-2: #16251f;
    --ink: #e9f2ee;
    --muted: #a8b9b1;
    --line: rgba(233, 242, 238, 0.14);
    --accent-ink: #2dd4c4;
    --focus: #2dd4c4;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1311;
  --surface: #101c19;
  --surface-2: #16251f;
  --ink: #e9f2ee;
  --muted: #a8b9b1;
  --line: rgba(233, 242, 238, 0.14);
  --accent-ink: #2dd4c4;
  --focus: #2dd4c4;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  padding: 10px 14px; border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.skip:focus { top: 12px; }

h1 {
  font: 400 clamp(2.9rem, 7.4vw, 4.6rem) / 1 var(--font-display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--mint); }
h2 {
  font: 400 clamp(2.1rem, 4.6vw, 3.3rem) / 1.05 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 {
  font: 400 clamp(1.7rem, 3vw, 2.3rem) / 1.1 var(--font-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.eyebrow {
  font: 600 0.78rem / 1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- Dark bands (hero, privacy, closing) ---------- */
.hero, .band-dark {
  color: var(--on-hero);
  background: linear-gradient(155deg, var(--hero-1), var(--hero-2));
  --focus: var(--mint);
}
.hero a, .band-dark a { color: var(--mint); }
.hero .eyebrow, .band-dark .eyebrow { color: var(--mint); }

/* ---------- Header + hero ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-top: 22px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.05rem / 1 var(--font-body); letter-spacing: 0.01em;
  color: var(--on-hero); text-decoration: none;
}
.brand img { border-radius: 9px; }

/* Theme switch (theme.js). The header sits on the always-dark hero band, so the button uses the on-hero colours.
   It stays hidden until the script has run. The icon is a mask, so it takes the text colour. */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; margin: -6px -10px -6px 0; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--on-hero); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: color-mix(in srgb, var(--on-hero) 14%, transparent); }
.theme-toggle:active { background: color-mix(in srgb, var(--on-hero) 26%, transparent); }
.theme-toggle:focus-visible { outline-color: var(--mint); }
.theme-toggle::before {
  content: ""; width: 22px; height: 22px; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.theme-toggle[data-mode="system"]::before { -webkit-mask-image: url("assets/theme-system.svg"); mask-image: url("assets/theme-system.svg"); }
.theme-toggle[data-mode="light"]::before { -webkit-mask-image: url("assets/theme-light.svg"); mask-image: url("assets/theme-light.svg"); }
.theme-toggle[data-mode="dark"]::before { -webkit-mask-image: url("assets/theme-dark.svg"); mask-image: url("assets/theme-dark.svg"); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% 12%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 60%),
    linear-gradient(155deg, var(--hero-1), var(--hero-2));
}
.hero__grid { display: grid; gap: 32px; padding-top: 104px; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.lede { max-width: 36em; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--on-hero-muted); }

.cta { margin-top: 6px; }
.cta__badge { display: inline-block; line-height: 0; }
.cta__badge img { height: 48px; width: auto; }

/* Phone frame: CSS only, bleeds off the bottom of its container. */
.stage { position: relative; padding-top: 8px; }
.stage__art {
  position: absolute; left: 50%; top: 14%;
  width: 130%; max-width: none; height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}
.phone {
  position: relative; z-index: 1;
  width: min(100%, 300px); margin-inline: auto;
  padding: 10px 10px 0;
  background: #0a0d12;
  border-radius: 46px 46px 0 0;
  box-shadow:
    inset 0 0 0 2px #2b3441,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%;
  width: 30%; height: 26px; transform: translateX(-50%);
  background: #000; border-radius: 999px;
}
.phone__screen { border-radius: 36px 36px 0 0; overflow: hidden; background: var(--surface); }
.phone__screen img { width: 100%; height: auto; }

/* Hero motif: a line settles into the target band and lands on a mint dot. */
.trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dot {
  opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--mint) 90%, transparent));
  animation: pop 0.6s 1.9s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .trace { animation: none; stroke-dashoffset: 0; }
  .dot { animation: none; opacity: 1; transform: none; }
}

@media (min-width: 920px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center; gap: 56px; padding-top: 128px;
  }
  .hero__copy { padding-bottom: 96px; }
  .stage { align-self: end; }
  .stage .phone { width: min(100%, 400px); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--surface-2); }
.section__head { display: grid; gap: 14px; max-width: 40rem; margin-bottom: clamp(36px, 6vw, 64px); }

.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature__copy { display: grid; gap: 14px; max-width: 32rem; }
.feature__copy p:not(.eyebrow) { color: var(--muted); }

.panel {
  position: relative; overflow: hidden;
  display: grid; justify-items: center;
  padding: 36px 24px 0;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.panel::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: 34%; height: 26%;
  background: linear-gradient(90deg, transparent, var(--band-wash) 14%, var(--band-wash) 86%, transparent);
}
.panel--dark { border-color: transparent; background: linear-gradient(155deg, var(--hero-1), var(--hero-2)); padding-bottom: 36px; }
.panel--dark::before { display: none; }

.illo { position: relative; width: min(100%, 400px); height: auto; }
.illo__body { fill: var(--surface); }
.illo__btn { fill: var(--muted); }
.illo__card { fill: var(--surface); }
.illo__num { font: 700 44px var(--font-body); fill: var(--mint); }
.illo__unit { font: 500 13px var(--font-body); fill: var(--on-hero-muted); }
.illo__lab { font: 600 13px var(--font-body); fill: var(--ink); }

@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature--flip .feature__copy { order: 2; }
}

.rule {
  position: relative; height: 12px; margin: clamp(56px, 8vw, 96px) auto 0;
  background: linear-gradient(90deg, transparent, var(--band-tint) 10%, var(--band-tint) 90%, transparent);
  border-radius: 999px;
}
.rule::after {
  content: ""; position: absolute; right: 9%; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--band); box-shadow: 0 0 14px color-mix(in srgb, var(--band) 70%, transparent);
}

/* Details grid */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tile {
  display: grid; gap: 10px; align-content: start;
  padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
}
.tile h3 { font: 600 1.1rem / 1.3 var(--font-body); letter-spacing: 0; }
.tile p { color: var(--muted); font-size: 1rem; }
/* Stroke styling lives here, not in the sprite: a <use> instance inherits from the <use> element. */
.icon {
  width: 28px; height: 28px; color: var(--accent-ink);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Privacy band */
/* .mobile-break forces "No account." and "No tracking." onto separate lines on mobile; the two
   read as one line once .facts goes 3-column, at the same 760px breakpoint below. */
@media (min-width: 760px) {
  .mobile-break { display: none; }
}
.facts { display: grid; gap: 28px; margin-top: 40px; }
.fact { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid color-mix(in srgb, var(--mint) 50%, transparent); }
.fact h3 { font: 600 1.1rem / 1.3 var(--font-body); letter-spacing: 0; color: var(--on-hero); }
.fact p { color: var(--on-hero-muted); }
.band-dark .note { margin-top: 32px; color: var(--on-hero-muted); }
.band-dark .note a { font-weight: 600; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* FAQ */
.faq-layout { display: grid; gap: 32px 72px; }
.faq-layout .section__head { margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
@media (min-width: 860px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); align-items: start; }
}
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
details:hover { background: var(--surface-2); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) {
  summary::after { transition: transform 0.2s; }
}
details p { padding: 0 22px 20px; color: var(--muted); }

/* Closing CTA + footer */
.closing { padding-block: clamp(64px, 9vw, 104px) 48px; }
.final__inner { display: grid; gap: 24px; justify-items: start; padding-bottom: clamp(40px, 6vw, 64px); }
.footer__inner {
  display: grid; gap: 18px; padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--on-hero) 16%, transparent);
  color: var(--on-hero-muted); font-size: 0.92rem;
}
.footer__disclaimer { max-width: 52rem; }
.footer__inner nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__inner nav a { display: inline-block; padding: 11px 0; font-weight: 600; }
.footer__inner small { font-size: 0.85rem; }
.footer__inner nav a[aria-current] { text-decoration-thickness: 3px; }
/* Language switcher: the same links on every page, the current language underlined. */
.footer__inner nav.lang a { font-weight: 500; }

/* ---------- Document pages (privacy, support) ---------- */
/* The absolute .site-header sits over this band, hence the top padding. */
.doc-head { padding-block: 116px clamp(36px, 6vw, 56px); }
.doc-head .wrap { display: grid; gap: 10px; }
.doc-head h1 { font-size: clamp(2.4rem, 6.4vw, 3.6rem); }
.doc-head__meta { color: var(--on-hero-muted); font-size: 0.95rem; }

.doc { width: min(100% - 40px, 46rem); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc > * + * { margin-top: 1.1em; }
.doc h2 { margin-top: 2.2em; font: 400 clamp(1.7rem, 3vw, 2.1rem) / 1.15 var(--font-display); letter-spacing: -0.005em; }
.doc h2 + * { margin-top: 0.6em; }
.doc h3 { margin-top: 1.7em; font: 600 1.05rem / 1.4 var(--font-body); }
.doc h3 + * { margin-top: 0.4em; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5em; }
.doc strong { font-weight: 650; }
/* The note at the top of a translated legal page: the English version governs. */
.doc .doc__translation { padding: 12px 16px; border-left: 3px solid var(--accent-ink); background: var(--surface-2); color: var(--muted); font-size: 0.95rem; }

.closing--slim { padding-block: clamp(40px, 6vw, 56px) 48px; }
.closing--slim .footer__inner { padding-top: 0; border-top: 0; }

/* Diabetes Information (posts) pages. They reuse .doc-head and .doc; these are the few extras. */
.doc-head__back { font-size: 0.95rem; font-weight: 600; }
.doc-head__back a { display: inline-block; padding: 10px 0; }

.doc .post-list { list-style: none; padding-left: 0; }
.post-list li { padding-block: 22px; border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { font: 400 clamp(1.5rem, 3vw, 1.85rem) / 1.2 var(--font-display); }
.post-list p { margin-top: 0.4em; color: var(--muted); }
.post-list time { display: block; margin-top: 0.4em; color: var(--muted); font-size: 0.9rem; }

.doc .sources { margin-top: 2.2em; padding-top: 0.2em; border-top: 1px solid var(--line); }
.doc .sources ol { padding-left: 1.4rem; }
.doc .sources li { overflow-wrap: anywhere; }

.doc .related { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.doc .related a { display: inline-block; padding: 9px 0; font-weight: 600; }

.doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc caption { padding-bottom: 0.6em; color: var(--muted); font-size: 0.95rem; text-align: left; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.doc thead th { border-bottom-width: 2px; font-weight: 650; }

/* ---------- Posts: highlights and figures ---------- */
/* <mark> marks a key phrase in a paragraph. A soft tint, so the text keeps its own colour in both themes. */
.doc mark {
  padding: 0 0.15em; border-radius: 0.25em;
  background: var(--band-tint); color: inherit;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (forced-colors: active) {
  .doc mark { background: Mark; color: MarkText; }
}

/* Figures are inline SVG so they take the page's tokens and follow the theme switch. Classes only, no style=. */
.doc figure.fig { margin: 1.8em 0; }
.fig svg { width: 100%; height: auto; }
.fig figcaption { margin-top: 0.7em; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.fig text { font: 500 12px var(--font-body); fill: var(--ink); }
.fig .f-small { font-size: 11px; }
.fig .f-muted { fill: var(--muted); }
.fig .f-mid { text-anchor: middle; }
.fig .f-end { text-anchor: end; }
.fig .f-axis { fill: none; stroke: var(--line); stroke-width: 1.5; }
.fig .f-tick { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.fig .f-band { fill: var(--band); fill-opacity: 0.18; }
.fig .f-avg { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fig .f-line { fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fig .f-dot { fill: var(--accent-ink); }
.fig .f-warm { fill: var(--warm); }
.fig .f-box { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
@media (forced-colors: active) {
  .fig .f-band { fill: Canvas; stroke: CanvasText; }
  .fig .f-line, .fig .f-avg, .fig .f-axis, .fig .f-tick { stroke: CanvasText; }
  .fig text { fill: CanvasText; }
}
.fig table { font-size: 0.95rem; }
.fig th, .fig td { padding: 8px; }

/* ---------- A1C calculator (a1c-calculator/) ---------- */
/* Two input cards inside .doc. #calc-set is hidden until calculator.js runs; without JavaScript the static table
   on the page is the fallback. Tokens only. Fields are 16px or larger so iOS does not zoom on focus, and their
   border uses --muted (3:1 or better on both themes) because --line is too faint to mark an input. */
.calc-set:not([hidden]) { display: grid; gap: 16px; }
.calc { padding: clamp(18px, 4vw, 26px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.doc .calc h2 { margin-top: 0; font-size: clamp(1.45rem, 3vw, 1.75rem); }
.calc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9.5rem); gap: 12px; margin-top: 14px; }
.calc__field { display: grid; gap: 6px; }
.calc label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.calc input, .calc select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--muted); border-radius: 12px; background: var(--bg); color: var(--ink);
  font: 500 1.15rem / 1.2 var(--font-body);
}
.calc__msg { min-height: 1.5em; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.calc__result { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 10px; margin: 8px 0 0; }
.calc__result > div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.calc__result dt { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.calc__result dd { margin: 4px 0 0; font: 400 clamp(1.9rem, 5vw, 2.4rem) / 1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.calc__unit { color: var(--muted); font: 500 0.9rem / 1 var(--font-body); }
.doc .calc__nojs { padding: 12px 16px; border-left: 3px solid var(--accent-ink); background: var(--surface-2); color: var(--muted); font-size: 0.95rem; }

/* A1C calculator entry point: a whole-card link on the landing page (under the details tiles) and at the top of the
   Diabetes Information page. Kicker, title and one line; the chevron is the same one the FAQ uses. */
.tool-card {
  position: relative; display: grid; gap: 4px; padding: 22px 56px 22px 26px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent-ink); border-radius: 20px;
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.tool-card:hover { background: var(--surface-2); }
.tool-card::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-right: 2px solid var(--accent-ink); border-top: 2px solid var(--accent-ink); transform: rotate(45deg);
}
.tool-card__kicker { color: var(--accent-ink); font: 650 0.78rem / 1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.tool-card__title { font: 400 clamp(1.5rem, 3.4vw, 1.9rem) / 1.15 var(--font-display); }
.tool-card__text { color: var(--muted); font-size: 1rem; }
.tiles + .tool-card { margin-top: 16px; }
 (forced-colors: active) {
  .tool-card { border-color: CanvasText; }
}

/* Site header pill (English landing, privacy, support and post pages): a prominent link to the Diabetes
   Information section, beside the theme switch. The header sits on the always-dark band, so the pill is the
   bright mint fill with dark text (AA+). */
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-posts {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--mint); color: var(--pill-ink); font: 650 0.92rem / 1 var(--font-body); text-decoration: none;
}
.nav-posts:hover { background: var(--pill-hover); }
.nav-posts:active { background: var(--band); }
.nav-posts:focus-visible { outline-color: var(--on-hero); }
@media (max-width: 420px) {
  .header-actions { gap: 6px; }
  .nav-posts { padding: 8px 12px; font-size: 0.85rem; }
}
@media (forced-colors: active) {
  .nav-posts { border: 1px solid ButtonText; }
}
@media (max-width: 340px) {
  .nav-posts { padding: 7px 10px; font-size: 0.78rem; }
}
