/* =========================================================================
   Gourlax — Design System
   Editorial, calm, modern. Warm paper + evergreen accent.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --ink: #17181b;
  --ink-soft: #34363c;
  --muted: #6b6f76;
  --faint: #73767d;
  --line: rgba(23, 24, 27, 0.10);
  --line-strong: rgba(23, 24, 27, 0.18);
  --accent: #15604a;
  --accent-strong: #0f4a39;
  --accent-soft: #e7f0ec;
  --highlight: #c8893f;
  --danger: #b3402e;

  --maxw: 1180px;
  --readw: 720px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23,24,27,.05), 0 1px 1px rgba(23,24,27,.04);
  --shadow: 0 12px 30px -12px rgba(23,24,27,.18), 0 4px 10px -6px rgba(23,24,27,.10);
  --shadow-lg: 0 30px 60px -22px rgba(23,24,27,.28);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.83rem, .80rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.30rem + .8vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.75rem + 2.6vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.9rem + 3.6vw, 4.4rem);
}

:root[data-theme="dark"] {
  --paper: #0f1114;
  --surface: #16181d;
  --surface-2: #1d2026;
  --ink: #ecedf0;
  --ink-soft: #cfd2d8;
  --muted: #9aa0a8;
  --faint: #888e97;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #4fb595;
  --accent-strong: #67c7a8;
  --accent-soft: #16312a;
  --highlight: #e0a85f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 14px 34px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
}

/* ---------- 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.65;
  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: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }
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(--serif); font-weight: 560; line-height: 1.12; letter-spacing: -.012em; 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.5; color: var(--ink-soft); font-weight: 400; }
.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.eyebrow svg { width: 1.1em; height: 1.1em; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 550; font-size: var(--step--1); letter-spacing: .01em;
  padding: .72rem 1.3rem; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s, box-shadow .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: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.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) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.4rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: .6rem; }
.nav-links a {
  font-size: .94rem; font-weight: 480; color: var(--ink-soft);
  padding: .5rem .72rem; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: transparent; border: 1px solid transparent; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); 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: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-menu {
    display: block; position: fixed; inset: 70px 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.06rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu a:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(2rem, 3vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.hero h1 { font-size: var(--step-5); margin: .8rem 0 1rem; }
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center; max-width: 260px;
}
.hero-badge .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-badge .dot svg { width: 20px; height: 20px; }
.hero-badge b { font-size: .92rem; }
.hero-badge span { font-size: .8rem; color: var(--muted); display: block; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16/10; }
  .hero-badge { left: 12px; }
}

/* ---------- Article cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.card { display: flex; flex-direction: column; }
.card a.thumb { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/2; background: var(--surface-2); }
.card a.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.card:hover a.thumb img { transform: scale(1.045); }
.card .meta { display: flex; align-items: center; gap: .55rem; margin: 1rem 0 .55rem; font-size: .78rem; }
.cat-tag { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; color: var(--accent); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.card h3 { font-size: var(--step-1); line-height: 1.22; }
.card h3 a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.card:hover h3 a { background-size: 100% 1.5px; }
.card p.dek { color: var(--muted); font-size: .94rem; margin-top: .5rem; line-height: 1.55; }
.card .byline { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; }

/* Featured / large card */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature .thumb { aspect-ratio: 16/11; border-radius: 0; }
.feature .feature-body { padding: clamp(1.4rem, 3vw, 2.6rem); }
.feature h2 { font-size: var(--step-3); margin: .7rem 0 .8rem; }
.feature .dek { color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature .thumb { aspect-ratio: 16/9; } }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.sec-head .titles h2 { font-size: var(--step-2); }
.sec-head p { color: var(--muted); margin-top: .3rem; }
.link-arrow { font-weight: 550; font-size: .92rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Category chips ---------- */
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { font-size: .86rem; font-weight: 500; padding: .5rem .95rem; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--ink-soft); transition: all .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current="page"], .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Article page ---------- */
.article-head { padding: clamp(2.2rem, 4vw, 3.4rem) 0 0; }
.breadcrumb { font-size: .8rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 13px; height: 13px; 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: .82rem; color: var(--muted); }
.share { margin-left: auto; display: flex; gap: .4rem; }
.figure-hero { margin: 1.4rem auto 0; }
.figure-hero img { border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
figcaption { font-size: .8rem; color: var(--faint); margin-top: .6rem; text-align: center; }

.prose { font-size: 1.12rem; line-height: 1.78; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.8rem; color: var(--ink); }
.prose h3 { font-size: var(--step-1); margin-top: 2rem; color: var(--ink); }
.prose p { color: var(--ink-soft); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 640; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-top: .55rem; padding-left: .3rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.4rem; margin-left: 0;
  font-family: var(--serif); font-size: 1.32rem; line-height: 1.45; color: var(--ink); font-style: italic;
}
.prose img { border-radius: var(--radius); 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; border-radius: 5px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); 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(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.callout strong { color: var(--accent-strong); }
.key-takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.key-takeaways h2 { 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-size: .8rem; color: var(--muted); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 100px; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* author box */
.author-box { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; margin-top: 2.8rem; }
.author-box .avatar { width: 64px; height: 64px; }
.author-box b { font-size: 1.05rem; }
.author-box .role { font-size: .82rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.author-box p { color: var(--muted); font-size: .94rem; margin-top: .5rem; }

/* TOC */
.toc { font-size: .9rem; }
.toc-title { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: .8rem; }
.toc a { display: block; padding: .35rem 0; color: var(--muted); border-left: 2px solid var(--line); padding-left: .9rem; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--accent); 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: 92px; }
}

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

/* ---------- Newsletter ---------- */
.newsletter { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.4rem); position: relative; overflow: hidden; }
.newsletter h2 { color: #fff; font-size: var(--step-2); }
.newsletter p { color: rgba(255,255,255,.82); max-width: 48ch; margin-top: .6rem; }
.newsletter form { display: flex; gap: .6rem; margin-top: 1.4rem; max-width: 440px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: .8rem 1.1rem; border-radius: 100px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.7); }
.newsletter .btn { background: #fff; color: var(--accent-strong); }
.newsletter .btn:hover { background: #f1f1f1; }
.newsletter small { display: block; margin-top: .8rem; color: rgba(255,255,255,.7); font-size: .78rem; }
.newsletter .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.12); right: -90px; top: -120px; filter: blur(10px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); 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: .78rem; text-transform: uppercase; letter-spacing: .1em; 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(--accent); }
.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-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.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: .84rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }
@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: 18ch; }
.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: .85rem; font-weight: 550; margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); 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: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .dot { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); 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(--accent); }

/* ---------- 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 { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.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(--accent); }
.notice { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); 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; border-radius: 100px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; font-size: .9rem; }
.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); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.value-card .dot { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.value-card .dot svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.18rem; }
.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(--serif); font-size: var(--step-3); display: block; line-height: 1; color: var(--accent); }
.stat span { color: var(--muted); font-size: .9rem; }

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

/* progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; 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(23,24,27,.3); 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(--accent); 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; } }
