/* ==========================================================================
   Wynand Pretorius — Swiss minimal + bold
   Tokens → base → layout → components → pages → motion
   ========================================================================== */

:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #2E2E2C;
  --muted: #6A6964;
  --rule: #0A0A0A;
  --rule-soft: rgba(10, 10, 10, .12);
  --wash: rgba(10, 10, 10, .04);
  --accent: #FFD400;
  --accent-ink: #0A0A0A;
  --danger: #D7261E;

  --f-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --col-gap: clamp(12px, 2vw, 24px);
  --max: 1440px;
  --measure: 40rem;
  --read-size: 1.1875rem;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0B; --surface: #151515; --ink: #F2F1EC; --ink-2: #CFCEC8; --muted: #8E8D87;
    --rule: #F2F1EC; --rule-soft: rgba(242, 241, 236, .14); --wash: rgba(242, 241, 236, .05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0B; --surface: #151515; --ink: #F2F1EC; --ink-2: #CFCEC8; --muted: #8E8D87;
  --rule: #F2F1EC; --rule-soft: rgba(242, 241, 236, .14); --wash: rgba(242, 241, 236, .05);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--f-text); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 1px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -.03em; word-spacing: .06em; line-height: 1; margin: 0; font-weight: 800; }
.index__title, .side__title, .card__title, .nl__title, .foot__line, .adjacent__a { word-spacing: .06em; }
p { margin: 0; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
main { display: block; outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.25em;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 .95rem/1 var(--f-display); letter-spacing: -.01em; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--ink { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.btn--ink:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--small { padding: .6em .9em; font-size: .82rem; }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
body:not(.is-post) .progress { display: none; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 2px solid var(--rule);
  transition: transform .35s var(--ease), background-color .4s;
}
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 800 1.05rem/1 var(--f-display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.wordmark__sq { width: 18px; height: 18px; background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); transition: transform .5s var(--ease); }
.wordmark:hover .wordmark__sq { transform: rotate(90deg); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(12px, 1.6vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-flex; align-items: flex-start; gap: 3px; font: 600 .9rem/1 var(--f-display); letter-spacing: -.01em; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.nav sup { font: 500 .58rem/1 var(--f-mono); color: var(--muted); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 2px solid transparent; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.theme-btn .fill { fill: currentColor; stroke: none; transition: transform .6s var(--ease); transform-origin: 12px 12px; }
:root[data-theme="dark"] .theme-btn .fill { transform: rotate(180deg); }
.menu-btn { display: none; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border: 0; padding: 10px 14px; font: 700 .85rem/1 var(--f-display); }
.menu-btn i { width: 14px; height: 8px; border-block: 2px solid currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] i { transform: rotate(90deg); }

.menu { position: fixed; inset: var(--head-h) 0 0 0; z-index: 49; background: var(--accent); color: var(--accent-ink); overflow-y: auto; }
.menu nav { display: flex; flex-direction: column; padding-block: 24px 48px; }
.menu a { display: flex; gap: 10px; align-items: flex-start; font: 800 clamp(2.2rem, 11vw, 4.5rem)/1.02 var(--f-display); letter-spacing: -.045em; text-decoration: none; padding: 10px 0; border-bottom: 2px solid var(--accent-ink); }
.menu sup { font: 500 .8rem/1 var(--f-mono); padding-top: .6em; }
.menu:not([hidden]) a { animation: rise .6s var(--ease) both; }
.menu a:nth-child(2) { animation-delay: .04s } .menu a:nth-child(3) { animation-delay: .08s } .menu a:nth-child(4) { animation-delay: .12s } .menu a:nth-child(5) { animation-delay: .16s } .menu a:nth-child(6) { animation-delay: .2s } .menu a:nth-child(7) { animation-delay: .24s }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .tools { margin-left: auto; }
}

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(6px); display: grid; align-content: start; padding-top: 18vh; }
.search form { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.search .label { grid-column: 1 / -1; }
.search input { width: 100%; background: none; border: 0; border-bottom: 3px solid var(--ink); color: var(--ink); font: 800 clamp(2rem, 7vw, 5.5rem)/1.1 var(--f-display); letter-spacing: -.04em; padding: 8px 0; border-radius: 0; }
.search input:focus { outline: none; border-color: var(--accent); }
.search__close { background: none; border: 2px solid var(--ink); padding: 8px 12px; font: 500 .75rem/1 var(--f-mono); }

/* ---------- Section heads ---------- */
.sect-head { display: grid; gap: 10px; padding-block: clamp(48px, 8vw, 96px) 24px; border-bottom: 2px solid var(--rule); }
.sect-title { font-size: clamp(1.9rem, 4.6vw, 3.6rem); letter-spacing: -.045em; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--head-h)); display: flex; overflow: clip; border-bottom: 2px solid var(--rule); }
.hero__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); pointer-events: none; }
.hero__grid span { border-inline: 1px solid var(--rule-soft); opacity: .7; }
.hero__grid span:nth-child(n+2) { border-left: 0; }
.hero__in { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-block: clamp(28px, 5vw, 56px); }
.hero__kicker { position: relative; z-index: 2; }
.hero__title { position: relative; z-index: 1; font-size: clamp(2.3rem, 6vw, 7.6rem); font-weight: 900; letter-spacing: -.055em; line-height: .88; display: flex; flex-direction: column; margin-block: auto; }
.hero__line { display: block; }
.hero__title mark { background: var(--accent); color: var(--accent-ink); padding: 0 .06em; margin: 0 -.02em; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1s var(--ease); touch-action: pan-y; }
.hero.is-3d .hero__canvas { opacity: 1; }
.hero.is-3d .hero__title { color: transparent; }
.hero.is-3d .hero__title mark { background: transparent; color: transparent; }
.hero__foot { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: end; }
.hero__note { grid-column: 1 / span 5; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.hero__stats { grid-column: 7 / span 4; display: flex; gap: clamp(16px, 3vw, 40px); margin: 0; }
.hero__stats dt { font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero__stats dd { margin: 0; font: 800 clamp(1.4rem, 2.4vw, 2.2rem)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero__scroll { grid-column: 11 / span 2; justify-self: end; text-decoration: none; color: var(--ink); }
.hero__scroll span { display: inline-block; animation: bob 2s ease-in-out infinite; }
@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; gap: 20px; }
  .hero__note, .hero__stats, .hero__scroll { grid-column: 1; }
  .hero__scroll { justify-self: start; }
  .hero__grid { grid-template-columns: repeat(4, 1fr); }
  .hero__grid span:nth-child(n+5) { display: none; }
}

/* ---------- Two sides ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--rule); }
.side { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 52vh; padding: clamp(28px, 5vw, 64px) var(--gutter); text-decoration: none; overflow: hidden; isolation: isolate; }
.side--a { border-right: 2px solid var(--rule); }
.side--b { background: var(--accent); color: var(--accent-ink); }
.side--b .label { color: var(--accent-ink); opacity: .7; }
.side__title { font: 900 clamp(2.4rem, 5.2vw, 5.6rem)/.9 var(--f-display); letter-spacing: -.05em; max-width: 100%; overflow-wrap: anywhere; margin-top: auto; transition: transform .6s var(--ease); }
.side__text { max-width: 36ch; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.45; }
.side__foot { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid currentColor; padding-top: 14px; }
.side__arrow { font: 800 2rem/1 var(--f-display); transition: transform .5s var(--ease); }
.side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); }
.side--a:hover { color: var(--bg); }
.side--a:hover .label { color: var(--bg); opacity: .7; }
.side--a:hover::before { transform: none; }
.side--b::before { background: var(--accent-ink); }
.side--b:hover { color: var(--accent); }
.side--b:hover .label { color: var(--accent); }
.side--b:hover::before { transform: none; }
.side:hover .side__title { transform: translateX(.08em); }
.side:hover .side__arrow { transform: translateX(10px); }
@media (max-width: 760px) {
  .sides { grid-template-columns: 1fr; }
  .side { min-height: 40vh; }
  .side--a { border-right: 0; border-bottom: 2px solid var(--rule); }
}

/* ---------- Index list ---------- */
.index { list-style: none; margin: 0; padding: 0; }
.index__row { border-bottom: 1px solid var(--rule-soft); }
.index__link {
  position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; grid-template-areas: "n title arrow" "n meta arrow" "n ex arrow";
  column-gap: var(--col-gap); padding: clamp(18px, 2.4vw, 30px) 0; text-decoration: none; isolation: isolate;
}
.index__link::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--accent); z-index: -1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.index__link:hover::before, .index__link:focus-visible::before { transform: scaleY(1); }
.index__link:hover, .index__link:focus-visible { color: var(--accent-ink); }
.index__link:hover .index__meta, .index__link:hover .index__n { color: var(--accent-ink); }
.index__n { grid-area: n; font: 500 .8rem/1.6 var(--f-mono); color: var(--muted); padding-top: .55em; }
.index__title { grid-area: title; font: 800 clamp(1.3rem, 2.5vw, 2.2rem)/1.02 var(--f-display); letter-spacing: -.04em; max-width: 26ch; text-wrap: balance; }
.index__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.index__ex { grid-area: ex; max-width: 60ch; opacity: .85; line-height: 1.5; overflow: hidden; max-height: 0; transition: max-height .45s var(--ease), margin .45s var(--ease); }
.index__link:hover .index__ex, .index__link:focus-visible .index__ex, .index__ex--show { max-height: 8em; margin-top: 12px; }
@media (hover: none) { .index__ex { max-height: 8em; margin-top: 10px; } }
.index__arrow { grid-area: arrow; align-self: center; font: 800 clamp(1.4rem, 2.4vw, 2.2rem)/1 var(--f-display); transform: translateX(-12px); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.index__link:hover .index__arrow { transform: none; opacity: 1; }
@media (max-width: 640px) {
  .index__link { grid-template-columns: 2.4rem minmax(0, 1fr); grid-template-areas: "n title" "n meta" "n ex"; }
  .index__arrow { display: none; }
}

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 32px 8px; }
.pager .btn[rel="next"] { justify-self: end; }
.empty { padding: 48px 0; font-size: 1.2rem; }

/* ---------- Posters (quote wall list + teaser + share cards share the language) ---------- */
.qteaser { padding-bottom: clamp(48px, 8vw, 96px); }
.qteaser__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); padding-top: 32px; }
.qteaser__cta { margin-top: 32px; }
@media (max-width: 900px) { .qteaser__track { grid-template-columns: 1fr; } }

