:root {
  --studio: #0f1b2d;      /* background: the studio at night */
  --panel: #172a44;       /* raised surfaces */
  --ink: #e8edf4;         /* body text */
  --muted: #9fb0c5;       /* secondary text */
  --caption: #ffd400;     /* the yellow of the video captions */
  --tally: #e23b2e;       /* camera tally light */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--studio); }
body {
  margin: 0;
  background: var(--studio);
  color: var(--ink);
  font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--caption); text-underline-offset: 3px; }
a:focus-visible, .watch:focus-visible { outline: 3px solid var(--caption); outline-offset: 3px; border-radius: 4px; }

/* hero: studio photo with the logo laid over the blurred, lit half */
.hero {
  position: relative;
  display: block;
  height: clamp(260px, 38vw, 560px);
  overflow: hidden;
  border-bottom: 4px solid var(--caption);
  background: var(--studio);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}
.hero::after {  /* darken the left so the logo reads cleanly */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 27, 45, 0.55), rgba(15, 27, 45, 0) 60%);
}
.hero-logo {
  position: absolute;
  z-index: 1;
  left: 6%;
  top: 50%;
  width: min(44%, 640px);
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}
.hero.small { height: 140px; }
.hero.small .hero-logo { width: min(240px, 60%); }

.column { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.intro { padding: 56px 0 24px; }
.intro h1 {
  font: 800 clamp(3rem, 9vw, 5.5rem)/0.95 var(--display);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.intro p { color: var(--muted); font-size: 1.125rem; margin: 0 0 16px; max-width: 60ch; }

.watch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 22px 14px 18px;
  background: var(--caption);
  color: var(--studio);
  font: 700 1.25rem/1 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
}
.watch::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 3px rgba(226, 59, 46, 0.25);
}
.watch:hover { background: #ffe24d; }

/* latest episode and Shorts row */
.latest, .shorts { padding: 40px 0 8px; }
.latest h2, .shorts h2 { font: 700 2rem/1.1 var(--display); margin: 0 0 20px; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
}
.player iframe, .play, .play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play { padding: 0; cursor: pointer; background: none; }
.play img { object-fit: cover; }
.play-icon {
  position: absolute;
  left: 50%; top: 50%;
  width: 76px; height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--caption);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}
.play-icon::after {  /* the triangle */
  content: "";
  position: absolute;
  left: 30px; top: 22px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--studio);
}
.play:hover .play-icon { transform: translate(-50%, -50%) scale(1.08); }
.play:focus-visible { outline: 3px solid var(--caption); outline-offset: -3px; }
.latest-title { margin: 12px 0 0; font-weight: 700; }

.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.row-nav { display: flex; gap: 8px; }
.row-nav button {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.125rem;
  cursor: pointer;
}
.row-nav button:hover { background: var(--caption); color: var(--studio); }
.row-nav button:focus-visible { outline: 3px solid var(--caption); outline-offset: 2px; }
.shorts-row {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--panel) transparent;
}
.shorts-row li { flex: 0 0 160px; scroll-snap-align: start; }
.shorts-row a { display: block; color: var(--ink); text-decoration: none; }
.shorts-row img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel);
}
.shorts-row span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.shorts-row a:hover span { color: var(--caption); }
.shorts-row a:focus-visible { outline: 3px solid var(--caption); outline-offset: 3px; border-radius: 8px; }

.method { padding: 40px 0 16px; }
.method h2, .doc h2 {
  font: 700 2rem/1.1 var(--display);
  margin: 0 0 20px;
}
.method dl { margin: 0; }
.method div {
  padding: 16px 0 16px 20px;
  border-left: 3px solid var(--caption);
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--panel), transparent 85%);
}
.method dt { font-weight: 700; margin-bottom: 4px; }
.method dd { margin: 0; color: var(--muted); }
.method .ai { border-left-color: var(--tally); }

/* legal pages */
.doc { padding: 48px 0 24px; }
.doc h1 { font: 800 clamp(2.5rem, 7vw, 4rem)/1 var(--display); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { margin-top: 40px; }
.doc p, .doc li { color: var(--ink); }
.doc li { margin-bottom: 8px; }
.back { font: 700 1.1rem/1 var(--display); letter-spacing: 0.02em; }

footer {
  margin-top: 56px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--panel);
  color: var(--muted);
  font-size: 0.9375rem;
}
footer p { margin: 0 0 8px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { height: clamp(220px, 62vw, 340px); }
  .hero-bg { object-position: 22% 50%; }
  .hero::after { background: rgba(15, 27, 45, 0.35); }
  .hero-logo { left: 50%; width: 84%; transform: translate(-50%, -50%); }
  .hero.small { height: 120px; }
  .hero.small .hero-logo { width: min(220px, 60%); }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .intro { padding-top: 40px; }
  .shorts-row li { flex-basis: 136px; }
  .row-nav { display: none; }
}
