/* ============================================================
   Panopanoul styles
   To change colors or fonts, edit the values in :root below.
   ============================================================ */

:root {
  --paper: #f5efe3;        /* page background (newsprint) */
  --paper-deep: #ebe2d0;   /* placeholder boxes */
  --ink: #1b1916;          /* main text */
  --ink-soft: #5b544a;     /* dates, captions */
  --rule: #1b1916;         /* lines between columns */
  --red: #c4372b;          /* Journal + main accent */
  --teal: #19707a;         /* Watch */
  --mustard: #d99a1e;      /* Listen */
  --green: #2e6b3a;        /* Sports */

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --width: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  /* a faint paper grain */
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 4px 4px;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

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

/* ---------- Masthead ---------- */

.masthead { padding-top: 14px; }

.ears {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.ear.center { text-align: center; }
.ear.right { text-align: right; }
.ear a { text-decoration: none; }
.ear a:hover { color: var(--red); }

.nameplate {
  position: relative;
  text-align: center;
  padding: 18px 0 4px;
}
.nameplate .title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 132px);
  line-height: .95;
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-block;
}
.nameplate .title:hover { color: var(--red); }

/* The red "Est." rubber stamp beside the name */
.stamp {
  position: absolute;
  right: 2%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin-top: -36px;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: rotate(-14deg);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--red);
  opacity: .9;
}
.stamp span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 3px; }

.motto {
  text-align: center;
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.motto::before, .motto::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

.sections {
  margin-top: 12px;
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 28px;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sections a { text-decoration: none; padding: 2px 0; border-bottom: 3px solid transparent; }
.sections a:hover { border-bottom-color: var(--ink); }
.sections a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }

main.wrap { padding-top: 28px; padding-bottom: 56px; }

/* ---------- Shared bits ---------- */

.kicker {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--red);
}
.kicker a { text-decoration: none; }
.kicker.watch { color: var(--teal); }
.kicker.listen { color: #a8720c; }
.kicker.sports { color: var(--green); }

.meta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .03em;
  margin: 8px 0 0;
}

.deck { color: #3a352e; margin: 6px 0 0; }

.card-link { text-decoration: none; display: block; color: inherit; }
.card-link:hover h2, .card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.empty { font-style: italic; color: var(--ink-soft); margin: 0; }

/* ---------- Pictures and placeholders ---------- */

.art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); }

.art.placeholder { display: flex; align-items: center; justify-content: center; }
.art.placeholder.journal {
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(196,55,43,.08) 10px 11px),
    var(--paper-deep);
}
.art.placeholder.watch { background: var(--teal); }
.art.placeholder.listen { background: var(--mustard); }

.glyph {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--red);
}

.play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  position: relative;
  display: inline-block;
}
.play::after {
  content: "";
  position: absolute;
  left: 25px; top: 19px;
  border-style: solid;
  border-width: 13px 0 13px 20px;
  border-color: transparent transparent transparent var(--ink);
}
.art.video .play { position: absolute; left: 50%; top: 50%; margin: -32px 0 0 -32px; }

.wave { display: inline-flex; align-items: center; gap: 5px; height: 60px; }
.wave i { display: block; width: 7px; background: var(--ink); border-radius: 4px; }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 70%; } .wave i:nth-child(3) { height: 100%; }
.wave i:nth-child(4) { height: 55%; } .wave i:nth-child(5) { height: 85%; } .wave i:nth-child(6) { height: 40%; } .wave i:nth-child(7) { height: 65%; }

/* ---------- Front page ---------- */

.above-fold {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0 32px;
  padding-bottom: 28px;
  border-bottom: 4px double var(--rule);
}

.lead h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 4px 0 10px;
}
.lead .deck { font-size: 21px; line-height: 1.45; }
.lead .art { margin-bottom: 16px; }
.lead .art.placeholder .glyph { font-size: 180px; }

.in-brief { border-left: 1px solid var(--rule); padding-left: 28px; }
.rail-title, .band-head h2 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0;
}
.rail-title { border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.in-brief ol { list-style: none; margin: 0; padding: 0; counter-reset: brief; }
.in-brief li { border-bottom: 1px solid rgba(27,25,22,.25); counter-increment: brief; }
.in-brief li a { display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; text-decoration: none; }
.in-brief li a::before {
  content: counter(brief);
  grid-row: span 3;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--red);
}
.in-brief .kicker { font-size: 10px; margin: 0 0 3px; display: block; }
.in-brief strong { font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.2; }
.in-brief li a:hover strong { text-decoration: underline; }
.in-brief .meta { margin-top: 4px; }

.band { padding-top: 26px; }
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 3px solid var(--red);
  padding-top: 8px;
  margin-bottom: 18px;
}
.band-head.watch { border-top-color: var(--teal); }
.band-head.listen { border-top-color: var(--mustard); }
.band-head.sports { border-top-color: var(--green); }
.band-head a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.band-head a:hover { text-decoration: underline; }

