/* Studio Night — navy, paper, one amber accent. Fraunces / Instrument Sans / IBM Plex Mono. */
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0E1A2B;
  --navy-2: #142338;
  --navy-3: #1C2E47;
  --paper: #F3EFE6;
  --amber: #F0A43A;
  --slate: #5B6B82;
  --mist: #AAB4C4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font: 400 16px/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--amber); margin-right: .5em; vertical-align: .08em; }

.top { max-width: var(--max); margin: 0 auto; width: 100%; padding: 22px var(--gutter); }
.brand { font: 600 22px/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; }

.hero { padding: clamp(12px, 3vw, 36px) 0 clamp(18px, 3vw, 28px); }
.hero h1 { font: 600 clamp(26px, 3.6vw, 40px)/1.1 var(--serif); letter-spacing: -0.025em; margin: 0; max-width: 24ch; }

.eyebrow, .meta, .len, .count {
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { color: var(--amber); margin: 0 0 10px; }

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--navy-3);
  margin-bottom: clamp(28px, 4vw, 44px);
  position: sticky; top: 0; z-index: 2;
  background: var(--navy);
}
.tabs a {
  padding: 14px clamp(10px, 2.5vw, 22px) 13px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  color: var(--mist);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:hover { color: var(--paper); }
.tabs a[aria-selected="true"] { color: var(--paper); border-color: var(--amber); }
.tabs a:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; border-radius: 4px; }
.count { color: var(--slate); margin-left: 8px; letter-spacing: .06em; font-size: 11px; }

.panel h2 { font: 600 clamp(28px, 4vw, 40px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 10px; }
.intro { color: var(--mist); max-width: 60ch; margin: 0 0 28px; }

/* grid + cards */
.grid {
  list-style: none; margin: 0 0 72px; padding: 0;
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card a { text-decoration: none; display: block; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--navy-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card a:hover .thumb img { transform: scale(1.03); }
.card a:focus-visible .thumb { outline: 2px solid var(--amber); outline-offset: 3px; }
.len { position: absolute; right: 10px; bottom: 10px; background: rgba(14, 26, 43, .86); color: var(--paper); padding: 4px 7px; border-radius: 5px; letter-spacing: .08em; }
.card .meta { color: var(--mist); margin: 14px 0 6px; }
.card h3 { font: 600 21px/1.2 var(--serif); letter-spacing: -0.015em; margin: 0 0 6px; }
.card a:hover h3 { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.card .sum { color: var(--mist); margin: 0; font-size: 15px; }

/* watch page */
.watch { padding-top: 4px; }
.back { display: inline-block; color: var(--mist); text-decoration: none; margin-bottom: 16px; font-weight: 600; }
.back:hover { color: var(--paper); }
.player { border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; }
.info { padding: 26px 0 8px; max-width: 70ch; }
.info h1 { font: 600 clamp(28px, 4.5vw, 44px)/1.08 var(--serif); letter-spacing: -0.025em; margin: 0 0 10px; }
.info .meta { color: var(--mist); margin: 0 0 14px; }
.info .sum { font-size: 18px; margin: 0 0 20px; }
.next { display: inline-block; background: var(--amber); color: var(--navy); font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: 8px; }
.next:hover { filter: brightness(1.08); }
.more { border-top: 1px solid var(--navy-3); margin-top: 40px; padding-top: 28px; }
.more h2 { font: 600 24px/1.2 var(--serif); margin: 0 0 20px; }

.foot { max-width: var(--max); width: 100%; margin: 0 auto; padding: 28px var(--gutter) 40px; color: var(--slate); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid var(--navy-3); }

@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } }
