/* ==========================================================================
   Release the Mannion Files — styles
   ========================================================================== */

/* Fonts are self-hosted (see /fonts, SIL Open Font License); no requests to outside services. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/oswald-variable.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-700.woff2") format("woff2"); }

:root {
  --ink: #121211;          /* text on paper, redaction bars */
  --night: #0e0e0d;        /* page background */
  --night-2: #181816;
  --paper: #ece6d6;
  --paper-2: #ddd4bd;      /* folder tabs */
  --muted: #4a463d;        /* secondary text on paper (≈8:1) */
  --red: #b51f16;          /* accent on paper (≈5.6:1) */
  --red-btn: #c2231a;      /* button fill w/ white text (≈5.3:1) */
  --red-bright: #ff6b5e;   /* accent on dark bg (≈6.9:1) */
  --on-dark: #ece6d6;

  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;

  --gutter: 16px;
  --max: 1040px;
  --radius: 2px;

  /* paper grain: SVG noise, multiplied over paper colour */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: .5rem .9rem;
  font-weight: 700;
}
.skip-link:focus { top: var(--gutter); }

main { padding: 0 var(--gutter); }

/* ---------- Paper panels ---------- */

.paper {
  position: relative;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -18px rgba(0,0,0,.8);
}

/* ---------- Rubber stamps ---------- */

.stamp {
  position: absolute;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  border: 3px solid currentColor;
  padding: .15em .55em;
  line-height: 1.1;
  transform: rotate(-9deg);
  opacity: .82;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  /* worn-ink look */
  -webkit-mask-image: var(--grain), linear-gradient(#000, #000);
  mask-image: var(--grain), linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ---------- Buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.cta-row--center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red-btn); color: #fff; }
.btn--primary:hover { background: #a51b13; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

/* ---------- Redaction effect (public text only) ----------
   The text is always in the DOM and readable by assistive tech.
   A black bar is painted over it as a background and wipes away
   when .is-revealed is added (scroll / hover / focus).               */

.js .redact {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .12em;
  margin: 0 -.12em;
  transition: background-size .7s cubic-bezier(.7, 0, .2, 1);
}
.js .redact.is-revealed { background-size: 0% 100%; }

/* ---------- HERO ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3.5rem) 0 1rem;
}

.hero__cover {
  padding: clamp(1.5rem, 6vw, 4rem) clamp(1.25rem, 6vw, 4rem) clamp(2rem, 6vw, 3.5rem);
  overflow: hidden;
}

.hero__label {
  margin: 0 0 1.25rem;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed currentColor;
  padding-bottom: .6rem;
  max-width: calc(100% - 9rem);
}
@media (min-width: 760px) { .hero__label { max-width: calc(100% - 12rem); } }

.stamp--hero {
  top: clamp(1rem, 4vw, 2.5rem);
  right: clamp(.75rem, 4vw, 2.5rem);
  font-size: clamp(.85rem, 2.6vw, 1.35rem);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.005em;
}
.hero__title .wipe { display: block; width: fit-content; }
.wipe--accent { color: var(--red); }

/* Page-load bars: each headline line starts covered and wipes away. */
.js .wipe {
  position: relative;
}
.js .wipe::after {
  content: "";
  position: absolute;
  inset: .06em -.08em;
  background: var(--ink);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform .8s cubic-bezier(.7, 0, .2, 1);
}
.js .wipe:nth-child(2)::after { transition-delay: .18s; }
.js .wipe:nth-child(3)::after { transition-delay: .36s; }
.js.is-loaded .wipe::after { transform: scaleX(0); }

.hero__sub {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.55;
}


/* ---------- FILE sections ---------- */

.file {
  max-width: var(--max);
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  scroll-margin-top: 1rem;
}
.file:focus { outline: none; }

.file__tab {
  display: inline-block;
  margin: 0;
  padding: .55rem 1.1rem .45rem;
  background-color: var(--paper-2);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(.82rem, 2.4vw, .95rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 6px 6px 0 0;
  position: relative;
  top: 1px;
}
.file__num { color: var(--red); }

.file__body {
  padding: clamp(1.25rem, 5vw, 3rem);
  border-top-left-radius: 0;
}
.file__body > :first-child { margin-top: 0; }
.file__body > :last-child { margin-bottom: 0; }
.file__body p { max-width: 44rem; }

.release-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.2vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  max-width: 44rem;
}

.dateline { font-weight: 700; }

.background-note {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--muted);
}
.background-note p { margin: 0; }

/* ---------- Transcript record ---------- */

.record {
  /* ruled typing paper with a margin line */
  background-image:
    linear-gradient(90deg, transparent calc(clamp(.75rem, 3vw, 2rem) - 1px), rgba(181,31,22,.35) calc(clamp(.75rem, 3vw, 2rem) - 1px), rgba(181,31,22,.35) clamp(.75rem, 3vw, 2rem), transparent clamp(.75rem, 3vw, 2rem)),
    var(--grain);
  padding-left: clamp(1.75rem, 6vw, 4rem);
  overflow: hidden;
}

.stamp--record {
  top: 1.1rem;
  right: 1rem;
  font-size: clamp(.75rem, 2vw, 1rem);
  transform: rotate(6deg);
}

.record__meta {
  margin: 0 0 1.5rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: calc(100% - 7rem);
}

.record__entry + .record__entry { margin-top: 1.75rem; }

.record__speaker {
  margin: 0 0 .35rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.record__entry p:not(.record__speaker) { margin: 0 0 1rem; }

mark.hl {
  background-color: transparent;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: .16em;
  text-underline-offset: .22em;
  text-decoration-skip-ink: none;
}

/* ---------- FILE 03: withheld report ---------- */

.file__split {
  display: grid;
  gap: 1.5rem;
}

.lede {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  margin-top: 0;
}

.kicker {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 0;
}
.kicker strong { color: var(--red); font-weight: 700; display: block; }

.withheld { margin: 0; }

.withheld__doc {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 2rem 1.5rem;
  aspect-ratio: 8.5 / 11;
  max-height: 560px;
  overflow: hidden;
  transform: rotate(-.8deg);
}

.bar {
  display: block;
  width: var(--w);
  height: .95rem;
  flex-shrink: 0;
  background: var(--ink);
}
.bar--gap { margin-bottom: .85rem; }

.withheld__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: max-content;
  max-width: 90%;
  text-align: center;
  padding: .45rem .8rem;
  background: var(--paper);
  color: var(--red);
  border: 3px solid currentColor;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 3.6vw, 1.4rem);
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 0 0 6px var(--paper);
}

