/* Not in a Corner: the paper-and-ink look of the videos */
:root {
  --paper: #E8DCC2;
  --paper-2: #DDCFB0;
  --card: #F4ECD9;
  --ink: #2A1E10;
  --muted: #6B5A44;
  --teal: #2F5D6B;
  --red: #B22A22;
  --gold: #9A6B12;
  --line: rgba(42, 30, 16, 0.14);
  --shadow: 0 2px 0 rgba(42, 30, 16, 0.08), 0 10px 24px -12px rgba(42, 30, 16, 0.45);
  --display: "Alfa Slab One", Rockwell, Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.6 var(--sans);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 248, 228, 0.9), transparent 70%),
    radial-gradient(800px 600px at 100% 100%, rgba(150, 110, 60, 0.12), transparent 70%),
    var(--paper);
  min-height: 100vh;
}
a { color: var(--teal); }
main { max-width: 1160px; margin: 0 auto; padding: 0 20px 48px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: 0.01em; }

.top { max-width: 1160px; margin: 0 auto; padding: 18px 20px 6px; }
.brand { font-family: var(--display); font-size: 20px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--gold); color: var(--card); font-family: var(--sans); font-weight: 800; box-shadow: var(--shadow); }

/* home */
.hero { padding: 40px 0 18px; max-width: 760px; }
.hero h1 { font-size: clamp(42px, 8vw, 76px); margin: 0 0 6px; }
.hero .tag { font-family: var(--display); font-size: clamp(18px, 2.6vw, 24px); color: var(--red); margin: 0 0 16px; line-height: 1.3; }
.hero p { margin: 0 0 14px; }
.start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px !important; }
.start span { color: var(--muted); font-weight: 700; font-size: 15px; }
.btn { display: inline-block; background: var(--red); color: #FFF7EA; text-decoration: none; font-weight: 800; padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow); }
.btn:hover { background: #9A231C; }

.group { margin-top: 44px; }
.group h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 4px; }
.gintro { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.15s ease; }
.card a:hover, .card a:focus-visible { transform: translateY(-3px) rotate(-0.3deg); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.len, .num { position: absolute; font-weight: 800; font-size: 13px; border-radius: 7px; padding: 2px 8px; }
.len { right: 8px; bottom: 8px; background: rgba(42, 30, 16, 0.82); color: #FFF7EA; }
.num { left: 8px; top: 8px; background: var(--gold); color: #FFF7EA; }
.ct { font-family: var(--display); font-size: 20px; line-height: 1.2; padding: 14px 16px 4px; }
.cb { padding: 0 16px 16px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }

.how { margin-top: 56px; background: var(--card); border-radius: 18px; padding: 22px 26px; box-shadow: var(--shadow); max-width: 820px; }
.how h2 { margin: 0 0 8px; font-size: 26px; }
.how ul { margin: 0; padding-left: 20px; }
.how li { margin: 6px 0; }

/* watch page */
.crumbs { font-size: 15px; font-weight: 700; color: var(--muted); margin: 8px 0 4px; }
.crumbs .count { font-weight: 600; }
.watch h1 { font-size: clamp(30px, 5vw, 46px); margin: 6px 0 14px; }
.player { background: #1A120A; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #1A120A; }
.blurb { font-size: 19px; margin: 14px 0 6px; max-width: 800px; }
.dur { color: var(--muted); font-weight: 800; font-size: 15px; margin-left: 6px; white-space: nowrap; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.pn a { background: var(--card); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 800; box-shadow: var(--shadow); }
.pn a span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pn .next { text-align: right; }
.chapters h2, .panel summary { font-family: var(--display); font-size: 22px; }
.chapters { margin-top: 24px; }
.chapters h2 { margin: 0 0 8px; }
.chapters ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.chapters button, .ts { font: inherit; cursor: pointer; border: 0; text-align: left; color: var(--ink); }
.chapters button { width: 100%; background: var(--card); border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: 16px; box-shadow: 0 1px 0 var(--line); }
.chapters button:hover, .chapters button:focus-visible { background: #FFF6E2; }
.chapters .t, .ts { font-variant-numeric: tabular-nums; color: var(--teal); font-weight: 800; }
.chapters .t { margin-right: 6px; }
.panel { margin-top: 22px; background: var(--card); border-radius: 16px; padding: 4px 22px; box-shadow: var(--shadow); }
.panel summary { cursor: pointer; padding: 12px 0; }
.panel[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.transcript h3 { font-size: 18px; margin: 18px 0 6px; color: var(--gold); }
.transcript p { margin: 6px 0; }
.ts { background: none; padding: 0 6px 0 0; font-size: 14px; }
.md { font-size: 16.5px; padding-bottom: 12px; }
.md h3, .md h4 { font-size: 18px; margin: 18px 0 6px; }
.md ul, .md ol { padding-left: 22px; margin: 6px 0; }
.md li { margin: 4px 0; }
.md blockquote { margin: 10px 0; padding: 6px 14px; border-left: 4px solid var(--gold); background: rgba(154, 107, 18, 0.07); }
.md code { font-size: 0.92em; background: rgba(42, 30, 16, 0.07); padding: 0 4px; border-radius: 4px; }
.table { overflow-x: auto; margin: 10px 0; }
.md table { border-collapse: collapse; font-size: 15px; min-width: 100%; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { background: rgba(154, 107, 18, 0.1); }

.foot { max-width: 1160px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { text-align: left; }
  .panel { padding: 2px 16px; }
}
@media (prefers-reduced-motion: reduce) { .card a { transition: none; } }

/* the live player (site/player.js) */
.player.live { background: #1A120A; }
.pstage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pstage canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.bigplay { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #FFF7EA; font: 800 clamp(16px, 2.4vw, 22px) var(--sans); border: 0; border-radius: 999px; padding: 14px 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); cursor: pointer; white-space: nowrap; }
.bigplay:hover { background: #9A231C; }
.bigplay:focus-visible { outline: 3px solid #F2D488; outline-offset: 3px; }
.player.started .bigplay { display: none; }
.pbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #F4ECD9; }
.pbar button { font: 700 14px var(--sans); color: #F4ECD9; background: #2A2018; border: 1px solid #4A3A28; border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; white-space: nowrap; }
.pbar button[aria-pressed="false"]#p-cap, .pbar button[aria-pressed="false"]#p-sound { color: #A89A80; }
.pbar button:focus-visible, .pbar input:focus-visible { outline: 2px solid #F2D488; outline-offset: 2px; }
.pbar input[type="range"] { flex: 1; min-width: 0; height: 40px; margin: 0; accent-color: #E2B85C; cursor: pointer; }
.ptime { font-variant-numeric: tabular-nums; font-size: 14px; color: #CFC3A8; min-width: 38px; text-align: center; }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; background: #000; border-radius: 0; }
.player:fullscreen .pstage { width: min(100vw, calc((100vh - 60px) * 16 / 9)); margin: 0 auto; }
@media (max-width: 600px) {
  .pbar { flex-wrap: wrap; gap: 6px; }
  .pbar input[type="range"] { order: -1; flex-basis: 100%; }
  .bigplay { padding: 9px 16px; font-size: 15px; gap: 6px; bottom: 6%; }
  .pbar button { min-height: 38px; padding: 0 12px; font-size: 13px; }
}
