@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #253c57;
  --ink: #18293d;
  --green: #13fb0c;
  --ice: #d3f1f5;
  --gray: #f2f2f2;
  --muted: #456974;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: "Jost", "Futura", "Trebuchet MS", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--ink); }
.page { width: min(1280px, 100%); margin: 0 auto; }

main {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
h1 {
  margin: 8px 0 20px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}
h2 {
  margin: 36px 0 12px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}
h3 {
  margin: 28px 0 8px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}
p, li { font-size: 18px; font-weight: 300; }
ol { padding-left: 1.3em; }
li { margin: 0.4em 0; }
.intro { font-size: 20px; }

.safety {
  background: var(--ice);
  padding: 20px 22px;
  margin: 0 0 28px;
}
.safety p { margin: 0 0 12px; }
.safety p:last-child { margin-bottom: 0; }
.disclaimer { font-weight: 400; }
/* R1 (placement): Full disclaimer link in the notices (same rule as five-steps.css). */
.safety .disc-link { font-weight: 400; }
.safety .disc-link a { color: var(--ink); }
.crisis { font-weight: 400; }
.cite { font-size: 16px; color: var(--ink); }
.credit { font-size: 16px; }

/* Full-width 16:9 media at the top of the page; capped so it stays in the first view. */
.media-hero {
  width: 100%;
  margin: 0 0 8px;
  background: #fff;
}
.media-frame {
  width: min(100%, 1280px, calc((100vh - 88px) * 16 / 9));
  margin: 0 auto;
  background: #111;
}
.motion-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
  margin: 0;
}
.motion-still { display: none; }
.media-caption,
.media-hero .credit {
  width: min(820px, calc(100% - 48px));
  margin: 12px auto 0;
  font-size: 16px;
  font-weight: 300;
}
.media-hero .credit { margin: 8px auto 16px; }

.sources { padding-left: 1.3em; }
.sources a { overflow-wrap: anywhere; }

.site-summary {
  margin: 0;
  padding: 16px 24px;
  background: #fff;
  color: #18293d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.site-summary a { color: #18293d; }
.legal {
  margin: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--navy);
  font-size: 16px;
  text-align: center;
  padding: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-video { display: none; }
  .motion-still { display: block; width: 100%; height: auto; object-fit: contain; margin: 0; }
  .play-hint { display: none; }
}

@media (max-width: 999px) {
  .media-frame { width: 100%; }
  .media-caption,
  .media-hero .credit {
    width: auto;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
  }
  main {
    width: auto;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 48px;
  }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  p, li { font-size: 17px; }
}