.withheld__caption {
  margin-top: .9rem;
  font-size: .85rem;
  color: #bdb6a6;
  text-align: center;
}

/* ---------- FILE 04: quotes ---------- */

.quotes {
  display: grid;
  gap: 1.25rem;
}

.quote {
  margin: 0;
  padding: 1.75rem 1.5rem 1.4rem;
  border-top: 6px solid var(--red);
}
.quote:first-child { border-top-left-radius: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-size: 1.05rem; }
.quote figcaption {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- THE DEMAND ---------- */

.demand {
  max-width: var(--max);
  margin: clamp(3.5rem, 10vw, 6.5rem) auto 0;
  padding: clamp(2rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
  border: 2px solid #3a3833;
  background: var(--night-2);
  text-align: center;
}

.demand__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 7.5vw, 4.25rem);
  line-height: 1.02;
}
.demand__title span { display: block; }
.demand__title span + span { margin-top: .2em; }
.demand__accent { color: var(--red-bright); }

.status {
  min-height: 1.6em;
  margin: 1rem 0 0;
  font-size: .95rem;
  color: var(--on-dark);
}


/* ---------- FOOTER ---------- */

.footer {
  max-width: var(--max);
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  padding: 0 var(--gutter) 3rem;
}

.disclaimer {
  display: inline-block;
  padding: .75rem 1.1rem;
  border: 2px solid var(--on-dark);
  background: var(--night);
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 700;
}

.sources { margin-top: 2rem; }
.sources__title {
  margin: 0 0 .5rem;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #bdb6a6;
}
.sources ul { margin: 0; padding-left: 1.2rem; }
.sources li + li { margin-top: .3rem; }
.sources a { color: var(--on-dark); text-underline-offset: .2em; }
.sources a:hover { color: var(--red-bright); }

/* ---------- Larger screens ---------- */

@media (min-width: 760px) {
  .file__split {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 2.5rem;
  }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .hero__cover .cta-row { margin-top: 2.25rem; }
}

/* ---------- Reduced motion: no animations, all public text visible ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .redact { background-size: 0% 100% !important; }
  .js .wipe::after { transform: scaleX(0) !important; }
  .btn:hover { transform: none; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; color: #000; }
  .js .redact { background-size: 0% 100% !important; }
  .js .wipe::after { display: none; }
  .cta-row, .skip-link { display: none !important; }
}

.quote__said { font-style: italic; color: var(--muted); }

/* ==========================================================================
   v2 components
   ========================================================================== */

.file__date {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .08em;
  margin-left: .35em;
}
.file__date::before { content: "/ "; }


/* Source links at the end of each factual section */
.src {
  margin: 2rem 0 0;
  padding-top: .9rem;
  border-top: 1px dashed #b3aa93;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: none !important;
}
.src a { color: var(--ink); text-underline-offset: .18em; }
.src a:hover { color: var(--red); }


