/* Plainspec Media design system (v2, Nov 22 2026).
   One stylesheet for every page; build.py appends one generated rule per publication (its accent colour) from
   config.json, so a new page or publication never needs new CSS.
   Faces: Instrument Serif (display), Space Grotesk (UI, matches the wordmark), IBM Plex Mono (labels), system UI (reading).
   Themes: every colour is a token; light on :root, dark under prefers-color-scheme. The masthead and CTA band are
   "night" surfaces in both themes (.night re-points the tokens, so anything inside, logo included, recolours itself).
   The site's CSP allows no inline styles or scripts: everything visual lives here. */

@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* metric-matched fallback for the display face (Times-metric fonts at 82.8% match Instrument Serif's width), so the
   swap from fallback to web font doesn't reflow headlines */
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("Liberation Serif"), local("Times"); size-adjust: 82.8%; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-mono-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-mono-500.woff) format("woff"); font-weight: 500; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #F6F4EF; --bg-2: #EDEAE3; --surface: #FFFFFF; --surface-2: #FAF9F6;
  --ink: #121418; --ink-2: #393C43; --muted: #66655E;
  --line: rgb(18 20 24 / .10); --line-strong: rgb(18 20 24 / .2);
  --acc: #0B7A5C; --acc-ink: #09684F; --acc-soft: rgb(11 122 92 / .09);
  --tick: #36C08F; --dot: #0B7A5C; --rule: #C9C6BE;
  --btn: #36C08F; --btn-ink: #07130E; --btn-hover: #5AD3A8;
  --night: #0D0F12; --night-2: #15181D; --night-3: #1C2026;
  --on-night: #F3F1EB; --on-night-2: #B8B5AD; --night-line: rgb(255 255 255 / .085); --night-grid: rgb(255 255 255 / .045);
  --acc-night: #55D6A8;
  --shadow: 0 1px 2px rgb(18 20 24 / .04), 0 8px 24px -12px rgb(18 20 24 / .18);
  --shadow-hi: 0 2px 4px rgb(18 20 24 / .05), 0 20px 40px -16px rgb(18 20 24 / .28);
  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --wrap: 76rem;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1114; --bg-2: #14171B; --surface: #171A1F; --surface-2: #1B1F25;
    --ink: #F2F0EA; --ink-2: #CFCCC4; --muted: #A09D96;
    --line: rgb(255 255 255 / .09); --line-strong: rgb(255 255 255 / .17);
    --acc: #55D6A8; --acc-ink: #6EDDB7; --acc-soft: rgb(85 214 168 / .10);
    --tick: #36C08F; --dot: #55D6A8; --rule: #3A3D44;
    --night: #090A0C; --night-2: #111418; --night-3: #171B20;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-hi: 0 2px 4px rgb(0 0 0 / .35), 0 20px 40px -16px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
/* night surfaces: the same names, re-pointed, so components work unchanged inside them */
.night {
  --ink: var(--on-night); --ink-2: var(--on-night-2); --muted: #8F8C85;
  --line: var(--night-line); --line-strong: rgb(255 255 255 / .16);
  --acc: var(--acc-night); --acc-ink: var(--acc-night); --dot: var(--acc-night); --rule: #3A3D44;
  --surface: var(--night-2); --surface-2: var(--night-3);
  background: var(--night); color: var(--ink-2); color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 1.0625rem/1.65 var(--text); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--acc-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; z-index: 20; font: 700 .95rem/1 var(--display); }
.skip:focus { left: 14px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, .h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1; }
h1 em, h2 em, .h-serif em { font-style: italic; color: var(--acc); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.25rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.01em; }
h3 { font: 700 1.2rem/1.25 var(--display); letter-spacing: -.015em; }
p { margin: 0; }
.lede, .section-head > p, .band p:not(.eyebrow) { text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.label { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.125rem, 1.04rem + .4vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 41rem; }
.mono { font-family: var(--mono); }
.addr { font-family: var(--mono); color: var(--ink); user-select: all; }

/* ------------------------------------------------------------------ masthead (header + hero / page head) */
.mast { position: relative; isolation: isolate; overflow: hidden; }
.mast::before { /* graph paper: the spec-sheet grid, fading out from the top left */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--night-grid) 1px, transparent 1px), linear-gradient(90deg, var(--night-grid) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%);
}
.mast::after { /* one soft green light, top right */
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 60rem; height: 60rem; right: -22rem; top: -30rem;
  background: radial-gradient(closest-side, rgb(54 192 143 / .16), transparent 70%);
}
.site { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: transparent; padding-top: env(safe-area-inset-top, 0px); }
.mast { padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
.top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; line-height: 0; border-radius: 8px; }
.logo { height: 36px; width: auto; display: block; }
.logo-sm { height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font: 500 .95rem/1 var(--display); padding: 11px 14px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current] { color: var(--ink); background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--line-strong); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink); font: 500 .95rem/1 var(--display); box-shadow: inset 0 0 0 1px var(--line-strong); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .bars { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu[open] summary { background: rgb(255 255 255 / .08); }
.menu .panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 300px); padding: 8px; border-radius: var(--r); background: var(--night-2); box-shadow: 0 24px 48px -12px rgb(0 0 0 / .6), inset 0 0 0 1px var(--line-strong); display: grid; }
.menu .panel a { color: var(--ink); text-decoration: none; font: 500 1.05rem/1 var(--display); padding: 15px 14px; border-radius: 10px; }
.menu .panel a:hover, .menu .panel a[aria-current] { background: rgb(255 255 255 / .07); }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* hero (home) */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 8vw, 120px) clamp(64px, 9vw, 136px); }
.hero h1 { font-size: clamp(2.9rem, 1.1rem + 6.4vw, 6.4rem); margin-top: 22px; max-width: 12ch; }
.hero .lede { margin-top: 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); text-decoration: none; font: 700 1rem/1 var(--display); letter-spacing: -.01em; box-shadow: 0 10px 30px -12px rgb(54 192 143 / .7); }
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 1rem/1 var(--display); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--line); text-decoration: none; }
.arrow { display: inline-block; transition: transform .2s; }
a:hover > .arrow { transform: translateX(3px); }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: 14ch; } }

