/* Channel G — broadsheet collage. Brand tokens from the Channel G style guide. */
:root {
  --paper: #ECE8DF;
  --newsprint: #E9E4D6;
  --ink: #161616;
  --grey: #9A9A96;
  --purple: #6D4DA8;
  --mustard: #E9AA1C;
  --white: #FFFFFF;
  --ink-soft: #3a3a38;

  --f-head: "Unbounded", system-ui, sans-serif;
  --f-hl: "Protest Revolution", "Unbounded", sans-serif;
  --f-note: "Nanum Brush Script", cursive;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;

  --shadow: 0 6px 8px rgba(22, 22, 22, 0.28), 0 1px 1px rgba(0, 0, 0, 0.25);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;

  /* hand-torn edges, top and bottom */
  --torn: polygon(0% 12%, 3% 2%, 7% 9%, 12% 0%, 18% 8%, 24% 1%, 29% 10%, 35% 3%, 41% 9%, 47% 0%, 53% 7%, 59% 2%, 64% 11%, 70% 3%, 76% 9%, 82% 0%, 88% 8%, 94% 2%, 100% 10%,
    100% 88%, 96% 99%, 90% 91%, 84% 100%, 78% 92%, 72% 98%, 66% 90%, 60% 100%, 54% 93%, 48% 99%, 42% 90%, 36% 98%, 30% 91%, 24% 100%, 18% 92%, 12% 99%, 6% 90%, 0% 97%);
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* paper grain, generated (no texture file) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .09  0 0 0 0 .09  0 0 0 0 .08  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- masthead ---------- */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.brand img { width: 56px; height: 56px; margin: -6px 0; }
/* wordmark as on the banner: brush "for", then GREATER / GOOD on mustard strips */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin-top: 6px;
}
.wm-for {
  font-family: var(--f-note);
  color: var(--purple);
  font-size: 1.05rem;
  line-height: 0.8;
  margin-left: 2px;
}
.wm-word {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding: 1px 4px 1px 1px;
  margin-top: 2px;
  background: linear-gradient(transparent 55%, var(--mustard) 55%, var(--mustard) 92%, transparent 92%);
}
.wm-word b { color: var(--purple); font-weight: 900; }

.nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav a {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-color: var(--mustard); }
.nav a[aria-current="page"] { border-color: var(--purple); }

/* ---------- shared type ---------- */
.kicker {
  display: inline-block;
  margin: 44px 0 14px;
  padding: 12px 22px 11px;
  background: var(--ink);
  color: var(--newsprint);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.torn { clip-path: var(--torn); }

.title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 30px;
  max-width: 15ch;
}
.title a { text-decoration: none; }
.title-sm { font-size: clamp(1.8rem, 4.6vw, 3.2rem); max-width: 22ch; }

/* the one highlighted phrase: Protest Revolution on a mustard highlighter stroke */
.hl {
  font-family: var(--f-hl);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--purple);
  font-size: 1.08em;
  padding: 0 0.12em;
  background: linear-gradient(176deg, transparent 38%, var(--mustard) 38%, var(--mustard) 86%, transparent 86%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.strip {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px 20px 9px;
  background: var(--newsprint);
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow);
  clip-path: var(--torn);
  transform: rotate(-1deg);
}
.strip-n {
  font-weight: 400;
  color: var(--purple);
  margin-right: 0.4em;
}

/* ---------- prints (photos with white border) ---------- */
.print {
  position: relative;
  margin: 0;
  background: var(--white);
  padding: clamp(6px, 1vw, 10px);
  box-shadow: var(--shadow);
}
.print img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- feature ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.player { transform: rotate(-0.8deg); }
/* masking tape on two corners */
.player::before, .player::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 30px;
  background: rgba(233, 228, 214, 0.82);
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.18);
  z-index: 2;
}
.player::before { top: -12px; left: -28px; transform: rotate(-38deg); }
.player::after { top: -12px; right: -28px; transform: rotate(36deg); }

.yt-facade {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  position: relative;
}
.yt-facade img { transition: filter 0.2s; }
.yt-facade:hover img { filter: brightness(0.9); }
.play {
  position: absolute;
  left: 50%; top: 50%;
  width: 88px; height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 6px 6px 0 var(--mustard);
}
.play::after {
  content: "";
  position: absolute;
  left: 36px; top: 27px;
  border-style: solid;
  border-width: 17px 0 17px 28px;
  border-color: transparent transparent transparent var(--paper);
}
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.stamp {
  position: absolute;
  left: 5%;
  top: 8%;
  padding: 10px 16px;
  border: 3px solid var(--purple);
  color: var(--purple);
  background: rgba(236, 232, 223, 0.9);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(0.62rem, 1.4vw, 0.85rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.meta {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey);
}

.summary { margin: 0 0 1em; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease-out;
}
.btn-ink {
  color: var(--paper);
  isolation: isolate;
}
/* ink slab on top, mustard halftone shadow behind it, like the G */
.btn-ink::before,
.btn-ink::after {
  content: "";
  position: absolute;
  inset: 0;
}
.btn-ink::before { background: var(--ink); z-index: -1; }
.btn-ink::after {
  transform: translate(7px, 7px);
  z-index: -2;
  background-image: radial-gradient(var(--mustard) 42%, transparent 46%);
  background-size: 7px 7px;
}
.btn-ink:hover { transform: translate(-2px, -2px); }
.btn-ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--newsprint); }

