/* Tomorrow Gazette Archive: the studio look (A-T9).
   Palette, type and contrast rules: docs/style-guide.md. The colours are the
   show's locked palette. Brass and coral are decoration only on cream; text
   uses their -ink versions. Light only: there is no dark theme. */

@font-face { font-family: "Limelight"; src: url("../fonts/limelight.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Courier Prime"; font-weight: 700; src: url("../fonts/courier-prime-bold.woff2") format("woff2"); font-display: swap; }

:root {
  --teal: #1F6F78;
  --teal-deep: #1A5A62;
  --coral: #E4572E;
  --coral-ink: #B23A1A;
  --cream: #F3E9D2;
  --cream-light: #FAF4E6;
  --brass: #C9A227;
  --brass-ink: #7A5C00;
  --navy: #14213D;
  --charcoal: #22201E;
  --rule: #14213D;
  --wood: #6B3A1E;

  --font-display: "Limelight", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-stamp: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-type: "Courier Prime", "Courier New", monospace;
  --font-body: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --measure: 44rem;
  --wide: 66rem;
  --shadow: 0 .35rem 0 var(--navy);
}

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

body {
  margin: 0;
  color: var(--navy);
  font: 1.0625rem/1.65 var(--font-body);
  /* Newsprint: cream with a faint warm vignette. */
  background:
    radial-gradient(ellipse at 50% -10%, #fbf3df 0, rgba(251, 243, 223, 0) 60%),
    var(--cream);
}

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

a { color: var(--teal); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: .02em; }
h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 3rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 4px double var(--brass);
}
h2::before { content: "\2726\00a0"; color: var(--coral-ink); font-size: .7em; vertical-align: .15em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; background: var(--cream-light); padding: .5rem 1rem; }

/* Labels: the masthead tagline's typewriter face. */
.kicker, .case-meta, .cast-role, .dateline, .truth-label, .tagline, .on-air, .button, .site-nav, .masthead-edition, .studio-window figcaption {
  font-family: var(--font-type);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Masthead: the show's nameplate between double newspaper rules. */
.site-header { max-width: var(--wide); margin: 0 auto; padding: .75rem 1rem 0; text-align: center; }
.dateline {
  margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .3em; color: var(--navy);
}
.masthead-rule { border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); height: 6px; }
.masthead { display: inline-block; padding: 1rem 0 .4rem; color: var(--navy); text-decoration: none; }
.masthead-logo { width: min(26rem, 85vw); margin: 0 auto; }
.masthead-edition {
  display: inline-block; margin-top: .5rem; padding: 0 .75rem;
  font-size: .78rem; letter-spacing: .3em; color: var(--teal);
  border-left: 2px solid var(--brass); border-right: 2px solid var(--brass);
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2rem; padding: .4rem 0; font-size: .88rem; }
.site-nav a { color: var(--navy); text-decoration: none; padding: .45rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px var(--coral); }

main, .site-footer { max-width: var(--measure); margin: 0 auto; padding: 1rem; }
main.wide, .site-footer { max-width: var(--wide); }
.prose { max-width: var(--measure); margin: 0 auto; }
.section-intro { margin-top: -.5rem; }

/* Buttons: brass-framed, like the studio's chrome trim. */
.button {
  display: inline-block; padding: .7rem 1.1rem; font-size: .85rem;
  color: var(--cream-light); background: var(--teal-deep); text-decoration: none;
  border: 2px solid var(--navy); border-radius: 999px; box-shadow: 0 3px 0 var(--navy);
}
.button:hover { color: var(--cream-light); background: var(--navy); }
.button-quiet { color: var(--navy); background: var(--cream-light); }
.button-quiet:hover { color: var(--cream-light); }

/* Home hero: the studio through a brass-framed window. */
.hero { position: relative; margin: 1.5rem 0 1rem; }
.hero::before {
  /* The masthead's brass sunburst, faint, behind the window. */
  content: ""; position: absolute; z-index: -1; left: 50%; top: -6rem;
  width: min(60rem, 100%); aspect-ratio: 1; transform: translateX(-50%);
  background: url("../img/sunburst-900.png") center / contain no-repeat; opacity: .28;
}
.studio-window { position: relative; margin: 0; border: 6px solid var(--brass); border-radius: 1.5rem 1.5rem .5rem .5rem; outline: 2px solid var(--navy); outline-offset: 0; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.studio-window img { width: 100%; aspect-ratio: 1600 / 905; object-fit: cover; }
.studio-window figcaption {
  position: absolute; right: 0; top: 0; max-width: 100%;
  padding: .3rem .7rem; font-size: .68rem; letter-spacing: .06em; text-transform: none;
  color: var(--cream-light); background: rgba(20, 33, 61, .88); border-bottom-left-radius: .4rem;
}
.on-air {
  position: absolute; top: 1rem; left: 1rem; padding: .25rem .6rem; font-size: .8rem;
  color: var(--cream-light); background: var(--coral-ink); border: 2px solid var(--cream-light);
  border-radius: .3rem; box-shadow: 0 0 0 2px var(--coral-ink), 0 0 18px rgba(228, 87, 46, .7);
}
.hero-copy {
  position: relative; max-width: var(--measure); margin: -3.5rem auto 0; padding: 1.5rem 1.75rem 1.25rem;
  text-align: center; background: var(--cream-light); border: 2px solid var(--navy); box-shadow: var(--shadow);
}
.hero-copy::before, .hero-copy::after { content: ""; position: absolute; left: .5rem; right: .5rem; border-top: 1px solid var(--brass); }
.hero-copy::before { top: .4rem; } .hero-copy::after { bottom: .4rem; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin: .2rem 0 .75rem; }
.kicker { margin: 0; font-size: .8rem; letter-spacing: .3em; color: var(--coral-ink); }
.lede { font-size: 1.12rem; margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0; }

/* Verdict stamps: the show's on-screen rubber stamps (Anton, double inked
   border, tilted). Ink colours all pass AA on cream-light (style guide). */
.verdict-stamp {
  display: inline-block; margin: .5rem 0; padding: .3rem .75rem .25rem;
  font-family: var(--font-stamp); font-size: 1.25rem; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stamp); background: var(--cream-light);
  border: 3px solid var(--stamp); border-radius: .35rem;
  box-shadow: inset 0 0 0 2px var(--cream-light), inset 0 0 0 4px var(--stamp);
  transform: rotate(-4deg);
}
.verdict-nailed-it { --stamp: var(--teal); }
.verdict-partly-right { --stamp: var(--brass-ink); }
.verdict-not-yet { --stamp: var(--navy); }
.verdict-completely-bonkers { --stamp: var(--coral-ink); }
.verdict-stamp-large { font-size: clamp(1.6rem, 6vw, 2.4rem); padding: .4rem 1rem .3rem; border-width: 4px; transform: rotate(-6deg); }

.verdict-key ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.verdict-key li { background: var(--cream-light); padding: .75rem 1rem 1rem; border: 2px solid var(--navy); border-radius: .4rem; }
.verdict-key li p:last-child { margin: .4rem 0 0; }

/* Episode cards: the episode's still, stamped. */
.episode-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.episode-card { position: relative; display: flex; flex-direction: column; background: var(--cream-light); border: 2px solid var(--navy); border-radius: .5rem; overflow: hidden; box-shadow: var(--shadow); }
.episode-card:hover { transform: translateY(-2px); }
.episode-card-art { position: relative; border-bottom: 4px solid var(--brass); background: var(--teal-deep); }
.episode-card-art img, .episode-card-blank { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.episode-card-art .verdict-stamp { position: absolute; right: .75rem; bottom: .25rem; }
.episode-card-body { padding: .9rem 1rem 1rem; }
.episode-card-body p { margin: .4rem 0 0; }
.episode-card-link { color: var(--navy); text-decoration: none; }
/* The whole card is the link's tap area. */
.episode-card-link::after { content: ""; position: absolute; inset: 0; }
.episode-card-link:hover .episode-card-title, .episode-card-link:focus-visible .episode-card-title { text-decoration: underline; }
.episode-card-title { display: block; margin-top: .2rem; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; }
.case-meta { font-size: .78rem; color: var(--teal); }
/* Home page: the newest episode leads, like a front-page story. */
@media (min-width: 48rem) {
  .episode-list-lead > .episode-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .episode-list-lead > .episode-card:first-child .episode-card-art { flex: 0 0 55%; border-bottom: 0; border-right: 4px solid var(--brass); }
  .episode-list-lead > .episode-card:first-child .episode-card-art img { height: 100%; }
  .episode-list-lead > .episode-card:first-child .episode-card-body { align-self: center; padding: 1.5rem; }
  .episode-list-lead > .episode-card:first-child .episode-card-title { font-size: 2rem; }
  .episode-list-lead > .episode-card:first-child .verdict-stamp { font-size: 1.6rem; }
}

/* Meet the studio */
.studio-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.studio-card { background: var(--cream-light); border: 2px solid var(--navy); border-radius: .5rem; padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.studio-card h3 { margin: .75rem 0 0; font-size: 1.5rem; }
.studio-card p:last-child { margin-bottom: 0; text-align: left; }
.cast-role { margin: .15rem 0 .6rem; font-size: .75rem; color: var(--coral-ink); }
/* Portholes: round brass-rimmed frames, like the studio window. */
.porthole {
  width: 9rem; aspect-ratio: 1; margin: 0 auto; flex: none; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--brass); outline: 2px solid var(--navy); background: var(--teal-deep);
}
.porthole img { width: 100%; height: 100%; object-fit: cover; }
.porthole-small { width: 4.5rem; border-width: 3px; }
.studio .porthole:has(img[width="800"]) { width: min(14rem, 70%); }
.set-window { border: 5px solid var(--brass); outline: 2px solid var(--navy); border-radius: 1rem 1rem .3rem .3rem; overflow: hidden; }
.set-window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.studio-card-set .set-window { margin-top: .5rem; }
.fiction-tag, .fiction-note { font-size: .95rem; }
.fiction-tag { margin-top: 1rem; }
.fiction-note { margin-top: 2.5rem; padding: .75rem 1rem; border-left: 6px solid var(--brass); background: var(--cream-light); }

.empty-state { display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem; border: 2px dashed var(--navy); background: var(--cream-light); }
.empty-state .porthole { margin: 0; }

/* Episode page */
.case-still { position: relative; margin: .5rem 0 1.25rem; border: 6px solid var(--brass); outline: 2px solid var(--navy); border-radius: 1rem 1rem .4rem .4rem; overflow: hidden; box-shadow: var(--shadow); background: var(--teal-deep); }
.case-still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case-still .verdict-stamp { position: absolute; right: 1rem; bottom: .5rem; margin: 0; box-shadow: inset 0 0 0 2px var(--cream-light), inset 0 0 0 4px var(--stamp), 0 4px 14px rgba(20, 33, 61, .35); }
.case-header h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: .25rem 0 .5rem; }
.case-summary { font-size: 1.15rem; }
.speaker { display: flex; gap: .9rem; align-items: center; margin-bottom: .75rem; }
.speaker .porthole { margin: 0; }
.speaker p { margin: 0; }
.prediction { margin: 0; padding: 1rem 1.25rem; background: var(--cream-light); border-left: 6px solid var(--teal); border-radius: 0 .4rem .4rem 0; }
.prediction blockquote { margin: 0; font-size: 1.35rem; font-style: italic; }
.prediction figcaption { margin-top: .5rem; }
.cite { font-size: .85em; white-space: nowrap; }
/* Bigger tap target on phones without changing the line height. */
.cite a { display: inline-block; padding: .35em .3em; margin: -.35em -.1em; }
.facts li { margin-bottom: .5rem; }

.dot-verdict { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem; background: var(--cream-light); border: 2px solid var(--navy); border-radius: .5rem; box-shadow: var(--shadow); }
.dot-verdict .porthole { width: 7rem; margin: 0; }
.dot-verdict-body > :last-child { margin-bottom: 0; }
.truth-label { margin: 0 0 .25rem; font-size: .78rem; color: var(--teal); }

.sources ol { list-style: none; padding: 0; }
.sources li { padding: .4rem 0; border-bottom: 1px solid #d6c9a8; overflow-wrap: anywhere; }
.sources li:target { background: #fff3c4; }
.source-id { display: inline-block; min-width: 2.2rem; font-family: var(--font-type); font-weight: 700; }
.watch-links { display: flex; flex-wrap: wrap; gap: .75rem; }

.site-footer { border-top: 3px double var(--rule); font-size: .9rem; margin-top: 3rem; text-align: center; }
.tagline { margin: .5rem 0; font-size: .85rem; letter-spacing: .2em; color: var(--brass-ink); }

/* Living archive: the verdict history timeline (A-T10). */
.status-badge {
  display: inline-block; margin-right: .35rem; padding: .05rem .5rem; border-radius: 999px;
  font-family: var(--font-type); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-light); background: var(--teal-deep);
}
.status-closed { background: var(--navy); }
.card-status { font-size: .9rem; }
.history-status { margin-top: 0; }
.history-claim { font-family: var(--font-body); font-style: italic; font-size: 1.15rem; }
.timeline { list-style: none; margin: 1.25rem 0; padding: 0 0 0 1.5rem; border-left: 4px double var(--brass); }
.timeline-entry { position: relative; margin: 0 0 1.5rem; padding: .9rem 1rem; background: var(--cream-light); border: 2px solid var(--navy); border-radius: .4rem; }
.timeline-entry::before {
  content: ""; position: absolute; left: calc(-1.5rem - 11px); top: 1.1rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--coral); border: 3px solid var(--navy);
}
.timeline-entry:first-child::before { box-shadow: 0 0 0 4px rgba(228, 87, 46, .3); }
.timeline-entry p { margin: 0 0 .4rem; }
.timeline-entry p:last-child { margin: 0; }
.timeline-date { font-family: var(--font-type); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.mini-stamp {
  display: inline-block; padding: .1rem .5rem; font-family: var(--font-stamp); font-size: 1rem; letter-spacing: .06em;
  color: var(--stamp); background: var(--cream-light); border: 2px solid var(--stamp); border-radius: .25rem; transform: rotate(-2deg);
}
.timeline-sources { font-size: .92rem; overflow-wrap: anywhere; }
.history-help { font-size: .95rem; }
/* A-T11: falsifier, check result and next check. */
.falsifier { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.falsifier div { padding: .7rem .9rem; background: var(--cream-light); border: 2px dashed var(--navy); border-radius: .4rem; }
.falsifier dt { font-family: var(--font-type); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
.falsifier div + div dt { color: var(--coral-ink); }
.falsifier dd { margin: .3rem 0 0; font-size: .95rem; }
.next-check { font-size: .95rem; }
.check-result { display: inline-block; margin-left: .4rem; font-family: var(--font-type); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.check-inconclusive { padding: .05rem .4rem; border: 1px dashed var(--brass-ink); color: var(--brass-ink); }
@media (max-width: 40rem) { .falsifier { grid-template-columns: 1fr; } }

@media (max-width: 40rem) {
  .hero-copy { margin: 1rem 0 0; padding: 1.25rem 1rem 1rem; }
  .on-air { top: .6rem; left: .6rem; font-size: .7rem; }
  .studio-window figcaption { position: static; border-radius: 0; }
  .on-air { top: .5rem; }
  .dot-verdict { flex-direction: column; align-items: center; text-align: center; }
  .dot-verdict-body p:last-child { text-align: left; }
}
@media (max-width: 30rem) {
  .empty-state { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: .25rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .episode-card:hover { transform: none; }
}
