/* Alan Moore — Arquivo. Brutalist editorial grid: 1px rules, no radii. */
:root {
  --ink: #0A0A0A;
  --bone: #F4F1EA;
  --rule: #27272A;
  --acid: #FFD600;
  --blood: #991B1B;
  --panel: #141414;
  --hover-bg: var(--acid);

  --f-display: 'Archivo Black', sans-serif;
  --f-serif: 'Instrument Serif', serif;
  --f-body: 'Newsreader', Georgia, serif;
  --f-mono: 'JetBrains Mono', monospace;
}
/* Alternate hover style ("Osso invertido") */
body[data-hover="bone"] { --hover-bg: var(--bone); }

html, body { margin: 0; background: var(--ink); color: var(--bone); -webkit-font-smoothing: antialiased; }
body { font-family: var(--f-body); }
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
a { color: inherit; text-decoration: none; }
:where(a):hover { color: var(--acid); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: -2px; }

/* ---------- shared type ---------- */
.mono { font-family: var(--f-mono); }
.label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.red { color: var(--blood); }
.dim { opacity: 0.55; }
.kicker { margin-bottom: 18px; }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; }
.h2 em { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: -0.02em; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: var(--bone); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; height: 40px; border-bottom: 1px solid var(--rule); }
.topbar .brand { display: flex; align-items: center; padding: 0 16px; background: var(--blood); color: var(--bone); font-weight: 700; }
.topbar .brand:hover { background: var(--acid); color: var(--ink); }
.topbar .catalog { display: flex; align-items: center; padding: 0 18px; background: var(--acid); color: var(--ink); font-weight: 700; }
.topbar .catalog:hover { background: var(--bone); color: var(--ink); }
.ticker { overflow: hidden; white-space: nowrap; min-width: 0; border-right: 1px solid var(--rule); }
.ticker-track { display: inline-block; padding-left: 16px; line-height: 40px; animation: tick 38s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body[data-ticker="off"] .ticker-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.nav { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.nav a { flex: 1 1 auto; display: flex; justify-content: center; gap: 5px; padding: 12px 10px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: -1px; font-size: 11px; letter-spacing: 0.03em; white-space: nowrap; background: var(--ink); color: var(--bone); }
.nav a span { opacity: 0.6; }
.nav a[aria-current="page"], .nav a:hover { background: var(--acid); color: var(--ink); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-bottom: 1px solid var(--rule); min-height: 820px; }
.hero-left { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-right: 1px solid var(--rule); }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--rule); }
.hero-title { display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 28px 36px; }
.hero h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 10.4vw, 176px); line-height: 0.84; letter-spacing: -0.045em; text-transform: uppercase; }
.hero-sub { margin-top: 18px; font-family: var(--f-serif); font-style: italic; font-size: clamp(44px, 7vw, 120px); line-height: 0.88; letter-spacing: -0.03em; text-wrap: balance; }
.hero-sub span { font-style: normal; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.facts > div { padding: 18px 28px; display: flex; flex-direction: column; gap: 8px; }
.facts > div + div { border-left: 1px solid var(--rule); }
.facts dt { opacity: 0.55; }
.facts dd { margin: 0; }

.hero-right { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.portrait { position: relative; margin: 28px; border: 1px solid var(--bone); overflow: hidden; background: var(--panel); min-height: 480px; }
.portrait-img { position: absolute; inset: 0; filter: grayscale(1) contrast(1.45); }
.portrait-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-img .placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.45; }
.portrait-img img + .placeholder { display: none; }
.halftone { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(10,10,10,0.55) 1.1px, transparent 1.6px); background-size: 5px 5px; mix-blend-mode: multiply; }
.tag-date { position: absolute; top: 0; left: 0; background: var(--acid); color: var(--ink); font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; padding: 8px 12px; }
.tag-fig { position: absolute; bottom: 0; right: 0; background: var(--ink); border-top: 1px solid var(--bone); border-left: 1px solid var(--bone); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; padding: 8px 12px; text-transform: uppercase; }

.lede { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-top: 1px solid var(--rule); }
.lede .sect { padding: 20px 24px; border-right: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; color: var(--blood); }
.lede p { margin: 0; padding: 20px 24px; font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.lede a { display: flex; align-items: center; padding: 0 24px; border-left: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.lede a:hover { background: var(--acid); color: var(--ink); }

/* ---------- works ---------- */
.works { border-bottom: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 56px 28px 28px; border-bottom: 1px solid var(--rule); }
.section-head .h2 { font-size: 88px; }
.section-head .aside { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-align: right; line-height: 1.7; opacity: 0.7; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; overflow: hidden; }
.work { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 400px; height: 100%; padding: 22px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-right: -1px; margin-bottom: -1px; background: var(--ink); color: var(--bone); }
.work:hover, .work:focus-visible { background: var(--hover-bg); color: var(--ink); }
.work-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.work-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0; }
.work h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 56px; line-height: 0.92; letter-spacing: -0.025em; text-wrap: balance; }
.work .br { font-family: var(--f-serif); font-style: italic; font-size: 22px; }
.work .credit { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.03em; opacity: 0.7; }
.work-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.chip { border: 1px solid currentColor; padding: 4px 8px; }
.work-foot .more { margin-left: auto; }

