:root {
  color-scheme: light;
  --ink: #111b31;
  --navy: #101e38;
  --muted: #536078;
  --blue: #124fc2;
  --cream: #f3f6ff;
  --line: #111b3124;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
}

a { color: var(--blue); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .12em; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.reading { width: min(44rem, calc(100% - 40px)); margin-inline: auto; }
.nav { background: var(--cream); border-bottom: 1px solid var(--line); }

.nav-inner, .footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 1rem Manrope, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { width: 34px; height: 34px; }
.brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: .9rem; font-weight: 600; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links [aria-current] { color: var(--blue); text-decoration: underline; }

.nav-links .button {
  border-radius: 999px;
  padding: .75rem 1rem;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(120deg, var(--navy), #13365a 65%, #086a68);
  color: #fff;
}

.back, .byline a { color: #d4f8ef; }
.back { font-size: .95rem; font-weight: 700; }

h1, h2 { font-family: Manrope, sans-serif; line-height: 1.08; }

h1 {
  max-width: 12ch;
  margin: 1.1rem 0;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.065em;
}

.byline { margin: 0; color: #e6eefb; line-height: 1.65; }

.story {
  padding: 3rem 0 4rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.story p { margin: 0 0 1.25em; }
.story h2 { margin: 1.9em 0 .65em; font-size: clamp(1.75rem, 4vw, 2.45rem); letter-spacing: -.045em; }
.story h2:first-child { margin-top: 0; }

figure { margin: 2.1rem auto; }
figure img { width: 100%; border-radius: 12px; }
figure.poster { max-width: 26rem; }
figcaption { margin-top: .55rem; color: var(--muted); font-size: .9rem; text-align: center; }

.footer { background: var(--navy); }
.footer a { color: #d4f8ef; }
.footer-inner { min-height: 84px; }

@media (max-width: 680px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .nav-links .button { padding: .45rem .7rem; }
  .story { padding-top: 2.25rem; }
  .footer-inner { flex-wrap: wrap; gap: 12px; padding-block: 20px; }
}
