@font-face { font-family: Anton; src: url(fonts/anton.woff2) format("woff2"); font-display: swap; }
@font-face {
  font-family: "Barlow Condensed";
  src: url(fonts/barlow-condensed-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url(fonts/barlow-condensed-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #111;
  --muted: #5f5b55;
  --rule: #d8d6d0;
  --tint: #f4f2ee;
  --red: #e30613;
  --red-text: #c8050f;
  --yellow: #ffd200;
  --box: #fff1a8;
  --box-fg: #111;
  --focus: #1d4ed8;
  --head: Anton, "Helvetica Neue Condensed Black", Impact, sans-serif;
  --strap: "Barlow Condensed", "Helvetica Neue Condensed Bold", "Arial Narrow", sans-serif;
  --body: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --fg: #e9e6df;
    --muted: #a19d94;
    --rule: #3a3833;
    --tint: #1d1c1a;
    --red-text: #ff5a5f;
    --box: #2a2410;
    --box-fg: #e9e6df;
    --focus: #8ab4ff;
  }
}

@media (prefers-contrast: more) {
  :root { --muted: var(--fg); --rule: var(--muted); }
  a { text-decoration-thickness: 2px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.125rem/1.6 var(--body);
  overflow-wrap: break-word;
}

a { color: var(--red-text); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:target { scroll-margin-top: 3rem; }
img { max-width: 100%; height: auto; }

.page { max-width: 76rem; margin: 0 auto; padding: 1rem 1rem 3rem; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 2; padding: 0.5rem 1rem; background: var(--fg); color: var(--bg); font: 700 1rem/1.4 var(--strap); }
.skip:focus { top: 1rem; }

.masthead { border-bottom: 6px solid var(--fg); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.masthead a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
  padding: 0.5rem 0.9rem;
  background: var(--red);
  color: #fff;
  font: 2rem/1 var(--head);
  text-transform: uppercase;
  text-decoration: none;
}
.masthead span { font: 600 1.1rem/1.2 var(--strap); text-transform: none; letter-spacing: 0.02em; }
/* Guitar tab: the red runs the full width as a band of six white strings, in place of the rule.
   The riff sits on the G and D strings at its right-hand end. */
.masthead.strings {
  --g: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0;
  border-bottom: 0;
  background: repeating-linear-gradient(rgb(255 255 255 / 0.4) 0 1px, transparent 1px var(--g))
    center / 100% calc(var(--g) * 5 + 1px) no-repeat, var(--red);
}
.masthead.strings a { background: none; }
.masthead .riff { display: grid; grid: repeat(2, var(--g)) / auto-flow 1.75rem; margin-right: 1.5rem; }
.masthead .riff i {
  justify-self: center;
  padding: 0 0.15em;
  background: var(--red);
  color: #fff;
  font: 700 0.7rem/var(--g) var(--strap);
  font-style: normal;
}
@media (max-width: 40rem) { .masthead .riff { display: none; } }

h1, h2, h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 0.95; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin: 0 0 0.5rem; }
h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 6px solid var(--red);
}
h3 { font-size: 1.75rem; margin: 0 0 0.6rem; }

.dateline, time { color: var(--muted); font: 600 1.05rem/1.4 var(--strap); text-transform: uppercase; letter-spacing: 0.05em; }
.dateline { margin: 0 0 1.5rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li > :is(ul, ol) { margin: 0.5rem 0 0; }
li + li { margin-top: 0.5rem; }
li::marker { color: var(--red); }
/* An inline box in Anton is far taller than its line, so the highlight is sized to the line. */
mark { display: inline-block; line-height: 1; background: var(--yellow); color: #111; padding: 0 0.1em; }

blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }

.footnote-ref { font: 600 0.8rem/0 var(--strap); vertical-align: super; }
.footnote-ref a { padding: 0 0.15em; text-decoration: none; }

.footnotes { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.footnotes h2 { color: var(--fg); }
.footnotes-list { padding-left: 2.25rem; }
.footnotes li + li { margin-top: 0.5rem; }
.footnotes p { margin: 0; }
.footnote-backref { display: inline-block; min-width: 24px; line-height: 24px; text-align: center; text-decoration: none; }
.footnote-item:target { background: color-mix(in srgb, var(--yellow) 30%, transparent); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The episode's front: the cover, and what's inside. */
.edition > header { display: grid; gap: 0 2rem; }
.cover { margin: 0 0 1.5rem; }
.cover img { display: block; width: 100%; box-shadow: 0 2px 14px rgb(0 0 0 / 0.25); }
.edition > header nav h2 { font-size: 1.6rem; margin: 0 0 0.5rem; border-width: 4px; }
.edition > header ol { list-style: none; padding: 0; margin: 0; font: 400 1.5rem/1.1 var(--head); text-transform: uppercase; }
.edition > header li { margin: 0; border-bottom: 1px solid var(--rule); }
.edition > header li a { display: block; padding: 0.6rem 0; color: var(--fg); text-decoration: none; }
.edition > header li a:hover { color: var(--red-text); }
@media (min-width: 56rem) {
  .edition > header { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: start; }
  .edition > header h1, .edition > header .dateline { grid-column: 1 / -1; }
}

.standfirst { max-width: 42rem; font-size: 1.35rem; line-height: 1.5; }

/* Pictures: thumbnails cropped to the face, as the paper crops them. */
.pic, .hero { display: block; width: 100%; margin: 0 0 0.75rem; }
.face {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  border: 3px solid var(--fg);
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font: 2rem/1 var(--head);
  text-transform: uppercase;
  vertical-align: middle;
}
.face.big { float: left; width: min(35%, 10rem); margin: 0.25rem 1.5rem 1rem 0; border-width: 5px; font-size: 6rem; }
.face.huge { width: min(30vw, 9rem); border: 5px solid var(--yellow); background: var(--red); color: #fff; font-size: 4.5rem; }
.face.tiny { width: 2.25rem; border-width: 2px; font-size: 1.1rem; }

/* The column spans two grid tracks; a third track appears at 61rem (3 x 19rem + 2 gaps). */
.edition { container-type: inline-size; }
@container (min-width: 61rem) { .column { max-width: calc((100% - 4rem) * 2 / 3 + 2rem); } }

/* Sections that run as cards: the news, the beefs and the desk. */
.news, .beef, .desk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 0 2rem;
}
.news > :not(article), .beef > :not(article), .desk > :not(article) { grid-column: 1 / -1; }

.story, .beef > article, .desk > article { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--fg); }
.story h3 { font-size: 2rem; }
.story footer, .kicker {
  font: 700 0.95rem/1.25 var(--strap);
  color: var(--red-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kicker { margin: 0 0 0.35rem; }
.news > .story:first-of-type { grid-column: 1 / -1; }
.news > .story:first-of-type h3 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
@media (min-width: 56rem) {
  .news > .story:first-of-type { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-content: start; }
  .news > .story:first-of-type .pic { grid-row: span 5; }
}

.box { margin: 0 0 1.5rem; padding: 1.25rem 1.25rem 0.25rem; border-top: 6px solid var(--fg); background: var(--box); color: var(--box-fg); }
.box a { color: inherit; }

.beef > article { text-align: center; }
.beef > article > :is(p, ul) { text-align: left; }
.faces { display: flex; justify-content: center; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; font: 2rem/1 var(--head); color: var(--red-text); text-transform: uppercase; }
.beef .face { width: 5.5rem; }

.heat { display: flex; justify-content: center; align-items: center; gap: 0.5rem; font: 700 0.95rem/1 var(--strap); text-transform: uppercase; letter-spacing: 0.04em; }
.heat::after {
  content: "";
  width: 7.5rem;
  height: 1.5rem;
  background: linear-gradient(90deg, var(--red) calc(var(--heat) * 20%), var(--rule) 0);
  mask-image: url(flame.svg);
  mask-size: 1.5rem;
  mask-repeat: repeat-x;
}
.heat-1 { --heat: 1; } .heat-2 { --heat: 2; } .heat-3 { --heat: 3; } .heat-4 { --heat: 4; } .heat-5 { --heat: 5; }

.letters > article { max-width: 42rem; padding-top: 0.75rem; border-top: 3px solid var(--fg); margin-bottom: 1.75rem; }
.letters > article > h3 ~ * ~ p:last-child { color: var(--muted); font: 600 1rem/1.4 var(--strap); text-transform: uppercase; letter-spacing: 0.04em; }
.corrections ul { max-width: 42rem; padding-left: 1.25rem; }
.corrections li + li { margin-top: 0.5rem; }
.desk h3 { display: flex; align-items: center; gap: 0.75rem; }

/* The Big Story and the column read as one long piece. */
.spread > :not(h2, .splash), .splash > :is(p, ul, ol, blockquote) { max-width: 42rem; }
.splash h3 { font-size: clamp(2.75rem, 9vw, 6.5rem); }
.splash > p:first-of-type { font-size: 1.35rem; line-height: 1.5; }
.splash > p:first-of-type::first-letter { float: left; padding: 0.3rem 0.5rem 0 0; font: 5.2rem/0.78 var(--head); color: var(--red-text); }
.spread > article:not(.splash) { padding-top: 0.75rem; border-top: 6px solid var(--red); margin-top: 2rem; }
.spread > article:not(.splash) h3 { font-size: 2.5rem; }
.column > p:first-of-type { font-size: 1.35rem; line-height: 1.5; }

/* The back page: the Beef League. */
.season { font: 600 1.1rem/1.3 var(--strap); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.top { display: grid; gap: 0.5rem 2rem; margin: 0 0 1.5rem; padding: 1.25rem; background: #111; color: #fff; outline: 1px solid var(--rule); }
.top .faces { color: var(--yellow); font-size: 2.75rem; }
.top .kicker { color: var(--yellow); }
.top h3 { font-size: clamp(2rem, 5vw, 3.25rem); }
.top .heat { justify-content: flex-start; }
.top .heat::after { background: linear-gradient(90deg, var(--red) calc(var(--heat) * 20%), #555 0); }
.top p { margin: 0; font: 600 1.2rem/1.3 var(--strap); }
.top .ref { padding: 0.4rem 0.75rem; background: var(--yellow); color: #111; }
@media (min-width: 48rem) {
  .top { grid-template-columns: auto 1fr; align-items: center; }
  .top .faces { grid-row: span 6; }
}

.scroll { overflow-x: auto; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; font: 600 1.15rem/1.2 var(--strap); font-variant-numeric: tabular-nums; }
caption { padding: 0.5rem; background: var(--red); color: #fff; font: 700 1rem/1 var(--strap); text-align: left; text-transform: uppercase; letter-spacing: 0.06em; }
th, td { padding: 0.35rem 0.5rem; text-align: center; border-bottom: 1px solid var(--rule); white-space: nowrap; }
thead th { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
thead th:nth-child(3), tbody th { text-align: left; }
tbody th { font: 400 1.3rem/1 var(--head); text-transform: uppercase; }
tbody th .face { margin-right: 0.5rem; }
tbody tr:nth-child(odd) { background: var(--tint); }
tbody tr:first-child { background: var(--box); color: var(--box-fg); }
tbody td:first-child, tbody td:nth-child(5) { font: 400 1.4rem/1 var(--head); }
tbody td:nth-child(5) { color: var(--red-text); }
tbody tr:first-child td:nth-child(5) { color: inherit; }
small { padding: 0.1rem 0.35rem; background: var(--muted); color: var(--bg); font: 700 0.75rem/1 var(--strap); letter-spacing: 0.06em; vertical-align: middle; }
.up, .down, .same { font-size: 0.95rem; }
.up { color: #1b7f2a; }
.down { color: var(--red-text); }
.same { color: var(--muted); }
.up::before { content: "▲"; content: "▲" / ""; }
.down::before { content: "▼"; content: "▼" / ""; }
.same::before { content: "–"; content: "–" / ""; }
.new { padding: 0.1rem 0.35rem; background: var(--fg); color: var(--bg); font-size: 0.8rem; text-transform: uppercase; }
.form { text-align: left; }
.form span { display: inline-block; width: 1.6rem; line-height: 1.6rem; background: #6b6b6b; color: #fff; text-align: center; }
.form .h3 { background: #b4581c; }
.form .h4 { background: #c23d12; }
.form .h5 { background: var(--red); }
.note { color: var(--muted); font: 600 1rem/1.4 var(--strap); }
@media (prefers-color-scheme: dark) {
  .up { color: #6fd38a; }
}

/* The archive and the rest. */
/* Running stories. */
.thread { margin: 0.5rem 0 0; font: 600 0.95rem/1.4 var(--strap); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.story .thread { margin-bottom: 0.5rem; }
.stories { list-style: none; padding: 0; }
.stories li { margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.stories a { display: block; font: 400 2rem/1.05 var(--head); text-transform: uppercase; color: var(--fg); text-decoration: none; }
.stories a:hover { color: var(--red-text); }
.running { max-width: 42rem; }
.running > section { margin-top: 2rem; padding-top: 0.75rem; border-top: 3px solid var(--fg); }
.running h2 { font-size: 2rem; border: 0; margin: 0 0 0.6rem; padding: 0; }
.running h2 a { color: var(--fg); text-decoration: none; }
.running h2 a:hover { color: var(--red-text); }
.running .who { font: 600 1.05rem/1.4 var(--strap); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* Creators and receipts. */
.creators { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem 2rem; }
.creators li { margin: 0; }
.creators li a { display: flex; align-items: center; gap: 0.75rem; font: 400 1.5rem/1.1 var(--head); text-transform: uppercase; color: var(--fg); text-decoration: none; }
.creators li a:hover span { color: var(--red-text); }
.creators .note { display: block; margin-left: 4.5rem; }
.creator > header { margin-bottom: 1rem; }
.creator > header::after { content: ""; display: block; clear: both; }
.record { font: 600 1.1rem/1.3 var(--strap); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.week h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); border-width: 4px; }
.week h2 a { color: var(--fg); text-decoration: none; }
.week h2 a:hover { color: var(--red-text); }
.week h3 { font: 600 1.05rem/1.4 var(--strap); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1.25rem 0 0.4rem; }
.week h3 a { color: inherit; }
.receipts .at, .made .at { color: var(--muted); font-size: 0.95rem; }
.made .at { white-space: nowrap; }
.made li strong { color: var(--red-text); font: 700 0.9rem/1 var(--strap); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.receipt { max-width: 42rem; }
.receipt .said { font: 400 clamp(1.75rem, 5vw, 2.75rem)/1.25 var(--body); text-transform: none; text-wrap: balance; margin: 0 0 1rem; }
.receipt .who { font: 600 1.1rem/1.5 var(--strap); text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.receipt .watch { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 1.5rem 0; background: #000; }
/* The player's picture, a page of its own, until the reader presses play. */
.poster { margin: 0; background: #000; }
.poster a { position: absolute; inset: 0; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.7); }
.poster a:hover::before, .poster a:focus-visible::before { background: var(--red); }
.poster a::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -8px; border: 14px solid transparent;
  border-left: 24px solid #fff; border-right: 0; }
.receipt h2 { font-size: 1.6rem; border-width: 4px; margin-top: 2rem; }
.context { list-style: none; padding: 0; font-size: 1rem; color: var(--muted); }
.context li { margin: 0 0 0.35rem; padding-left: 0.75rem; border-left: 3px solid var(--rule); }
.context li.hit { color: var(--fg); border-color: var(--red); }
.context a { font: 600 0.9rem/1 var(--strap); text-decoration: none; margin-right: 0.35rem; }

/* The front page: this week's paper, then the back issues. */
.latest { max-width: 42rem; }
.latest h1 a { color: var(--fg); text-decoration: none; }
.latest h1 a:hover { color: var(--red-text); }
.latest .front img { display: block; width: 100%; max-width: 28rem; height: auto; margin: 1rem 0; box-shadow: 0 1px 6px rgb(0 0 0 / 0.2); }
.latest .inside { padding-left: 1.25rem; font: 600 1.15rem/1.35 var(--strap); }
.latest .inside li { margin: 0 0 0.35rem; }
.latest .read a { font: 400 1.5rem/1.1 var(--head); text-transform: uppercase; }
.archive { list-style: none; padding: 0; }
.archive li.fronted { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; }
.archive .front img { display: block; width: 100%; box-shadow: 0 1px 6px rgb(0 0 0 / 0.2); }
.archive li { padding: 1rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.archive a { display: block; color: var(--fg); font: 400 1.75rem/1.05 var(--head); text-transform: uppercase; text-decoration: none; }
.archive a:hover { color: var(--red-text); }

main > article:not(.edition), main > h1 ~ p { max-width: 42rem; }

.back { margin-top: 3rem; font: 700 1.1rem/1.4 var(--strap); text-transform: uppercase; letter-spacing: 0.04em; }

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  color: #111;
  font: 700 1rem/1.4 var(--strap);
  text-align: center;
}

body > .page > footer { margin-top: 3rem; padding-top: 1rem; border-top: 6px solid var(--fg); color: var(--muted); font: 600 1rem/1.5 var(--strap); }