.file__body .file__split { margin-top: 0; }
.file__split > div > :first-child { margin-top: 0; }

/* Callout card */
.callout {
  margin: 2rem 0 0;
  background: var(--ink);
  color: var(--on-dark);
  padding: 1.25rem 1.25rem .5rem;
  display: grid;
  gap: 0;
}
.callout__row {
  display: grid;
  gap: .15rem;
  padding: 0 0 .85rem;
  margin-bottom: .85rem;
  border-bottom: 1px dashed #4d4a43;
}
.callout__row:last-child { border-bottom: 0; margin-bottom: 0; }
.callout dt {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.callout dd { margin: 0; font-size: 1.05rem; }

/* His claim / the record */
.vs { display: grid; gap: 1rem; }
.vs__row {
  display: grid;
  border: 2px solid var(--ink);
}
.vs__claim, .vs__record { padding: 1rem 1.1rem; }
.vs__claim p, .vs__record p { margin: 0; }
.vs__claim p:not(.vs__label) { font-weight: 700; }
.vs__record { background: var(--ink); color: var(--on-dark); }
.vs__record--empty p:not(.vs__label) { font-style: italic; color: #bdb6a6; }
.vs__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .35rem !important;
}
.vs__claim .vs__label { color: var(--red); }
.vs__record .vs__label { color: var(--red-bright); }

/* Transcript nested inside FILE 03 */
.record {
  position: relative;
  margin-top: 2.5rem;
  padding: 1.5rem 1.1rem 1rem clamp(1.75rem, 6vw, 3.5rem);
  background-color: #f4efe3;
  border: 1px solid #cfc5ac;
}
h3.record__meta { font-family: var(--mono); font-weight: 400; line-height: 1.5; }

.framing {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.8vw, 1.75rem);
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 0;
}

/* Timeline: vertical on mobile, horizontal track on desktop */
.timeline {
  max-width: var(--max);
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  scroll-margin-top: 1rem;
}
.timeline:focus { outline: none; }
.timeline__track {
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 1.5rem 1.25rem;
}
.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--ink);
}
.tl {
  position: relative;
  padding: 0 0 1.5rem .75rem;
}
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 9px);
  top: .35rem;
  width: 15px;
  height: 15px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.tl--key::before { background: var(--red); border-color: var(--red); }
.tl__date {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tl--key .tl__date { color: var(--red); }
.tl__text { margin: .2rem 0 .35rem; font-size: .98rem; }
.tl__src {
  display: inline-block;
  margin-right: .6rem;
  font-size: .78rem;
  color: var(--muted);
  text-underline-offset: .18em;
}

@media (min-width: 900px) {
  .timeline__track {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2rem 1.5rem 1.5rem;
  }
  .timeline__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 1.5rem;
    padding: 0;
    border-left: 0;
    min-width: max-content;
  }
  .tl {
    padding: 1.6rem 0 0;
    border-top: 3px solid var(--ink);
    scroll-snap-align: start;
    max-width: 240px;
  }
  .tl::before { left: 0; top: -9px; }
  .vs__row { grid-template-columns: 1fr 1fr; }
  .callout { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding-bottom: 1.25rem; }
  .callout__row { border-bottom: 0; margin: 0; padding: 0 1.25rem 0 0; border-right: 1px dashed #4d4a43; }
  .callout__row:last-child { border-right: 0; }
}

/* Debate excerpts */
.excerpts { margin-top: 1.75rem; display: grid; gap: 1rem; }
.excerpts__label {
  margin: 0;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
}
.excerpts__label a { color: var(--red); text-underline-offset: .2em; }
.excerpt {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-left: 5px solid var(--red);
}
.excerpt blockquote { margin: 0; }
.excerpt blockquote p { margin: 0; font-size: 1.1rem; max-width: none; }
.excerpt figcaption {
  margin-top: .6rem;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.excerpt figcaption a { color: var(--ink); text-underline-offset: .18em; }

.demand__sub {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
}


.hero__sub--follow { margin-top: .9rem; font-weight: 700; }

.footer__links { margin: 2rem 0 0; font-size: .9rem; }
.footer__links a { color: var(--on-dark); text-underline-offset: .2em; }
.footer__links a:hover { color: var(--red-bright); }

/* Privacy page */
.policy { max-width: 46rem; margin: clamp(1.25rem, 5vw, 3.5rem) auto 0; }
.policy .file__body h1 {
  margin: 0 0 .25rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.05;
}
.policy .file__body h2 {
  margin: 2rem 0 .4rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.2rem;
}
.policy__date { margin-top: 0; color: var(--muted); }
.policy a { color: var(--red); text-underline-offset: .18em; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--on-dark); text-underline-offset: .2em; }
