:root {
  --ink: #1d183d;
  --ink-soft: #4e4a65;
  --paper: #fff9ed;
  --paper-deep: #f6eddb;
  --white: #fffdf8;
  --tomato: #d93a31;
  --orange: #ff6940;
  --yellow: #ffd35c;
  --indigo: #201a52;
  --mint: #bde1cc;
  --line: rgba(32, 26, 82, .18);
  --shadow: 0 20px 60px rgba(32, 26, 82, .12);
  --radius: 24px;
  --max: 1180px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Trebuchet MS', 'Avenir Next', Avenir, Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32,26,82,.035) 1px, transparent 1px),
    linear-gradient(rgba(32,26,82,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font: 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--tomato); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--indigo); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 100; padding: .75rem 1rem; background: var(--indigo); color: white; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 780px); margin-inline: auto; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,249,237,.96); }
.nav-shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--indigo); text-decoration: none; font-weight: 900; letter-spacing: -.025em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; position: relative; border-radius: 12px; background: var(--indigo); color: var(--yellow); transform: rotate(-3deg); }
.brand-mark::before { content: ''; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 18px solid currentColor; transform: rotate(23deg); }
.brand span:last-child { line-height: 1.05; }
.brand small { display: block; color: var(--tomato); font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-toggle { display: none; border: 0; border-radius: 12px; padding: .7rem .85rem; background: var(--indigo); color: white; font: inherit; font-weight: 800; }
.site-nav ul { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .55rem .68rem; border-radius: 9px; color: var(--ink); font-size: .88rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--yellow); color: var(--indigo); }

.hero { padding: clamp(3rem, 8vw, 7rem) 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 .9rem; color: var(--tomato); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 30px; height: 5px; border-radius: 99px; background: var(--tomato); }
h1, h2, h3 { margin-top: 0; color: var(--indigo); line-height: 1.08; }
h1 { max-width: 850px; margin-bottom: 1.15rem; font: 800 clamp(2.8rem, 7vw, 6.3rem)/.93 var(--font-display); letter-spacing: -.06em; }
.article-hero h1, .compact-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { margin-bottom: 1rem; font: 800 clamp(2rem, 4vw, 3.35rem)/1 var(--font-display); letter-spacing: -.04em; }
h3 { margin-bottom: .65rem; font-size: 1.16rem; }
.lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.6; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; border: 2px solid var(--indigo); border-radius: 99px; background: var(--indigo); color: white; font-weight: 900; text-decoration: none; box-shadow: 4px 4px 0 var(--yellow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.button:hover { color: white; transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--yellow); }
.button.alt { background: transparent; color: var(--indigo); box-shadow: none; }
.button.alt:hover { background: var(--white); color: var(--indigo); }
.hero-media { position: relative; }
.hero-media::before { content: ''; position: absolute; inset: -16px 25px 25px -16px; z-index: -1; border: 3px solid var(--indigo); border-radius: 48% 52% 45% 55% / 60% 40% 60% 40%; background: var(--yellow); transform: rotate(-3deg); }
.hero-media img { width: 100%; aspect-ratio: 1.18; object-fit: cover; border: 5px solid var(--indigo); border-radius: 48% 52% 45% 55% / 58% 42% 58% 42%; box-shadow: var(--shadow); transform: rotate(2deg); }
.stamp { position: absolute; right: -10px; bottom: -16px; width: 112px; aspect-ratio: 1; display: grid; place-items: center; padding: 1rem; border-radius: 50%; background: var(--tomato); color: white; font-size: .72rem; font-weight: 900; line-height: 1.15; text-align: center; text-transform: uppercase; transform: rotate(-8deg); box-shadow: 0 0 0 7px var(--paper), 0 0 0 9px var(--tomato); }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-tight { padding: 2.5rem 0; }
.section-dark { background: var(--indigo); color: #f8f3ff; }
.section-dark h2, .section-dark h3, .section-dark a { color: white; }
.section-dark .eyebrow { color: var(--yellow); }
.section-dark .eyebrow::before { background: var(--yellow); }
.section-yellow { background: var(--yellow); }
.section-tomato { background: var(--tomato); color: white; }
.section-tomato h2, .section-tomato h3 { color: white; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: 1.5rem; border: 2px solid var(--indigo); border-radius: var(--radius); background: var(--white); box-shadow: 6px 6px 0 rgba(32,26,82,.12); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card-link:hover { color: inherit; transform: translateY(-5px) rotate(-.25deg); box-shadow: 9px 11px 0 var(--yellow); }
.card-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: var(--yellow); color: var(--indigo); font-weight: 900; }
.tag { display: inline-block; margin-bottom: .7rem; padding: .25rem .55rem; border-radius: 99px; background: var(--paper-deep); color: var(--tomato); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.card-media { margin: -1.5rem -1.5rem 1.25rem; overflow: hidden; border-bottom: 2px solid var(--indigo); border-radius: 21px 21px 0 0; }
.card-media img { width: 100%; aspect-ratio: 1.4; object-fit: cover; transition: transform .45s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.035); }

.decision-strip { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); border: 2px solid var(--indigo); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.decision-strip > div { padding: 1.4rem; border-right: 1px solid var(--line); }
.decision-strip > div:last-child { border: 0; }
.decision-strip strong { display: block; margin-bottom: .35rem; color: var(--tomato); font-size: 1.05rem; }
.big-quote { margin: 0; padding: 2rem; border-left: 8px solid var(--yellow); font: 800 clamp(1.55rem, 3vw, 2.5rem)/1.25 var(--font-display); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin: .7rem 0; padding-left: 1.9rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--tomato); font-weight: 900; }
.note { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-left: 7px solid var(--tomato); border-radius: 0 16px 16px 0; background: var(--white); }
.note strong { color: var(--indigo); }
.metric { padding: 1.25rem 0; border-top: 2px solid currentColor; }
.metric span { display: block; color: var(--tomato); font: 800 2.6rem/1 var(--font-display); }

