/* REDACTED — the ANAMANA music publication. Same system, colours flipped. */
:root { --brand-y: #fff700; --brand-k: #0b0b0b; }
body.theme-redacted {
  --yellow: #0b0b0b;     /* the site's "paper" colour becomes black… */
  --ink: #fff700;        /* …and its ink becomes yellow */
  --ink-soft: #d8d100;
  --col: 680px;
  background: var(--brand-k); color: var(--brand-y);
}
.theme-redacted ::selection { background: var(--brand-y); color: var(--brand-k); }
.theme-redacted .placeholder { background: rgba(255,247,0,.12); outline-color: rgba(255,247,0,.5); }

/* Masthead artwork: yellow letters, knockouts take the page colour */
.rd-logo { display: block; width: 100%; height: auto; }
.rd-logo .rd-ink { fill: var(--ink); }
.rd-logo .rd-knock { fill: var(--yellow); }

/* Read progress, along the very top */
.rd-progress { position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 70; pointer-events: none; }
.rd-progress span { display: block; height: 100%; background: var(--brand-y); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

/* ---------- Front page ---------- */
.rd-masthead { padding: clamp(110px, 12vw, 180px) var(--gutter) clamp(40px, 5vw, 72px); max-width: 1680px; margin: 0 auto; }
.rd-masthead .rd-logo { max-width: 1400px; }
.rd-masthead-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; align-items: baseline;
  margin-top: clamp(18px, 2vw, 28px); padding-top: 14px; border-top: 3px solid var(--ink); }
.rd-masthead-row p { margin: 0; }
.rd-tagline { font-size: clamp(20px, 2vw, 30px); font-weight: 700; line-height: 1.2; max-width: 34ch; }
.rd-issue { font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
@media (min-width: 761px) { .rd-masthead { padding-right: calc(var(--gutter) + clamp(220px, 20vw, 300px)); } }

.rd-front { padding-top: 0; }
.rd-card.rd-lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end;
  text-decoration: none; padding-bottom: clamp(48px, 6vw, 96px); }
@media (max-width: 900px) { .rd-card.rd-lead { grid-template-columns: minmax(0, 1fr); } }
.rd-lead .rd-card-img { aspect-ratio: 4 / 3; }
.rd-lead .rd-card-title { font-size: clamp(84px, 10vw, 190px); }
.rd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px; background: var(--ink); border: 3px solid var(--ink); }
@media (max-width: 760px) { .rd-cards { grid-template-columns: minmax(0, 1fr); } }
.rd-cards li { background: var(--yellow); }
.rd-card { display: block; text-decoration: none; }
.rd-cards .rd-card-text { padding: 18px 18px 26px; border-top: 3px solid var(--ink); }
.rd-card-img { aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.rd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rd-card:hover .rd-card-img img, .rd-card:focus-visible .rd-card-img img { transform: scale(1.04); }
.rd-card-kicker { margin: 0 0 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.rd-card-title { font-family: var(--headline); font-weight: 700; text-transform: uppercase; font-size: clamp(56px, 5.6vw, 96px);
  line-height: .84; margin: 0 0 12px; letter-spacing: .005em; }
.rd-card-dek { margin: 0; font-size: 18px; line-height: 1.4; max-width: 46ch; }
.rd-card:hover .rd-card-title, .rd-card:focus-visible .rd-card-title { text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 6px; }
.rd-draft { display: inline-block; background: var(--ink); color: var(--yellow); padding: 2px 8px; margin-left: 8px; letter-spacing: .08em; }
.rd-soon { font-family: var(--headline); font-weight: 700; text-transform: uppercase; font-size: clamp(84px, 12vw, 220px); line-height: .82; margin: 0 0 24px; }

/* ---------- Images: halftone art turns yellow on black ---------- */
.rd-frame { position: relative; overflow: hidden; background: #1a1a14; }
.tone-halftone .rd-frame, .rd-card-img.tone-halftone { background: var(--brand-y); }
.tone-halftone img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); }
.rd-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); }
figcaption { font-size: 15px; line-height: 1.4; font-weight: 600; margin-top: 12px; max-width: 60ch; }