.poster {
  --p-bg: var(--surface); --p-ink: var(--ink); --p-acc: var(--accent);
  position: relative; margin: 0; aspect-ratio: 4 / 5; padding: clamp(18px, 2.4vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--p-bg); color: var(--p-ink); border: 2px solid var(--rule); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.poster:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 10px 10px 0 var(--ink); }
.poster blockquote { margin: 0; font: 800 clamp(1.35rem, 2.3vw, 2rem)/1.04 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.poster__n { font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; }
.poster figcaption { display: flex; justify-content: space-between; gap: 12px; font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border-top: 2px solid currentColor; padding-top: 10px; }
.poster figcaption a { text-decoration: none; max-width: 70%; }
.poster figcaption a:hover { text-decoration: underline; }
.poster--l0 { --p-bg: var(--accent); --p-ink: var(--accent-ink); border-color: var(--accent); }
.poster--l1 { --p-bg: #0A0A0A; --p-ink: #F2F1EC; border-color: #0A0A0A; }
.poster--l1 .poster__n { color: var(--accent); }
.poster--l2 blockquote { font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.15; border-left: 10px solid var(--accent); padding-left: 16px; }
.poster--l3 blockquote::first-line { font-size: 1.5em; }
.poster--l4 { background: linear-gradient(var(--accent) 0 38%, var(--surface) 38%); }
.poster--l4::before { content: "“"; position: absolute; top: .05em; right: .12em; font: 900 10rem/1 var(--f-display); color: var(--accent-ink); }
.poster--l4 blockquote { margin-top: auto; }
.poster--l4 .poster__n { color: var(--accent-ink); position: relative; }
.poster--l5 { background-image: repeating-linear-gradient(90deg, var(--rule-soft) 0 1px, transparent 1px calc(100% / 6)); }
.poster--l5 blockquote { margin-top: auto; text-transform: uppercase; font-size: clamp(1.1rem, 1.9vw, 1.6rem); letter-spacing: -.02em; }

/* ---------- Newsletter ---------- */
.nl--block { background: var(--accent); color: var(--accent-ink); border-top: 2px solid var(--rule); }
.nl--block .nl__in { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); padding-block: clamp(48px, 8vw, 110px); align-items: end; }
.nl--block .nl__copy { grid-column: 1 / span 7; }
.nl--block .nl__form { grid-column: 8 / span 5; }
.nl .label { color: inherit; opacity: .75; }
.nl__title { font-size: clamp(2.2rem, 5.4vw, 4.8rem); letter-spacing: -.055em; line-height: .9; margin: 14px 0 18px; }
.nl__text { max-width: 46ch; font-size: 1.08rem; line-height: 1.5; }
.nl__row { display: flex; border: 2px solid currentColor; }
.nl__row input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 16px; color: inherit; font: 500 1rem/1 var(--f-text); border-radius: 0; }
.nl__row input::placeholder { color: inherit; opacity: .55; }
.nl__row input:focus { outline: none; background: rgba(255, 255, 255, .25); }
.nl__row .btn { border: 0; }
.nl__note { margin-top: 10px; font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .04em; }
.nl.is-done .nl__row { display: none; }
.nl.is-done .nl__note { font: 800 1.4rem/1.2 var(--f-display); letter-spacing: -.02em; }
.nl--inline { margin: 2.5em 0; background: var(--accent); color: var(--accent-ink); padding: clamp(22px, 3vw, 36px); border: 2px solid var(--accent-ink); }
.nl--inline .nl__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 10px 0 12px; }
.nl--inline .nl__form { margin-top: 18px; }
.nl--inline .nl__text { font-size: 1rem; }
@media (max-width: 860px) {
  .nl--block .nl__copy, .nl--block .nl__form { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .nl__row { flex-direction: column; }
  .nl__row .btn { justify-content: center; }
}

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--ink); color: var(--bg); overflow: hidden; }
.foot a { color: inherit; }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); padding-block: clamp(48px, 8vw, 96px) 40px; }
.foot__big { grid-column: 1 / span 7; display: grid; gap: 18px; justify-items: start; }
.foot__line { font: 900 clamp(2.4rem, 6vw, 5.2rem)/.88 var(--f-display); letter-spacing: -.06em; }
.foot__text { max-width: 40ch; opacity: .75; }
.foot__nav { grid-column: 9 / span 4; }
.foot__nav ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.foot__nav li { border-bottom: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.foot__nav a, .foot__nav button { display: block; padding: 12px 0; text-decoration: none; font: 600 1rem/1.2 var(--f-display); text-align: left; width: 100%; }
.foot__nav a:hover, .foot__nav button:hover { color: var(--accent); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .05em; opacity: .7; }
.foot__base { opacity: 1; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.foot__credit { color: var(--bg); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease), color .3s; }
.foot__credit:hover { color: var(--accent-ink); background-size: 100% 100%; }

/* Quote band: his own lines run across the bottom of every page. */
.ticker { display: flex; overflow: hidden; background: var(--accent); color: var(--accent-ink); text-decoration: none; border-block: 2px solid var(--accent); user-select: none; }
.ticker__run { display: flex; flex: none; animation: ticker 140s linear infinite; }
.ticker:hover .ticker__run, .ticker:focus-visible .ticker__run { animation-play-state: paused; }
.ticker__item { flex: none; padding: clamp(14px, 2vw, 24px) 0; font: 800 clamp(1.4rem, 2.6vw, 2.4rem)/1.1 var(--f-display); letter-spacing: -.035em; word-spacing: .06em; white-space: nowrap; }
.ticker__item::after { content: ""; display: inline-block; width: .5em; height: .5em; margin: 0 .9em; background: var(--accent-ink); vertical-align: .12em; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker__run { animation: none; } .ticker { overflow-x: auto; } }
.foot .btn--accent:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (max-width: 860px) { .foot__big, .foot__nav { grid-column: 1 / -1; } }

/* ---------- Article ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.post-head, .page-head { padding-block: clamp(36px, 7vw, 96px) clamp(24px, 4vw, 48px); border-bottom: 2px solid var(--rule); display: grid; gap: clamp(18px, 2.4vw, 28px); }
.post-title, .page-title { font-size: clamp(2.1rem, 5.4vw, 5.4rem); font-weight: 900; letter-spacing: -.055em; line-height: .9; max-width: 16ch; text-wrap: balance; }
@media (max-width: 640px) {
  .post-title, .page-title, .arch-title, .qw__title { letter-spacing: -.035em; }
  .sect-title, .nl__title, .side__title { letter-spacing: -.035em; }
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font: 500 .76rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-meta a { color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; background: var(--ink); color: var(--bg); text-transform: none; letter-spacing: .02em; }
.badge i { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s ease-out infinite; }
.badge--human_ai i { border-radius: 2px; }
.tag--warn { background: var(--danger); color: #fff; padding: 6px 8px; }

.post-grid, .page-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); padding-block: clamp(32px, 5vw, 64px); }
.post-side { grid-column: 1 / span 3; }
.post-side__in { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 28px; }
.post-body { grid-column: 4 / span 7; min-width: 0; }
.page-grid > .post-body:only-child { grid-column: 3 / span 8; }
@media (max-width: 1000px) {
  .post-side, .post-body, .page-grid > .post-body:only-child { grid-column: 1 / -1; }
  .post-side__in { position: static; }
  .toc { display: none; }
}

.toolkit { display: inline-flex; border: 2px solid var(--ink); width: max-content; }
.toolkit button { background: none; border: 0; padding: 9px 12px; font: 600 .82rem/1 var(--f-display); }
.toolkit button + button { border-left: 2px solid var(--ink); }
.toolkit button:hover, .toolkit button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 2px solid var(--rule-soft); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: .88rem; line-height: 1.3; color: var(--muted); text-decoration: none; }
.toc .toc--3 a { padding-left: 26px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

.answer { margin-bottom: 2.2em; padding: 20px 22px; border: 2px solid var(--ink); background: var(--surface); box-shadow: 8px 8px 0 var(--accent); }
.answer p:last-child { margin-top: 8px; font-size: 1.1rem; line-height: 1.5; }

/* Prose — tuned for long reading */
.prose { font-size: var(--read-size); line-height: 1.7; color: var(--ink-2); max-width: var(--measure); transition: font-size .2s; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child { font-size: 1.22em; line-height: 1.5; color: var(--ink); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); scroll-margin-top: calc(var(--head-h) + 24px); text-wrap: balance; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 2.2em; padding-top: .8em; border-top: 2px solid var(--rule); letter-spacing: -.04em; }
.prose h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-top: 1.9em; letter-spacing: -.03em; }
.prose h4 { font-size: 1.2rem; margin-top: 1.7em; letter-spacing: -.02em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .15em; transition: background-color .2s; }
.prose a:hover { background: var(--accent); color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); font-family: var(--f-mono); font-size: .85em; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 1.1em; border-left: 6px solid var(--accent); font: 700 1.3em/1.3 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: .6em; font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose hr { border: 0; height: 2px; background: var(--rule); margin: 2.6em 0; width: 4rem; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border: 2px solid var(--rule); background: var(--surface); }
.prose figcaption { margin-top: 10px; font: 500 .75rem/1.4 var(--f-mono); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.45; }
.prose figure:has(table) { overflow-x: auto; }
.prose th { text-align: left; font: 500 .7rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--rule); padding: 10px 12px 10px 0; }
.prose td { border-bottom: 1px solid var(--rule-soft); padding: 12px 12px 12px 0; vertical-align: top; }
.prose .embed { position: relative; width: 100%; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 2px solid var(--rule); }
.prose .num { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-right: .45em; background: var(--accent); color: var(--accent-ink); font-size: .9em; letter-spacing: -.04em; vertical-align: .05em; }
.prose mark { background: var(--accent); color: var(--accent-ink); }
.prose ::target-text { background: var(--accent); color: var(--accent-ink); }

