/* =========================================================================
   Ryntavos — Design System
   Gallery-minimal, monochrome. Near-white paper, charcoal ink, hairlines,
   big imagery. Instrument Serif display + Hanken Grotesk body. LIGHT default.
   The images carry the colour; the interface stays quiet.
   ========================================================================= */

/* ---------- Tokens (LIGHT default) ---------- */
:root {
  --paper: #fafafa;
  --surface: #ffffff;
  --surface-2: #f0f0ef;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #6f6f6f;
  --faint: #9a9a9a;
  --line: rgba(20, 20, 20, 0.12);
  --line-strong: rgba(20, 20, 20, 0.24);
  --accent: #141414;
  --accent-strong: #000000;
  --accent-soft: #ececec;
  --accent-ink: #ffffff;
  --danger: #b3402e;
  --grad: linear-gradient(120deg, #141414 0%, #2a2a2a 100%);

  --maxw: 1240px;
  --readw: 700px;
  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;
  --btn-radius: 0px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 24px 50px -30px rgba(0,0,0,.3);
  --shadow-lg: 0 40px 80px -36px rgba(0,0,0,.4);
  --ring: 0 0 0 3px var(--accent-soft);

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .79rem + .15vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.07rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.36rem + 1vw, 2.15rem);
  --step-3: clamp(2rem, 1.6rem + 1.7vw, 3.1rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.3rem);
  --step-5: clamp(3.4rem, 2.3rem + 5.4vw, 6.2rem);
}