/* the standard card: what every guide passes before it goes live */
.sheet { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--night-3), var(--night-2)); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7), inset 0 0 0 1px var(--line-strong); padding: clamp(22px, 3vw, 32px); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-strong); }
.sheet-head h2 { font: 700 1.05rem/1.3 var(--display); letter-spacing: -.01em; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sheet li:last-child { border-bottom: 0; padding-bottom: 4px; }
.sheet li strong { display: block; color: var(--ink); font: 500 1rem/1.35 var(--display); }
.sheet li span { display: block; font-size: .9rem; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
.mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.mark svg { width: 16px; height: 16px; }
.mark.yes { background: rgb(54 192 143 / .16); color: var(--acc-night); }
.mark.no { background: rgb(255 120 100 / .12); color: #FF9C88; }

/* page head (inner pages) */
.pagehead { padding-block: clamp(40px, 6vw, 88px) clamp(52px, 7vw, 100px); }
.pagehead h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.8rem); margin-top: 20px; max-width: 16ch; }
.pagehead .lede { margin-top: 24px; }

/* stats strip (inside the masthead, home) */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 40px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 400 clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.stat b small { font: 500 .3em/1 var(--display); letter-spacing: 0; margin-left: .35em; color: var(--ink-2); }
.stat span { display: block; margin-top: 10px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); max-width: 16rem; }
@media (max-width: 820px) { .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section + .section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 16px; max-width: 14ch; }
.section-head > p { color: var(--ink-2); max-width: 34rem; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* publication tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding: 24px 24px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); color: var(--ink-2); text-decoration: none; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pc, var(--acc)); opacity: .9; }
.tile:hover { box-shadow: var(--shadow-hi), inset 0 0 0 1px var(--line-strong); text-decoration: none; }
.tile-top { display: flex; align-items: center; gap: 14px; }
.tile img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.tile h3 { font-size: 1.3rem; }
.tile p { font-size: .97rem; line-height: 1.55; flex: 1; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile-foot .go { color: var(--ink); font: 500 .9rem/1 var(--display); letter-spacing: 0; text-transform: none; white-space: nowrap; }

/* principles */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.split-aside { position: sticky; top: 32px; }
.split-aside h2 { margin-top: 16px; }
.split-aside > p:not(.eyebrow) { margin-top: 20px; max-width: 28rem; }
.split-aside .btn-ghost { margin-top: 28px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split-aside { position: static; } }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; border-top: 1px solid var(--line-strong); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 4px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); font: 500 .8rem/2.1 var(--mono); letter-spacing: .12em; color: var(--acc); }
.principles h3 { font: 400 clamp(1.6rem, 1.25rem + 1.1vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.005em; }
.principles p { grid-column: 2; margin-top: 8px; max-width: 36rem; }
@media (max-width: 520px) { .principles li { grid-template-columns: minmax(0, 1fr); } .principles p { grid-column: 1; } }

/* method steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 24px 28px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); font: 500 .85rem/1 var(--mono); margin-bottom: 20px; }
.steps h3 { font-size: 1.12rem; }
.steps p { margin-top: 8px; font-size: .97rem; line-height: 1.55; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 80px); }
.band::after { content: ""; position: absolute; z-index: -1; width: 40rem; height: 40rem; left: -14rem; bottom: -26rem; background: radial-gradient(closest-side, rgb(54 192 143 / .18), transparent 70%); }
.band-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.band h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4.2rem); margin-top: 16px; }
.band p:not(.eyebrow) { color: var(--ink-2); max-width: 32rem; }
.band .cta { margin-top: 28px; }
@media (max-width: 900px) { .band-in { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ inner page parts */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 .85rem/1.2 var(--display); color: var(--ink); }
.chip svg { width: 14px; height: 14px; color: var(--acc); flex: none; }