/* Focus mode: everything but the words fades away */
body.is-focus .masthead, body.is-focus .post-head .crumbs, body.is-focus .post-side .toc, body.is-focus .related, body.is-focus .adjacent, body.is-focus .foot, body.is-focus .nl--block { opacity: .06; transition: opacity .5s; }
body.is-focus .masthead:hover, body.is-focus .foot:hover { opacity: 1; }

.faq { margin-top: 3em; border-top: 2px solid var(--rule); padding-top: 1.4em; max-width: var(--measure); }
.faq h2 { font-size: 1.8rem; margin-bottom: .6em; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; padding: 16px 0; font: 700 1.1rem/1.3 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 800; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); line-height: 1.6; }

.post-end { margin-top: 3.5em; display: grid; gap: 24px; max-width: var(--measure); }
.react { display: inline-flex; align-items: center; gap: 14px; width: max-content; padding: 14px 18px 14px 14px; background: var(--surface); border: 2px solid var(--ink); font: 800 1.15rem/1 var(--f-display); letter-spacing: -.02em; transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .3s; }
.react:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.react__sq { width: 26px; height: 26px; border: 2px solid var(--ink); position: relative; transition: background-color .3s, transform .5s var(--ease); }
.react[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); }
.react[aria-pressed="true"] .react__sq { background: var(--accent-ink); transform: rotate(45deg) scale(.8); }
.react__n { font: 500 .85rem/1 var(--f-mono); min-width: 1ch; }
.react.is-pop { animation: pop .5s var(--ease); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { padding: 9px 12px; border: 2px solid var(--rule-soft); background: none; font: 600 .82rem/1 var(--f-display); text-decoration: none; }
.share__btn:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding-top: 24px; border-top: 2px solid var(--rule); }
.author-card__mark { width: 64px; height: 64px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 900 2.4rem/1 var(--f-display); letter-spacing: -.06em; }
.author-card__name { font: 800 1.35rem/1.1 var(--f-display); letter-spacing: -.03em; margin: 4px 0 6px; }
.author-card__name a { text-decoration: none; }
.author-card p:last-child { color: var(--ink-2); line-height: 1.5; }

