:root {
  color-scheme: light;
  --bg: #edf0f4;
  --surface: #f8f8f5;
  --surface-2: #dfe5ed;
  --ink: #121a28;
  --muted: #596376;
  --line: #c8ced8;
  --accent: #315be8;
  --accent-ink: #f7f8ff;
  --signal: #c5ef63;
  --header: rgba(237, 240, 244, .91);
  --radius: 2px;
  --page: 1120px;
  --reading: 720px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111722;
  --surface: #181f2b;
  --surface-2: #222c3a;
  --ink: #edf1f7;
  --muted: #a8b1c1;
  --line: #344052;
  --accent: #86a2ff;
  --accent-ink: #101725;
  --signal: #c5ef63;
  --header: rgba(17, 23, 34, .91);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111722;
    --surface: #181f2b;
    --surface-2: #222c3a;
    --ink: #edf1f7;
    --muted: #a8b1c1;
    --line: #344052;
    --accent: #86a2ff;
    --accent-ink: #101725;
    --signal: #c5ef63;
    --header: rgba(17, 23, 34, .91);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--signal); color: #121a28; }
.page-width { width: min(calc(100% - 48px), var(--page)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; padding: 10px 14px; background: var(--signal); color: #121a28; z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 48px), var(--page)); height: 68px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px; background: var(--ink); }
.brand-mark i { display: block; background: var(--bg); }
.brand-mark i:last-child { background: var(--signal); }
.desktop-nav { display: flex; align-items: center; gap: 32px; white-space: nowrap; }
.desktop-nav a { font-size: 13px; color: var(--muted); transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; font-size: 12px; cursor: pointer; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--ink); }
.theme-toggle:active, .menu-toggle:active { transform: translateY(1px); }
.menu-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px 24px 20px; background: var(--bg); }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

.masthead { padding-block: clamp(48px, 7vw, 92px) 72px; }
.masthead-copy { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: end; padding-bottom: 42px; }
.kicker { margin: 0; align-self: start; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.masthead h1 { grid-column: 2; margin: -6px 0 0; max-width: 760px; font-size: clamp(40px, 6vw, 74px); line-height: .99; letter-spacing: -.055em; font-weight: 650; }
.masthead-intro { grid-column: 2; margin: 16px 0 0; max-width: 540px; color: var(--muted); font-size: 17px; }
.lead-story { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); min-height: 470px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.lead-story figure { margin: 0; min-height: 470px; overflow: hidden; }
.lead-story img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.lead-story:hover img { transform: scale(1.018); }
.lead-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 52px); }
.story-topic { display: block; margin-bottom: 13px; color: var(--accent); font-size: 12px; font-weight: 700; }
.lead-copy h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.04em; font-weight: 650; }
.lead-copy p { margin: 17px 0 0; color: var(--muted); }
.read-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 36px; color: var(--ink); font-size: 13px; font-weight: 700; }
.read-link b { color: var(--accent); transition: transform .2s ease; }
a:hover .read-link b { transform: translate(2px, -2px); }

.story-section { padding-block: 88px; scroll-margin-top: 68px; }
.story-section + .story-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 610px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; font-weight: 650; }
.section-heading p { margin: 14px 0 0; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 24px; }
.story-grid-offset { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); align-items: end; }
.story-grid .story-card-wide:last-child { grid-column: 1 / -1; width: 76%; margin-left: auto; }
.story-card a { display: block; }
.image-wrap { aspect-ratio: 8 / 5; overflow: hidden; background: var(--surface-2); border-radius: var(--radius); }
.image-wrap img { height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.story-card a:hover img { transform: scale(1.02); filter: saturate(1.04); }
.story-copy { padding: 17px 2px 0; }
.story-copy h3 { margin: 0; max-width: 22ch; font-size: clamp(22px, 2.5vw, 31px); line-height: 1.13; letter-spacing: -.035em; font-weight: 650; }
.story-copy p { max-width: 47ch; margin: 11px 0 0; color: var(--muted); font-size: 14px; }
.story-card-compact .story-copy h3 { font-size: clamp(20px, 2.2vw, 27px); }

.ad-placement { width: 100%; overflow: hidden; }
.ad-frame { width: min(calc(100% - 48px), var(--page)); margin-inline: auto; padding-block: 18px; border-block: 1px solid var(--line); }
.ad-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.maxton-ad-slot { display: flex; min-height: 90px; align-items: center; justify-content: center; margin-inline: auto; overflow: hidden; }
.ad-is-empty { display: none; }
.home-ad { margin-bottom: 22px; }
.article-ad { margin-block: 48px 52px; }
.article-ad .ad-frame { width: 100%; }

.feature-band { padding-block: 90px; background: var(--surface-2); scroll-margin-top: 68px; }
.feature-inner { display: grid; grid-template-columns: .72fr 1.45fr; align-items: stretch; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); overflow: hidden; }
.feature-copy { display: flex; min-height: 510px; flex-direction: column; justify-content: flex-end; padding: clamp(30px, 5vw, 58px); }
.feature-copy .story-topic { color: var(--signal); }
.feature-copy h2 { margin: 0; font-size: clamp(36px, 4.6vw, 62px); line-height: 1; letter-spacing: -.05em; font-weight: 650; }
.feature-copy p { max-width: 37ch; margin: 18px 0 0; opacity: .8; }
.feature-copy .read-link { color: var(--accent-ink); }
.feature-copy .read-link b { color: var(--signal); }
.feature-image { min-height: 510px; overflow: hidden; }
.feature-image img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.feature-inner:hover .feature-image img { transform: scale(1.018); }

