/* ============ Tokens ============ */
:root {
  --paper: #ECE9E1;
  --paper-2: #E3DFD5;
  --ink: #131312;
  --ink-2: #3a3935;
  --muted: #77736a;
  --line: rgba(19,19,18,.16);
  --line-2: rgba(19,19,18,.08);
  --accent: #FF4A17;
  --accent-ink: #131312;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --read: "Newsreader", Georgia, serif;
  --gut: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0F0E; --paper-2: #171715; --ink: #ECE8DE; --ink-2: #C9C5BA;
    --muted: #8a867c; --line: rgba(236,232,222,.15); --line-2: rgba(236,232,222,.07);
    --accent: #FF5726; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0F0E; --paper-2: #171715; --ink: #ECE8DE; --ink-2: #C9C5BA;
  --muted: #8a867c; --line: rgba(236,232,222,.15); --line-2: rgba(236,232,222,.07);
  --accent: #FF5726; color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: .05; } }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; }
.label { color: var(--muted); margin: 0 0 14px; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
sub { font-size: .7em; vertical-align: -.25em; line-height: 0; }

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

/* ============ Header ============ */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -.04em; }
.logo sup { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0; color: var(--muted); border: 1px solid var(--line); padding: 1px 4px; border-radius: 3px; margin-left: -4px; }
.logo-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.nav { display: flex; gap: 4px; }
.nav a { font-size: 14px; padding: 7px 12px; border-radius: 99px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.on { background: var(--ink); color: var(--paper); }
.top-r { display: flex; align-items: center; gap: 16px; }
.issue { color: var(--muted); }
.theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme span { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1.5px solid var(--ink); transition: transform .5s var(--ease); }
.theme:hover span { transform: rotate(180deg); }
@media (max-width: 860px) { .nav { display: none; } .issue { display: none; } }

/* ============ Hero ============ */
.hero { padding-top: clamp(36px, 6vw, 80px); position: relative; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; color: var(--muted); flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); }
.hero .display { font-weight: 600; font-size: clamp(50px, 8.6vw, 148px); line-height: .88; letter-spacing: -.055em; margin: 0; }
.hero .display .it { font-size: 1.08em; letter-spacing: -.035em; color: var(--accent); }
.hero .display .ln { display: block; overflow: hidden; }
.hero .display .ln > span { display: inline-block; transform: translateY(105%); animation: up 1s var(--ease) forwards; }
.hero .display .ln:nth-child(2) > span { animation-delay: .08s; }
.hero .display .ln:nth-child(3) > span { animation-delay: .16s; }
@keyframes up { to { transform: none; } }
.hero-side { display: flex; flex-direction: column; gap: 28px; }
.dek { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; margin: 0; }
.cta { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; align-self: flex-start; padding: 14px 20px 14px 22px; border-radius: 99px; background: var(--ink); color: var(--paper); transition: gap .3s var(--ease), background .3s; }
.cta:hover { gap: 20px; background: var(--accent); color: var(--accent-ink); }
.cta i { font-style: normal; }

.molecule { margin: 0; position: relative; border: 1px solid var(--line); border-radius: 4px; padding: 18px; background: repeating-linear-gradient(0deg, transparent 0 23px, var(--line-2) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, var(--line-2) 23px 24px); }
.molecule .mol-h { display: flex; justify-content: space-between; color: var(--muted); }
.molecule svg { width: 100%; height: auto; margin: 10px 0 4px; overflow: visible; }
.mol-path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .3s var(--ease) forwards; }
.mol-acc { stroke: var(--accent); stroke-width: 2.2; }
.mol-t { font-family: var(--mono); font-size: 10px; fill: var(--ink); opacity: 0; animation: fade .6s 1.8s forwards; }
.mol-t.a { fill: var(--accent); }
.mol-lbl { font-family: var(--mono); font-size: 8.5px; fill: var(--muted); letter-spacing: .04em; opacity: 0; animation: fade .6s 2.2s forwards; }
.mol-guide { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 2 3; fill: none; opacity: 0; animation: fade .6s 2.1s forwards; }
.mol-dot { fill: var(--accent); opacity: 0; animation: fade .4s 2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.mol-f { display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .molecule .mol-h span:last-child { display: none; } }

/* ============ Ticker ============ */
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: var(--ink); color: var(--paper); }
.ticker-in { display: inline-flex; animation: tick 48s linear infinite; padding: 13px 0; }
.ticker span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.ticker span::after { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.sec { padding-top: clamp(64px, 9vw, 130px); }
.sec-h { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.sec-h .mono { color: var(--muted); padding-bottom: 8px; }
.sec-h h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 68px); letter-spacing: -.045em; line-height: .95; margin: 0; }
.sec-h p { margin: 0; color: var(--muted); max-width: 34ch; font-size: 14px; padding-bottom: 6px; }
@media (max-width: 900px) { .sec-h { grid-template-columns: 1fr; gap: 10px; } }

/* ============ Featured ============ */
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.feat-cover { border-right: 1px solid var(--line); overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--ink); }
.feat-cover svg, .row-cover svg, .a-cover svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.feat:hover .feat-cover svg { transform: scale(1.04); }
.feat-body { padding: clamp(24px, 3.5vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.feat-body h3 { font-weight: 600; font-size: clamp(30px, 3.4vw, 54px); letter-spacing: -.045em; line-height: .98; margin: 14px 0 18px; }
.feat-body p { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 48ch; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.meta { display: flex; gap: 18px; color: var(--muted); flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .3s var(--ease), color .2s; }
a:hover .more { gap: 18px; color: var(--accent); }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .feat-cover { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ============ Article rows ============ */
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--line); }
.filters button { font: 500 13px var(--sans); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button sup { font-family: var(--mono); font-size: 9px; margin-left: 3px; opacity: .6; }

.row { display: grid; grid-template-columns: 70px 130px 1fr 220px 150px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .4s var(--ease); }
.row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--paper-2); opacity: 0; transition: opacity .3s; z-index: -1; }
.row:hover::before { opacity: 1; }
.row:hover { padding-left: 14px; }
.row .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.row h3 { font-weight: 550; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.row:hover h3 { color: var(--accent); }
.row .ex { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-cover { aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden; background: var(--ink); justify-self: end; width: 150px; }
.row:hover .row-cover svg { transform: scale(1.08) rotate(-1deg); }
.row.hide { display: none; }
@media (max-width: 1100px) { .row { grid-template-columns: 50px 1fr 130px; } .row .ex, .row .cat-c { display: none; } }
@media (max-width: 600px) { .row { grid-template-columns: 1fr 96px; gap: 14px; } .row .num { display: none; } .row-cover { width: 96px; } }

/* ============ Substance tiles ============ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.tile { background: var(--paper); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 340px; position: relative; transition: background .35s var(--ease), color .35s; }
.tile:hover { background: var(--accent); color: var(--accent-ink); }
.tile:hover .t-mut, .tile:hover .bar-l { color: var(--accent-ink); opacity: .7; }
.tile:hover .bar { background: rgba(0,0,0,.12); }
.tile:hover .bar i { background: var(--accent-ink); }
.tile:hover .bar.an i { background: var(--accent-ink); }
.t-top { display: flex; justify-content: space-between; }
.t-mut { color: var(--muted); }
.t-sym { font-size: clamp(76px, 8vw, 116px); font-weight: 600; letter-spacing: -.07em; line-height: .8; margin-top: 6px; }
.t-sym small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .32em; letter-spacing: 0; margin-left: 4px; vertical-align: top; }
.t-name { font-size: 22px; font-weight: 550; letter-spacing: -.03em; margin: 0; }
.t-f { font-family: var(--mono); font-size: 13px; }
.bars { margin-top: auto; display: grid; gap: 8px; }
.bar-r { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 10px; }
.bar-l { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--muted); }
.bar { height: 6px; background: var(--line-2); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 9px; transition: width 1.4s var(--ease); }
.bar.an i { background: var(--accent); }
.bar-v { font-family: var(--mono); font-size: 11px; text-align: right; }
.tiles-note { color: var(--muted); font-size: 13px; padding: 16px 0 0; max-width: 70ch; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px 34px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat b { font-weight: 500; font-family: var(--serif); font-size: clamp(64px, 8vw, 120px); line-height: .85; letter-spacing: -.03em; }
.stat b em { font-style: italic; color: var(--accent); }
.stat p { margin: 0; color: var(--ink-2); max-width: 30ch; }
.stat .mono { color: var(--muted); margin-top: auto; text-transform: none; font-size: 11px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } .stat, .stat + .stat { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ============ Timeline ============ */
.tl { border-bottom: 1px solid var(--line); }
.tl a { display: grid; grid-template-columns: 140px 1.2fr 1fr 1fr 40px; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); transition: color .2s; }
.tl a:first-child { border-top: 0; }
.tl a:hover { color: var(--accent); }
.tl .yr { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.tl .nm { font-size: 22px; font-weight: 550; letter-spacing: -.03em; }
.tl .sm { color: var(--muted); font-size: 14px; }
.tl .ar { justify-self: end; transition: transform .3s var(--ease); }
.tl a:hover .ar { transform: translate(4px, -4px); }
@media (max-width: 900px) { .tl a { grid-template-columns: 80px 1fr; gap: 6px 16px; } .tl .yr { font-size: 32px; grid-row: span 3; } .tl .ar { display: none; } }

/* ============ Manifesto ============ */
.manifest { padding-block: clamp(80px, 12vw, 180px); }
.manifest p { font-family: var(--serif); font-size: clamp(34px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -.02em; margin: 0; max-width: 18ch; }
.manifest p span { color: var(--muted); }
.manifest p em { color: var(--accent); }

/* ============ Footer ============ */
.foot { border-top: 1px solid var(--ink); margin-top: clamp(60px, 8vw, 120px); padding-top: 48px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .6fr 1.2fr; gap: 40px; }
.foot-p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.foot-p.small { font-size: 13px; color: var(--muted); }
.foot-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-l a:hover { color: var(--accent); }
.wordmark { font-weight: 700; font-size: clamp(56px, 17.5vw, 320px); letter-spacing: -.075em; line-height: .78; margin: 60px 0 0 -.05em; color: var(--ink); user-select: none; }
.foot-b { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid var(--line); margin-top: 14px; color: var(--muted); flex-wrap: wrap; }
.totop:hover { color: var(--accent); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============ Article ============ */
.a-head { padding-block: clamp(28px, 4vw, 56px) clamp(28px, 3vw, 40px); }
.crumbs { display: flex; gap: 10px; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.a-head h1 { font-weight: 600; font-size: clamp(40px, 6.4vw, 104px); letter-spacing: -.055em; line-height: .92; margin: 22px 0 28px; max-width: 16ch; text-wrap: balance; }
.a-head .dek { font-family: var(--read); font-size: clamp(19px, 1.7vw, 25px); max-width: 52ch; line-height: 1.4; font-weight: 350; }
.a-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); padding-top: 16px; color: var(--muted); }
.a-meta .by { display: flex; align-items: center; gap: 10px; }
.a-meta .by i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; }
.a-meta .by i::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--accent); }
.a-cover { aspect-ratio: 21 / 8; background: var(--ink); overflow: hidden; border-radius: 3px; }
@media (max-width: 700px) { .a-cover { aspect-ratio: 4 / 3; } }

.a-grid { display: grid; grid-template-columns: 220px minmax(0, 680px) 1fr; gap: clamp(28px, 4vw, 72px); padding-top: clamp(40px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 90px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 1px solid var(--line); }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 7px 0 7px 16px; font-size: 13.5px; color: var(--muted); margin-left: -1px; border-left: 1px solid transparent; transition: color .2s, border-color .2s; line-height: 1.3; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 10px; margin-right: 10px; opacity: .7; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }

.prose { font-family: var(--read); font-size: clamp(18px, 1.3vw, 20.5px); line-height: 1.65; font-weight: 380; color: var(--ink); counter-reset: h; }
.prose > p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 5.4em; line-height: .78; margin: .06em .1em 0 -.02em; color: var(--accent); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 2.3vw, 34px); letter-spacing: -.04em; line-height: 1.05; margin: 2.2em 0 .7em; counter-increment: h; scroll-margin-top: 90px; }
.prose h2::before { content: "§ " counter(h, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--accent); margin-bottom: 12px; }
.prose ul { padding: 0; margin: 0 0 1.3em; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 10px; height: 1.5px; background: var(--accent); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper-2); padding: 22px 24px 6px; margin: 2em 0; border-radius: 0 4px 4px 0; }
.note-k { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 8px; }
.note p { font-size: .94em; }