.adjacent { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); padding-inline: 0; }
.adjacent__a { display: grid; gap: 10px; padding: clamp(20px, 3vw, 36px) var(--gutter); text-decoration: none; font: 800 clamp(1.15rem, 2vw, 1.6rem)/1.1 var(--f-display); letter-spacing: -.03em; transition: background-color .3s; }
.adjacent__a:hover { background: var(--accent); color: var(--accent-ink); }
.adjacent__a:hover .label { color: var(--accent-ink); }
.adjacent__a--next { text-align: right; border-left: 2px solid var(--rule); grid-column: 2; }
@media (max-width: 640px) { .adjacent { grid-template-columns: 1fr; } .adjacent__a--next { grid-column: 1; border-left: 0; border-top: 2px solid var(--rule); } }

.related { padding-block: clamp(48px, 7vw, 88px); }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); margin-top: 28px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 22px; border: 2px solid var(--rule); text-decoration: none; background: var(--surface); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--accent); }
.card__n { font: 900 3rem/1 var(--f-display); letter-spacing: -.06em; color: var(--accent); -webkit-text-stroke: 2px var(--ink); }
.card__title { font: 800 1.45rem/1.05 var(--f-display); letter-spacing: -.035em; margin-top: auto; }
.card__ex { color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 900px) { .related__grid { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* Highlight-to-share popover */
.hl-pop { position: absolute; z-index: 40; display: flex; background: var(--ink); color: var(--bg); box-shadow: 4px 4px 0 var(--accent); transform: translate(-50%, calc(-100% - 12px)); animation: rise .25s var(--ease); }
.hl-pop button { background: none; border: 0; padding: 10px 12px; font: 600 .82rem/1 var(--f-display); white-space: nowrap; }
.hl-pop button + button { border-left: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.hl-pop button:hover { background: var(--accent); color: var(--accent-ink); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; background: var(--ink); color: var(--bg); box-shadow: 6px 6px 0 var(--accent); font: 600 .92rem/1.3 var(--f-display); animation: rise .35s var(--ease); }
.toast button { background: var(--accent); color: var(--accent-ink); border: 0; padding: 8px 10px; font-weight: 700; }

/* ---------- Page templates ---------- */
.tpl-start-here .prose h4 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.04em; margin-top: 2em; padding-top: .8em; border-top: 2px solid var(--rule); }
.tpl-start-here .prose h4 .num { min-width: 1.5em; height: 1.5em; }
.tpl-manifesto .prose ol { list-style: none; padding: 0; counter-reset: belief; display: grid; gap: 0; border-top: 2px solid var(--rule); }
.tpl-manifesto .prose ol > li { counter-increment: belief; display: grid; grid-template-columns: 3.2rem 1fr; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); margin: 0; }
.tpl-manifesto .prose ol > li::before { content: counter(belief, decimal-leading-zero); grid-row: span 2; font: 900 1.9rem/1 var(--f-display); letter-spacing: -.05em; color: var(--ink); background: var(--accent); width: max-content; padding: 4px 6px; height: max-content; }
.tpl-manifesto .prose ol > li strong { display: block; font: 800 1.25rem/1.15 var(--f-display); letter-spacing: -.025em; }
.tpl-legal .prose { font-size: 1rem; }
.tpl-legal .prose h2 { font-size: 1.5rem; }
.tpl-legal .prose h3, .tpl-legal .prose h4 { font-size: 1.1rem; }
.tpl-about .prose > p:nth-child(2) { font: 900 clamp(2rem, 5vw, 3.6rem)/1 var(--f-display); letter-spacing: -.05em; color: var(--ink); }

/* ---------- Contentpreneur hub ---------- */
.hub-head { background: var(--accent); color: var(--accent-ink); border-bottom: 2px solid var(--rule); overflow: hidden; }
.hub-head .label, .hub-head .crumbs a { color: var(--accent-ink); }
.hub-head .label { opacity: .7; }
.hub-head__in { position: relative; display: grid; gap: 20px; padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); }
/* Blueprint grid: faint construction lines behind the Contentpreneur side. */
.hub-head__in::before, .is-cp .post-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; opacity: .07;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.hub-head__in > * { position: relative; z-index: 1; }
.hub-head__title { max-width: none; }
.hub-head__intro { max-width: 48ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.45; }
.hub-head__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hub-head .btn { border-color: var(--accent-ink); color: var(--accent-ink); }
.hub-head .btn:hover { background: var(--accent-ink); color: var(--accent); }
.hub-head .btn--ink { background: var(--accent-ink); color: var(--accent); }
.hub-head .btn--ink:hover { background: transparent; color: var(--accent-ink); }
.hub-head__count { margin-left: auto; }
.beliefs { border-top: 2px solid var(--accent-ink); padding-block: 18px 0; }
.beliefs__list { list-style: none; margin: 12px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-bottom: 8px; }
.beliefs__item { display: grid; gap: 10px; align-content: start; padding: 16px 14px 22px 0; border-top: 2px solid var(--accent-ink); margin-right: var(--col-gap); font: 700 clamp(.95rem, 1.15vw, 1.1rem)/1.2 var(--f-display); letter-spacing: -.015em; }
.beliefs__n { font: 900 2rem/1 var(--f-display); letter-spacing: -.05em; }
@media (max-width: 640px) { .beliefs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-head__count { margin-left: 0; width: 100%; } }

.hub-essays { padding-bottom: clamp(32px, 6vw, 72px); }
.hub-essays__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.hub-essays__head .chip sup { font: 500 .6rem/1 var(--f-mono); opacity: .6; }
.hub-essays__sub { font-size: clamp(1.3rem, 2vw, 1.7rem); padding-top: 40px; padding-bottom: 6px; }
.hub-empty { display: grid; gap: 18px; justify-items: start; padding: 48px 0; font-size: 1.2rem; max-width: 46ch; }
.hub-manifesto-head { padding-top: clamp(32px, 5vw, 56px); border-top: 2px solid var(--rule); }
.tpl-manifesto .page-grid { padding-top: 16px; }
.series-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px var(--col-gap); padding-block: 28px; border-bottom: 2px solid var(--rule); }
.series-block__title { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -.04em; margin: 8px 0 10px; }
.series-block__title a { text-decoration: none; }
.series-block__title a:hover { background: var(--accent); color: var(--accent-ink); }
.series-block__desc { color: var(--ink-2); line-height: 1.5; max-width: 40ch; }
.series-block__parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.series-block__parts li { border-bottom: 1px solid var(--rule-soft); }
.series-block__parts a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 14px 0; text-decoration: none; transition: background-color .25s, padding .3s var(--ease); }
.series-block__parts a:hover { background: var(--accent); color: var(--accent-ink); padding-left: 12px; }
.series-block__parts a:hover .label { color: var(--accent-ink); }
.series-block__n { font: 900 1.4rem/1 var(--f-display); letter-spacing: -.05em; }
.series-block__t { font: 700 clamp(1.05rem, 1.5vw, 1.3rem)/1.2 var(--f-display); letter-spacing: -.02em; }
.is-filtered-out { display: none !important; }
@media (max-width: 860px) { .series-block { grid-template-columns: 1fr; } }

/* ---------- Contentpreneur essays ---------- */
.is-cp .post-head { position: relative; overflow: hidden; }
.is-cp .post-head > * { position: relative; z-index: 1; }
.cp-tab { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--accent); color: var(--accent-ink); font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.cp-tab::before { content: ""; width: 8px; height: 8px; border: 2px solid currentColor; }
.cp-tab:hover { background: var(--ink); color: var(--bg); }
.series-pos { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.series-pos span { color: var(--ink); background: var(--wash); padding: 4px 8px; border: 1px solid var(--rule-soft); }
.series-pos a { color: inherit; }
.series-nav { border-top: 2px solid var(--rule); padding-top: 14px; }
.series-nav__name { font: 800 1.05rem/1.2 var(--f-display); letter-spacing: -.02em; margin: 6px 0 10px; }
.series-nav__name a { text-decoration: none; }
.series-nav ol { list-style: none; margin: 0; padding: 0; }
.series-nav li a { display: grid; grid-template-columns: 1.8rem 1fr; gap: 6px; padding: 7px 0; font-size: .86rem; line-height: 1.3; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
.series-nav li a span { font: 500 .7rem/1.6 var(--f-mono); }
.series-nav li a:hover { color: var(--ink); }
.series-nav li.is-here a { color: var(--ink); font-weight: 700; box-shadow: inset 4px 0 0 var(--accent); padding-left: 10px; }
.takeaways { margin-bottom: 2.2em; padding: 20px 22px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent-ink); }
.takeaways .label { color: var(--accent-ink); opacity: .75; }
.takeaways ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: tk; display: grid; gap: 10px; }
.takeaways li { counter-increment: tk; display: grid; grid-template-columns: 2rem 1fr; font: 600 1.05rem/1.4 var(--f-display); letter-spacing: -.01em; }
.takeaways li::before { content: counter(tk, decimal-leading-zero); font: 500 .75rem/1.9 var(--f-mono); }
.prose .series-next { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin-top: 2.6em; padding: 20px 22px; border: 2px solid var(--ink); background: var(--surface); text-decoration: none; color: var(--ink); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.prose .series-next:hover { background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--accent); transform: translate(-3px, -3px); }
.series-next .label { grid-column: 1; }
.series-next__t { grid-column: 1; font: 800 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--f-display); letter-spacing: -.03em; }
.series-next__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 2rem/1 var(--f-display); transition: transform .3s var(--ease); }
.series-next:hover .series-next__arrow { transform: translateX(6px); }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 2em; max-width: var(--measure); }
.topics a { font: 600 .9rem/1 var(--f-display); text-decoration: none; padding: 7px 10px; border: 2px solid var(--rule-soft); }
.topics a:hover { border-color: var(--ink); background: var(--accent); color: var(--accent-ink); }

