@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --deepest: #04121c;
  --deep: #072030;
  --deep-line: #264655;
  --seafoam: #37d6c4;
  --sand: #e8e2d4;
  --body: #f3f4ee;
  --surface: #fff;
  --tint: #e8eee8;
  --ink: #102a35;
  --muted: #435c60;
  --line: #ccd8d1;
  --link: #085e57;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 28px; }

body {
  margin: 0;
  background: var(--body);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}

a { color: var(--link); text-underline-offset: .2em; }

a:hover { text-decoration-thickness: .12em; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid #159e8d; outline-offset: 4px; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 1rem; }

p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 5.65vw, 5.55rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2.1rem, 3.65vw, 3.4rem); letter-spacing: -.02em; }
h3 { font-size: 1.6rem; letter-spacing: -.025em; }

.wrap { width: min(calc(100% - 64px), 1200px); margin-inline: auto; }
.reading-width { max-width: 820px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: .5rem 1rem;
  border-radius: 6px;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer {
  background: var(--deepest);
  color: var(--sand);
}

.site-header { border-bottom: 1px solid var(--deep-line); position: relative; z-index: 2; }

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--sand);
  font: 1.35rem/1.1 var(--serif);
  text-decoration: none;
}

.brand img { border-radius: 8px; flex: none; }

.primary-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.1vw, 2.2rem); }

.primary-nav a, .footer-nav a {
  color: var(--sand);
  font-size: .875rem;
  text-decoration: none;
}

.primary-nav a:hover, .primary-nav a[aria-current], .footer-nav a:hover { color: var(--seafoam); }

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  gap: 5px;
  padding: 8px;
  place-content: center;
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--deep-line);
  border-radius: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
}

.hero-section {
  color: var(--sand);
  background: var(--deep);
  position: relative;
  isolation: isolate;
}

.hero-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 48%; }

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #04121c 4%, #04121cf5 26%, #04121c80 58%, #04121c13 100%),
    linear-gradient(0deg, #04121cb8, transparent 26%);
}