.compact-hero { padding: clamp(3rem, 7vw, 6rem) 0 3rem; border-bottom: 1px solid var(--line); background: linear-gradient(140deg, var(--paper), var(--paper-deep)); }
.breadcrumbs { margin-bottom: 1.4rem; color: var(--ink-soft); font-size: .8rem; font-weight: 800; }
.breadcrumbs a { color: inherit; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: 3rem; align-items: start; }
.article-body { min-width: 0; }
.article-body > p:first-of-type { color: var(--ink); font-size: 1.22rem; line-height: 1.62; }
.article-body h2 { margin-top: 3.3rem; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.article-body h3 { margin-top: 2rem; }
.article-body p, .article-body li { color: #39344d; }
.article-body li { margin-bottom: .55rem; }
.article-figure { margin: 2rem 0; }
.article-figure img { width: 100%; max-height: 560px; object-fit: cover; border: 3px solid var(--indigo); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--yellow); }
.article-figure figcaption { margin-top: .85rem; color: var(--ink-soft); font-size: .78rem; }
.side-card { position: sticky; top: 1rem; padding: 1.25rem; border: 2px solid var(--indigo); border-radius: 18px; background: var(--yellow); }
.side-card ul { padding-left: 1.2rem; }
.side-card a { color: var(--indigo); font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: 1.4rem; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.prose-table-wrap { margin: 2rem 0; overflow-x: auto; border: 2px solid var(--indigo); border-radius: 18px; background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--indigo); color: white; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.image-band { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 470px; }
.image-band img { width: 100%; height: 100%; object-fit: cover; }
.image-band-copy { display: grid; align-content: center; padding: clamp(2rem, 6vw, 5rem); background: var(--tomato); color: white; }
.image-band-copy h2 { color: white; }
.callout { padding: clamp(2rem, 5vw, 4rem); border: 3px solid var(--indigo); border-radius: 36px; background: var(--yellow); box-shadow: 12px 12px 0 var(--indigo); }
.callout h2 { max-width: 780px; }

.site-footer { padding: 4rem 0 2rem; background: #171337; color: #dcd8eb; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer .brand { color: white; }
.site-footer h2 { color: white; font: 800 1rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: .45rem 0; }
.site-footer a { color: #f3eede; }
.disclaimer { max-width: 570px; margin-top: 1rem; color: #aaa5bd; font-size: .76rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.15); color: #aaa5bd; font-size: .75rem; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 950px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 82px 1rem auto; display: none; padding: .75rem; border: 2px solid var(--indigo); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; }
  .site-nav a { padding: .8rem; }
  .hero-grid, .image-band { grid-template-columns: 1fr; }
  .hero-media { width: min(85%, 620px); margin: 2rem auto 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .decision-strip { grid-template-columns: repeat(2, 1fr); }
  .decision-strip > div:nth-child(2) { border-right: 0; }
  .decision-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .article-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .wrap, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .nav-shell { min-height: 72px; }
  .site-nav { inset: 72px .65rem auto; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { padding-top: 3rem; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-media { width: 92%; }
  .stamp { width: 86px; right: -2px; font-size: .58rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .decision-strip { grid-template-columns: 1fr; }
  .decision-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .button-row { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .article-figure { margin-inline: 0; }
  .callout { border-radius: 24px; box-shadow: 7px 7px 0 var(--indigo); }
}

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