/* ---------- Archive / search / 404 ---------- */
.arch-head { padding-block: clamp(36px, 7vw, 96px) 28px; display: grid; gap: 20px; border-bottom: 2px solid var(--rule); }
.arch-title { font-size: clamp(2.6rem, 8vw, 7.6rem); font-weight: 900; letter-spacing: -.065em; line-height: .84; }
.arch-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; align-items: end; }
.arch-desc { max-width: 46ch; font-size: 1.15rem; line-height: 1.45; color: var(--ink-2); }
.arch-count { font: 500 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.arch-count span { font: 900 2.6rem/1 var(--f-display); letter-spacing: -.05em; color: var(--ink); margin-right: 8px; vertical-align: -.2em; }
.search-inline { display: flex; gap: 8px; max-width: 720px; }
.search-inline input { flex: 1; min-width: 0; background: var(--surface); border: 2px solid var(--ink); padding: 14px 16px; color: var(--ink); font: 600 1.2rem/1 var(--f-display); border-radius: 0; }
.nf { padding-block: clamp(36px, 7vw, 96px) 32px; display: grid; gap: 22px; }
.nf__code { font: 900 clamp(8rem, 34vw, 30rem)/.75 var(--f-display); letter-spacing: -.08em; color: var(--accent); -webkit-text-stroke: 3px var(--ink); }
.nf__title { font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.nf__text { font-size: 1.15rem; max-width: 46ch; color: var(--ink-2); }

/* ---------- Quote wall ---------- */
.is-quotewall { overflow: hidden; }
.is-quotewall.qw-list-mode, .is-quotewall.no-3d { overflow: auto; }
.qw { position: relative; }
.qw__head { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; padding-block: 22px 18px; border-bottom: 2px solid var(--rule); background: var(--bg); }
.qw__title { font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 900; letter-spacing: -.06em; line-height: .9; }
.qw__intro { margin-top: 8px; color: var(--ink-2); max-width: 48ch; }
.qw__ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 12px; background: none; border: 2px solid var(--rule-soft); font: 600 .82rem/1 var(--f-display); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qw__stage { position: relative; height: calc(100svh - var(--head-h) - var(--qw-head, 120px)); cursor: grab; touch-action: none; overflow: hidden; }
.qw__stage.is-dragging { cursor: grabbing; }
.qw__stage.is-hover { cursor: pointer; }
.qw__canvas { width: 100%; height: 100%; }
.qw__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 12px; pointer-events: none; transition: opacity .6s; }
.qw__stage.is-touched .qw__hint { opacity: 0; }
.qw__list { display: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--col-gap); padding-block: 32px 64px; }
.qw__list .poster.is-out { display: none; }
.no-3d .qw__stage, .qw-list-mode .qw__stage { display: none; }
.no-3d .qw__list, .qw-list-mode .qw__list, html:not(.js) .qw__list { display: grid; }
html:not(.js) .qw__stage { display: none; }
.no-3d [data-qw-mode] { display: none; }
.is-quotewall .foot { display: none; }
.qw-list-mode .foot, .no-3d .foot { display: block; }

