:root {
  color-scheme: dark;
  --night: #0a0a0c;
  --paper: #f2e7d5;
  --red: #ff4b3e;
  --lime: #c8f169;
  --smoke: #a6a2a0;
  --line: rgb(242 231 213 / 18%);
  --panel: #131317;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--paper);
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .75rem 1rem; background: var(--lime); color: var(--night); font-weight: 800; }
.skip-link:focus { transform: none; }

.masthead { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; padding: .8rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid var(--line); background: rgb(10 10 12 / 88%); backdrop-filter: blur(18px); }
.brand { display: grid; text-decoration: none; font-size: 1.35rem; font-weight: 950; letter-spacing: -.04em; }
.brand small { color: var(--smoke); font-size: .62rem; font-weight: 600; letter-spacing: .08em; }
.masthead nav, footer nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.masthead nav a, footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .8rem; color: var(--smoke); text-decoration: none; font-size: .82rem; }
.masthead nav a[aria-current="page"] { border-radius: 999px; background: var(--paper); color: var(--night); }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.page-header { display: grid; gap: 1rem; max-width: 850px; padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.issue, .eyebrow, .role, .record-index { margin: 0; color: var(--lime); font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 14ch; margin: 0; font-family: ui-serif, Georgia, "Noto Serif SC", serif; font-size: clamp(2.8rem, 8vw, 7.2rem); font-weight: 650; letter-spacing: -.07em; line-height: .93; }
.page-intro { max-width: 720px; margin: 0; color: var(--smoke); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.75; }
.identity-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
.identity-strip span { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--smoke); font-size: .72rem; }

.feed-shell { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(330px, 620px) minmax(160px, .8fr); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.edition-rail, .context-rail { position: sticky; top: 7rem; display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--smoke); }
.edition-rail p, .context-rail p { margin: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.edition-rail strong { color: var(--red); font-family: ui-serif, Georgia, serif; font-size: clamp(2rem, 5vw, 4rem); line-height: .85; }
.edition-rail span { max-width: 12ch; font-size: .8rem; line-height: 1.5; }
.context-rail strong { color: var(--paper); font-family: ui-serif, Georgia, serif; font-size: 1.5rem; line-height: 1.15; }
.pause-control, [data-age-accept] { min-height: 44px; border: 0; border-radius: 999px; padding: .75rem 1rem; background: var(--lime); color: var(--night); font-weight: 850; cursor: pointer; }
.feed { display: grid; gap: 1.25rem; padding-bottom: 6rem; scroll-snap-type: y proximity; }
.feed-card { position: relative; min-height: min(76svh, 760px); overflow: hidden; display: grid; align-content: end; border: 1px solid var(--line); border-radius: 2rem; background: var(--panel); scroll-snap-align: center; isolation: isolate; }
.cover-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 75% 25%, var(--lime) 0 4%, transparent 4.5%), linear-gradient(140deg, transparent 0 42%, var(--red) 42% 55%, transparent 55%), repeating-linear-gradient(90deg, transparent 0 8%, rgb(242 231 213 / 7%) 8% 8.5%); transform: scale(1.04); animation: cover-drift 12s ease-in-out infinite alternate; }
.cover-art::before { content: ""; position: absolute; width: 52%; aspect-ratio: 1; top: 12%; left: 12%; border: 2px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 3rem rgb(242 231 213 / 4%), 0 0 0 7rem rgb(255 75 62 / 7%); animation: orbit 15s linear infinite; }
.cover-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(10 10 12 / 20%) 48%, var(--night) 92%); }
.cover-art span { position: absolute; z-index: 1; top: 1rem; right: 1.2rem; color: rgb(242 231 213 / 28%); font-family: ui-serif, Georgia, serif; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; }
.visual-2 .cover-art { filter: hue-rotate(22deg); transform: scaleX(-1); }
.visual-3 .cover-art { background: radial-gradient(circle at 30% 30%, var(--red), transparent 25%), repeating-radial-gradient(circle at 60% 45%, transparent 0 2rem, rgb(200 241 105 / 15%) 2.1rem 2.3rem); }
.visual-4 .cover-art, .visual-8 .cover-art { transform: rotate(180deg) scale(1.04); }
.visual-5 .cover-art { filter: saturate(.5) contrast(1.35); }
.visual-6 .cover-art, .visual-9 .cover-art { background: linear-gradient(45deg, var(--red) 0 24%, transparent 24% 48%, var(--lime) 48% 51%, transparent 51%), repeating-linear-gradient(-45deg, transparent 0 2rem, rgb(242 231 213 / 10%) 2rem 2.1rem); }
.visual-7 .cover-art, .visual-10 .cover-art { filter: hue-rotate(160deg); }
.feed-copy { position: relative; z-index: 2; display: grid; gap: .9rem; padding: clamp(1.4rem, 5vw, 3rem); }
.feed-copy h2 { max-width: 15ch; margin: 0; font-family: ui-serif, Georgia, "Noto Serif SC", serif; font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -.05em; line-height: .98; }
.feed-copy > p:not(.eyebrow) { max-width: 34rem; margin: 0; color: var(--smoke); line-height: 1.7; }
.feed-action, .button-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; padding: .75rem 1rem; border-radius: 999px; background: var(--paper); color: var(--night); text-decoration: none; font-weight: 850; }

