:root {
  color-scheme: light;
  --forest: #0d2b20;
  --green-black: #071710;
  --ivory: #f5f0e7;
  --paper: #fbf9f4;
  --gold: #b89a57;
  --ink: #171816;
  --stone: #6b6963;
  --rule: rgba(13, 43, 32, 0.2);
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.story-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 0 clamp(18px, 6vw, 88px);
  border-bottom: 1px solid var(--rule);
  background: var(--ivory);
}

.story-wordmark { color: var(--forest); font-size: 18px; font-weight: 700; }
.story-wordmark em { font-family: var(--serif); font-weight: 400; }
.story-logo { display: block; flex: 0 1 280px; padding-block: 14px; }
.story-logo img { display: block; width: 100%; height: auto; }
.story-back { color: var(--forest); font-size: 12px; font-weight: 600; }
.story-back span { margin-left: 7px; color: var(--gold); }
.story-shell { min-height: 68vh; padding: 1px 20px 100px; }
.story-loading, .story-error { width: min(760px, 100%); margin: 100px auto; color: var(--stone); text-align: center; }

.story-article { width: min(1200px, 100%); margin: 0 auto; }
.story-header { width: min(900px, 100%); margin: 70px auto 38px; text-align: center; }
.story-category { margin: 0 0 17px; color: #856d36; font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.story-title { margin: 0; color: var(--forest); font: 400 clamp(38px, 6vw, 76px)/1.1 var(--serif); text-wrap: balance; }
.story-deck { max-width: 700px; margin: 22px auto 0; color: #55564f; font-size: clamp(16px, 2vw, 20px); line-height: 1.6; text-wrap: pretty; }
.story-byline { margin-top: 24px; color: var(--stone); font-size: 12px; }
.story-cover, .story-video { display: block; width: 100%; max-height: 720px; margin: 0 auto 44px; aspect-ratio: 16 / 9; background: var(--green-black); object-fit: cover; }
.story-cover[hidden], .story-video[hidden] { display: none; }
.story-video iframe, .story-video video { display: block; width: 100%; height: 100%; border: 0; background: var(--green-black); }
.story-body { width: min(720px, 100%); margin: 0 auto; color: #34372f; font: 400 16px/1.95 var(--serif); }
.story-body p { margin: 0 0 1.45em; white-space: pre-line; }
.story-body h2, .story-body h3 { color: var(--forest); font-family: var(--serif); font-weight: 400; line-height: 1.35; text-wrap: balance; }
.story-body h2 { margin: 1.8em 0 0.7em; font-size: clamp(24px, 4vw, 32px); }
.story-body h3 { margin: 1.5em 0 0.6em; font-size: clamp(20px, 3vw, 25px); }
.story-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.story-inline-image { margin: 40px 0; }
.story-inline-image img { display: block; width: 100%; height: auto; }
.story-body p:first-child::first-letter { float: left; margin: 8px 9px 0 0; color: var(--gold); font: 400 58px/0.78 var(--serif); }
.story-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(900px, 100%); margin: 44px auto; }
.story-gallery figure { margin: 0; min-width: 0; overflow: hidden; background: var(--ivory); }
.story-gallery img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.story-ad-placement { width: min(1200px, 100%); margin: 42px auto; padding: 10px; background: #f0ede5; }
.story-ad-placement > a, .story-ad-placement img { display: block; width: 100%; }
.story-ad-placement img { aspect-ratio: 4 / 1; object-fit: contain; background: #fff; }
.story-ad-label { margin: 0 0 8px; color: var(--stone); font: 10px 'DM Sans', Arial, sans-serif; text-align: right; }
.story-ad-blank { display: grid; place-items: center; min-height: 110px; aspect-ratio: 4 / 1; border: 1px dashed rgba(13, 43, 32, 0.26); color: var(--stone); font: 11px 'DM Sans', Arial, sans-serif; }
.story-ad-placement.is-empty { background: transparent; }
.story-more { width: min(720px, 100%); margin: 68px auto 0; padding-top: 21px; border-top: 1px solid var(--rule); }
.story-more a { color: var(--forest); font-size: 13px; font-weight: 700; }
.story-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px clamp(18px, 6vw, 88px); background: var(--forest); color: var(--ivory); font-size: 12px; }
.story-footer .story-wordmark { color: var(--ivory); }

@media (max-width: 640px) {
  .story-nav { min-height: 64px; padding-inline: 16px; }
  .story-wordmark { font-size: 15px; }
  .story-logo { flex-basis: 210px; }
  .story-back { font-size: 10px; }
  .story-shell { padding: 1px 16px 72px; }
  .story-header { margin: 44px auto 26px; text-align: left; }
  .story-title { font-size: clamp(36px, 10vw, 54px); }
  .story-deck { margin-top: 16px; font-size: 16px; }
  .story-cover, .story-video { width: calc(100% + 32px); max-height: none; margin: 0 -16px 32px; aspect-ratio: 4 / 3; }
  .story-body { font-size: 16px; line-height: 1.8; }
  .story-gallery { grid-template-columns: 1fr; gap: 10px; margin: 32px auto; }
  .story-gallery img { max-height: none; }
  .story-ad-placement { margin: 30px auto; padding: 6px; }
  .story-ad-blank { min-height: 80px; }
  .story-footer { align-items: flex-start; flex-direction: column; padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.story-more h2 { margin: 0 0 22px; font: 400 25px/1.3 var(--serif); color: var(--forest); }
.story-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.story-related-grid a { display: block; }
.story-related-grid img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.story-related-grid h3 { margin: 14px 0 0; font: 400 20px/1.4 var(--serif); }
.story-related-grid a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .story-related-grid { grid-template-columns: 1fr; } }

.story-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .story-related-grid h3 { font-size: 16px; } }