/* ---------- grimoire (light section) ---------- */
.grimoire { background: var(--bone); color: var(--ink); border-bottom: 1px solid var(--rule); }
.grimoire :where(a):hover { color: inherit; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grim-head { border-bottom: 1px solid var(--ink); }
.grim-head > div:first-child { padding: 56px 28px 32px; border-right: 1px solid var(--ink); }
.grim-head .h2 { font-size: 80px; line-height: 0.88; }
.grim-intro { display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; padding: 56px 28px 32px; }
.grim-intro p { margin: 0; max-width: 540px; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.btn-outline { align-self: flex-start; border: 1px solid var(--ink); padding: 10px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.grimoire .btn-outline:hover { background: var(--ink); color: var(--acid); }

.essay { padding: 40px 28px 56px; display: flex; flex-direction: column; gap: 24px; }
.essay + .essay { border-left: 1px solid var(--ink); }
.essay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.essay h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.essay-head span { font-family: var(--f-mono); font-size: 12px; color: var(--blood); white-space: nowrap; }
.essay blockquote { margin: 0; text-wrap: balance; }
.q-serif { font-family: var(--f-serif); font-size: 42px; line-height: 1.02; letter-spacing: -0.015em; }
.q-display { font-family: var(--f-display); font-size: 46px; line-height: 0.98; letter-spacing: -0.03em; text-transform: uppercase; }
.essay .translation { margin: 0; font-style: italic; font-size: 19px; line-height: 1.4; border-left: 1px solid var(--ink); padding-left: 16px; }
.marginalia { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
.marginalia .note { font-family: var(--f-mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blood); border-top: 2px solid var(--blood); padding-top: 8px; align-self: start; }
.cols { columns: 2 260px; column-gap: 24px; column-rule: 1px solid var(--ink); font-size: 17px; line-height: 1.55; text-wrap: pretty; hyphens: auto; }
.cols p { margin: 0 0 14px; }
.cols p:last-child { margin: 0; }
.dropcap { float: left; font-family: var(--f-display); font-size: 64px; line-height: 0.82; margin: 4px 8px 0 0; }

.places { display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }
.places a { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.places a + a { border-left: 1px solid var(--ink); }
.places a:hover { background: var(--acid); color: var(--ink); }
.places .lead { padding: 22px 28px; background: var(--ink); color: var(--acid); text-transform: uppercase; font-weight: 700; justify-content: space-between; gap: 12px; }
.grimoire .places .lead:hover { background: var(--blood); color: var(--bone); }
.places .k { color: var(--blood); }
.places .d { font-family: var(--f-body); font-size: 16px; line-height: 1.45; }

/* ---------- index / bibliography ---------- */
.index { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.index-side { padding: 56px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.index-side h2 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 72px; line-height: 0.92; letter-spacing: -0.02em; }
.index-side .notes { display: flex; flex-direction: column; gap: 20px; font-family: var(--f-mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.03em; }
.btn-acid { align-self: flex-start; background: var(--acid); color: var(--ink); padding: 10px 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.btn-acid:hover { background: var(--bone); color: var(--ink); }
.biblio { font-family: var(--f-mono); font-size: 13px; width: 100%; border-collapse: collapse; }
.biblio tr { display: grid; grid-template-columns: 64px 90px minmax(0, 2.4fr) minmax(0, 1.6fr) minmax(0, 1fr); padding: 11px 28px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.biblio th, .biblio td { padding: 0; text-align: left; font-weight: 400; }
.biblio thead tr { padding: 14px 28px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acid); }
.biblio tbody tr:hover { background: var(--acid); color: var(--ink); }
.biblio .n { opacity: 0.55; }
.biblio .t { font-family: var(--f-body); font-size: 16px; }
.biblio .t i { opacity: 0.6; }
.biblio .f { text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); border-bottom: 1px solid var(--rule); }
.foot-grid > * { padding: 40px 28px; display: flex; flex-direction: column; }
.foot-grid > * + * { border-left: 1px solid var(--rule); }
.foot-about { gap: 16px; }
.foot-about p { margin: 0; font-size: 18px; line-height: 1.45; max-width: 380px; text-wrap: pretty; }
.foot-h { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; margin-bottom: 10px; }
.foot-sections { gap: 4px; }
.foot-sections a { display: flex; gap: 10px; padding: 4px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.foot-sections a span { opacity: 0.5; }
.foot-works { gap: 2px; }
.foot-works a { font-family: var(--f-serif); font-size: 22px; line-height: 1.2; }
.foot-coords { justify-content: space-between; gap: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.foot-coords > div { display: flex; flex-direction: column; gap: 6px; }
.to-top { all: unset; cursor: pointer; border: 1px solid var(--bone); padding: 12px 14px; text-align: center; }
.to-top:hover, .to-top:focus-visible { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.wordmark { padding: 20px 20px 0; border-bottom: 1px solid var(--rule); overflow: hidden; }
.wordmark div { font-family: var(--f-display); font-size: 13.4vw; line-height: 0.8; letter-spacing: -0.055em; text-transform: uppercase; white-space: nowrap; margin-bottom: -0.06em; }
.colophon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6; }
.colophon > div { padding: 18px 28px; }
.colophon > div + div { border-left: 1px solid var(--rule); }
.colophon .dim6 { opacity: 0.6; }
.colophon .last { display: flex; justify-content: space-between; align-items: flex-end; }
.colophon .last .sq { color: var(--blood); font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .foot-grid, .colophon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :nth-child(3), .colophon > :nth-child(3) { border-left: 0; }
  .foot-grid > :nth-child(n+3), .colophon > :nth-child(n+3) { border-top: 1px solid var(--rule); }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places a:nth-child(3) { border-left: 0; }
  .places a:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .section-head .h2, .grim-head .h2 { font-size: clamp(40px, 6.5vw, 88px); }
}
@media (max-width: 900px) {
  .hero, .two, .index, .lede, .section-head, .marginalia { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-left, .grim-head > div:first-child, .index-side, .lede .sect { border-right: 0; }
  .hero-right, .index > :last-child { border-top: 1px solid var(--rule); }
  .essay + .essay, .grim-intro { border-left: 0; border-top: 1px solid var(--ink); }
  .lede a { border-left: 0; border-top: 1px solid var(--rule); padding: 18px 24px; }
  .lede .sect { border-bottom: 1px solid var(--rule); }
  .section-head .aside { text-align: left; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { columns: 1 260px; }
  .biblio thead { display: none; }
  .biblio tr { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; column-gap: 16px; }
}
@media (max-width: 600px) {
  .facts, .works-grid, .foot-grid, .colophon, .places { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .foot-grid > * + *, .colophon > div + div, .places a + a { border-left: 0; border-top: 1px solid var(--rule); }
  .places a + a { border-top-color: var(--ink); }
  .biblio tr { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { padding: 14px 16px; }
  .hero-title, .facts > div, .section-head, .essay, .grim-intro, .grim-head > div:first-child, .index-side, .foot-grid > *, .colophon > div { padding-left: 16px; padding-right: 16px; }
  .portrait { margin: 16px; min-height: 380px; }
  .hero h1 { font-size: 10.5vw; overflow-wrap: break-word; }
  .h2, .section-head .h2, .grim-head .h2, .index-side h2 { font-size: 9vw; overflow-wrap: break-word; }
  .essay blockquote { font-size: 7.5vw; }
  .essay h3, .work h3 { font-size: 44px; }
}

/* =====================================================================
   Multi-page components (generated by src/build.py)
   ===================================================================== */
.light { background: var(--bone); color: var(--ink); }
.light :where(a):hover { color: inherit; }
.rule-b { border-bottom: 1px solid var(--rule); }
.light.rule-b, .light .rule-b { border-color: var(--ink); }

/* responsive grids */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-r { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { padding: 40px 28px; }
.vr > * + * { border-left: 1px solid var(--rule); }
.light .vr > * + *, .vr.ink > * + * { border-left-color: var(--ink); }
.cards > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-right: -1px; margin-bottom: -1px; }
.cards { overflow: hidden; }

/* breadcrumb */
.crumbs { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.crumbs > div { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 28px; }
.crumbs > div + div { border-left: 1px solid var(--rule); }
.crumbs .sep { opacity: 0.4; }
.crumbs .here { color: var(--acid); }

/* page hero */
.page-hero { border-bottom: 1px solid var(--rule); }
.page-hero .ph-title { padding: 64px 28px 44px; display: flex; flex-direction: column; gap: 28px; justify-content: flex-end; }
.page-hero .ph-title + * { border-left: 1px solid var(--rule); }
.display { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 8.6vw, 150px); line-height: 0.84; letter-spacing: -0.045em; text-transform: uppercase; overflow-wrap: anywhere; }
.display em { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: -0.025em; }
.display.sm { font-size: clamp(48px, 7.2vw, 124px); }
.ph-aside { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.ph-aside .lede-p { margin: 0; padding: 64px 28px 40px; align-self: end; font-size: 22px; line-height: 1.45; text-wrap: pretty; }
.facts.inline { border-top: 1px solid var(--rule); }

/* figures with credits */
.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fig .frame { position: relative; border: 1px solid var(--bone); overflow: hidden; background: var(--panel); aspect-ratio: var(--ar, 4 / 5); }
.light .fig .frame { border-color: var(--ink); }
.fig .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); display: block; filter: grayscale(1) contrast(1.35); }
.fig .frame .halftone { mix-blend-mode: multiply; }
.fig .frame .tag-date, .fig .frame .tag-fig { pointer-events: none; }
.fig figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.4; }
.fig .credit { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.65; }
.fig .credit a { text-decoration: underline; text-underline-offset: 2px; }
.fig.pad { padding: 28px; }
.fig.fill { height: 100%; }
.fig.fill .frame { flex: 1; aspect-ratio: auto; min-height: 420px; }

/* KIMOTA typographic plate (no free image available) */
.plate { position: relative; border: 1px solid var(--bone); background: var(--acid); color: var(--ink); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.plate span { font-family: var(--f-display); font-size: clamp(56px, 9vw, 132px); letter-spacing: -0.05em; line-height: 0.8; transform: rotate(-8deg); }

/* section heads */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 56px 28px 28px; border-bottom: 1px solid var(--rule); }
.light .sec-head, .sec-head.ink { border-bottom-color: var(--ink); }
.sec-head .h2 { font-size: clamp(44px, 6vw, 88px); }
.sec-head .aside { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; text-align: right; }

/* prose */
.prose { font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin: 0; }
.prose-cols { columns: 2 260px; column-gap: 28px; column-rule: 1px solid currentColor; hyphens: auto; }
.prose-cols.c3 { columns: 3 260px; }
.big-p { margin: 0; font-size: 21px; line-height: 1.55; text-wrap: pretty; }
.serif-h { margin: 0; font-family: var(--f-serif); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.art-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid currentColor; padding-bottom: 12px; }
.art-head .mono { font-size: 12px; color: var(--blood); white-space: nowrap; }
.dark .art-head .mono { color: var(--acid); }

/* data rows (tables that collapse on mobile) */
.rows { width: 100%; border-collapse: collapse; }
.rows tr { display: grid; grid-template-columns: var(--cols); gap: 0 20px; padding: 16px 28px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.light .rows tr { border-bottom-color: var(--ink); }
.rows th, .rows td { padding: 0; text-align: left; font-weight: 400; }
.rows thead tr { padding: 14px 28px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acid); }
.rows tbody tr:hover { background: var(--acid); color: var(--ink); }
.rows.soft tbody tr:hover { background: var(--panel); color: inherit; }
.rows .m { font-family: var(--f-mono); font-size: 13px; }
.rows .m-s { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.rows .dim { opacity: 0.55; }
.rows .s1 { font-family: var(--f-serif); font-size: 30px; line-height: 1.05; }
.rows .s2 { font-family: var(--f-serif); font-size: 52px; line-height: 0.9; }
.rows .sub { display: block; font-family: var(--f-body); font-style: italic; font-size: 15px; opacity: 0.7; margin-top: 2px; }
.rows a.rowlink { text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-block; padding: 4px 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--rule); color: var(--bone); }
.badge.red { background: var(--blood); color: var(--bone); }
.badge.acid { background: var(--acid); color: var(--ink); }

/* filter chips + search */
.filters { border-bottom: 1px solid var(--rule); }
.filter-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.filter-row:last-child { border-bottom: 0; }
.filter-row > span { padding: 14px 28px; border-right: 1px solid var(--rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.chips { display: flex; flex-wrap: wrap; }
.chip-btn { all: unset; cursor: pointer; padding: 14px 18px; border-right: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.chip-btn:hover, .chip-btn:focus-visible { background: var(--acid); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--rule); }
.search label { display: flex; align-items: center; gap: 16px; padding: 0 28px; border-right: 1px solid var(--rule); }
.search label span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acid); white-space: nowrap; }
.search input { all: unset; flex: 1; min-width: 0; font-family: var(--f-serif); font-size: clamp(26px, 3vw, 40px); padding: 18px 0; color: var(--bone); }
.search input::placeholder { color: #8A8A8A; }
.search .count { display: flex; align-items: center; gap: 20px; padding: 0 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.search .count b { color: var(--acid); font-weight: 400; }
.empty-msg { padding: 64px 28px; border-bottom: 1px solid var(--rule); font-family: var(--f-serif); font-size: 44px; }
[hidden] { display: none !important; }

/* biography acts + timeline */
.act { padding: 44px 28px 56px; display: flex; flex-direction: column; gap: 20px; }
.act h2 { font-size: 44px; }
.decade-nav { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; background: var(--ink); }
.decade-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-right: 1px solid var(--rule); }
.decade-nav a:hover { background: var(--acid); color: var(--ink); }
.decade-nav .y { font-family: var(--f-serif); font-size: 30px; line-height: 1; }
.decade-nav .c { font-family: var(--f-mono); font-size: 11px; opacity: 0.6; }
.decade { scroll-margin-top: 70px; }
.decade-label { padding: 22px 28px; border-bottom: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acid); }
.event { display: grid; grid-template-columns: 200px minmax(0, 4fr) minmax(0, 7fr); border-bottom: 1px solid var(--rule); }
.event:hover { background: var(--panel); }
.event > * { padding: 28px; }
.event > * + * { border-left: 1px solid var(--rule); }
.event .y { font-family: var(--f-serif); font-size: 64px; line-height: 0.9; letter-spacing: -0.02em; }
.event .t { font-family: var(--f-display); font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.event p { margin: 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }

/* generic cards (pillars, people, notes) */
.card { padding: 26px 24px 34px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.card:hover { background: var(--acid); color: var(--ink); }
.card .top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3, .card h2 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 42px; line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.card .numeral { font-family: var(--f-display); font-size: 72px; line-height: 0.8; }
.card .chips-s { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

/* quotes */
.q-card { display: flex; flex-direction: column; gap: 20px; padding: 36px 28px 40px; }
.q-card:hover { background: var(--bone); color: var(--ink); }
.q-card .top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.q-card blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.q-card .pt { margin: 0; font-style: italic; font-size: 19px; line-height: 1.45; border-left: 1px solid currentColor; padding-left: 16px; }
.q-card .src { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }

/* feature quote band */
.band { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.band > :first-child { padding: 44px 28px; border-right: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acid); }
.band > :last-child { padding: 44px 40px 52px; display: flex; flex-direction: column; gap: 20px; }
.band blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.band .pt { margin: 0; font-style: italic; font-size: 21px; line-height: 1.4; border-left: 1px solid var(--bone); padding-left: 16px; max-width: 820px; }
.band .note { margin: 0; font-family: var(--f-serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; text-wrap: pretty; max-width: 1100px; }
.band .src { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.band.action { grid-template-columns: 200px minmax(0, 1fr) auto; }
.band.action > :nth-child(2) { padding: 32px 40px; }
.band.action > a { display: flex; align-items: center; padding: 20px 28px; border-left: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone); }
.band.action > a:hover { background: var(--acid); color: var(--ink); }

/* dossier */
.dossier-open { min-height: 760px; }
.dossier-open .left { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.dossier-open .left > * + * { border-top: 1px solid var(--rule); }
.dossier-open .meta { display: flex; justify-content: space-between; gap: 16px; padding: 18px 28px; }
.dossier-open .title { display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding: 40px 28px; }
.dossier-open h1 { margin: 0; font-family: var(--f-serif); font-weight: 400; line-height: 0.86; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.dossier-open .br-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dossier-open .br-line .badge { background: var(--acid); color: var(--ink); }
.dossier-open .br-line em { font-family: var(--f-serif); font-size: clamp(28px, 3vw, 40px); }
.dossier-open .tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 28px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dossier-open .right { display: flex; flex-direction: column; }
.credit-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-top: 1px solid var(--rule); }
.credit-row span:first-child { padding: 12px 24px; border-right: 1px solid var(--rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.credit-row span:last-child { padding: 11px 24px; font-size: 16px; line-height: 1.4; }
.forma > * { padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.forma .i { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--acid); }
.forma h3 { font-size: 38px; }
.forma p { margin: 0; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.pager a { display: flex; flex-direction: column; gap: 14px; padding: 36px 28px 44px; color: var(--bone); }
.pager a:last-child { align-items: flex-end; text-align: right; }
.pager a:hover { background: var(--acid); color: var(--ink); }
.pager .serif-h { font-size: clamp(36px, 4.4vw, 56px); line-height: 0.95; }

/* image strip / atlas */
.atlas a { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 28px; color: var(--bone); }
.atlas a:hover { background: var(--acid); color: var(--ink); }
.atlas .frame { position: relative; border: 1px solid currentColor; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.atlas .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35); transition: transform 0.6s ease; }
.atlas a:hover .frame img { transform: scale(1.04); }
.atlas .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.atlas .t { font-family: var(--f-serif); font-size: 36px; line-height: 1; }
.atlas .d { font-size: 16px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .atlas .frame img { transition: none; } }

/* station list (Northampton) */
.station { display: grid; grid-template-columns: 90px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr); border-bottom: 1px solid var(--rule); }
.station > * { padding: 28px; }
.station > * + * { border-left: 1px solid var(--rule); }
.station .k { font-family: var(--f-display); font-size: 56px; line-height: 0.85; color: var(--blood); }
.station h3 { font-size: 40px; }
.station .when { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.station p { margin: 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.station .fig .frame { --ar: 4 / 3; }
.station .noimg { display: grid; place-items: center; min-height: 160px; border: 1px dashed var(--rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.5; text-align: center; padding: 16px; }

/* essays accordion */
.essay-item { border-bottom: 1px solid var(--rule); }
.essay-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px minmax(0, 1fr) 160px 60px; align-items: center; gap: 16px; padding: 28px; }
.essay-item summary::-webkit-details-marker { display: none; }
.essay-item summary:hover { background: var(--acid); color: var(--ink); }
.essay-item[open] summary { background: var(--bone); color: var(--ink); }
.essay-item summary .t { display: block; font-family: var(--f-serif); font-size: clamp(36px, 4.6vw, 60px); line-height: 0.95; letter-spacing: -0.02em; }
.essay-item summary .sub { display: block; margin-top: 6px; font-style: italic; font-size: 19px; }
.essay-item summary .sign { font-family: var(--f-display); font-size: 40px; text-align: right; }
.essay-item summary .sign::before { content: "+"; }
.essay-item[open] summary .sign::before { content: "−"; }
.essay-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); background: var(--bone); color: var(--ink); border-top: 1px solid var(--ink); }
.essay-body > :first-child { padding: 40px 28px; border-right: 1px solid var(--ink); font-family: var(--f-mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blood); }
.essay-body > :last-child { padding: 40px 40px 56px; }

/* credits page */
.credits-list .fig .frame { --ar: 1 / 1; }

/* footer extra link */
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 28px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.foot-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive for new components ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4.vr > :nth-child(3) { border-left: 0; }
  .g4.vr > :nth-child(n+3) { border-top: 1px solid var(--rule); }
  .decade-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); position: static; }
  .station { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); }
  .station > :nth-child(3) { grid-column: 2 / -1; border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); grid-row: 2; }
  .station > :nth-child(4) { grid-row: 1; grid-column: 3; }
}
@media (max-width: 900px) {
  .split, .split-r, .g2, .band, .band.action, .crumbs, .sec-head, .event, .essay-body, .filter-row, .search, .credit-row { grid-template-columns: minmax(0, 1fr); }
  .vr > * + *, .light .vr > * + *, .page-hero .ph-title + *, .event > * + *, .station > * + * { border-left: 0; }
  .split > * + *, .split-r > * + *, .g2.vr > * + *, .page-hero > * + * { border-top: 1px solid var(--rule); }
  .light .split > * + *, .light .split-r > * + *, .light .g2.vr > * + * { border-top-color: var(--ink); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3.vr > :nth-child(3) { border-left: 0; }
  .g3.vr > :nth-child(n+3) { border-top: 1px solid var(--rule); }
  .light .g3.vr > :nth-child(n+3) { border-top-color: var(--ink); }
  .band > :first-child, .band.action > a, .crumbs > div + div, .filter-row > span, .search label, .essay-body > :first-child, .credit-row span:first-child { border-right: 0; border-left: 0; }
  .band.action > a { border-top: 1px solid var(--rule); }
  .band > :first-child { padding-bottom: 0; }
  .sec-head .aside { text-align: left; }
  .event > * { padding: 18px 28px; }
  .event > :first-child { padding-bottom: 0; }
  .rows thead { display: none; }
  .rows tr { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .station { grid-template-columns: 70px minmax(0, 1fr); }
  .station > :nth-child(3), .station > :nth-child(4) { grid-column: 1 / -1; grid-row: auto; border-top: 1px solid var(--rule); border-left: 0; }
  .essay-item summary { grid-template-columns: minmax(0, 1fr) 40px; }
  .essay-item summary > :nth-child(1), .essay-item summary > :nth-child(3) { display: none; }
  .dossier-open { min-height: 0; }
  .dossier-open .right { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g3.vr > * + *, .g4.vr > * + * { border-left: 0; border-top: 1px solid var(--rule); }
  .light .g3.vr > * + * { border-top-color: var(--ink); }
  .rows tr { grid-template-columns: minmax(0, 1fr); padding-left: 16px; padding-right: 16px; }
  .decade-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell, .act, .page-hero .ph-title, .ph-aside .lede-p, .sec-head, .band > *, .fig.pad, .crumbs > div, .dossier-open .meta, .dossier-open .title, .dossier-open .tags, .forma > *, .pager a, .station > *, .event > *, .essay-item summary, .essay-body > *, .atlas a, .card, .q-card, .filter-row > span, .search label, .search .count { padding-left: 16px; padding-right: 16px; }
  .display, .display.sm { font-size: 11vw; }
  .dossier-open h1 { font-size: 13vw !important; }
  .rows .s2 { font-size: 40px; }
}

/* skip link + home numbers */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--acid); color: var(--ink); padding: 10px 14px; font-family: var(--f-mono); font-size: 12px; }
.skip:focus { left: 8px; top: 8px; }
.numbers .cell { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.numeral-xl { font-family: var(--f-display); font-size: clamp(48px, 6vw, 88px); line-height: 0.85; letter-spacing: -0.04em; }
.numbers .cell:nth-child(2) .numeral-xl { color: var(--acid); }
.numbers .cell:nth-child(3) .numeral-xl { color: var(--blood); }
.portrait-img img { filter: none; }
.tag-fig a { text-decoration: underline; text-underline-offset: 2px; }
.places.g3 a + a { border-left: 1px solid var(--ink); }

/* =====================================================================
   Covers, shelves and internal links
   ===================================================================== */
a.xref { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a.xref:hover { text-decoration-color: currentColor; color: var(--acid); }
.light a.xref:hover, .grimoire a.xref:hover { color: var(--blood); }
.fig.color .frame img { filter: none; }
.fig.cover .frame { background: #050505; }
.fig.cover .frame img { object-fit: contain; padding: 18px; }
.fig.cover .frame .tag-date { z-index: 1; }

/* home work cards with covers */
.work-body { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 18px; }
.work-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.work-cover { width: 96px; flex: none; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid currentColor; box-shadow: 6px 6px 0 var(--blood); transform: rotate(2deg); transition: transform 0.3s ease; }
.work:hover .work-cover { transform: rotate(0) scale(1.04); box-shadow: 6px 6px 0 var(--ink); }

/* horizontal cover shelf */
.cover-strip { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--acid) transparent; }
.cover-strip > * { flex: none; width: 180px; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 24px; border-right: 1px solid var(--rule); scroll-snap-align: start; color: inherit; }
.cover-strip > a:hover { background: var(--acid); color: var(--ink); }
.strip-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid currentColor; background: var(--panel); }
.strip-l { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }
.cell .cover-strip > *, .prose .cover-strip > * { width: 130px; padding: 14px 14px 16px 0; border-right: 0; }
.prose .cover-strip > a:hover { background: none; color: var(--acid); }
.light .cover-strip > * { border-color: var(--ink); }

/* thumbnails inside rows */
.t-in { display: flex; align-items: center; gap: 14px; }
.row-thumb { width: 34px; aspect-ratio: 2 / 3; object-fit: cover; flex: none; border: 1px solid var(--rule); }
.row-thumb.lg { width: 48px; }
.row-thumb.xl { width: 64px; }
.rows tbody tr:hover .row-thumb, .biblio tbody tr:hover .row-thumb { border-color: var(--ink); }
.event .t { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.event .t a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.event .t a:hover { color: var(--acid); }
.event-thumb { width: 72px; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--rule); }

/* chips with tiny covers (collaborators, quotes) */
.chip-l { display: inline-flex; align-items: center; gap: 6px; border: 1px solid currentColor; padding: 3px 8px 3px 3px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; }
span.chip-l { padding-left: 8px; }
a.chip-l:hover { background: var(--ink); color: var(--acid); }
.chip-thumb { width: 18px; height: 27px; object-fit: cover; }
.q-src { display: flex; align-items: center; gap: 10px; }
.person .fig .frame { --ar: 1 / 1; }
.person .fig figcaption > span:first-child { display: none; }

/* essays: cited works with covers */
.essay-body > :first-child { display: flex; flex-direction: column; gap: 12px; }
.cited { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
a.cited:hover { color: var(--blood); }
.cited-thumb { width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--ink); }

/* home numbers are links now */
.numbers a.cell:hover { background: var(--acid); color: var(--ink); }
.numbers a.cell:hover .numeral-xl { color: var(--ink); }
.biblio .t-in .row-thumb { width: 30px; }
.biblio a.rowlink { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .essay-body > :first-child { flex-direction: row; flex-wrap: wrap; }
  .work-cover { width: 72px; }
}
@media (max-width: 600px) {
  .cover-strip > * { width: 140px; padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .work-cover { transition: none; transform: none; } }
.gallery .fig.color .frame { background: #050505; }
.gallery .fig.color .frame img { object-fit: contain; padding: 22px; max-width: 420px; left: 50%; transform: translateX(-50%); }

/* =====================================================================
   Mobile pass: menu drawer, compact cards and rows
   ===================================================================== */
.menu-btn { display: none; }
.nav-extra { display: none; }

@media (max-width: 900px) {
  /* sticky slim header: brand | menu | catálogo */
  .site-header { position: sticky; top: 0; z-index: 60; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; height: 52px; }
  .topbar .ticker { display: none; }
  .topbar .brand { padding: 0 16px; }
  .topbar .catalog { padding: 0 16px; font-size: 11px; }
  .menu-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); }
  .menu-btn:focus-visible { outline: 2px solid var(--acid); outline-offset: -2px; }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
  .menu-ico { position: relative; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
  .menu-ico::before { top: -6px; }
  .menu-ico::after { top: 6px; }
  .menu-open .menu-btn { background: var(--acid); color: var(--ink); }
  .menu-open .menu-ico { background: transparent; }
  .menu-open .menu-ico::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-ico::after { transform: translateY(-6px) rotate(-45deg); }

  /* drawer (only when JS is available; otherwise the list stays visible) */
  .js .nav { display: none; }
  .js.menu-open { overflow: hidden; }
  .js.menu-open .nav { display: flex; flex-direction: column; flex-wrap: nowrap; position: fixed; inset: 52px 0 0 0; z-index: 59; background: var(--ink); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); animation: drawer-in 0.22s ease-out; }
  .js .nav a { flex: none; justify-content: flex-start; align-items: baseline; gap: 14px; padding: 15px 20px; border-right: 0; margin: 0; font-family: var(--f-serif); font-size: clamp(30px, 8.5vw, 40px); line-height: 1; letter-spacing: -0.01em; text-transform: none; white-space: normal; }
  .js .nav a span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; opacity: 0.6; min-width: 34px; }
  .js .nav a[aria-current="page"] { background: var(--acid); color: var(--ink); }
  .js .nav a[aria-current="page"] span { opacity: 1; }
  .js .nav-extra { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-top: 1px solid var(--rule); }
  .js .nav-extra a { font-family: var(--f-mono) !important; font-size: 11px !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; padding: 18px 20px !important; border-bottom: 0 !important; }
  .js .nav-extra a + a { border-left: 1px solid var(--rule); }
  @keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

  /* no-JS fallback: compact two-column list */
  html:not(.js) .nav { display: grid; grid-template-columns: 1fr 1fr; }
  html:not(.js) .nav a { justify-content: flex-start; }

  /* work cards: no tall empty space */
  .work { min-height: 0; gap: 18px; padding: 20px 20px 22px; }
  .work-body { padding: 4px 0; }
  .work h3 { font-size: clamp(38px, 10vw, 52px); }

  .hero { min-height: 0; }
  .hero-title { padding-top: 48px; padding-bottom: 32px; }
  .numbers .cell { padding: 22px 20px; }
  .event .y { font-size: 44px; }
  .sec-head { padding-top: 44px; padding-bottom: 22px; }
}

@media (max-width: 600px) {
  .topbar .brand { font-size: 11px; padding: 0 12px; }
  .topbar .catalog { padding: 0 12px; }
  .menu-l { display: none; }
  .hero h1 { font-size: 19vw !important; line-height: 0.82; }
  .hero-sub { font-size: 11.5vw; }
  .hero-meta { font-size: 11px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers.vr > * + * { border-top: 0; }
  .numbers .cell:nth-child(even) { border-left: 1px solid var(--rule); }
  .numbers .cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .numeral-xl { font-size: 13vw; }
  .numbers .label { font-size: 10px; }

  /* tables → compact cards: meta inline, title full width */
  .rows tr, .biblio tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px; }
  .rows td.tt, .rows td.full, .biblio td.t { flex-basis: 100%; }
  .rows .s1 { font-size: 24px; }
  .rows .s2 { font-size: 30px; }
  .rows td.full { margin-top: 4px; }
  .biblio td.t { font-size: 18px; }
  .row-thumb.lg, .row-thumb.xl { width: 44px; }

  /* filter chips scroll sideways instead of wrapping into a wall */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; padding: 13px 14px; }
  .search { grid-template-columns: minmax(0, 1fr); }
  .search .count { padding-top: 0; padding-bottom: 14px; justify-content: space-between; }

  .card { min-height: 0; }
  .card h2, .card h3 { font-size: 36px; }
  .q-card blockquote { font-size: 28px; }
  .band blockquote { font-size: 34px; }
  .dossier-open .title { gap: 18px; padding-top: 28px; padding-bottom: 28px; }
  .forma h3 { font-size: 30px; }
  .event .y { font-size: 36px; }
  .station .k { font-size: 40px; }
  .station h3 { font-size: 32px; }
  .essay-item summary .t { font-size: 32px; }
  .wordmark div { font-size: 15vw; }
  .foot-works a { font-size: 20px; }
}
@media (max-width: 600px) {
  .atlas.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas.g4.vr > * + * { border-top: 0; }
  .atlas.g4 > :nth-child(even) { border-left: 1px solid var(--rule); }
  .atlas.g4 > :nth-child(n+3) { border-top: 1px solid var(--rule); }
  .atlas a { padding: 14px 12px 18px; gap: 10px; }
  .atlas .t { font-size: 26px; }
  .atlas .d { font-size: 14px; }
  .atlas .k { font-size: 10px; }
  .gallery.g3, .gallery.g2 { grid-template-columns: minmax(0, 1fr); }
}