.qmodal { padding: 0; border: 0; background: transparent; max-width: min(1100px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
.qmodal::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); }
.qmodal[open] { animation: rise .45s var(--ease); }
.qmodal__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--accent); }
.qmodal__poster { width: 100%; height: auto; aspect-ratio: 4 / 5; border-right: 2px solid var(--ink); }
.qmodal__side { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 40px); }
.qmodal__text { margin: 0; font: 800 clamp(1.5rem, 2.6vw, 2.3rem)/1.08 var(--f-display); letter-spacing: -.035em; }
.qmodal__src { color: var(--muted); }
.qmodal__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.qmodal__close { position: absolute; top: -2px; right: -2px; width: 44px; height: 44px; background: var(--ink); color: var(--bg); border: 0; font: 400 1.8rem/1 var(--f-display); }
.qmodal__close:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) {
  .qmodal__in { grid-template-columns: 1fr; max-height: calc(100svh - 32px); overflow-y: auto; }
  .qmodal__poster { border-right: 0; border-bottom: 2px solid var(--ink); max-height: 50svh; width: auto; margin-inline: auto; }
}

/* ---------- Consent ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 75; width: min(420px, calc(100vw - 32px)); display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); font-size: .92rem; line-height: 1.5; animation: rise .5s var(--ease); }
.consent__t { color: var(--ink); }
.consent__opts { display: grid; gap: 8px; }
.consent__opts label { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.consent__opts input { width: 18px; height: 18px; accent-color: var(--ink); }
.consent__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.consent .btn { padding: .7em 1em; font-size: .85rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hl-pop { animation-name: none; }
@keyframes bob { 50% { transform: translateY(5px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes pop { 40% { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .foot, .nl, .post-side, .post-end, .related, .adjacent, .progress, .consent { display: none !important; }
  body { background: #fff; color: #000; }
  .post-grid { display: block; }
  .prose { max-width: none; font-size: 12pt; color: #000; }
}