:root[data-theme="dark"] {
  --paper: #0e0e0e;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --ink: #f3f3f3;
  --ink-soft: #cfcfcf;
  --muted: #9c9c9c;
  --faint: #777777;
  --line: rgba(243, 243, 243, 0.14);
  --line-strong: rgba(243, 243, 243, 0.26);
  --accent: #f3f3f3;
  --accent-strong: #ffffff;
  --accent-soft: #262626;
  --accent-ink: #0e0e0e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.6);
  --shadow: 0 24px 52px -28px rgba(0,0,0,.8);
  --shadow-lg: 0 40px 84px -32px rgba(0,0,0,.85);
  --ring: 0 0 0 3px rgba(243,243,243,.2);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
hr { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.wrap-read { width: min(100% - 2.4rem, var(--readw)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); font-weight: 400; }
.eyebrow { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow svg { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .82rem 1.5rem; border-radius: var(--btn-radius); border: 1px solid var(--accent);
  cursor: pointer; transition: transform .16s ease, background .18s ease, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.3rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-size: 1.65rem; font-weight: 400; letter-spacing: .01em; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; flex: none; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: 1rem; }
.nav-links a {
  font-family: var(--sans); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  padding: .5rem .78rem; transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 0; background: transparent; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }

/* mobile nav */
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-menu {
    display: block; position: fixed; inset: 74px 0 auto 0; z-index: 49;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.6rem; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s; box-shadow: var(--shadow);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-menu a { display: block; padding: .85rem .4rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu a:last-child { border-bottom: none; }
}

/* ---------- Hero (gallery) ---------- */
.hero-gallery { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero-inner { max-width: 800px; text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero-gallery h1 { font-size: var(--step-5); line-height: .96; margin: 1rem 0 1.1rem; letter-spacing: -.01em; }
.hero-gallery h1 em { font-style: italic; }
.hero-gallery .lead { max-width: 58ch; }
.hero-gallery .hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: clamp(2.4rem, 5vw, 4rem); }
.gallery-strip .shot { overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); }
.gallery-strip .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: grayscale(.15); }
.gallery-strip .shot:hover img { transform: scale(1.05); filter: grayscale(0); }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } .gallery-strip .shot:nth-child(5) { display: none; } }

/* ---------- Article cards (gallery-minimal) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); }
.card { display: flex; flex-direction: column; background: transparent; transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card a.thumb { display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.card a.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: grayscale(.12); }
.card:hover a.thumb img { transform: scale(1.04); filter: grayscale(0); }
.card .meta { display: flex; align-items: center; gap: .55rem; margin: 1rem 0 .35rem; font-size: .74rem; }
.cat-tag { font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .64rem; color: var(--muted); }
.dot-sep { width: 2px; height: 2px; border-radius: 50%; background: var(--faint); }
.card h3 { font-size: var(--step-2); line-height: 1.12; }
.card h3 a { transition: color .15s; }
.card:hover h3 a { color: var(--muted); }
.card p.dek { color: var(--muted); font-size: .92rem; margin-top: .5rem; line-height: 1.55; }
.card .byline { margin-top: .9rem; padding-top: 0; display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--faint); }
.avatar { width: 24px; height: 24px; border-radius: 50%; flex: none; }

/* Featured / large card */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; background: transparent; border: none; }
.feature .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; filter: grayscale(.1); }
.feature:hover .thumb img { filter: grayscale(0); }
.feature .feature-body { padding: 0 .5rem; }
.feature h2 { font-size: var(--step-3); margin: .5rem 0 .8rem; }
.feature h2 a:hover { color: var(--muted); }
.feature .dek { color: var(--ink-soft); font-size: 1.03rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.sec-head .titles h2 { font-size: var(--step-2); margin-top: .3rem; }
.sec-head p { color: var(--muted); margin-top: .3rem; }
.link-arrow { font-family: var(--sans); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Category chips ---------- */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; padding: .5rem 1rem; border: 1px solid var(--line-strong); color: var(--ink-soft); background: transparent; transition: all .15s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-current="page"], .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Article page ---------- */
.article-head { padding: clamp(2.2rem, 4vw, 3.4rem) 0 0; }
.breadcrumb { font-size: .78rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }
.article-head h1 { font-size: var(--step-4); margin: .7rem 0 1rem; }
.article-head .lead { max-width: 60ch; }
.article-byline { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0; flex-wrap: wrap; }
.article-byline .avatar { width: 46px; height: 46px; }
.article-byline .bi b { font-weight: 600; font-size: .96rem; }
.article-byline .bi span { display: block; font-size: .8rem; color: var(--muted); }
.share { margin-left: auto; display: flex; gap: .4rem; }
.figure-hero { margin: 1.4rem auto 0; }
.figure-hero img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
figcaption { font-size: .78rem; color: var(--faint); margin-top: .6rem; text-align: center; text-transform: uppercase; letter-spacing: .06em; }

.prose { font-size: 1.14rem; line-height: 1.85; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin-top: 2.8rem; color: var(--ink); }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-1); margin-top: 2rem; color: var(--ink); }
.prose p { color: var(--ink-soft); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-top: .55rem; padding-left: .3rem; }
.prose li::marker { color: var(--faint); }
.prose blockquote {
  border: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1.4rem 0; margin: 1.8rem 0;
  font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.34; color: var(--ink); font-style: italic; text-align: center;
}
.prose img { margin-block: 1.8rem; }
.prose figure img { margin-bottom: .4rem; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .15em .4em; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); padding: 1.1rem 1.2rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose h2 a.anchor, .prose h3 a.anchor { opacity: 0; margin-left: .4rem; color: var(--faint); text-decoration: none; font-size: .8em; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }

.callout { background: var(--surface-2); border-left: 2px solid var(--accent); padding: 1.2rem 1.3rem; }
.callout strong { color: var(--ink); }
.key-takeaways { background: var(--surface-2); border: none; padding: 1.6rem 1.7rem; position: relative; }
.key-takeaways h2 { font-family: var(--display); font-weight: 400; margin-top: 0 !important; font-size: var(--step-1); }
.key-takeaways ul { margin-top: .8rem; }

.tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.6rem; }
.tag { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); padding: .35rem .8rem; }
.tag:hover { border-color: var(--accent); color: var(--ink); }

/* author box */
.author-box { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface-2); border: none; padding: 1.6rem; margin-top: 2.8rem; }
.author-box .avatar { width: 64px; height: 64px; }
.author-box b { font-size: 1.2rem; font-family: var(--display); font-weight: 400; }
.author-box .role { font-family: var(--sans); font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.author-box p { color: var(--muted); font-size: .94rem; margin-top: .5rem; }

/* TOC */
.toc { font-size: .9rem; }
.toc-title { font-family: var(--sans); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: .8rem; }
.toc a { display: block; padding: .35rem 0; color: var(--muted); border-left: 1px solid var(--line); padding-left: .9rem; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }

.article-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1040px) {
  .article-layout { grid-template-columns: 1fr 230px; align-items: start; }
  .article-aside { position: sticky; top: 96px; }
}

/* prev/next */
.read-next { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2.5rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--accent); color: var(--accent-ink); padding: clamp(2.2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.newsletter h2 { color: var(--accent-ink); font-size: var(--step-3); }
.newsletter p { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); max-width: 48ch; margin-top: .6rem; }
.newsletter form { display: flex; gap: .6rem; margin-top: 1.5rem; max-width: 460px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: .82rem 1.1rem; border-radius: 0; border: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); background: transparent; color: var(--accent-ink); }
.newsletter input::placeholder { color: color-mix(in srgb, var(--accent-ink) 55%, transparent); }
.newsletter .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.newsletter .btn:hover { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.newsletter small { display: block; margin-top: .85rem; color: color-mix(in srgb, var(--accent-ink) 60%, transparent); font-size: .78rem; }
.newsletter .glow { display: none; }
.newsletter > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: clamp(3rem, 6vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: clamp(2.6rem, 5vw, 4rem) 0 2.4rem; }
.footer-grid h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 1rem; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { display: block; padding: .5rem 0; color: var(--muted); font-size: .92rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: .9rem 0 1.1rem; max-width: 34ch; }
.social { display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); color: var(--muted); }
.social a:hover { border-color: var(--accent); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page header (static pages) ---------- */
.page-head { padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(1.4rem, 2vw, 2rem); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: .8rem; }
.page-head h1 { font-size: var(--step-4); max-width: 20ch; }
.page-head .lead { max-width: 60ch; margin-top: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border-radius: 0; border: 1px solid var(--line-strong);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-card { background: var(--surface-2); border: none; padding: 1.3rem 1.4rem; margin-bottom: 1rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .dot { width: 42px; height: 42px; border: 1px solid var(--line-strong); color: var(--ink); display: grid; place-items: center; flex: none; }
.contact-card .dot svg { width: 20px; height: 20px; }
.contact-card b { font-size: .96rem; }
.contact-card a, .contact-card span { color: var(--muted); font-size: .92rem; }
.contact-card a:hover { color: var(--ink); }

/* ---------- Author archive header ---------- */
.author-hero { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.author-hero .avatar { width: 92px; height: 92px; }
.author-hero .role { font-family: var(--sans); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.author-hero p { color: var(--muted); max-width: 56ch; margin-top: .5rem; }

/* ---------- Misc ---------- */
.pill-row { display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.pill-row .item { display: flex; align-items: center; gap: .5rem; }
.pill-row svg { width: 18px; height: 18px; color: var(--ink); }
.notice { background: var(--surface-2); border: 1px dashed var(--line-strong); padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: .8rem 1.3rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.value-card { background: var(--surface-2); border: none; padding: 1.6rem; transition: transform .2s; }
.value-card:hover { transform: translateY(-3px); }
.value-card .dot { width: 44px; height: 44px; border: 1px solid var(--line-strong); color: var(--ink); display: grid; place-items: center; margin-bottom: 1.1rem; }
.value-card .dot svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.45rem; }
.value-card p { color: var(--muted); font-size: .92rem; margin-top: .5rem; }

.stat-row { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.stat b { font-family: var(--display); font-weight: 400; font-size: var(--step-3); display: block; line-height: 1; color: var(--ink); }
.stat span { color: var(--muted); font-size: .9rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }

/* visually hidden (accessible) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* cookie consent banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 30px -16px rgba(0,0,0,.2); padding: 1rem 0; }
.consent[hidden] { display: none; }
.consent-inner { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.consent-inner p { font-size: .9rem; color: var(--ink-soft); margin: 0; flex: 1 1 320px; line-height: 1.5; }
.consent-inner a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: .6rem; flex: none; }
.consent-actions .btn { padding: .6rem 1.2rem; }
@media (max-width: 600px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }
