/* RURAL design system — solarpunk enterprise. Token roles follow DEV-25/web-standards. */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  /* palette roles */
  --paper: #f4f3ed;
  --paper-bright: #fbfaf5;
  --ink: #15392f;
  --muted: #44594f;
  --line: #d3d8c9;
  --night: #15392f;
  --night-deep: #0f2a23;
  --night-muted: #c5d5ca;
  --accent: #d4ed8a;          /* lime */
  --signal: #e8b54d;          /* sun */
  --signal-soft: #f6e2ae;
  --positive: #5e8a63;        /* moss */
  --clay: #b8603e;
  --sage: #a9c39b;
  --mist: #dfe8d6;
  --line-dark: rgba(212, 237, 138, .18);

  /* type */
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  --step-4: clamp(2.75rem, 1.6rem + 4.8vw, 5.25rem);

  /* space */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;
  --gutter: clamp(1rem, 3.4vw, 2rem);
  --content-max: 1240px;
  --reading-max: 68ch;
  --radius: 18px;
  --radius-lg: 26px;

  /* motion */
  --duration-fast: 160ms;
  --duration-ui: 320ms;
  --duration-reveal: 650ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.06; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -.04em; font-weight: 750; }
h2 { font-size: var(--step-3); letter-spacing: -.035em; }
h3 { font-size: var(--step-2); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small type */
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--positive); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.hl { position: relative; white-space: nowrap; color: var(--positive); }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--accent); z-index: -1; border-radius: 4px; }
.hl { isolation: isolate; }
.hl::after { z-index: -1; }

/* ribbon + nav */
.ribbon { background: var(--night-deep); color: var(--sage); text-align: center; padding: 7px 16px; font-family: var(--font-mono); font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; }
.ribbon b { color: var(--accent); font-weight: 400; }
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--duration-ui); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: .95rem; flex: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: .94rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.chip { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(232,181,77,.25); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper-bright); border-radius: 12px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 20px; border-radius: 99px; font: 600 .94rem/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast), box-shadow var(--duration-fast), color var(--duration-fast); white-space: nowrap; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #1d4a3d; transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(21,57,47,.6); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lime { background: var(--accent); color: var(--ink); }
.btn-lime:hover { background: #e2f5a8; transform: translateY(-1px); }
.btn-ghost-light { border-color: rgba(244,243,237,.5); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.textlink svg { width: 12px; height: 12px; transition: transform var(--duration-fast); }
.textlink:hover svg { transform: translate(2px, -2px); }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* status badges — honest labels */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-today, .badge-foundation { color: #2f6b45; border-color: #9cc4a3; background: #eaf3e6; }
.badge-dev, .badge-development { color: #7a5a12; border-color: #e6cc8a; background: #fbf1d6; }
.badge-design { color: #3d5a8a; border-color: #b4c4de; background: #edf1f8; }
.badge-aim, .badge-aspiration { color: #8f4528; border-color: #e0b49f; background: #f8ebe4; }
.on-dark .badge-today { color: var(--accent); border-color: rgba(212,237,138,.4); background: rgba(212,237,138,.08); }
.on-dark .badge-aim { color: var(--signal-soft); border-color: rgba(246,226,174,.4); background: rgba(246,226,174,.08); }
.on-dark .badge-design { color: #c9d6ee; border-color: rgba(201,214,238,.4); background: rgba(201,214,238,.06); }
.on-dark .badge-dev { color: var(--signal); border-color: rgba(232,181,77,.45); background: rgba(232,181,77,.08); }

/* sections */
.block { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.block-tight { padding: clamp(56px, 7vw, 88px) 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { margin-top: 18px; }
.head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.head.center .lede { margin: 0 auto; }
.mist { background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); }
.mist-flat { background: var(--mist); }
.dark { background: var(--night); color: var(--paper); overflow: hidden; }
.dark .eyebrow { color: var(--accent); }
.dark .lede, .dark .muted { color: var(--night-muted); }
.dark::before { content: ""; position: absolute; right: -240px; top: -240px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(232,181,77,.16), rgba(21,57,47,0) 65%); pointer-events: none; }
.dark > .wrap { position: relative; }

/* page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient(circle, rgba(246,226,174,.65) 0%, rgba(244,243,237,0) 62%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 20px 0 22px; max-width: 16ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero .ctas { margin-top: 30px; }
.crumbs { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }

/* grids & cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 { font-size: 1.3rem; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: .97rem; }
.card .textlink { margin-top: auto; padding-top: 8px; font-size: .9rem; }
.dark .card { background: rgba(15,42,35,.5); border-color: var(--line-dark); }
.dark .card p { color: var(--night-muted); }
.ico { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; flex: none; transition: background var(--duration-ui); }
.ico svg { width: 26px; height: 26px; }
.dark .ico { background: rgba(212,237,138,.12); }

/* "Today / Aim" pair used across pillars */
.pair { display: grid; gap: 10px; margin-top: 4px; }
.pair > div { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: .93rem; }
.pair p { color: var(--muted); }
.dark .pair p { color: var(--night-muted); }

/* bordered matrix grid (home capabilities) */
.matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.matrix > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* fact strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.fact { padding: 34px 28px 10px 0; border-right: 1px solid var(--line-dark); margin-right: 28px; min-width: 0; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact .big { font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; color: var(--accent); }
.fact h3 { font-size: 1.05rem; margin: 18px 0 8px; letter-spacing: -.005em; line-height: 1.3; }
.fact p { font-size: .9rem; color: #b9cbbf; }
.light-facts .fact { border-color: var(--line); }
.light-facts { border-color: var(--line); }
.light-facts .fact .big { color: var(--ink); }
.light-facts .fact p { color: var(--muted); }

/* lists */
.ticks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ticks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ticks li > svg { width: 22px; height: 22px; color: var(--positive); margin-top: 3px; }
.ticks b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.ticks span { color: var(--muted); font-size: .96rem; }
.dark .ticks, .dark .ticks li { border-color: var(--line-dark); }
.dark .ticks span { color: var(--night-muted); }
.dark .ticks li > svg { color: var(--accent); }

/* quote / principle */
.principle { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; }
.principle em { font-style: normal; color: var(--positive); }

/* code + tables */
pre, .code { font-family: var(--font-mono); font-size: .84rem; line-height: 1.8; background: var(--night-deep); color: #cfe0d4; border-radius: 14px; padding: 20px 22px; overflow-x: auto; white-space: pre; margin: 0; }
.code .k { color: var(--accent); } .code .s { color: var(--signal-soft); } .code .c { color: #7f9a8a; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--mist); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; font-size: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-bright); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* diagram frame */
.frame { background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); overflow: hidden; }
.frame .bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.frame .bar b { color: var(--ink); font-weight: 400; }
.scroll-x { overflow-x: auto; }
.scroll-x > svg { display: block; width: 100%; height: auto; }
.note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .88rem; margin-top: 18px; }
.note::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); flex: none; margin-top: 7px; }

/* status strip */
.status { background: var(--night); color: var(--paper); }
.status .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.status .tag { color: var(--accent); }
.status p { color: #cfdcd2; font-size: .95rem; }
.status a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .94rem; white-space: nowrap; }
.status a:hover { text-decoration: underline; }

/* closing */
.closing { padding: clamp(96px, 12vw, 150px) 0 clamp(96px, 11vw, 130px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.closing h2 { font-size: var(--step-4); max-width: 15ch; margin: 22px auto 24px; }
.closing .lede { margin: 0 auto; }
.closing .ctas { justify-content: center; margin-top: 36px; }
.closing svg.horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; z-index: -1; }

/* footer */
.site-footer { background: var(--night-deep); color: #a9bdb0; padding: 64px 0 40px; font-size: .9rem; }
.site-footer .grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.site-footer .brand { color: var(--paper); }
.site-footer .brand img { filter: brightness(0) invert(.92) sepia(.2) hue-rotate(40deg); }
.site-footer h4 { margin: 0 0 14px; color: var(--paper); font-family: var(--font-mono); font-weight: 400; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--accent); }
.site-footer .base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(212,237,138,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; }
.publisher { display: flex; align-items: center; gap: 18px; margin-top: 24px; font-size: .8rem; }
.publisher img { display: block; }
.publisher a { text-decoration: underline; text-underline-offset: 3px; }
.build-notice { position: fixed; z-index: 100; bottom: 20px; right: 20px; width: min(440px, calc(100% - 40px)); padding: 20px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper-bright); color: var(--ink); box-shadow: 0 8px 32px #0003; }
.build-notice p { margin: 0 0 16px; }
.build-notice button + button { margin-left: 8px; }

/* docs layout */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 48px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.docs-side { position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow: auto; font-size: .9rem; padding-right: 8px; }
.docs-side h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--positive); font-weight: 400; margin: 22px 0 8px; }
.docs-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-side a { display: block; text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.docs-side a:hover { background: var(--mist); color: var(--ink); }
.docs-side a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.toc { position: sticky; top: 96px; font-size: .84rem; max-height: calc(100dvh - 120px); overflow: auto; }
.toc h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--muted); } .toc a:hover { color: var(--ink); }
.prose { max-width: var(--reading-max); }
.prose h1 { font-size: var(--step-3); margin: 16px 0 18px; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; letter-spacing: -.02em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--positive); text-underline-offset: 3px; }
.prose pre { margin: 1.2em 0; }
.prose .table-wrap { margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--signal); background: var(--paper-bright); border-radius: 0 12px 12px 0; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose h2 .anchor, .prose h3 .anchor { opacity: 0; margin-left: 8px; text-decoration: none; color: var(--sage); transition: opacity var(--duration-fast); }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }

/* reveal (owner-approved; content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--duration-reveal) ease, transform var(--duration-reveal) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* svg motion helpers */
.spin { transform-origin: 0 0; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow { stroke-dasharray: 3 9; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.breathe { animation: breathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.04); } }
.pulse { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .5; } }
.paused .spin, .paused .flow, .paused .breathe, .paused .pulse { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin, .flow, .breathe, .pulse { animation: none; }
  .mover { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .textlink svg { transition: none; }
}

@media (max-width: 1080px) {
  .nav-links, .nav-right .chip { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 70px); overflow: auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 28px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), visibility 0s linear var(--duration-ui); z-index: 39; }
  .mobile-menu.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; font-weight: 600; }
  .mobile-menu li a[aria-current="page"] { color: var(--positive); }
  .mobile-menu .ctas { margin-top: 20px; }
  .head, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; margin-right: 0; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .site-footer .grid > :first-child { grid-column: 1 / -1; }
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs-side { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 14px 14px; background: var(--paper-bright); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav-right > .btn { display: none; }
  .grid-3, .grid-4, .matrix, .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-dark); padding-bottom: 28px; }
  .light-facts .fact { border-color: var(--line); }
  .status .wrap { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 22px; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
}

.copy-btn { position: absolute; top: 10px; right: 10px; font: .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); background: rgba(212,237,138,.1); border: 1px solid var(--line-dark); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.copy-btn:hover { color: var(--accent); }
