/* ═══════════════════════════════════════════════════════
   Vivaan Kaushal — site.css
   Manga-panel editorial. Ink, newsprint, magenta, gold.
   Hard rules, hard cuts, no fades.
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────── */
:root {
  --ink:      #12100e;
  --ink-2:    #35302a;
  --ink-3:    #6b6259;
  --paper:    #efe9dd;
  --paper-2:  #e2d9c8;
  --paper-3:  #cfc2ac;
  --mag:      #ff2d6f;
  --mag-deep: #c4004a;
  --gold:     #ffb703;

  --rule:   3px;
  --shadow: 6px 6px 0 var(--ink);

  --spine-w: clamp(216px, 17vw, 268px);
  --gutter:  clamp(14px, 1.7vw, 26px);
  --pad:     clamp(20px, 3.2vw, 52px);

  --font-d: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-b: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-m: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 2rem; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-columns: var(--spine-w) minmax(0, 1fr);
}

/* newsprint dot screen over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
  opacity: 0.05;
}

img, svg, iframe, audio, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--mag);
  outline-offset: 2px;
}

::selection { background: var(--mag); color: var(--paper); }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .8rem 1.2rem; font-family: var(--font-d); font-weight: 800;
}
.skip:focus { left: 0; }

/* ── Texture utilities ─────────────────────────────── */
.halftone { position: relative; }
.halftone::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1.15px);
  background-size: 7px 7px;
  opacity: .10;
}

/* ゴゴゴ — the "menacing" marks.
   Archivo carries no Japanese glyphs, so name a real CJK stack instead of letting the
   browser substitute one silently — and never ask it for weight 900: the fallback has
   no heavy cut, so it synthesises one and the strokes smear. Kept still and masked so
   the column dissolves downward instead of stopping dead. */
[class$='__menacing'] {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
               Meiryo, 'MS PGothic', 'Apple SD Gothic Neo', sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--gold);
  opacity: .26;
  user-select: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 94%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 94%);
}

/* ── Type helpers ──────────────────────────────────── */
.kicker {
  font-family: var(--font-m);
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-3);
}
.kicker--gold { color: var(--gold); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; max-width: 100%; min-width: 0; }
.chip {
  font-family: var(--font-m);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border: 2px solid currentColor;
  padding: .12rem .4rem;
  /* a chip must never be able to push past its container */
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  border: var(--rule) solid currentColor;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  transition: background 60ms steps(2), color 60ms steps(2);
}
.btn:hover { background: var(--mag); color: var(--paper); border-color: var(--mag); }
.btn__icon { font-size: .9em; }
.btn--big { padding: .75rem 1.3rem; font-size: .92rem; }
.btn--ghost { opacity: .78; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }

.spec { margin-top: 1.2rem; }
.spec__row {
  display: grid;
  grid-template-columns: minmax(84px, 152px) minmax(0, 1fr);
  gap: 1rem;
  padding: .38rem 0;
  border-top: 1px solid currentColor;
}
.spec dt {
  font-family: var(--font-m); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  opacity: .62; padding-top: .18rem;
}
.spec dd { font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }

.empty {
  padding: clamp(24px, 4vw, 48px);
  border: var(--rule) dashed var(--ink);
  background: var(--paper-2);
  font-style: italic;
  color: var(--ink-2);
  text-align: center;
}
.empty::after { opacity: .06; }

/* ── Spine (desktop nav) ───────────────────────────── */
.spine {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(16px, 1.8vw, 26px);
  background: var(--paper);
  border-right: var(--rule) solid var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.spine__id { text-decoration: none; display: block; }
.spine__name {
  display: block;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.spine__id:hover .spine__name { color: var(--mag); }
.spine__role {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-m);
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  border-top: 2px solid var(--ink);
  padding-top: .45rem;
}

.spine__nav { display: flex; flex-direction: column; }
.navlink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .55rem .5rem;
  border-bottom: 2px solid var(--paper-3);
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background 60ms steps(2), color 60ms steps(2), padding-left 60ms steps(2);
}
.navlink__num { font-family: var(--font-m); font-size: .64rem; opacity: .5; }
.navlink__mark { opacity: 0; font-size: .8rem; }
.navlink:hover { background: var(--ink); color: var(--paper); padding-left: .85rem; }
.navlink:hover .navlink__mark { opacity: 1; }
.navlink.is-active { background: var(--mag); color: var(--paper); }
.navlink.is-active .navlink__num { opacity: .8; }
.navlink.is-active .navlink__mark { opacity: 1; }