/* ---------- Article ---------- */
.rd-col { width: min(var(--col), calc(100% - 2 * var(--gutter))); margin-left: var(--gutter); }
@media (min-width: 761px) {
  /* centred, but nudged left so the fixed menu never sits on the text */
  .rd-col { margin-left: max(var(--gutter), min(calc((100% - var(--col)) / 2), calc(100% - var(--col) - 360px))); }
}
.rd-head { padding-top: clamp(130px, 18vh, 220px); padding-bottom: clamp(40px, 6vh, 72px); }
.rd-head.rd-col { width: min(1100px, calc(100% - 2 * var(--gutter))); }
.rd-kicker { margin: 0 0 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.rd-kicker a { text-decoration: none; background: var(--ink); color: var(--yellow); padding: 3px 8px; margin-right: 10px; }
.rd-title { font-family: var(--headline); font-weight: 700; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(88px, 11.5vw, 220px); line-height: .8; margin: 0 0 28px; max-width: 14ch; }
.rd-dek { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; font-weight: 600; margin: 0 0 26px; max-width: 32ch; }
.rd-meta { margin: 0; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Hero: starts as a window in the black page and opens out to full screen */
.rd-hero { position: relative; height: 170vh; height: 170svh; margin: 0; }
.rd-hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rd-hero .rd-frame { position: absolute; inset: 0; background: transparent;
  clip-path: inset(calc((1 - var(--p, 1)) * 16%) calc((1 - var(--p, 1)) * 24%)); }
.rd-hero.tone-halftone .rd-frame { background: var(--brand-y); }
.rd-hero .rd-frame img { transform: scale(calc(1.18 - .18 * var(--p, 1))); }
.rd-hero figcaption { position: absolute; left: var(--gutter); bottom: var(--gutter); margin: 0;
  background: var(--brand-k); color: var(--brand-y); padding: 6px 10px; opacity: var(--p, 1); }

.rd-body { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); font-size: clamp(19px, 1.35vw, 21px); line-height: 1.62; }
.rd-body > p { margin-top: 0; margin-bottom: 1.15em; }
.rd-body a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rd-dropcap::first-letter { font-family: var(--headline); font-weight: 700; float: left; font-size: 6.2em; line-height: .76;
  margin: .07em .1em 0 0; text-transform: uppercase; }
.rd-h2 { font-family: var(--headline); font-weight: 700; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(72px, 8vw, 140px); line-height: .84; margin-top: 1.1em; margin-bottom: .45em; }
.rd-h3 { font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 18px; margin-top: 2em; margin-bottom: .6em; }
.rd-quote { margin-top: 1.6em; margin-bottom: 1.6em; margin-right: 0; padding: 0; }
.rd-quote p { font-family: var(--headline); font-weight: 700; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(64px, 7vw, 124px); line-height: .86; margin: 0; }
.rd-quote footer { margin-top: 16px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
.rd-quote.rd-col { width: min(calc(var(--col) + 100px), calc(100% - 2 * var(--gutter))); }
.rd-break { border: 0; height: 14px; margin-top: 2.4em; margin-bottom: 2.4em; background:
  linear-gradient(var(--ink), var(--ink)) 0 50% / 60px 14px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 76px 50% / 140px 14px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 232px 50% / 34px 14px no-repeat; }

/* Redaction bar: covers each line of a heading or quote, then slides away */
.rd-bar { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .04em;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat right center / calc((1 - var(--e, 1)) * 100%) 100%; }

/* Figures */
.rd-fig { margin-top: clamp(40px, 6vw, 88px); margin-bottom: clamp(40px, 6vw, 88px); margin-right: 0; }
.rd-fig .rd-frame { aspect-ratio: 3 / 2; }
.rd-fig--wide, .rd-fig--parallax { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto; }
@media (min-width: 761px) { .rd-fig--wide, .rd-fig--parallax { margin-left: var(--gutter); } }
.rd-fig--wide .rd-frame, .rd-fig--parallax .rd-frame { aspect-ratio: 16 / 9; }

/* reveal: wipes up from the bottom edge and settles */
.rd-fig--reveal .rd-frame, .rd-fig--wide .rd-frame { clip-path: inset(calc((1 - var(--e, 1)) * 100%) 0 0 0); }
.rd-fig--reveal .rd-frame img, .rd-fig--wide .rd-frame img { transform: scale(calc(1 + (1 - var(--e, 1)) * .22)); transform-origin: 50% 100%; }

/* parallax: the picture drifts inside its frame */
.rd-fig--parallax .rd-frame img { position: absolute; left: 0; top: -14%; height: 128%;
  transform: translate3d(0, calc((var(--p, .5) - .5) * -18%), 0); }

/* full: fills the screen, eases back as it arrives */
.rd-fig--full { width: 100%; }
.rd-fig--full .rd-frame { aspect-ratio: auto; height: 100vh; height: 100svh; }
.rd-fig--full .rd-frame img { transform: scale(calc(1.28 - .28 * var(--e, 1))); }
.rd-fig--full figcaption { margin-left: var(--gutter); }

/* pair: side by side, drifting at different speeds */
.rd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px);
  width: min(1240px, calc(100% - 2 * var(--gutter))); margin: clamp(56px, 8vw, 120px) var(--gutter); }