.table-stories { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: end; }
.table-side { padding-bottom: 8px; }
.closing-note { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 86px; border-top: 1px solid var(--line); }
.closing-note p { max-width: 610px; margin: 0; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.closing-note a { flex: 0 0 auto; color: var(--accent); font-size: 14px; font-weight: 700; }

.site-footer { background: var(--ink); color: var(--bg); }
.footer-inner { min-height: 190px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-content: center; }
.footer-brand .brand-mark { background: var(--bg); }
.footer-brand .brand-mark i { background: var(--ink); }
.footer-brand .brand-mark i:last-child { background: var(--signal); }
.footer-inner nav { display: flex; gap: 24px; font-size: 13px; }
.footer-inner nav a:hover { color: var(--signal); }
.footer-inner > p { grid-column: 1 / -1; margin: 0; opacity: .58; font-size: 11px; }

/* Article and information pages */
.article-shell { min-height: 70dvh; }
.article-hero { width: min(calc(100% - 48px), 920px); margin: 0 auto; padding-block: clamp(52px, 8vw, 104px) 48px; }
.article-back { display: inline-flex; margin-bottom: 44px; color: var(--accent); font-size: 13px; font-weight: 700; }
.article-topic { margin: 0 0 17px; color: var(--accent); font-size: 12px; font-weight: 700; }
.article-hero h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: .99; letter-spacing: -.055em; font-weight: 650; }
.article-deck { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.article-meta { display: flex; gap: 18px; margin-top: 25px; color: var(--muted); font-size: 12px; }
.article-byline { display: grid; gap: 2px; margin-top: 28px; }
.article-byline strong { font-size: 14px; }
.article-byline span { color: var(--muted); font-size: 12px; }
.article-image { width: min(calc(100% - 48px), var(--page)); margin: 0 auto; aspect-ratio: 8 / 5; overflow: hidden; background: var(--surface-2); }
.article-image img { height: 100%; object-fit: cover; }
.article-body { width: min(calc(100% - 48px), var(--reading)); margin: 0 auto; padding-block: 68px 100px; }
.article-intro { margin: 0 0 50px; font-size: 22px; line-height: 1.65; letter-spacing: -.012em; }
.article-body section { margin-top: 48px; }
.article-body h2 { margin: 0 0 18px; font-size: 29px; line-height: 1.15; letter-spacing: -.035em; }
.article-body p { margin: 0 0 20px; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); font-size: 17px; line-height: 1.78; }
.editorial-note { padding: 20px 22px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 14px !important; line-height: 1.65 !important; }
.article-takeaways { margin-top: 54px; padding: 30px; background: var(--surface-2); }
.article-takeaways h2, .article-sources h2 { margin-top: 0; }
.article-takeaways ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; margin: 0; padding: 0; list-style: none; counter-reset: takeaway; }
.article-takeaways li { position: relative; padding-left: 28px; line-height: 1.55; counter-increment: takeaway; }
.article-takeaways li::before { content: counter(takeaway); position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 12px; font-weight: 800; }
.article-sources { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.article-sources ul { display: grid; gap: 12px; padding-left: 20px; }
.article-sources li { color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-sources a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.article-sources a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.more-stories { width: min(calc(100% - 48px), var(--page)); margin: 0 auto; padding-block: 72px 90px; border-top: 1px solid var(--line); }
.more-stories h2 { margin: 0 0 28px; font-size: 34px; letter-spacing: -.04em; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.article-loading { width: min(calc(100% - 48px), 920px); margin: 80px auto; }
.skeleton { height: 18px; margin-bottom: 13px; background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite alternate; }
.skeleton-title { width: 78%; height: 66px; }
.article-error { width: min(calc(100% - 48px), 680px); margin: 120px auto; text-align: center; }
.article-error a { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 700; }

.info-page { width: min(calc(100% - 48px), 780px); min-height: 70dvh; margin: 0 auto; padding-block: clamp(60px, 9vw, 116px); }
.info-page h1 { margin: 0 0 28px; font-size: clamp(46px, 7vw, 76px); line-height: 1; letter-spacing: -.055em; }
.info-lead { margin: 0 0 52px; max-width: 650px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.info-page section { margin-top: 44px; }
.info-page h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.03em; }
.info-page p, .info-page li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); line-height: 1.75; }
.info-page ul { padding-left: 20px; }
.contact-form { display: grid; gap: 22px; margin-top: 42px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 14px 15px; outline: none; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 88%, transparent); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }
.form-button { width: fit-content; min-width: 140px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); padding: 14px 22px; font-weight: 750; cursor: pointer; }
.form-button:active { transform: translateY(1px); }
.form-status { min-height: 24px; margin: 0; color: var(--accent); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes pulse { from { opacity: .42; } to { opacity: 1; } }

@media (max-width: 820px) {
  .page-width, .header-inner { width: min(calc(100% - 32px), var(--page)); }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .masthead { padding-block: 50px 56px; }
  .masthead-copy { display: block; padding-bottom: 30px; }
  .masthead h1 { margin-top: 22px; max-width: 620px; }
  .masthead-intro { margin-top: 16px; }
  .lead-story { grid-template-columns: 1fr; min-height: 0; }
  .lead-story figure { min-height: 0; aspect-ratio: 8 / 5; }
  .lead-copy { min-height: 310px; }
  .story-section { padding-block: 68px; }
  .story-grid-offset, .story-grid { grid-template-columns: 1fr; gap: 42px; }
  .story-grid .story-card-wide:last-child { grid-column: auto; width: 100%; margin-left: 0; }
  .story-card-compact .story-copy h3, .story-copy h3 { font-size: 26px; }
  .feature-band { padding-block: 56px; }
  .feature-inner { grid-template-columns: 1fr; }
  .feature-copy { min-height: 350px; }
  .feature-image { min-height: 0; aspect-ratio: 8 / 5; order: -1; }
  .table-stories { grid-template-columns: 1fr; gap: 42px; }
  .closing-note { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
  .footer-inner > p { grid-column: auto; }
  .more-grid { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 520px) {
  .page-width, .header-inner, .article-hero, .article-image, .article-body, .more-stories, .info-page { width: calc(100% - 32px); }
  .site-header { backdrop-filter: none; }
  .brand { font-size: 11px; }
  .brand-mark { width: 26px; height: 26px; }
  .theme-toggle { display: none; }
  .masthead h1 { font-size: 43px; }
  .lead-copy { min-height: 270px; padding: 27px 24px; }
  .lead-copy h2 { font-size: 33px; }
  .section-heading h2 { font-size: 38px; }
  .feature-copy { min-height: 320px; padding: 30px 24px; }
  .feature-copy h2 { font-size: 40px; }
  .article-hero { padding-top: 44px; }
  .article-back { margin-bottom: 34px; }
  .article-hero h1 { font-size: 45px; }
  .article-deck { font-size: 17px; }
  .article-meta { flex-wrap: wrap; gap: 8px 14px; }
  .article-body { padding-block: 52px 78px; }
  .article-intro { font-size: 20px; }
  .article-takeaways { padding: 24px 20px; }
  .article-takeaways ul { grid-template-columns: 1fr; }
  .ad-frame { width: 100%; }
  .maxton-ad-slot { min-height: 100px; }
  .footer-inner nav { flex-wrap: wrap; gap: 15px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
