:root {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  --page: #dfeddc;
  --surface: #f1f6ee;
  --panel: #ccdfc7;
  --ink: #153e29;
  --muted: #44614c;
  --accent: #0b4a2a;
  --accent-hover: #07371f;
  --highlight: #246a42;
  --line: #91aa90;
  --on-accent: #f4f8ef;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
header, main, footer { max-width: 1200px; margin: auto; padding: 24px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; border-bottom: 1px solid var(--line); }
.logo { display: block; flex-shrink: 0; line-height: 0; border-radius: 4px; overflow: hidden; }
.brand-mark { display: block; width: 200px; height: 84px; object-fit: cover; }
nav { display: flex; gap: 20px; }
nav a { text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--highlight); text-decoration: underline; }
h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -.06em; margin: 22px 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
em { color: var(--highlight); font-style: normal; }
.hero { padding: 85px 0 65px; border-bottom: 1px solid var(--line); }
.eyebrow, .tag { color: var(--accent); font-size: 12px; letter-spacing: .13em; font-weight: 800; }
.hero p { max-width: 650px; font-size: 20px; color: var(--muted); line-height: 1.6; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 14px 22px; border-radius: 6px; text-decoration: none; font-weight: 800; margin-top: 16px; }
.btn:hover, button[type=submit]:hover { background: var(--accent-hover); }
.section { padding: 62px 0; }
.muted { color: var(--muted); line-height: 1.7; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 25px 0; }
.filters button { cursor: pointer; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 30px; padding: 10px 15px; }
.filters button:hover { border-color: var(--accent); }
.filters button.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 25px; min-height: 265px; display: flex; flex-direction: column; }
.story[hidden] { display: none; }
.story h3 { font-size: 23px; line-height: 1.2; margin: 18px 0 10px; }
.story p { color: var(--muted); line-height: 1.55; }
.story a { margin-top: auto; color: var(--accent); font-weight: 700; }
.story a:hover { color: var(--accent-hover); }
.feature { background: var(--panel); padding: 35px; border-radius: 12px; }
.coverage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.coverage > div { border-top: 1px solid var(--line); padding: 18px 0; }
.subscribe { background: var(--panel); border-radius: 12px; padding: 40px; }
input { padding: 15px; border: 1px solid var(--muted); border-radius: 6px; background: var(--surface); color: var(--ink); width: min(100%, 350px); font-size: 16px; }
input::placeholder { color: var(--muted); opacity: 1; }
button[type=submit] { padding: 15px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.menu { display: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--highlight); outline-offset: 4px; }
@media (max-width: 750px) {
  .grid, .coverage { grid-template-columns: 1fr; }
  .menu { display: block; background: transparent; color: var(--ink); border: 1px solid var(--muted); padding: 8px 12px; }
  nav { display: none; position: absolute; right: 20px; top: calc(100% - 8px); background: var(--surface); padding: 20px; border: 1px solid var(--line); flex-direction: column; z-index: 5; }
  nav.open { display: flex; }
  .hero { padding-top: 50px; }
  .subscribe { padding: 24px; }
  button[type=submit] { margin-top: 10px; }
}
@media (max-width: 380px) {
  header { padding: 16px; gap: 12px; }
  .brand-mark { width: 185px; height: 80px; }
  .menu { white-space: nowrap; }
}

/* Topic rotation fills the open right side of the masthead's hero. */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 56px; align-items: center; }
.hero-intro h1 { font-size: clamp(3rem, 6.5vw, 5.4rem); }
.topic-carousel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 16px 40px rgb(21 62 41 / 6%); }
.topic-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.topic-heading .eyebrow { font-size: 10px; margin: 0 0 8px; }
.topic-heading h2 { font-family: Georgia, serif; font-size: 26px; letter-spacing: -.03em; margin: 0; font-weight: 400; }
.topic-counter { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.topic-slides { min-height: 280px; }
.topic-slides:empty { display: none; }
.topic-card { display: flex; flex-direction: column; min-height: 280px; padding: 25px 0 20px; }
.topic-card[hidden], .topic-controls[hidden] { display: none; }
.topic-category { color: var(--accent); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 18px; font-weight: 800; }
.topic-title { font: 400 clamp(1.8rem, 3vw, 2.5rem)/1.12 Georgia, serif; letter-spacing: -.035em; margin: 0 0 16px; overflow-wrap: anywhere; }
.topic-description, .topic-fallback p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.topic-link { color: var(--accent); font-size: 13px; line-height: 1.5; font-weight: 750; margin-top: auto; text-underline-offset: 3px; }
.topic-navigation { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.topic-navigation button { width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; font-size: 20px; }
.topic-navigation .topic-toggle { width: auto; padding: 0 18px; font-size: 12px; font-weight: 750; border-radius: 24px; }
.topic-navigation button:hover { background: var(--panel); border-color: var(--accent); }
.topic-navigation button:disabled { opacity: .5; cursor: default; }
.topic-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 14px; }
.topic-dot { display: grid; place-items: center; width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.topic-dot::before { content: ''; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%; }
.topic-dot[aria-pressed="true"]::before { background: var(--accent); width: 9px; height: 9px; }
.topic-fallback { padding: 20px 0; }
.topic-fallback h3 { font: 400 30px/1.2 Georgia, serif; }
.topic-fallback a { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-intro h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
  .topic-carousel { max-width: 600px; width: 100%; }
}
@media (max-width: 480px) {
  .topic-carousel { padding: 22px; }
  .topic-slides, .topic-card { min-height: 310px; }
}