.rd-pair .rd-fig { margin: 0; }
.rd-pair .rd-frame { aspect-ratio: 4 / 5; }
.rd-pair .rd-fig:first-child { transform: translate3d(0, calc((var(--p, .5) - .5) * 70px), 0); }
.rd-pair .rd-fig:last-child { transform: translate3d(0, calc((var(--p, .5) - .5) * -110px), 0); margin-top: clamp(40px, 8vw, 120px); }
@media (max-width: 560px) { .rd-pair { grid-template-columns: minmax(0, 1fr); } .rd-pair .rd-fig:last-child { margin-top: 0; } }

/* story: image pinned on the right, text scrolls past on the left */
.rd-story { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin: clamp(56px, 8vw, 120px) 0; }
.rd-story-media { grid-column: 2; grid-row: 1; }
.rd-story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--gutter) 0; }
.rd-story-pin .rd-frame { position: absolute; inset: 0; }
.rd-story-shot { position: absolute; inset: 0; margin: 0; }
.rd-story-shot .rd-frame { height: 100%; }
.rd-story-shot { clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.75, 0, .2, 1); }
.rd-story-shot img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.rd-story-shot.is-past, .rd-story-shot.is-on { clip-path: inset(0 0 0 0); }
.rd-story-shot.is-on img { transform: scale(1); }
.rd-story-shot figcaption { position: absolute; right: var(--gutter); top: var(--gutter); margin: 0; background: var(--brand-k);
  color: var(--brand-y); padding: 5px 9px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.rd-story-steps { grid-column: 1; grid-row: 1; padding: 0 clamp(24px, 4vw, 64px) 0 var(--gutter); }
.rd-step { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.rd-step:first-child { min-height: 70vh; }
.rd-step p { margin: 0 0 1em; max-width: 30ch; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.3; font-weight: 600;
  opacity: .25; transition: opacity .5s ease; }
.rd-step.is-on p { opacity: 1; }
@media (max-width: 760px) {
  .rd-story { grid-template-columns: minmax(0, 1fr); }
  .rd-story-media, .rd-story-steps { grid-column: 1; }
  .rd-story-pin { padding: 0; }
  .rd-story-steps { position: relative; z-index: 2; padding: 0 var(--gutter); }
  .rd-step { min-height: 110svh; justify-content: flex-end; padding-bottom: 18svh; }
  .rd-step p { background: var(--brand-k); padding: 16px 18px; opacity: 1; max-width: none; }
}

/* gallery: a strip that travels sideways while you scroll down */
.rd-gallery { position: relative; margin: clamp(56px, 8vw, 120px) 0; }
.rd-gallery-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.rd-track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(14px, 2vw, 28px);
  transform: translate3d(var(--shift, 0px), 0, 0); will-change: transform; }
.rd-track li { flex: 0 0 auto; width: min(78vw, 96svh); }
.rd-track .rd-fig { margin: 0; }
.rd-track .rd-frame { aspect-ratio: 3 / 2; }
.rd-gallery-count { position: absolute; left: var(--gutter); top: calc(var(--gutter) + 56px); margin: 0; font-weight: 900;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }

/* After the article */
.rd-end { border-top: 3px solid var(--ink); }
.rd-back { margin-top: 28px; }

/* No scripts, or reduced motion: everything simply in place */
html:not(.fx) .rd-hero { height: auto; }
html:not(.fx) .rd-hero-pin { position: relative; height: 80svh; }
html:not(.fx) .rd-story-shot:first-child { clip-path: none; }
html:not(.fx) .rd-gallery-pin { position: static; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0; }
html:not(.fx) .rd-track { transform: none; }
html:not(.fx) .rd-track li { scroll-snap-align: start; }
html:not(.fx) .rd-gallery-count { display: none; }
html:not(.fx):not(.fx-still) .rd-step p { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .rd-story-shot, .rd-story-shot img, .rd-step p { transition: none !important; }
}

/* Top-left logo on story pages: the Redacted mark, back to the Redacted front page */
.rd-wordmark .rd-logo { width: auto; height: 46px; }
@media (max-width: 760px) { .rd-wordmark .rd-logo { height: 36px; } }

/* "In brief" summary under the headline */
.rd-summary { border: 3px solid var(--ink); padding: 18px 20px 20px; margin-bottom: clamp(32px, 5vw, 56px); font-size: 19px; line-height: 1.5; font-weight: 600; }
.rd-summary .kicker { margin-bottom: 8px; }
.rd-summary p:last-child { margin: 0; }
.rd-meta a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