.spine__foot { margin-top: auto; display: flex; flex-direction: column; gap: .9rem; }

.spine__social { display: flex; flex-wrap: wrap; gap: .1rem .7rem; }
.spine__social a {
  font-family: var(--font-m); font-size: .64rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); text-decoration: none;
  border-bottom: 1px solid var(--paper-3);
}
.spine__social a:hover { color: var(--mag); border-color: var(--mag); }

/* ── Topbar (mobile) ───────────────────────────────── */
.topbar { display: none; }

/* ── Main ──────────────────────────────────────────── */
.main {
  min-width: 0;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.panel { border: var(--rule) solid var(--ink); background: var(--paper); position: relative; }
.panel--ink { background: var(--ink); color: var(--paper); border: var(--rule) solid var(--ink); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: var(--pad);
  min-height: min(76vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 56px);
}
.hero__menacing {
  top: clamp(16px, 3vh, 38px);
  right: clamp(14px, 2.5vw, 46px);
  font-size: clamp(1rem, 2.1vw, 1.9rem);
}
.hero__speed {
  position: absolute;
  inset: -40%;
  opacity: .13;
  background: repeating-conic-gradient(from 0deg at 74% 20%,
    var(--paper) 0deg .3deg, transparent .3deg 2.6deg);
  -webkit-mask-image: radial-gradient(circle at 74% 20%, #000 0%, transparent 58%);
          mask-image: radial-gradient(circle at 74% 20%, #000 0%, transparent 58%);
}
.hero__inner { position: relative; z-index: 2; max-width: 21ch; }

.hero__title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.9rem, 10vw, 9rem);
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: .5rem 0 1.3rem;
}
.hero__word { display: block; }
.hero__word--mark {
  display: inline-block;
  background: var(--mag);
  color: var(--paper);
  padding: 0 .1em .04em;
  transform: skewX(-7deg);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .45);
}

.hero__lede {
  font-family: var(--font-b);
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  color: var(--gold);
  max-width: 18ch;
}
.hero__sub {
  margin-top: .9rem;
  max-width: 46ch;
  font-size: clamp(.95rem, 1.15vw, 1.06rem);
  color: var(--paper-3);
  line-height: 1.62;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.7rem; }

.hero__stats {
  position: relative; z-index: 2;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule) solid var(--paper);
}
.hero__stats li {
  padding: .9rem .6rem .2rem;
  border-right: 1px solid rgba(239, 233, 221, .28);
}
.hero__stats li:last-child { border-right: none; }
.hero__stats b {
  display: block;
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1; letter-spacing: -.03em;
  color: var(--gold);
}
.hero__stats span {
  font-family: var(--font-m); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--paper-3);
}

/* ── Chapter cards (home) ──────────────────────────── */
.chapters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gutter);
}
.chapter {
  position: relative;
  overflow: hidden;
  grid-column: span 3;
  min-height: clamp(230px, 25vw, 340px);
  border: var(--rule) solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  transition: box-shadow 60ms steps(2), transform 60ms steps(2);
}
.chapter--1 { grid-column: span 4; }
.chapter--2 { grid-column: span 2; }
.chapter--3 { grid-column: span 2; }
.chapter--4 { grid-column: span 4; }