.hero-inner {
  min-height: clamp(480px, 42vw, 635px);
  padding-block: clamp(72px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-inner h1 { max-width: 760px; }
.hero-lead { max-width: 620px; font-size: clamp(1rem, 1.65vw, 1.2rem); }
.hero-section .hero-lead, .archive-header .hero-lead { color: #c9d9d8; }
.eyebrow { font: 700 .75rem/1.5 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--link); }
.hero-section .eyebrow { color: var(--seafoam); }

.hero-caption {
  position: absolute;
  inset: auto 0 12px;
  color: #e1ece9;
  text-align: right;
  font: .7rem/1.4 var(--mono);
  pointer-events: none;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .65rem; }

.primary-button, .secondary-button {
  min-height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
}

.primary-button { background: var(--seafoam); color: #052a2a; }
.primary-button:hover { background: #82e9dc; }
.secondary-button { background: #04121c76; border-color: #7ba6ab; color: var(--sand); }
.secondary-button:hover { background: var(--deep); }
.play-glyph { font-size: .65em; }

.facts-strip { background: var(--deepest); border-top: 1px solid var(--deep-line); }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0;
  color: var(--sand);
}

.quick-facts div { padding: 1.35rem clamp(.75rem, 2vw, 1.6rem); border-left: 1px solid var(--deep-line); }
.quick-facts div:last-child { border-right: 1px solid var(--deep-line); }
.quick-facts dt { color: #a8c9cc; font: .71rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.quick-facts dd { margin: .25rem 0 0; font: clamp(1.06rem, 2.15vw, 1.68rem)/1.2 var(--serif); }

.content-section { padding-block: clamp(3rem, 6vw, 6rem); }
.tinted { background: var(--tint); }

.split-content, .media-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

.section-intro p:not(.eyebrow), .media-copy p:not(.eyebrow) { color: var(--muted); }

.support-table-wrap {
  overflow-x: auto;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-table { border-collapse: collapse; width: 100%; font-size: .9rem; }

.support-table caption {
  padding: 1rem;
  color: var(--ink);
  text-align: left;
  font: 1.35rem/1.1 var(--serif);
}

.support-table th, .support-table td { padding: .65rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.support-table th { font-weight: 650; }
.support-table thead { background: var(--tint); }
.support-table th[scope="row"] { width: 34%; }
.fact-source { display: block; margin-top: .15rem; font-size: .76rem; }

.media-card {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.media-preview { position: relative; min-height: 100%; display: block; background: var(--deep); }
.media-preview img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.play-mark {
  display: grid;
  place-content: center;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--seafoam);
  color: var(--deepest);
}

.media-preview:hover .play-mark { background: #82e9dc; }
.media-preview:focus-visible { outline-offset: -4px; }

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--deepest);
  color: var(--sand);
  display: block;
  padding: .25rem .6rem;
  font: .68rem/1.45 var(--mono);
}

.media-copy { padding: clamp(1.5rem, 3.4vw, 3rem); }
.text-link { font-size: .92rem; font-weight: 700; }

.timeline { margin: 0; padding: 0 0 0 1.5rem; border-left: 1px solid #85a9a0; list-style: none; }
.timeline li { position: relative; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: .4rem; left: -1.79rem; width: .55rem; height: .55rem; background: var(--link); border-radius: 50%; }
.timeline time { color: var(--link); font: 700 .75rem/1.4 var(--mono); }
.timeline h3 { margin-block: .3rem .4rem; }
.timeline p { font-size: .925rem; }

.archive-intro { max-width: 710px; margin-bottom: 1.75rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 2.25vw, 2rem); }
.detail-card h3 a { color: var(--ink); }
.detail-card p:last-child { font-size: .945rem; }
.resource-links { display: flex; flex-wrap: wrap; padding: 0; margin: 1.35rem 0 0; gap: .55rem 1.6rem; list-style: none; }
.resource-links a { line-height: 1.5; font-weight: 650; }

.faq-list { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; min-height: 44px; padding: .65rem .35rem; font-weight: 650; }
.faq-item p { margin: 0 0 1rem; padding-inline: 1.2rem; }

.sources, .related { margin-top: 2.75rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sources h2, .related h2 { font-size: 2rem; }
.sources ol { padding-left: 1.25rem; }
.sources li { margin-bottom: .7rem; }
.sources li span { display: block; color: var(--muted); font-size: .9rem; }

.site-footer { padding-top: 2.4rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.footer-inner p { margin-top: .9rem; font-size: .9rem; max-width: 420px; color: #b9cdce; }
.footer-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; align-content: flex-start; gap: .6rem 1.2rem; }
.footer-bottom { border-top: 1px solid var(--deep-line); margin-top: 1.8rem; padding-block: .8rem; color: #b9cdce; }

.archive-header { background: var(--deep); color: var(--sand); padding-block: 2rem 3rem; }
.archive-header h1 { margin-top: 1.15rem; font-size: clamp(2.35rem, 5.5vw, 4.15rem); }
.breadcrumb { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .83rem; }
.breadcrumb a { color: var(--seafoam); }
.edition { color: #b8ced0; font: .75rem/1.5 var(--mono); }
.article-wrap { padding-block: clamp(2rem, 5vw, 4rem); overflow-wrap: anywhere; }
.article-wrap > * + * { margin-top: 2.2rem; }
.article-section h2, .video-module h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.article-image { margin: 0; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption { margin-top: .5rem; color: var(--muted); font: .75rem/1.4 var(--mono); }

.video-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deepest);
}

.video-slot img, .video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-slot img { object-fit: cover; filter: brightness(.7); }
.video-slot button { position: relative; }
.video-slot button:focus-visible { outline: 3px solid white; }
.video-status { margin-top: .65rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; min-height: 66px; padding-block: 10px; gap: .25rem 1rem; }
  .js-navigation .mobile-menu-toggle { display: grid; }
  .primary-nav { flex-wrap: wrap; gap: .25rem .8rem; width: 100%; }
  .primary-nav a { padding: .35rem 0; }
  .js-navigation .primary-nav { display: none; }
  .js-navigation .primary-nav.is-mobile-open { display: flex; }
  .hero-inner { min-height: 510px; padding-block: 64px 98px; }
  .hero-art img { object-position: 67% center; }
  .hero-art::after { background: linear-gradient(90deg, #04121cf0, #04121c84), linear-gradient(0deg, #04121c, transparent 34%); }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .quick-facts div:nth-child(n+3) { border-top: 1px solid var(--deep-line); }
  .quick-facts div:nth-child(even) { border-right: 1px solid var(--deep-line); }
  .split-content, .media-card, .archive-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .media-preview { min-height: 0; aspect-ratio: 16 / 9; }
  .footer-nav { justify-content: flex-start; }
}