.scope-note { max-width: 760px; margin: 0 0 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--lime); background: rgb(200 241 105 / 7%); color: var(--smoke); line-height: 1.7; }
.record-grid, .essay-list, .life-list, .timeline { display: grid; gap: 1.5rem; padding-bottom: 6rem; }
.film-record, .essay, .life-article, .timeline article, .people-grid article, .disclosure { padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--panel); }
.film-record h2, .essay h2, .life-article h2, .timeline h2, .people-grid h2, .disclosure h2 { margin: .8rem 0 1.5rem; font-family: ui-serif, Georgia, "Noto Serif SC", serif; font-size: clamp(1.8rem, 4vw, 3.7rem); letter-spacing: -.05em; line-height: 1; }
.film-record p, .essay p, .life-article p, .timeline p, .people-grid p, .guide-list p { max-width: 72ch; color: var(--smoke); line-height: 1.8; }
dl { display: flex; gap: 3rem; padding: 1rem 0; border-block: 1px solid var(--line); }
dt { color: var(--smoke); font-size: .72rem; } dd { margin: .2rem 0 0; font-weight: 800; }
.editorial-note { margin-top: 1.5rem; padding: 1.2rem; border-radius: 1rem; background: rgb(255 75 62 / 9%); }
.editorial-note h3 { color: var(--red); }
.sources { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.sources ol { display: grid; gap: 1rem; padding-left: 1.25rem; }
.sources li { padding-left: .5rem; }
.sources a { color: var(--paper); font-weight: 750; }
.sources p { margin: .35rem 0; font-size: .9rem; }
.sources small { color: var(--smoke); line-height: 1.5; }
.timeline { position: relative; }
.timeline time { color: var(--red); font-family: ui-serif, Georgia, serif; font-size: clamp(3.5rem, 10vw, 8rem); line-height: .8; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-bottom: 6rem; }
.linked-work { color: var(--lime) !important; }
.guide-list { display: grid; gap: .75rem; padding-bottom: 6rem; }
details { border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
summary { min-height: 56px; padding: 1.2rem; cursor: pointer; font-size: 1.05rem; font-weight: 800; }
details p { padding: 0 1.2rem 1.2rem; }
.disclosure { margin-top: 2rem; }
.social-preview { margin: 2rem 0 0; }
.social-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 1rem; }
.social-preview figcaption { margin-top: .65rem; color: var(--smoke); font-size: .8rem; }
.not-found { min-height: 80vh; display: grid; place-content: center; gap: 1rem; }

footer { display: grid; gap: 1rem; margin-top: 2rem; padding: 3rem clamp(1rem, 4vw, 4rem); border-top: 1px solid var(--line); color: var(--smoke); }
footer p { margin: 0; }
footer strong { color: var(--paper); }

.age-gate { display: none; }
.has-js .age-gate { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgb(10 10 12 / 88%); backdrop-filter: blur(24px); }
.has-js.age-confirmed .age-gate { display: none; }
.age-panel { width: min(520px, 100%); padding: clamp(1.5rem, 6vw, 3.5rem); border: 1px solid var(--line); border-radius: 2rem; background: var(--panel); box-shadow: 0 2rem 8rem rgb(0 0 0 / 55%); }
.age-panel h2 { margin: .8rem 0; font-family: ui-serif, Georgia, serif; font-size: clamp(2rem, 8vw, 4.5rem); line-height: .95; }
.age-panel > p:not(.issue) { color: var(--smoke); line-height: 1.7; }
.age-panel [data-age-accept] { width: 100%; margin: 1rem 0; }
.age-panel > a { display: flex; justify-content: center; min-height: 44px; align-items: center; color: var(--smoke); }
.motion-paused .cover-art { animation-play-state: paused; }
.motion-paused .cover-art::before { animation-play-state: paused; }

@keyframes cover-drift { to { transform: scale(1.14) rotate(2deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .masthead { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .masthead nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .masthead nav a { white-space: nowrap; }
  .feed-shell { grid-template-columns: 1fr; }
  .edition-rail, .context-rail { position: static; }
  .context-rail { grid-template-columns: 1fr auto; align-items: center; }
  .context-rail p { grid-column: 1 / -1; }
  .people-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  main { width: min(100% - 1rem, 1180px); }
  .page-header { padding-top: 3.5rem; }
  h1 { font-size: clamp(2.6rem, 15vw, 4.8rem); }
  .feed { gap: .75rem; scroll-snap-type: y mandatory; }
  .feed-card { min-height: calc(100svh - 7rem); border-radius: 1.3rem; }
  .feed-copy h2 { font-size: clamp(2rem, 11vw, 3.4rem); }
  .edition-rail { display: flex; align-items: baseline; justify-content: space-between; }
  .edition-rail span { max-width: none; }
  .context-rail { display: none; }
  dl { gap: 1.5rem; }
}

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