.chapter__media { position: absolute; inset: 0; }
.chapter__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3) brightness(.92);
}
.chapter__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 16, 14, .96) 12%, rgba(18, 16, 14, .6) 52%, rgba(18, 16, 14, .25));
}
.chapter__body {
  position: relative; z-index: 2;
  padding: clamp(16px, 2.2vw, 30px);
  color: var(--paper);
  max-width: 46ch;
}
.chapter__num {
  font-family: var(--font-m);
  font-size: .68rem; letter-spacing: .22em;
  color: var(--gold);
}
.chapter__title {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: .95; letter-spacing: -.035em;
  text-transform: uppercase;
  margin: .25rem 0 .5rem;
}
.chapter__blurb { font-size: .93rem; line-height: 1.55; color: var(--paper-2); }
.chapter__count {
  display: inline-block; margin-top: .7rem;
  font-family: var(--font-m); font-size: .64rem;
  text-transform: uppercase; letter-spacing: .1em;
  border: 2px solid var(--paper); padding: .12rem .4rem;
}
.chapter__go {
  position: absolute; z-index: 2;
  right: clamp(12px, 1.6vw, 22px); top: clamp(12px, 1.6vw, 22px);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  font-size: 1rem;
}
.chapter:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--mag); }
.chapter:hover .chapter__media img { filter: none; }
.chapter:hover .chapter__go { background: var(--mag); color: var(--paper); }

/* ── Influence marquee ─────────────────────────────── */
.influence__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem; margin-bottom: .7rem;
}
.influence__title {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  text-transform: uppercase; letter-spacing: -.02em;
}
.influence__more {
  font-family: var(--font-m); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none; border-bottom: 2px solid var(--mag);
}
.influence__more:hover { color: var(--mag); }

.marquee {
  overflow: hidden;
  border-block: var(--rule) solid var(--ink);
  background: var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 64s linear infinite;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* Fixed height, automatic width: every piece is shown whole at a common height
   rather than cropped to a uniform box. */
.marquee__item {
  position: relative;
  flex-shrink: 0;
  min-width: 128px;
  display: flex;
  flex-direction: column;
  border-right: 2px solid var(--paper);
}
.marquee__item img {
  height: clamp(118px, 11vw, 168px);
  width: auto;
  max-width: none;
  margin-inline: auto;
  object-fit: contain;
}
.marquee__item figcaption {
  padding: .3rem .5rem;
  font-family: var(--font-m); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--paper-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Chapter header (section pages) ────────────────── */
.chead {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  padding: var(--pad);
  border: var(--rule) solid var(--ink);
  background: var(--paper-2);
}
.chead__num {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: .78; letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
}
.chead__title {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: .92; letter-spacing: -.04em;
  text-transform: uppercase;
  margin: .3rem 0 .6rem;
}
.chead__lede { max-width: 62ch; font-size: clamp(.98rem, 1.2vw, 1.1rem); color: var(--ink-2); }
.chead__menacing {
  top: clamp(12px, 2vh, 24px);
  right: clamp(12px, 1.6vw, 24px);
  font-size: clamp(.9rem, 1.5vw, 1.3rem);
  color: var(--mag);
  opacity: .22;
}

/* ── Groups & cards ────────────────────────────────── */
.group { display: flex; flex-direction: column; gap: var(--gutter); }
.group__head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.group__title {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  text-transform: uppercase; letter-spacing: -.025em;
}
.group__note { font-size: .9rem; color: var(--ink-3); font-style: italic; }
.group__rule { flex: 1 1 40px; height: var(--rule); background: var(--ink); min-width: 30px; }
.group__count {
  font-family: var(--font-m); font-size: .68rem;
  background: var(--ink); color: var(--paper);
  padding: .12rem .45rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: var(--gutter);
}
.cards--big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 60ms steps(2), box-shadow 60ms steps(2);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--mag); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: var(--rule) solid var(--ink);
  display: grid; place-items: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.card:hover .card__media img { filter: none; }
.card__placeholder {
  font-family: var(--font-d); font-weight: 900;
  font-size: 4rem; color: var(--paper-3);
  text-transform: uppercase;
}
.card__badge {
  position: absolute; top: 0; left: 0;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-m); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .2rem .5rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.card--archived .card__media img { filter: grayscale(1) contrast(1.15); }
.card--archived .card__badge { background: var(--ink); color: var(--paper); }

.card__body { padding: clamp(12px, 1.4vw, 18px); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title {
  font-family: var(--font-d); font-weight: 800;
  font-size: 1.14rem; line-height: 1.1;
  text-transform: uppercase; letter-spacing: -.015em;
}
.card__desc {
  font-size: .89rem; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__go {
  margin-top: auto; padding-top: .4rem;
  font-family: var(--font-m); font-size: .66rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3);
}
.card:hover .card__go { color: var(--mag); }

/* ── Article ───────────────────────────────────────── */
.article { display: flex; flex-direction: column; gap: var(--gutter); }

.ahead {
  position: relative;
  overflow: hidden;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 22px);
  background: var(--ink);
  color: var(--paper);
  border: var(--rule) solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 26px));
}
.ahead__back {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-family: var(--font-m); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--paper-3); text-decoration: none;
}
.ahead__back:hover { color: var(--mag); }
.ahead__title {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: .92; letter-spacing: -.042em;
  text-transform: uppercase;
  margin: .3rem 0 .7rem;
  max-width: 18ch;
}
.ahead__desc { max-width: 62ch; font-size: clamp(1rem, 1.3vw, 1.16rem); color: var(--paper-2); line-height: 1.6; }
.ahead__menacing {
  top: clamp(12px, 2vh, 26px);
  right: clamp(12px, 1.6vw, 28px);
  font-size: clamp(.9rem, 1.5vw, 1.35rem);
}
.ahead--baroque .ahead__title { font-family: var(--font-b); font-style: italic; font-weight: 600; letter-spacing: -.02em; text-transform: none; }

