@font-face { font-family: 'Archivo Black'; src: url(fonts/ArchivoBlack-Regular.ttf); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(fonts/BarlowCondensed-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(fonts/BarlowCondensed-SemiBold.ttf); font-weight: 600; font-display: swap; }

:root {
  --ink: #f4f1ea;       /* paper white */
  --ground: #0b0b0f;    /* near-black */
  --red: #ce1141;       /* raptors red */
  --red-bright: #f0426e; /* raptors-red family, lightened for AA contrast on small text (5.34:1 on --ground) */
  --gold: #b4975a;      /* championship gold */
  --muted: #8d8a82;
  --card: #14141a;
  --rule: #26262e;
  --display: 'Archivo Black', system-ui, sans-serif;
  --body: 'Barlow Condensed', system-ui, sans-serif;
  --max: 720px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1.25rem; line-height: 1.45; }

/* hero */
#hero { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 1.5rem 3rem; max-width: 60rem; margin: 0 auto; }
.kicker { text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-size: .85rem; }
#hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 9vw, 7rem); line-height: .95; text-transform: uppercase; margin: 1rem 0; }
#hero h1 .line { display: block; }
#hero .gold { color: var(--gold); } #hero .red { color: var(--red); }
#hero-dek { max-width: var(--max); color: var(--ink); font-size: 1.35rem; }
#era-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
#era-nav a { color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .9rem; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
#era-nav a:hover { color: var(--ink); border-color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* sticky tally */
#tally { position: fixed; top: 1rem; right: 1rem; z-index: 5; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--red); padding: .5rem .9rem; opacity: 0; transition: opacity .3s; }
#tally.on { opacity: 1; }
.tally-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
#tally-amount { font-family: var(--display); font-size: 1.4rem; color: var(--red); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* timeline */
#timeline { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem 4rem; }
.era { padding-top: 4rem; }
.era > h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 3rem); border-bottom: 3px solid var(--rule); padding-bottom: .4rem; }
@media (min-width: 701px) {
  .era > h2 { margin-right: 14rem; }
}
.era[data-era="north"] > h2 { border-color: var(--gold); }
.era-years { color: var(--muted); letter-spacing: .15em; }
.event { position: relative; border-left: 2px solid var(--rule); margin: 1.6rem 0 0 .4rem; padding: 0 0 .4rem 1.6rem; max-width: var(--max); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.event.seen { opacity: 1; transform: none; }
.event::before { content: ''; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.event[data-kind="allegation"]::before { background: var(--red); }
.event[data-kind="denial"]::before { background: var(--ink); }
.event time { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-size: .9rem; }
.event h3 { font-family: var(--display); font-size: 1.5rem; margin: .2rem 0 .3rem; }
.badge { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; padding: .1rem .5rem; border: 1px solid; border-radius: 3px; margin-left: .5rem; vertical-align: middle; }
.badge.allegation { color: var(--red-bright); border-color: var(--red-bright); }
.badge.denial { color: var(--ink); border-color: var(--ink); }
.srcs { margin-top: .4rem; font-size: .95rem; }
.srcs a { color: var(--muted); margin-right: .8rem; }
.srcs a:hover { color: var(--ink); }

/* receipts */
#receipts { max-width: 60rem; margin: 0 auto; padding: 4rem 1.5rem; border-top: 3px solid var(--rule); }
#receipts h2 { font-family: var(--display); text-transform: uppercase; font-size: 2rem; }
#episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ep { display: block; background: var(--card); border: 1px solid var(--rule); padding: 1rem; color: var(--ink); text-decoration: none; }
.ep:hover { border-color: var(--red); }
.ep .n { font-family: var(--display); color: var(--red); }
.ep p { font-size: 1.05rem; margin-top: .3rem; }

/* footer */
#colophon { max-width: 60rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; color: var(--muted); border-top: 3px solid var(--rule); }
#colophon h2 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: 1.3rem; }
#source-list { margin-top: 1rem; padding-left: 1.2rem; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .event { opacity: 1; transform: none; transition: none; }
  #tally { transition: none; }
}
@media (max-width: 700px) {
  #tally { top: auto; bottom: 0; right: 0; left: 0; border-left: none; border-top: 3px solid var(--red); display: flex; justify-content: space-between; align-items: baseline; }
}
