/* The Catch: the "paper" look from the shorts (warm paper, faint 60px grid,
   white evidence cards, highlight boxes) with the logo's Poppins and its night-sky
   header and footer. Poppins is self-hosted (static/fonts, OFL), latin subset. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url(/static/fonts/poppins-400i.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/poppins-800.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f5efe6;
  --grid: #ebe3d6;
  --ink: #1d1527;
  --text: #2a2233;
  --muted: #6f6676;
  --line: #e6ddd0;
  --soft: #f6f2ec;
  --card: #ffffff;
  --link: #1f5fd1;
  --green: #2e9e5b;
  --coral: #f0483e;
  --coral-tint: #fcdad4;
  --coral-ink: #b3261e;
  --accent: #f5a623;
  --accent-tint: #fdebc8;
  --accent-ink: #9a5b00;
  --black: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  /* the logo's night sky, coral and amber */
  --night: #0e1027;
  --night-glow: #311635;
  --logo-coral: #fe4c4a;
  --logo-amber: #feaa23;
  --mono: Consolas, ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(29, 21, 39, .04), 0 14px 32px -16px rgba(29, 21, 39, .22);
}

.acc-amber { --accent: #f5a623; --accent-tint: #fdebc8; --accent-ink: #9a5b00; }
.acc-teal { --accent: #2e9e5b; --accent-tint: #d6f0df; --accent-ink: #1d6b3d; }
.acc-coral { --accent: #f0483e; --accent-tint: #fcdad4; --accent-ink: #b3261e; }
.acc-violet { --accent: #7c5cff; --accent-tint: #e6dfff; --accent-ink: #4f36b8; }
.acc-blue { --accent: #2f6bff; --accent-tint: #dbe6ff; --accent-ink: #1f45b0; }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center -1px;
  color: var(--text);
  font: 16.5px/1.65 var(--sans);
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

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

/* ---------------------------------------------------------------- header */

.top {
  position: sticky; top: 0; z-index: 10;
  background: radial-gradient(90% 260% at 50% 50%, var(--night-glow) 0%, var(--night) 75%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.mark { width: 36px; height: 36px; flex: none; }
.word { font: 800 25px/1 var(--black); letter-spacing: -.015em; color: #fff; white-space: nowrap; }
.word b { font-weight: inherit; color: var(--logo-amber); }
.top nav { display: flex; gap: 4px; }
.top nav a {
  color: #ece7f3; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 7px 13px; border-radius: 999px;
}
.top nav a:hover { background: rgba(255, 255, 255, .1); }
.top nav a.on { background: var(--logo-amber); color: var(--night); }

/* ---------------------------------------------------------------- shared bits */

.labelrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lab, .labelrow .lab {
  font: 600 12.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); margin: 0;
}
.labelrow .lab::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 1px;
}
.pill {
  font: 600 12.5px/1 var(--mono); color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px 7px 10px; white-space: nowrap;
}
.pill::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; vertical-align: 1px;
}

.head {
  font: 800 clamp(30px, 4.6vw, 50px)/1.12 var(--black);
  letter-spacing: -.015em; color: var(--ink); margin: 18px 0 10px; text-wrap: balance;
}
.head.big { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.2; }
mark, .head mark {
  color: inherit; background: var(--accent-tint);
  border: 3px solid var(--accent); border-radius: 12px;
  padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.head.big mark { border-width: 4px; border-radius: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font: 600 14px/1 var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
}
.btn:hover { border-color: var(--ink); }
.btn.ghost { background: transparent; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); font: 12px/1.3 var(--mono); color: var(--muted);
}
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; flex: none; }
.bar i:nth-child(2) { background: #febc2e; }
.bar i:nth-child(3) { background: #28c840; }
.bar span { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; }
.chip {
  font: 700 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 999px;
  background: var(--coral-tint); color: var(--coral-ink); white-space: nowrap;
}
.chip.ok { background: #d6f0df; color: #1d6b3d; }
.chip.ok::before { content: "● "; }

/* ---------------------------------------------------------------- hero, sections, tiles */

.hero { padding: 48px 0 28px; }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 62ch; color: var(--text); margin: 18px 0 0; }

.herogrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: center; }
.homehero .head.big { font-size: clamp(36px, 4.6vw, 58px); }
.homehero mark { white-space: nowrap; }
.latest .in { padding: 6px 0; }
.lc { display: grid; gap: 3px; padding: 12px 18px; color: var(--ink); text-decoration: none; }
.lc + .lc { border-top: 1px solid var(--line); }
.lc:hover { background: var(--soft); }
.lch { font: 600 11.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--muted); }
.lch::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; vertical-align: 1px;
}
.lclaim { font: 800 18px/1.25 var(--black); }
.lcatch { font-size: 14.5px; color: var(--coral-ink); }
.lcatch b { font-weight: 700; }
.follow.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.chan { margin-top: 36px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sechead h2 { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--black); color: var(--ink); margin: 0; }
.sechead h2 a { color: inherit; text-decoration: none; }
.sechead h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.sechead > a { font-weight: 600; white-space: nowrap; }
.count {
  font: 600 13px/1 var(--mono); color: var(--accent-ink); background: var(--accent-tint);
  border-radius: 999px; padding: 5px 10px; vertical-align: 6px; margin-left: 6px;
}
.chan .about { margin: 6px 0 18px; color: var(--muted); max-width: 70ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
.tile { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; min-width: 0; }
.tile .pic {
  display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--soft); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:hover .pic { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 18px 36px -16px rgba(29, 21, 39, .35); }
.tile .meta { font: 600 11.5px/1.3 var(--mono); letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
.tile .t {
  font-weight: 700; font-size: 15.5px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tile:hover .t { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- post */

.post { padding-top: 36px; }
.post .head { margin-top: 16px; max-width: 26ch; font-size: clamp(30px, 4.4vw, 48px); }
.catchline { font: 800 clamp(20px, 2.6vw, 28px)/1.3 var(--black); color: var(--ink); margin: 6px 0 0; }
.catchline mark { background: var(--coral-tint); border-color: var(--coral); border-radius: 10px; }
.dek { font-size: clamp(17px, 1.9vw, 20px); max-width: 64ch; margin: 18px 0 0; }

.postgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; margin-top: 34px; align-items: start; }
.side { position: sticky; top: 88px; display: grid; gap: 18px; }
.player { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade { all: unset; display: block; position: absolute; inset: 0; cursor: pointer; }
.facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facade:focus-visible { outline: 4px solid var(--accent); outline-offset: -4px; }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(29, 21, 39, .82); box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  transition: transform .15s ease, background .15s ease;
}
.play::after {
  content: ""; position: absolute; left: 30px; top: 23px;
  border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff;
}
.facade:hover .play { transform: scale(1.08); background: var(--coral); }
.wmeta { margin-top: 12px; }
.wmeta .wt { font-weight: 700; color: var(--ink); margin: 2px 0 0; }
.wmeta .wl { margin: 2px 0 0; font-size: 15px; }
.follow { display: flex; flex-wrap: wrap; gap: 8px; }
.side .follow .lab { width: 100%; }

.doc .in { padding: clamp(20px, 4vw, 44px); }
.prose { font-size: 18px; line-height: 1.7; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent-ink); }
.prose h2 {
  font: 800 clamp(23px, 2.6vw, 28px)/1.25 var(--black); color: var(--ink); letter-spacing: -.01em;
  margin: 1.8em 0 .55em;
}
.prose h3 { font: 800 20px/1.3 var(--sans); color: var(--ink); margin: 1.5em 0 .4em; }
.prose strong { color: var(--ink); }
.prose code {
  font: .86em/1.4 var(--mono); background: var(--soft); border: 1px solid var(--line);
  border-radius: 6px; padding: .1em .35em; overflow-wrap: anywhere;
}
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent);
  font-style: italic; color: var(--ink);
}
.prose blockquote p { margin: .3em 0; }

.short {
  display: grid; gap: 0; margin: 0 0 28px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--soft);
}
.short div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 16px; align-items: baseline; }
.short div + div { border-top: 1px solid var(--line); }
.short dt { font: 700 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.short dd { margin: 0; font: 800 18px/1.3 var(--black); color: var(--ink); }
.short div:nth-child(2) { background: #fff3f1; }
.short div:nth-child(2) dt { color: var(--coral-ink); }

.tablewrap { overflow-x: auto; margin: 1.2em 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; }
.prose th {
  font: 700 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  text-align: left; background: var(--soft); padding: 10px 14px;
}
.prose td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { font-weight: 600; color: var(--ink); }

.shot { margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.shot img { display: block; width: 100%; }
.shot .bar { background: var(--soft); }
.shot .bar span { text-align: left; }
.shot figcaption { font-size: 14.5px; line-height: 1.45; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }

.catchcard { margin: 1.8em 0; border-color: #f4c5bf; }
.catchcard .in { padding: 18px 20px 20px; }
.catchcard .ctitle { font: 800 20px/1.25 var(--black); color: var(--ink); text-transform: uppercase; margin: 0 0 12px; }
.catchcard .ctitle::before {
  content: "THE CATCH"; display: inline-block; font: 800 11px/1 var(--sans); letter-spacing: .05em;
  color: #fff; background: var(--coral); border-radius: 5px; padding: 5px 7px; margin-right: 10px; vertical-align: 4px;
}
.catchcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.catchcard li {
  position: relative; background: var(--soft); border-radius: 9px; padding: 9px 12px 9px 30px;
  font-size: 16.5px; line-height: 1.45; color: var(--ink); margin: 0;
}
.catchcard li::before {
  content: ""; position: absolute; left: 13px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
}
.catchcard li:last-child { background: var(--coral-tint); }

.trybox {
  margin: 1.8em 0; padding: 18px 20px; border-radius: 14px;
  background: var(--accent-tint); border: 2px solid var(--accent);
}
.trybox ul { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 10px; }
.trybox li { margin: 0; display: grid; gap: 2px; }
.trybox li a { font-weight: 700; }
.trybox .note { font-size: 15.5px; color: var(--text); }
.trybox .aff { font: 600 12.5px/1.4 var(--mono); color: var(--accent-ink); }
.trybox .fine, .fixes .fine { font-size: 14px; color: var(--muted); margin: 0; }

.sources { margin-top: 2.4em; padding-top: 1.4em; border-top: 2px dashed var(--line); font-size: 15px; line-height: 1.55; }
.sources ol { padding-left: 1.4em; margin: 10px 0 16px; }
.sources li { margin: .45em 0; overflow-wrap: anywhere; }
.sources > p:not(.lab) { color: var(--muted); font-size: 14.5px; margin: .6em 0; }
.fixes { margin-top: 1.4em; font-size: 15px; }

.more { margin-top: 56px; }
.more .grid { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.progress {
  position: fixed; left: 0; bottom: 0; height: 5px; width: 100%; z-index: 30;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }

/* about */
.chanlist { padding-left: 1.2em; }

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: 80px; padding: 44px 0 56px; font-size: 15px; color: #cfc8da;
  background: radial-gradient(80% 160% at 50% 0%, var(--night-glow) 0%, var(--night) 70%);
}
.foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.foot a:hover { text-decoration-color: var(--logo-amber); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 28px; }
.foot h2 { font: 700 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #9d93ae; margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fbrand { display: flex; gap: 12px; align-items: flex-start; }
.fbrand .word { font-size: 22px; }
.fbrand p { margin: 6px 0 0; color: #b7aec4; }
.foot .fine { grid-column: 1 / -1; color: #8f86a0; font-size: 13.5px; margin: 8px 0 0; }

/* ---------------------------------------------------------------- phones and tablets */

@media (max-width: 900px) {
  .herogrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .postgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 24px; }
  .side { position: static; order: -1; }
  .watch { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
  .watch .player { border-radius: 12px; }
  .watch .wmeta { margin: 0; }
  .watch .play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .watch .play::after { left: 18px; top: 14px; border-width: 9px 0 9px 15px; }
  .watch.playing { grid-template-columns: 1fr; }
  .watch.playing .player { width: min(100%, 400px); margin-inline: auto; }
  .side .follow { display: none; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .top .wrap { height: 56px; }
  .word { font-size: 20px; }
  .mark { width: 30px; height: 30px; }
  .top nav a { padding: 6px 9px; font-size: 14px; }
  .hero { padding: 30px 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .more .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post { padding-top: 22px; }
  .wrap.post, .narrow { width: calc(100% - 24px); }
  .doc .in { padding: 20px 18px; }
  .prose { font-size: 17px; }
  .short div { grid-template-columns: 1fr; gap: 2px; }
  .foot .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .top nav a { padding: 6px 7px; }
  .word { font-size: 19px; }
}

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