.scribble {
  font-family: var(--f-note);
  color: var(--purple);
  font-size: 2rem;
  line-height: 1;
  margin: 18px 0 0 6px;
  transform: rotate(-4deg);
  transform-origin: left;
}
.scribble::before { content: "↑ "; }

/* ---------- chapters ---------- */
.chapters { margin-top: 72px; }
.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.chapter-list li > * {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 14px 16px 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  /* index card ruling */
  background-image: linear-gradient(transparent 38px, rgba(109, 77, 168, 0.35) 38px, rgba(109, 77, 168, 0.35) 39px, transparent 39px);
}
.chapter-list a:hover { transform: rotate(-0.6deg); }
.ch-time {
  align-self: flex-start;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: var(--mustard);
  padding: 2px 8px;
}
.ch-title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  padding-top: 6px;
}

/* ---------- archive ---------- */
.archive { margin-top: 72px; }
.archive-page { margin-top: 0; }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px;
}
.card { display: flex; flex-direction: column; gap: 10px; }
.card-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card-print { display: block; transition: transform 0.15s ease-out; }
.card:nth-child(odd) .card-print { transform: rotate(-0.8deg); }
.card:nth-child(even) .card-print { transform: rotate(0.7deg); }
.card-link:hover .card-print { transform: rotate(0deg) translateY(-3px); }
.card-date {
  font-family: var(--f-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.card-title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.12;
  text-transform: uppercase;
}
.card-sources {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--purple);
  text-decoration: none;
}
.card-sources:hover { text-decoration: underline; }
.more { font-family: var(--f-head); font-weight: 500; font-size: 0.85rem; margin-top: 28px; }

/* ---------- sources page ---------- */
.lede { max-width: 62ch; margin: 0 0 26px; }

.note-card {
  position: relative;
  max-width: 62ch;
  margin: 0 0 34px;
  padding: 18px 22px 18px 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--purple);
  transform: rotate(0.4deg);
}
.note-card p { margin: 0; font-size: 1rem; }
.note-card .note-label {
  font-family: var(--f-note);
  color: var(--purple);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 6px;
}

.src-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.search { flex: 1 1 320px; max-width: 560px; }
.search input {
  width: 100%;
  padding: 14px 16px;
  font: 400 1rem var(--f-body);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.src-count {
  margin: 0;
  font-family: var(--f-head);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; }
.chip {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 0.74rem;
  padding: 7px 12px;
  background: var(--newsprint);
  border: 1px solid var(--grey);
  text-decoration: none;
}
.chip:hover { background: var(--mustard); border-color: var(--mustard); }

.src-chapter { margin-bottom: 56px; scroll-margin-top: 20px; }
.src-chapter[hidden] { display: none; }
.src-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  align-items: start;
  gap: 18px;
}
.src {
  position: relative;
  padding: 20px 20px 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 20px;
  min-width: 0;
}
.src:target { outline: 3px solid var(--mustard); }
.src-id {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  background: var(--mustard);
  transform: rotate(-3deg);
}
.src-topic {
  margin: 12px 0 8px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.35;
}
.src-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.src-text a {
  color: var(--purple);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.src-text a::after { content: " ↗"; font-size: 0.8em; }
.src-also {
  margin: 12px 0 0;
  font-family: var(--f-head);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--grey);
}
.src-also a { color: var(--ink-soft); }
.src[hidden] { display: none; }
.src-empty { font-family: var(--f-note); color: var(--purple); font-size: 2rem; }

.back { margin-top: 20px; }

.lost { min-height: 50vh; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--newsprint);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 24px;
}
.footer-name {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
}
.footer-tag { margin: 4px 0 0; font-size: 0.98rem; color: var(--grey); }
.footer-note {
  margin: 0;
  max-width: 30ch;
  font-family: var(--f-note);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--mustard);
  transform: rotate(-2deg);
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .player::before { left: -14px; width: 80px; }
  .player::after { right: -14px; width: 80px; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .src-list { grid-template-columns: 1fr; }
  .play { width: 64px; height: 64px; }
  .play::after { left: 26px; top: 19px; border-width: 13px 0 13px 21px; }
  .btn { padding: 14px 18px; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