.grid { display: grid; gap: 28px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.three > .card + .card { position: relative; }
.grid.three > .card + .card::before {
  content: "";
  position: absolute;
  left: -14px; top: 0; bottom: 0;
  border-left: 1px solid rgba(27,25,22,.3);
}
.grid > .empty { grid-column: 1 / -1; }

.card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}
.card .deck { font-size: 16.5px; line-height: 1.5; }

.split.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }

.list .card.row { border-bottom: 1px solid rgba(27,25,22,.25); padding: 14px 0; }
.list .card.row:first-child { padding-top: 0; }
.list .card.row h3 { font-size: 21px; }
.list .card.row .deck { font-size: 15.5px; }

.sports-desk {
  background: rgba(46,107,58,.06);
  padding: 26px 22px 6px;
  margin-top: 26px;
  outline: 1px solid rgba(46,107,58,.35);
  outline-offset: -1px;
}
.sports-desk .band-head { margin-top: -26px; margin-left: -22px; margin-right: -22px; padding: 8px 22px 0; }

/* ---------- Section pages ---------- */

.page-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.page-head h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  margin: 4px 0 10px;
}
.page-head .deck { font-style: italic; font-size: 20px; }
.page-head::after { content: "✶ ✶ ✶"; display: block; margin-top: 18px; letter-spacing: .6em; color: var(--red); }
.page-head.watch::after { color: var(--teal); }
.page-head.listen::after { color: var(--mustard); }
.page-head.sports::after { color: var(--green); }
.archive { row-gap: 40px; }

/* ---------- Story pages ---------- */

.story { max-width: 720px; margin: 0 auto; }
.story-head { text-align: center; padding: 8px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.story-head h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 6px 0 12px;
}
.story-head .deck { font-size: 21px; font-style: italic; line-height: 1.45; }

.media { margin: 0 0 30px; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 8px 8px 0 var(--teal);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.soon { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--teal); }
.video-embed.soon p, .audio-player.soon p { font-family: var(--font-ui); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 10px 0 0; }
.video-embed.soon p { color: var(--paper); }

.audio-player {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--mustard);
  border: 1px solid var(--rule);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px;
}
.audio-player > div { flex: 1; }
.audio-player .kicker { color: var(--ink); }
.audio-player audio { width: 100%; }
.audio-player .cover { width: 110px; height: 110px; object-fit: cover; border: 1px solid var(--ink); }
.audio-player.soon { flex-direction: column; gap: 0; }

.prose { font-size: 19px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { margin: 1.4em auto; border: 1px solid var(--rule); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 5px solid var(--red);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 25px;
  line-height: 1.4;
}
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose hr { border: 0; text-align: center; margin: 2em 0; }
.prose hr::after { content: "✶ ✶ ✶"; letter-spacing: .6em; color: var(--red); }
.prose code { font-size: .85em; background: var(--paper-deep); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--ink); color: var(--paper); padding: 16px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.prose iframe { max-width: 100%; border: 0; }

.dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 4.6em;
  line-height: .82;
  padding: 6px 10px 0 0;
  color: var(--red);
}

.tags { font-family: var(--font-ui); font-size: 13px; font-weight: 700; margin-top: 28px; }
.tags span, .tags a { display: inline-block; border: 1px solid var(--ink); padding: 3px 10px; margin: 0 6px 6px 0; text-decoration: none; }
.tags a { background: var(--green); color: var(--paper); border-color: var(--green); }

.end-mark { text-align: center; font-size: 26px; color: var(--red); margin: 24px 0 0; }
.more { margin-top: 30px; }

/* ---------- Footer ---------- */

.colophon { border-top: 4px double var(--rule); padding: 30px 0 40px; text-align: center; }
.footer-title { font-family: var(--font-head); font-weight: 900; font-size: 34px; text-decoration: none; }
.colophon p { margin: 6px 0 0; font-style: italic; }
.colophon .small { font-family: var(--font-ui); font-style: normal; font-size: 12px; color: var(--ink-soft); }

/* ---------- Tablets ---------- */

@media (max-width: 900px) {
  .above-fold { grid-template-columns: 1fr; }
  .in-brief { border-left: 0; padding-left: 0; margin-top: 28px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .grid.three > .card:nth-child(odd)::before { display: none; }
  .split.two-col { grid-template-columns: 1fr; }
  .stamp { width: 66px; height: 66px; font-size: 15px; margin-top: -28px; right: 0; }
}

/* ---------- Phones ---------- */

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, main { padding-left: 16px; padding-right: 16px; }
  .ears { grid-template-columns: 1fr 1fr; }
  .ear.center { display: none; }
  .stamp { position: static; display: inline-flex; width: 58px; height: 58px; font-size: 13px; margin: 8px 0 0; vertical-align: middle; }
  .stamp span { font-size: 9px; }
  .motto { font-size: 16px; }
  .sections { gap: 4px 16px; font-size: 12px; letter-spacing: .1em; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.three > .card + .card::before { display: none; }
  .grid.three > .card + .card { border-top: 1px solid rgba(27,25,22,.3); padding-top: 22px; }
  .prose { font-size: 18px; }
  .audio-player { flex-direction: column; align-items: stretch; text-align: left; }
  .audio-player .wave { align-self: center; }
}
