/* Semantic Mastery design system (semantic-mastery/brand/design-system/project/tokens.json).
   Charcoal on white, one electric blue, red only for the announcement bar.
   Barlow Semi Condensed 400 for headings, Source Sans Pro for everything else. */

@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-400-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --charcoal: #303030;
  --slate: #54595F;
  --blue: #0033FF;
  --announcement-red: #B61522;

  --role-ground: var(--white);
  --role-ink: var(--charcoal);
  --role-ink-muted: var(--slate);
  --role-accent: var(--blue);
  --role-on-accent: var(--white);
  --role-ground-inverse: var(--charcoal);
  --role-ink-inverse: var(--white);
  --ink-inverse-muted: rgba(255, 255, 255, .78);   /* white tinted onto charcoal, 9.4:1 */
  --rule: #E3E4E6;                                 /* hairlines on white */
  --tint: #F1F3FF;                                 /* the blue, washed out: callout ground */

  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans Pro", "Source Sans 3", Arial, sans-serif;

  --container-max: 1140px;
  --widget-gap: 20px;
  --radius-button: 3px;
  --button-pad-y: 12px;
  --button-pad-x: 24px;
  --border-ghost: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--role-ground);
  color: var(--role-ink);
  font: 400 18px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.3; margin: 0; text-wrap: balance; }
h2 { font-size: 40px; margin-bottom: 16px; }
h3 { font-size: 29px; margin-bottom: 10px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--widget-gap); }
.narrow > * { max-width: 740px; }

/* 1. Top bar: the one place announcement-red is allowed */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--announcement-red); color: var(--white);
  font-size: 16px; line-height: 1.35; text-align: center;
  padding: 10px var(--widget-gap);
}
.topbar p { margin: 0; }
.countdown { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.countdown:not(:empty)::before { content: ""; display: inline-block; width: 1px; height: .9em; background: rgba(255,255,255,.55); margin: 0 12px; vertical-align: -1px; }

/* Masthead: the grey wordmark only ever sits on white */
.masthead { padding: 12px 0; }
.wordmark { display: inline-block; }
.wordmark img { width: 124px; height: auto; }

/* 2. Hero: the charcoal band */
.hero {
  background: var(--role-ground-inverse); color: var(--role-ink-inverse);
  padding: 44px 0 64px;
}
.hero-head { display: grid; gap: 0 56px; margin-bottom: 36px; }
@media (min-width: 1000px) { .hero-head { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; } .hero-head .sub { margin-bottom: 6px; } }
.eyebrow {
  font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-inverse-muted); margin-bottom: 14px;
}
.hero h1 { font-size: 60px; line-height: 1.1; max-width: 17ch; margin-bottom: 22px; }
@media (min-width: 1000px) { .hero h1 { margin-bottom: 0; } }
.sub { max-width: 640px; }
.sub p { font-size: 19px; line-height: 1.5; color: var(--ink-inverse-muted); margin-bottom: 8px; }
.sub .byline { font-family: var(--font-display); font-size: 20px; color: var(--white); margin: 0; }
.sub .byline::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }

.theater { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1000px) {
  .theater { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; }
}

.player {
  position: relative; aspect-ratio: 16 / 9; background: #1E1E1E;
  border-radius: var(--radius-button); overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.player iframe, .player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease-out; }
.poster:hover img, .poster:focus-visible img { filter: brightness(.82); }
.poster:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}
.play svg { margin-left: 4px; }
.poster:hover .play { transform: scale(1.06); }
.runtime {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(20, 20, 20, .82); color: var(--white);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: var(--radius-button);
}
.headsup { font-size: 15px; line-height: 1.45; color: var(--ink-inverse-muted); margin: 14px 0 0; max-width: 70ch; }

/* 5. Chapters, beside the player on desktop so a click seeks without scrolling */
.chapters h2 { font-size: 22px; margin-bottom: 8px; color: var(--white); }
.chapters ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 1000px) {
  /* The list fills exactly the height of the player column and scrolls inside it. */
  .chapters { position: relative; }
  .chapters ol { position: absolute; top: 42px; bottom: 0; left: 0; right: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; overscroll-behavior: contain; }
}
@media (max-width: 999px) {
  .chapters ol { max-height: 380px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
}
.chapters li { border-bottom: 1px solid rgba(255,255,255,.12); }
.chapters button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: 62px 1fr; gap: 10px;
  width: 100%; padding: 9px 10px 9px 4px;
  font-size: 16px; line-height: 1.35; color: var(--ink-inverse-muted);
  transition: background-color .15s ease-out, color .15s ease-out;
}
.chapters time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--white); text-align: right; }
.chapters button:hover { background: rgba(255,255,255,.07); color: var(--white); }
.chapters button:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.chapters button[aria-current="true"] { background: rgba(255,255,255,.14); color: var(--white); }
.chapters button[aria-current="true"] time::before { content: "\25B6\FE0E"; font-size: 10px; margin-right: 6px; vertical-align: 2px; }