.ahero { border: var(--rule) solid var(--ink); background: var(--paper-2); }
.ahero img { width: 100%; max-height: 62vh; object-fit: cover; }

/* Cover art hangs like a record sleeve — shown whole, never cropped. */
.ahero--sleeve {
  background: var(--ink);
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 40px);
}
.ahero--sleeve img {
  width: auto;
  max-width: min(100%, 440px);
  max-height: 440px;
  object-fit: contain;
  border: 2px solid var(--paper);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, .55);
}

.article__grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: start;
}
.article__grid > .prose:only-child { grid-column: 1 / -1; }

.toc {
  position: sticky; top: var(--gutter);
  border-top: var(--rule) solid var(--ink);
  padding-top: .7rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
.toc__title {
  font-family: var(--font-m); font-size: .64rem;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-3); margin-bottom: .5rem;
}
.toc ol { list-style: none; display: flex; flex-direction: column; }
.toc a {
  display: block;
  padding: .25rem 0;
  font-size: .82rem; line-height: 1.35;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 1px solid var(--paper-3);
}
.toc a:hover { color: var(--mag); }
.toc .toc__l1 a { font-family: var(--font-d); font-weight: 800; text-transform: uppercase; font-size: .76rem; }

.article__foot {
  font-family: var(--font-m); font-size: .68rem;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em;
}

/* ── Prose ─────────────────────────────────────────── */
.prose {
  max-width: 74ch;
  font-size: clamp(1.02rem, 1.1vw, 1.13rem);
  line-height: 1.72;
}
.prose--wide { max-width: 82ch; }
.prose > * + * { margin-top: 1rem; }

.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-d); letter-spacing: -.02em; }
.prose h1 {
  font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase; margin-top: 2.8rem;
  border-bottom: var(--rule) solid var(--ink); padding-bottom: .35rem;
}
.prose h2 {
  font-weight: 900; font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  text-transform: uppercase;
  margin-top: 2.6rem; padding-left: .65rem;
  border-left: 8px solid var(--mag);
  line-height: 1.15;
}
.prose h3 {
  font-weight: 800; font-size: 1.06rem;
  text-transform: uppercase; letter-spacing: .02em;
  margin-top: 1.9rem;
  display: inline-block;
  box-shadow: inset 0 -.42em 0 var(--gold);
}
.prose h4 {
  font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .06em;
  margin-top: 1.5rem; color: var(--ink-2);
}
.prose .anchor {
  float: left; margin-left: -1.1em; width: 1.1em;
  color: var(--paper-3); text-decoration: none;
  opacity: 0; font-weight: 400;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h1:hover .anchor { opacity: 1; color: var(--mag); }

.prose p { hanging-punctuation: first; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a:not(.btn):not(.wikilink) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mag);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:not(.btn):not(.wikilink):hover { background: var(--mag); color: var(--paper); text-decoration-color: transparent; }

/* Wikilinks are the connective tissue of Baroque — they must read as links at a
   glance, and read differently from ordinary prose links. */
.wikilink {
  --wl: var(--mag);
  text-decoration: none;
  color: var(--mag-deep);
  background: rgba(255, 45, 111, .1);
  box-shadow: inset 0 -2px 0 var(--wl);
  padding: 0 .18em .04em;
  font-weight: 600;
  white-space: nowrap;
  transition: background 60ms steps(2), color 60ms steps(2);
}
.wikilink::before {
  content: '◆';
  font-size: .62em;
  vertical-align: .12em;
  margin-right: .28em;
  color: var(--wl);
}
a.wikilink:hover { background: var(--mag); color: var(--paper); }
a.wikilink:hover::before { color: var(--paper); }

/* in-page section jumps — same affordance, calmer colour */
.wikilink--anchor {
  --wl: var(--ink-3);
  color: var(--ink-2);
  background: var(--paper-2);
}
a.wikilink--anchor:hover { background: var(--ink); color: var(--paper); }

/* referenced but not written yet */
.wikilink--dead {
  --wl: var(--paper-3);
  color: var(--ink-3);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--paper-3);
  font-weight: 400;
  cursor: help;
}
.wikilink--dead::before { content: '◇'; color: var(--paper-3); }

