@font-face {
  font-family: "Reenie Beanie";
  src: url("/assets/reenie-beanie.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #15161a;
  --panel: #202127;
  --fg: #f1ebdd;
  --mut: #8f8b82;
  --hand: #a9a39a;
  --cream: #f1ebdd;
  --ink: #15161a;
  --bar: #2c2e35;
  --bar-fg: #ffffff;
  --track: rgba(255, 255, 255, .1);
  --line: #2a2b31;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --handfont: "Reenie Beanie", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Hero: 100svh video loop */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fade { position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, rgba(21, 22, 26, 0), rgba(21, 22, 26, .95)); pointer-events: none; }
.hero__logo { position: absolute; left: 47.7%; top: 50%; margin: 0; width: 39vw; transform: translate(-50%, -50%) rotate(-4deg); }
.hero__logo img { width: 100%; height: auto; }
.hero__watch {
  position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font: 400 34px/1 var(--handfont); color: var(--cream); text-decoration: none;
}
.hero__watch:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.sound {
  position: absolute; right: 48px; bottom: max(48px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.sound__icon, .sound__icon svg { width: 18px; height: 18px; }
.sound__sketch { position: absolute; left: -10px; top: -10px; overflow: visible; pointer-events: none; }

/* Video grid */
.videos { max-width: 1440px; margin: 0 auto; padding: 110px 72px; }
.videos__head { display: flex; align-items: center; gap: 16px; margin-bottom: 64px; }
.videos__head img { width: 250px; height: auto; }
.tabs { display: flex; align-items: center; gap: 28px; margin-left: 12px; }
.tab { position: relative; padding: 4px 2px 10px; font: 400 42px/1 var(--handfont); color: var(--mut); transition: color .15s ease; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab__line { position: absolute; left: 0; bottom: 0; width: 100%; height: 8px; overflow: visible; opacity: 0; }
.tab[aria-selected="true"] .tab__line { opacity: 1; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; }
.grid--shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { min-width: 0; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card__num { flex: none; font: 400 38px/34px var(--handfont); color: var(--hand); }
.card__title { margin: 0; font-size: 19px; line-height: 25px; font-weight: 600; letter-spacing: -.008em; color: var(--fg); }
.card__sub { margin: 3px 0 0; font-size: 14px; line-height: 20px; color: var(--mut); }

.stage { position: relative; display: flex; flex-direction: column; gap: 12px; }
.media { position: relative; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 10px; overflow: hidden; background: #000; }
.card.is-short .media { aspect-ratio: 9 / 16; }
.media__frame, .media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.media__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.is-started .media__poster { display: none; }
.play-circle {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(241, 235, 221, .95); color: var(--ink);
  transition: transform .18s ease;
}
.play-circle svg { width: 27px; height: 27px; }
.media__poster:hover .play-circle { transform: scale(1.06); }
.card.is-loading .play-circle { opacity: .55; }

/* Graphite contour: sits just outside the player, never in front of it */
.sketch { position: absolute; left: -18px; top: -18px; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.card.is-current .sketch { opacity: 1; }

/* Playbar */
.bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px; border-radius: 24px; background: var(--bar); color: var(--bar-fg); }
.bar button { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; }
.bar button svg { width: 20px; height: 20px; }
.bar__full svg { width: 18px !important; height: 18px !important; }
.bar__time { flex: none; min-width: 30px; font-size: 12px; font-weight: 500; color: var(--bar-fg); font-variant-numeric: tabular-nums; }
.bar__time--rem { text-align: right; }
.bar__scrub {
  --p: 0%;
  flex: 1 1 auto; min-width: 40px; height: 24px; margin: 0; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.bar__scrub:disabled { cursor: default; }
.bar__scrub::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--bar-fg) var(--p), var(--track) var(--p)); }
.bar__scrub::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
.bar__scrub::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--bar-fg); }
.bar__scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--bar-fg); opacity: 0; transition: opacity .12s; }
.bar__scrub::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--bar-fg); opacity: 0; }
.bar:hover .bar__scrub:not(:disabled)::-webkit-slider-thumb, .bar__scrub:focus-visible::-webkit-slider-thumb { opacity: 1; }
.bar:hover .bar__scrub:not(:disabled)::-moz-range-thumb { opacity: 1; }

/* Fullscreen keeps our bar: video above, bar below */
.stage:fullscreen, .stage:-webkit-full-screen { background: #000; padding: 0 24px 24px; }
.stage:fullscreen .media, .stage:-webkit-full-screen .media { flex: 1 1 auto; aspect-ratio: auto; border-radius: 0; }

/* Subscribe tile */
.more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  align-self: start; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px dashed #3a3b42; text-decoration: none;
}
.more__cta { display: flex; align-items: center; gap: 8px; font: 400 38px/1 var(--handfont); color: var(--fg); }
.more__handle { font-size: 14px; color: var(--mut); }
.more--wide { grid-column: 1 / -1; aspect-ratio: auto; height: 132px; align-self: stretch; }
.more:hover { border-color: var(--hand); }
.noscript { color: var(--mut); }

/* Footer */
.footer { display: flex; align-items: center; gap: 32px; padding: 36px 48px; border-top: 1px solid var(--line); }
.footer__logo { width: 84px; height: auto; }
.footer__copy { margin: 0; font-size: 13px; color: var(--mut); }
.footer__links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 500; }
.footer__links a { color: var(--fg); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__ig { display: inline-flex; align-items: center; gap: 6px; }

/* Terms and privacy */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.legal__logo { display: block; width: 150px; margin-bottom: 48px; }
.legal__logo img { width: 100%; height: auto; }
.legal h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.legal__date { margin: 0 0 40px; font-size: 14px; color: var(--mut); }
.legal h2 { margin: 36px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.008em; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: #cfcabd; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }

@media (max-width: 767px) {
  .hero__logo { left: 50%; width: 87vw; }
  .hero__watch { font-size: 30px; }
  .sound { right: 20px; bottom: auto; top: max(24px, env(safe-area-inset-top)); }
  .videos { padding: 56px 20px; }
  .videos__head { margin-bottom: 44px; }
  .videos__head img { display: none; }
  .tabs { margin-left: 0; }
  .tab { font-size: 36px; }
  .grid, .grid--shorts { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .card__title { font-size: 17px; line-height: 22px; }
  .bar__vol { display: none !important; }
  .footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 20px 40px; }
  .footer__links { margin-left: 0; flex-wrap: wrap; }
  .legal h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sketch, .play-circle { transition: none; }
}
