:root {
  --paper: #f3f5f7;
  --surface: #ffffff;
  --ink: #182035;
  --muted: #536075;
  --line: #ccd4df;
  --cobalt: #243dbb;
  --cobalt-dark: #1b2f91;
  --accent: #ff6b4a;
  --accent-soft: #ffe3da;
  --sunny: #ffd166;
  --pale: #e7ebff;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; border-radius: 3px; }
img, svg { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.shell-narrow { width: min(800px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; background: var(--ink); color: white; padding: 12px 18px; }
.skip-link:focus { top: 14px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 2px solid var(--ink); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 700; letter-spacing: -1.2px; }
.brand-mark { width: 34px; color: var(--accent); }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.tagline { color: var(--muted); font-size: 13px; border-left: 1px solid var(--line); padding-left: 22px; }
.main-nav { margin-left: auto; display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover, .footer-links a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }

.lead-story { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: 58px; align-items: center; padding-block: 52px 46px; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.category-chip { display: inline-flex; align-items: center; min-height: 28px; width: fit-content; background: var(--pale); color: var(--cobalt-dark); border-radius: 4px; padding: 4px 10px; font-size: 12px; line-height: 1.2; font-weight: 700; }
.start-label { color: var(--cobalt-dark); font-weight: 600; }
.lead-copy h1 { font-size: clamp(40px, 4.5vw, 60px); line-height: 1.03; letter-spacing: -3px; margin: 0 0 20px; max-width: 650px; font-weight: 600; }
.lead-dek { color: var(--muted); font-size: 18px; line-height: 1.48; max-width: 540px; margin: 0 0 26px; }
.read-story { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #24140f; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 4px; font-size: 15px; font-weight: 700; padding: 11px 18px; }
.read-story:hover { background: #ff8064; box-shadow: 2px 2px 0 var(--ink); transform: translate(2px, 2px); }
.lead-hero { margin: 0; }
.lead-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 9px 9px 0 var(--accent); }
.lead-fallback { min-height: 280px; border: 2px solid var(--ink); border-radius: 6px; background: var(--pale); box-shadow: 9px 9px 0 var(--accent); display: grid; place-items: center; color: var(--cobalt); font-size: 28px; font-weight: 700; }
.lead-story--plain { grid-template-columns: 1fr; }
.lead-story--plain .lead-fallback { max-width: 560px; }

.editor-note { display: flex; justify-content: space-between; gap: 20px; border-block: 1px solid var(--line); padding-block: 17px; font-size: 14px; }
.editor-note span:first-child { font-weight: 600; }
.editor-note span:last-child { color: var(--muted); }
.latest { padding-block: 35px 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 14px; }
.section-heading h2 { font-size: 31px; letter-spacing: -1.2px; margin: 0; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.story-feed { border-top: 2px solid var(--ink); }
.feed-story { margin: 0; }
.feed-item { min-height: 150px; display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; align-items: center; gap: 24px; padding: 20px; border-bottom: 1px solid var(--line); background: transparent; }
.feed-item:hover { background: var(--accent-soft); }
.feed-thumb { display: block; overflow: hidden; border: 1px solid var(--ink); border-radius: 4px; }
.feed-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.feed-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 13px; color: var(--muted); font-size: 12px; }
.feed-copy h3 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -.8px; line-height: 1.15; margin: 9px 0 7px; max-width: 760px; }
.feed-copy p { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0; max-width: 720px; }
.feed-action { min-height: 48px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-left: 2px solid var(--accent); padding-left: 15px; color: var(--cobalt-dark); font-size: 13px; font-weight: 700; }
.feed-action small { color: var(--muted); font-size: 12px; font-weight: 500; }

.article-header { padding-top: 44px; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--cobalt-dark); font-weight: 600; margin: -10px 0; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-header h1, .static-page h1, .not-found h1 { font-size: clamp(40px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -2.6px; margin: 0 0 21px; font-weight: 600; }
.article-dek { color: var(--muted); font-size: 19px; line-height: 1.52; margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 13px; margin-top: 23px; }
.article-meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin: 0 9px 2px 0; }
.article-hero { margin-block: 31px 32px; }
.article-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); border: 2px solid var(--ink); border-radius: 5px; }

.key-facts { margin-block: 30px 38px; background: var(--surface); border: 2px solid var(--ink); border-top: 6px solid var(--accent); border-radius: 4px; }
.facts-heading { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.facts-heading h2 { font-size: 18px; letter-spacing: -.4px; margin: 0; }
.facts-heading > span { color: var(--muted); font-size: 12px; }
.key-facts dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.key-facts dl > div { padding: 19px 20px 21px; }
.key-facts dl > div + div { border-left: 1px solid var(--line); }
.key-facts dt { color: var(--cobalt-dark); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.key-facts dd { color: #354159; font-size: 14px; line-height: 1.5; margin: 0; }

.article-body { font-family: var(--serif); font-size: 20px; line-height: 1.7; }
.article-body p { margin: 0 0 23px; }
.article-body h2 { scroll-margin-top: 100px; font-family: var(--sans); font-size: 27px; line-height: 1.2; letter-spacing: -.9px; margin: 43px 0 16px; padding-top: 14px; border-top: 2px solid var(--ink); }
.article-body h2::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--accent); margin: 0 10px 2px 0; }
.article-body h3 { font-family: var(--sans); font-size: 22px; line-height: 1.3; letter-spacing: -.5px; margin: 34px 0 12px; }
.article-body strong { font-weight: 600; }
.article-body a { color: var(--cobalt-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body a:hover { color: var(--cobalt); background: var(--pale); }
.article-body ul, .article-body ol { margin: 0 0 25px; padding-left: 1.3em; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote { margin: 30px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: #354159; }
.article-body table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 25px 0 30px; font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.article-body th, .article-body td { min-width: 105px; padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--pale); color: var(--cobalt-dark); }
.article-end { margin-top: 40px; border-top: 2px solid var(--ink); padding-top: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { background: var(--pale); color: var(--cobalt-dark); border-radius: 3px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.article-sources { margin-top: 21px; border-block: 1px solid var(--line); }
.article-sources summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.article-sources summary::-webkit-details-marker { display: none; }
.article-sources summary > span:last-child { color: var(--muted); font-size: 12px; font-weight: 500; }
.article-sources summary::after { content: "+"; color: var(--cobalt); font-size: 22px; font-weight: 500; }
.article-sources[open] summary::after { content: "−"; }
.article-sources summary > span:first-child { margin-right: auto; }
.article-sources ul { margin: 0; padding: 0 0 13px; list-style: none; }
.article-sources li a { min-height: 44px; display: flex; align-items: center; color: var(--cobalt-dark); font-size: 14px; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; }
.source-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-block: 16px 0; }

.read-next { margin-block: 38px 70px; background: var(--cobalt); color: white; border: 2px solid var(--ink); border-radius: 5px; box-shadow: 7px 7px 0 var(--accent); }
.read-next a { min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 30px; }
.read-next a:hover { background: #2036a5; }
.next-label { color: var(--sunny); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.read-next .category-chip { margin-bottom: 13px; }
.read-next h2 { font-size: clamp(25px, 3.5vw, 34px); line-height: 1.1; letter-spacing: -1.1px; margin: 0 0 11px; }
.read-next p { color: #e2e7ff; font-size: 15px; line-height: 1.45; margin: 0 0 20px; }
.next-action { min-height: 44px; display: inline-flex; align-items: center; background: var(--sunny); color: #2a220b; border-radius: 3px; padding: 10px 15px; font-size: 14px; font-weight: 700; }

.static-page { padding-block: 55px 75px; }
.static-page h1 { margin-top: 20px; }
.static-page h2 { font-size: 25px; letter-spacing: -.8px; margin: 36px 0 12px; }
.static-page > p:not(.article-dek) { font-family: var(--serif); font-size: 20px; line-height: 1.65; }
.not-found { padding-block: 90px 120px; }
.not-found h1 { margin-top: 18px; }
.not-found p { color: var(--muted); line-height: 1.6; max-width: 540px; margin-bottom: 30px; }

.site-footer { background: var(--ink); color: white; border-top: 6px solid var(--accent); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 50px; padding-block: 34px; }
.footer-brand { min-height: 44px; display: inline-flex; align-items: center; font-size: 23px; font-weight: 700; letter-spacing: -1px; }
.footer-inner p { color: #bdc8d9; font-size: 13px; line-height: 1.5; margin: 5px 0 0; max-width: 460px; }
.footer-links { display: flex; gap: 22px; align-items: start; font-size: 14px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-inner .copyright { grid-column: 1 / -1; border-top: 1px solid #46516a; padding-top: 19px; margin: 0; max-width: none; font-size: 12px; }

@media (max-width: 900px) {
  .lead-story { grid-template-columns: 1fr; gap: 35px; padding-block: 44px; }
  .lead-copy h1 { max-width: 760px; }
  .lead-dek { max-width: 680px; }
  .lead-hero, .lead-fallback { max-width: 680px; }
  .feed-item { grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 18px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 82px; }
  .shell, .shell-narrow { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand { font-size: 22px; gap: 7px; }
  .brand-mark { width: 28px; }
  .tagline { display: none; }
  .main-nav { gap: 15px; font-size: 13px; }
  .lead-story { padding-block: 30px 34px; gap: 30px; }
  .story-meta { margin-bottom: 16px; }
  .lead-copy h1 { font-size: clamp(37px, 10.5vw, 48px); letter-spacing: -2.1px; }
  .lead-dek { font-size: 17px; margin-bottom: 22px; }
  .lead-hero img { box-shadow: 6px 6px 0 var(--accent); }
  .lead-fallback { min-height: 200px; font-size: 22px; }
  .editor-note { flex-direction: column; gap: 5px; padding-block: 14px; font-size: 13px; }
  .latest { padding-block: 28px 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-heading h2 { font-size: 28px; }
  .feed-item { min-height: 168px; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px 10px; }
  .feed-thumb { margin-top: 2px; }
  .feed-thumb img { aspect-ratio: 1 / 1; }
  .feed-copy h3 { font-size: 21px; letter-spacing: -.6px; margin-top: 8px; }
  .feed-copy p { font-size: 13px; }
  .feed-action { grid-column: 2; min-height: 35px; flex-direction: row; align-items: center; gap: 10px; border-left: 0; border-top: 2px solid var(--accent); padding: 7px 0 0; }
  .article-header { padding-top: 32px; }
  .article-header h1, .static-page h1, .not-found h1 { font-size: 39px; letter-spacing: -1.9px; }
  .article-dek { font-size: 17px; }
  .article-hero { margin-block: 26px 28px; }
  .key-facts { margin-block: 26px 32px; }
  .facts-heading { align-items: flex-start; flex-direction: column; gap: 4px; padding: 14px 17px; }
  .key-facts dl { grid-template-columns: 1fr; }
  .key-facts dl > div { padding: 16px 17px; }
  .key-facts dl > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .article-body { font-size: 19px; line-height: 1.66; }
  .article-body h2 { font-size: 25px; margin-top: 37px; }
  .read-next { margin-block: 31px 55px; box-shadow: 5px 5px 0 var(--accent); }
  .read-next a { min-height: 250px; padding: 24px 21px; }
  .static-page { padding-block: 42px 60px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .read-story:hover { transform: none; }
}