.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-top: .3rem; }
.prose li::marker { color: var(--mag); font-weight: 700; }
.prose li.task { list-style: none; margin-left: -1.15rem; display: flex; gap: .5rem; align-items: baseline; }
.prose li.task input { accent-color: var(--mag); }

.prose blockquote {
  border-left: var(--rule) solid var(--gold);
  background: var(--paper-2);
  padding: .8rem 1.1rem;
  font-style: italic;
  color: var(--ink-2);
}
.prose blockquote > * + * { margin-top: .6rem; }

.prose hr { border: none; border-top: var(--rule) solid var(--ink); margin: 2.2rem 0; }

.prose code {
  font-family: var(--font-m); font-size: .84em;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  padding: .05em .3em;
}
.prose pre {
  background: var(--ink); color: var(--paper);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: .82rem; line-height: 1.65;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

.table-wrap { overflow-x: auto; border: var(--rule) solid var(--ink); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.prose th {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-d); font-weight: 800;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  text-align: left; padding: .5rem .7rem; white-space: nowrap;
}
.prose td { padding: .42rem .7rem; border-top: 1px solid var(--paper-3); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--paper-2); }

.embed { margin: 1.6rem 0; border: var(--rule) solid var(--ink); background: var(--paper-2); box-shadow: var(--shadow); }
.embed img { width: 100%; }
.embed--sprite { display: inline-block; max-width: 200px; box-shadow: 4px 4px 0 var(--ink); }
.embed--sprite img { image-rendering: pixelated; }
.embed--video { padding: 0; aspect-ratio: 16 / 9; }
.embed--video iframe { width: 100%; height: 100%; border: 0; }
.embed--audio { padding: .8rem; }
.embed--pdf { height: min(85vh, 900px); }
.embed--pdf iframe { width: 100%; height: 100%; border: 0; }

/* Spotify's widget is dark and rounded — sit it on ink so the frame reads as
   deliberate inset rather than a foreign object dropped on the newsprint. */
.embed--spotify {
  margin: 0;
  background: var(--ink);
  padding: clamp(10px, 1.4vw, 16px);
}
.embed--spotify iframe {
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
  display: block;
  color-scheme: normal;
}
@media (max-width: 620px) {
  .embed--spotify iframe { height: 420px; }
}

.releases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--gutter);
}
.release {
  border: var(--rule) solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.release .embed--spotify { border: none; box-shadow: none; padding-top: 0; }
.release__meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  padding: .7rem clamp(10px, 1.4vw, 16px) 0;
  color: var(--paper);
}
.release__meta b {
  font-family: var(--font-d); font-weight: 900;
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.01em;
}
.release__meta span {
  font-family: var(--font-m); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold);
}
.embed__cap {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-m); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: .6rem;
}
.tag--gold { background: var(--gold); color: var(--ink); padding: .1rem .35rem; }
.embed audio { width: 100%; }