/* Body sections */
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--rule); }
.section-sub { color: var(--role-ink-muted); margin-top: -8px; }

.why .lead { font-size: 22px; line-height: 1.5; }

.learn-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 22px 48px; }
@media (min-width: 820px) { .learn-list { grid-template-columns: 1fr 1fr; } }
.learn-list li { position: relative; padding-left: 26px; }
.learn-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; background: var(--blue); border-radius: 2px;
}

.summary p { font-size: 19px; line-height: 1.65; }

/* 6b. Resources: rows, not cards */
.res-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--charcoal); }
.res-list li { border-bottom: 1px solid var(--rule); }
.res-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px;
  padding: 22px 4px; color: var(--role-ink); text-decoration: none;
  transition: background-color .15s ease-out;
}
.res-list a:hover { background: var(--tint); }
.res-title { font-family: var(--font-display); font-size: 29px; line-height: 1.25; color: var(--blue); }
.res-where { grid-column: 2; grid-row: 1; align-self: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--role-ink-muted); }
.res-line { grid-column: 1; max-width: 62ch; color: var(--role-ink); }
.res-arrow { grid-column: 2; grid-row: 2; justify-self: end; font-size: 26px; line-height: 1; color: var(--blue); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.res-list a:hover .res-arrow { transform: translateX(4px); }
.caution { margin: 28px 0 0; background: var(--tint); padding: 18px 22px; border-radius: var(--radius-button); max-width: 760px; }
.inline-seek {
  all: unset; cursor: pointer; color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.inline-seek:hover { text-decoration-thickness: 2px; }
.inline-seek:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* 7. Money: two quiet paths, split by a rule */
.money-intro { max-width: 760px; }
.paths-label { font-weight: 600; margin: 8px 0 0; }
.paths { display: grid; grid-template-columns: 1fr; margin-top: 20px; border-top: 1px solid var(--charcoal); }
@media (min-width: 820px) {
  .paths { grid-template-columns: 1fr 1fr; }
  .path + .path { border-left: 1px solid var(--rule); padding-left: 40px; }
  .path:first-child { padding-right: 40px; }
}
@media (max-width: 819px) { .path + .path { border-top: 1px solid var(--rule); } }
.path { padding-top: 28px; padding-bottom: 8px; display: flex; flex-direction: column; align-items: flex-start; }
.path p { margin-bottom: 12px; }
.terms { color: var(--role-ink-muted); font-size: 17px; }
.terms strong { color: var(--role-ink); font-weight: 700; letter-spacing: .02em; }
.btn {
  display: inline-block; margin-top: auto;
  background: var(--blue); color: var(--white); text-decoration: none;
  font: 600 18px/1.2 var(--font-body);
  padding: var(--button-pad-y) var(--button-pad-x); border-radius: var(--radius-button);
  transition: background-color .15s ease-out;
}
.btn:hover { background: #0029CC; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* 8. Footer */
.hdho { padding: 40px 0; }
.hdho p { margin: 0; font-size: 19px; }
.footer { background: var(--blue); color: var(--white); padding: 26px 0; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--white); }

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar { font-size: 14px; padding: 8px 14px; }
  .countdown { display: block; margin-top: 2px; }
  .countdown:not(:empty)::before { display: none; }
  .masthead { padding: 12px 0; }
  .wordmark img { width: 112px; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 38px; line-height: 1.15; margin-bottom: 18px; }
  .hero-head { margin-bottom: 26px; }
  .sub p { font-size: 18px; }
  .play { width: 64px; height: 64px; }
  .band { padding: 52px 0; }
  h2 { font-size: 32px; }
  h3 { font-size: 26px; }
  .why .lead { font-size: 20px; }
  .summary p { font-size: 18px; }
  .res-list a { grid-template-columns: 1fr; }
  .res-where { grid-column: 1; grid-row: auto; order: -1; }
  .res-title { font-size: 25px; }
  .res-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