/* publication cards (publications page) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc, var(--acc)); }
.card-top { display: flex; align-items: center; gap: 16px; }
.card-top img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.card h2 { font: 700 1.6rem/1.15 var(--display); letter-spacing: -.02em; }
.card-dom { font: 400 .85rem/1.3 var(--mono); color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.card > p { margin-top: 20px; flex: none; }
.card dl { margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.card dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card dt { font: 500 .72rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card dd { margin: 0; color: var(--ink); font-size: .97rem; line-height: 1.55; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.card-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 500 .92rem/1 var(--display); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.card-links a:first-child { background: var(--ink); color: var(--bg); box-shadow: none; }
.card-links a:hover { background: var(--line); }
.card-links a:first-child:hover { background: var(--acc); color: var(--btn-ink); }
@media (max-width: 480px) { .card dl div { grid-template-columns: minmax(0, 1fr); } }

/* documents: standards, disclosure, corrections, privacy */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 28px; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--acc); }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } .toc ol { columns: 2 12rem; column-gap: 24px; } }
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font: 700 1.45rem/1.25 var(--display); letter-spacing: -.02em; margin-top: 56px; scroll-margin-top: 24px; display: flex; gap: 14px; align-items: baseline; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { font: 500 .8rem/1 var(--mono); letter-spacing: .1em; color: var(--acc); flex: none; transform: translateY(-2px); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--acc); }
.prose strong { color: var(--ink); }
.summary { padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.summary ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.summary li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0; color: var(--ink); }
.summary li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--acc); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 12px; }
.fact { padding: 20px 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fact b { display: block; margin-top: 8px; font: 400 1.9rem/1.05 var(--serif); color: var(--ink); }
.fact span { display: block; margin-top: 6px; font-size: .92rem; line-height: 1.5; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline li { counter-increment: t; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 28px; margin: 0; }
.timeline li::before { content: counter(t); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--acc); font: 500 .9rem/1 var(--mono); position: relative; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 21.5px; top: 44px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; font: 700 1.05rem/1.35 var(--display); margin-top: 10px; }
.timeline p { margin-top: 4px; }
.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
td .pdot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--pc, var(--acc)); margin-right: 10px; transform: translateY(-1px); }

/* paired columns (corrections) */
.pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(40px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.h-sub { font: 700 1.45rem/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 24px; }
.note { margin-top: 16px; font-size: .95rem; }
@media (max-width: 900px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* contact */
.mailbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-hi), inset 0 0 0 1px var(--line); }
.mailbox .addr { display: block; margin-top: 12px; font-size: clamp(1.15rem, .7rem + 2.2vw, 2.2rem); line-height: 1.25; letter-spacing: -.01em; }
.mailbox p:not(.label):not(.addr) { margin-top: 14px; font-size: .97rem; max-width: 36rem; }
.postal { display: grid; gap: 8px; padding: 18px 22px; border-radius: var(--r); background: var(--acc-soft); color: var(--ink); max-width: 22rem; }
.postal address { font-style: normal; font-family: var(--mono); font-size: .95rem; line-height: 1.55; }
.promise { display: grid; gap: 4px; padding: 18px 22px; border-radius: var(--r); background: var(--acc-soft); color: var(--ink); max-width: 20rem; }
.promise b { font: 400 2.2rem/1 var(--serif); }
.promise span { font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .mailbox { grid-template-columns: minmax(0, 1fr); } .promise { max-width: none; } }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 16px; margin-top: 16px; }
.topic { display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.topic-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.topic-ic svg { width: 20px; height: 20px; }
.topic h3 { margin-top: 18px; }
.topic p { margin-top: 8px; font-size: .97rem; line-height: 1.55; flex: 1; }
.topic dl { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.topic dl div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topic dt { font: 500 .7rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.topic dd { margin: 0; font: 400 .85rem/1.6 var(--mono); color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.pubrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pubrow a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font: 500 .92rem/1 var(--display); }
.pubrow a:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pubrow img { width: 28px; height: 28px; border-radius: 8px; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 56px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.foot-brand p { margin-top: 16px; max-width: 24rem; font-size: .97rem; }
.foot-brand .addr { display: inline-block; margin-top: 18px; font-size: .95rem; }
.foot h2 { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.foot ul.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot li a { display: inline-block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 32px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.lost { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ------------------------------------------------------------------ motion: once, on load, and only if welcome */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; } .rise-5 { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .tile, .card-links a, .btn, .btn-ghost, .nav a, .pubrow a { transition: background-color .18s, box-shadow .2s, color .18s, transform .2s; }
  .tile:hover { transform: translateY(-3px); }
}

/* generated from config.json: publication accents */
.p-usb { --pc: #E0A253; }
.p-hush { --pc: #6B76A3; }
.p-watt { --pc: #1E8A82; }
.p-meter { --pc: #4F7F6B; }
.p-ping { --pc: #3B66E0; }
.p-spool { --pc: #8E5AA0; }
.p-crema { --pc: #B0603E; }
.p-sweep { --pc: #1D7894; }
.p-volt { --pc: #C2316F; }
.p-jolt { --pc: #738A00; }
.p-makapolo { --pc: #C8561A; }