/* ── Photography ───────────────────────────────────── */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--gutter);
}
.album {
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform 60ms steps(2), box-shadow 60ms steps(2);
}
.album:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--mag); }
.album__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: var(--rule) solid var(--ink); }
.album__media img { width: 100%; height: 100%; object-fit: cover; }
.album__count {
  position: absolute; right: 0; bottom: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-m); font-size: .68rem;
  padding: .2rem .5rem;
}
.album__body { padding: clamp(12px, 1.4vw, 18px); display: flex; flex-direction: column; gap: .4rem; }
.album__title {
  font-family: var(--font-d); font-weight: 900;
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: -.02em;
}
.album__desc { font-size: .88rem; color: var(--ink-2); line-height: 1.55; }

.shots { columns: 3; column-gap: var(--gutter); }
.shot {
  display: block; width: 100%;
  margin: 0 0 var(--gutter);
  break-inside: avoid;
  border: var(--rule) solid var(--ink);
  background: var(--paper-2);
  padding: 0; line-height: 0;
  transition: box-shadow 60ms steps(2), transform 60ms steps(2);
}
.shot img { width: 100%; }
.shot:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--mag); }

/* Lightbox — built by site.js */
.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 16, 14, .975);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(10px, 2vw, 26px);
  gap: .7rem;
}
.lb__bar { display: flex; align-items: center; justify-content: space-between; color: var(--paper); }
.lb__count { font-family: var(--font-m); font-size: .72rem; letter-spacing: .14em; }
.lb__close {
  border: 2px solid var(--paper); color: var(--paper);
  width: 40px; height: 34px; display: grid; place-items: center; font-size: 1rem;
}
.lb__close:hover { background: var(--mag); border-color: var(--mag); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border: 2px solid var(--paper); }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 70px;
  border: 2px solid var(--paper); color: var(--paper);
  background: rgba(18, 16, 14, .55);
  font-size: 1.4rem; display: grid; place-items: center;
}
.lb__nav:hover { background: var(--mag); border-color: var(--mag); }
.lb__nav--prev { left: 0; }
.lb__nav--next { right: 0; }
.lb__hint { text-align: center; font-family: var(--font-m); font-size: .62rem; letter-spacing: .14em; color: var(--paper-3); text-transform: uppercase; }