.sources { margin-top: 3em; padding-top: 24px; border-top: 1px solid var(--line); }
.sources ol { margin: 0; padding-left: 20px; font-family: var(--sans); font-size: 13px; color: var(--muted); display: grid; gap: 8px; }

.sheet { position: sticky; top: 90px; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; max-width: 340px; }
.sheet-top { background: var(--ink); color: var(--paper); padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.sheet-top .t-sym { font-size: 72px; color: var(--paper); }
.sheet-top .mono { color: color-mix(in srgb, var(--paper) 60%, transparent); text-align: right; line-height: 1.6; }
.sheet dl { margin: 0; }
.sheet dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.sheet dl div:first-child { border-top: 0; }
.sheet dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.sheet dd { margin: 0; text-align: right; font-weight: 500; }
.sheet .bars { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.aside-box { border: 1px solid var(--line); border-radius: 4px; padding: 20px; max-width: 340px; position: sticky; top: 90px; }
.aside-box p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }

@media (max-width: 1180px) {
  .a-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .a-grid { grid-template-columns: 1fr; }
  .a-side { order: -1; }
  .sheet, .aside-box { position: static; max-width: none; }
}

.next { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: clamp(60px, 8vw, 110px); }
.next a { background: var(--paper); padding: clamp(24px, 3vw, 44px) 0; display: flex; flex-direction: column; gap: 14px; transition: background .3s; }
.next a:last-child { text-align: right; align-items: flex-end; padding-left: 24px; }
.next a:first-child { padding-right: 24px; }
.next a .mono { color: var(--muted); }
.next a .h4 { font-weight: 550; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.04em; line-height: 1.05; margin: 0; max-width: 20ch; }
.next a:hover .h4 { color: var(--accent); }
@media (max-width: 700px) { .next { grid-template-columns: 1fr; } .next a:last-child { text-align: left; align-items: flex-start; padding-left: 0; } }

/* ============ Reveal ============ */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.view-enter { animation: viewIn .6s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Statický web: doplnky ============ */
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ul { border-bottom: 1px solid currentColor; }
.ul:hover { color: var(--accent); }
.hero-meta { align-items: baseline; }
.hero-kw { margin: 0; color: var(--ink); font-weight: 500; }
.chip:is(a):hover { border-color: var(--accent); color: var(--accent); }

/* pomer na dlaždiciach */
.ratio { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.ratio .bar { grid-column: 1 / -1; height: 6px; position: relative; }
.ratio .bar i { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: var(--accent); transition: width 1.4s var(--ease), left 1.4s var(--ease); }
.ratio .bar.na { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
.ratio-v { font-family: var(--mono); font-size: 12px; text-align: right; }
.tile:hover .ratio .bar i { background: var(--accent-ink); }
.tile:hover .ratio-v { color: var(--accent-ink); }
.tiles { grid-template-columns: repeat(4, 1fr); }
.tile { min-height: 300px; }
.tile-more .t-sym { color: var(--accent); }
.tile-more:hover .t-sym { color: var(--accent-ink); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* rubriky a jednoduché stránky */
.cat-head { padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--ink); }
.cat-head h1 { font-weight: 600; font-size: clamp(40px, 6vw, 96px); letter-spacing: -.055em; line-height: .92; margin: 0 0 22px; max-width: 18ch; }
.sec-tight { padding-top: 0; }
.narrow { max-width: 860px; }
.narrow .prose { padding-bottom: 20px; }
.nf { padding-block: clamp(48px, 8vw, 120px) 0; }
.nf h1 { font-weight: 600; font-size: clamp(40px, 6vw, 88px); letter-spacing: -.05em; margin: 0 0 18px; }

/* odkazy v texte */
.prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s; }
.prose a:hover { color: var(--accent); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin: 0 0 2em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--sans); font-weight: 550; font-size: .95em; letter-spacing: -.02em; padding: 18px 40px 18px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono); font-size: 20px; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* slovník */
.gloss { margin: 0 0 1.5em; display: grid; grid-template-columns: minmax(140px, 200px) 1fr; border-top: 1px solid var(--line); }
.gloss dt, .gloss dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.gloss dt { font-family: var(--sans); font-weight: 600; font-size: .9em; letter-spacing: -.02em; padding-right: 18px; }
.gloss dd { font-size: .95em; }
@media (max-width: 600px) { .gloss { grid-template-columns: 1fr; } .gloss dt { border-bottom: 0; padding-bottom: 2px; } .gloss dd { padding-top: 0; } }

/* zdroje, súvisiace, bočný panel */
.prose h2.label { font: 400 11.5px var(--mono); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 14px; counter-increment: none; }
.prose h2.label::before { display: none; }
.disclaimer { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 20px !important; }
.related { padding-top: clamp(48px, 6vw, 90px); }
.related .label { padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mini-grid a { background: var(--paper); padding: 12px 8px; font-weight: 600; font-size: 22px; letter-spacing: -.05em; transition: background .2s, color .2s; }
.mini-grid a:hover { background: var(--accent); color: var(--accent-ink); }
.sheet .ratio { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.sources li { padding-left: 4px; } .sources li::before { display: none; }
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { padding: 14px; gap: 10px; min-height: 0; }
  .tile .t-sym { font-size: 60px; }
  .tile .t-name { font-size: 17px; }
  .tile .t-top span:last-child, .tile .bar-l { display: none; }
  .tile .ratio { grid-template-columns: 1fr; }
  .tile .ratio-v { text-align: left; }
}