/* ── Worldbuild ────────────────────────────────────── */
.baroque-intro {
  border-left: var(--rule) solid var(--gold);
  padding-left: clamp(14px, 2vw, 26px);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
}
.lore { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px; }
.lore__item {
  display: flex; gap: .6rem; align-items: baseline;
  padding: .6rem .8rem;
  border: 2px solid var(--paper-3);
  background: var(--paper);
  text-decoration: none; color: inherit;
  transition: background 60ms steps(2), border-color 60ms steps(2), color 60ms steps(2);
}
.lore__item:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lore__mark { color: var(--mag); font-size: .7rem; flex-shrink: 0; }
.lore__text { display: flex; flex-direction: column; min-width: 0; }
.lore__title { font-family: var(--font-d); font-weight: 700; font-size: .95rem; }
.lore__desc {
  font-size: .78rem; color: var(--ink-3); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lore__item:hover .lore__desc { color: var(--paper-3); }

/* ── Music ─────────────────────────────────────────── */
.tracks { list-style: none; display: flex; flex-direction: column; gap: var(--gutter); }
.track {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(12px, 2vw, 26px);
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2vw, 24px);
}
.track__num {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.track__title { font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: -.02em; }
.track__desc { font-size: .9rem; color: var(--ink-2); margin: .3rem 0 .7rem; }
.track audio { width: 100%; margin-top: .7rem; }

/* ── About ─────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.factfile { padding: clamp(16px, 2vw, 26px); box-shadow: var(--shadow); position: sticky; top: var(--gutter); }
.factfile__title {
  font-family: var(--font-d); font-weight: 900;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: var(--rule) solid var(--ink); padding-bottom: .4rem;
}
/* The sidebar is too narrow for a two-column definition list — a long email ran
   straight out of it. Stack label over value so values get the full width. */
.factfile .spec__row { grid-template-columns: minmax(0, 1fr); gap: .15rem; padding: .5rem 0; }
.factfile .spec dt { padding-top: 0; }
.factfile .spec dd a { color: var(--ink); text-decoration-color: var(--mag); text-decoration-thickness: 2px; }

/* Masonry columns, not a grid: these are other people's artwork in wildly different
   aspect ratios, so every one is shown whole — nothing is cropped. */
.wall { columns: 3; column-gap: var(--gutter); }
@media (max-width: 1180px) { .wall { columns: 2; } }
@media (max-width: 620px)  { .wall { columns: 1; } }

.wall__item {
  break-inside: avoid;
  margin: 0 0 var(--gutter);
  border: var(--rule) solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.wall__item img { width: 100%; height: auto; display: block; }
.wall__item figcaption {
  padding: .6rem .8rem;
  border-top: var(--rule) solid var(--paper);
  display: flex; flex-direction: column; gap: .1rem;
  color: var(--paper);
}
.wall__title { font-family: var(--font-d); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .01em; }
.wall__source { font-family: var(--font-m); font-size: .64rem; letter-spacing: .08em; color: var(--gold); }
.wall__note { font-size: .84rem; color: var(--paper-2); line-height: 1.5; margin-top: .3rem; font-style: italic; }

/* ── Footer ────────────────────────────────────────── */
.footer {
  position: relative; overflow: hidden;
  margin-top: auto;
  padding: var(--pad);
}
.footer__grid { display: flex; flex-direction: column; gap: .5rem; position: relative; z-index: 2; }
.footer__sig {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-transform: uppercase; letter-spacing: -.04em; line-height: 1;
}
.footer__links { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.footer__links a {
  font-family: var(--font-m); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; border-bottom: 2px solid var(--mag);
}
.footer__links a:hover { color: var(--mag); }
/* anchored to the bottom, so this one dissolves upward instead */
.footer__menacing {
  bottom: clamp(14px, 2vh, 30px);
  right: clamp(14px, 3vw, 46px);
  font-size: clamp(.9rem, 1.6vw, 1.4rem);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 94%);
          mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 94%);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1180px) {
  .article__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: .2rem .9rem; }
  .toc a { border-bottom: none; text-decoration: underline; text-decoration-color: var(--paper-3); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .factfile { position: static; }
  .shots { columns: 2; }
}

@media (max-width: 960px) {
  body { grid-template-columns: minmax(0, 1fr); }

  .topbar {
    display: flex;
    position: sticky; top: 0; z-index: 80;
    align-items: center; justify-content: space-between;
    padding: .7rem var(--gutter);
    background: var(--paper);
    border-bottom: var(--rule) solid var(--ink);
  }
  .topbar__id {
    font-family: var(--font-d); font-weight: 900;
    font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.02em;
    text-decoration: none;
  }
  .topbar__toggle {
    width: 42px; height: 34px;
    border: 2px solid var(--ink);
    display: grid; place-items: center;
  }
  .topbar__toggle[aria-expanded='true'] { background: var(--mag); color: var(--paper); border-color: var(--mag); }

  .spine {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(310px, 86vw);
    transform: translateX(-103%);
    transition: transform 110ms steps(3);
    border-right: var(--rule) solid var(--ink);
    z-index: 85;
  }
  .spine.is-open { transform: none; box-shadow: 14px 0 0 rgba(18, 16, 14, .18); }

  .chapters { grid-template-columns: repeat(2, 1fr); }
  .chapter, .chapter--1, .chapter--2, .chapter--3, .chapter--4 { grid-column: span 2; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats li:nth-child(2) { border-right: none; }
  .chead { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .shots { columns: 1; }
  .ahead { clip-path: none; padding-bottom: var(--pad); }
  .track { grid-template-columns: minmax(0, 1fr); }
  .track__num { display: none; }
  .lb__nav { width: 38px; height: 56px; }
}

/* ── Motion / print ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none; }
}

@media print {
  body { display: block; background: #fff; }
  body::before, .spine, .topbar, .footer__menacing, [class$='__menacing'] { display: none; }
  .main { padding: 0; }
  .panel--ink, .ahead, .hero { background: #fff !important; color: #000 !important; }
  .card, .album, .track, .table-wrap, .prose pre { box-shadow: none; }
}
