:root {
  --ink: #14282c;
  --ink-soft: #536765;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --white: #ffffff;
  --teal: #0f6c65;
  --teal-dark: #0b514d;
  --teal-soft: #dbe9e3;
  --navy: #17384a;
  --rust: #a55238;
  --coral: #d66d51;
  --gold: #d5a843;
  --line: #d9d4c8;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 20px 54px rgba(20, 40, 44, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid rgba(15, 108, 101, 0.35); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.04; letter-spacing: -0.045em; }
p { margin-top: 0; }

/* Header */
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgba(244, 240, 231, 0.96); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.18rem; font-weight: 850; letter-spacing: -0.04em; text-decoration: none; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 10px 10px 10px 3px; background: var(--teal); transform: rotate(-2deg); }
.brand-mark::before, .brand-mark::after { position: absolute; top: 50%; left: 50%; border-radius: 999px; background: var(--cream); content: ""; transform: translate(-50%, -50%); }
.brand-mark::before { width: 17px; height: 5px; }
.brand-mark::after { width: 5px; height: 17px; }
.brand-accent { color: var(--teal); }
.nav-list { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: #3e5351; font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--teal); }
.menu-toggle { position: relative; display: none; width: 44px; height: 44px; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 23px; height: 2px; margin: 5px auto; background: currentColor; content: ""; transition: opacity 160ms ease, transform 160ms ease; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* Shared editorial elements */
.section { padding: 104px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--teal-dark); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; background: var(--teal); content: ""; }
.eyebrow-light { color: rgba(255,255,255,0.84); }
.eyebrow-light::before { background: var(--gold); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); align-items: end; gap: 70px; margin-bottom: 48px; }
.section-heading h2 { max-width: 680px; margin-bottom: 0; font-size: clamp(2.4rem, 4.8vw, 4.35rem); }
.section-heading p { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 11px 19px; border: 1px solid transparent; border-radius: 999px; font-size: 0.92rem; font-weight: 800; text-decoration: none; }
.button-primary { color: var(--white); background: var(--teal); }
.button-secondary { border-color: var(--line); background: var(--paper); }

/* Homepage */
.editorial-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.editorial-hero-media { width: 100%; margin: 0; }
.editorial-hero-media img { width: 100%; height: auto; }
.editorial-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 34, 0.78) 0%, rgba(10, 31, 34, 0.32) 47%, rgba(10, 31, 34, 0.03) 75%); }
.editorial-hero-copy { position: absolute; z-index: 2; bottom: clamp(38px, 7vw, 104px); left: 50%; transform: translateX(-50%); }
.editorial-hero-copy h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(3rem, 6.2vw, 6rem); text-wrap: balance; }
.editorial-hero-copy p { max-width: 520px; margin: 0; color: rgba(255,255,255,0.9); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.intro-section { padding-top: 112px; background: var(--cream); }
.editorial-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr); align-items: end; gap: 72px; }
.editorial-intro h2 { max-width: 760px; margin: 0; font-size: clamp(2.55rem, 5vw, 4.7rem); }
.editorial-intro p { margin: 0 0 8px; color: var(--ink-soft); font-size: 1.05rem; }
.topic-section { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { display: flex; min-width: 0; flex-direction: column; color: var(--white); text-decoration: none; transition: transform 180ms ease; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card > img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; object-fit: cover; }
.feature-copy { display: flex; min-height: 250px; flex: 1; flex-direction: column; align-items: flex-start; padding: 29px 28px 27px; border-radius: 0 0 var(--radius) var(--radius); }
.feature-teal .feature-copy { background: var(--teal); }
.feature-navy .feature-copy { background: var(--navy); }
.feature-rust .feature-copy { background: var(--rust); }
.card-kicker { margin-bottom: 17px; color: rgba(255,255,255,0.72); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.feature-copy strong { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.25vw, 2.15rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.feature-copy > span:last-child { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; color: rgba(255,255,255,0.82); font-size: 0.87rem; }
.feature-copy b { font-size: 1.2rem; }
.how-section { background: var(--cream); }
.number-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.number-grid article { min-height: 300px; padding: 36px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,253,248,0.6); }
.number-grid article > span { display: block; margin-bottom: 74px; color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-size: 3.2rem; line-height: 1; }
.number-grid h3 { margin: 0 0 12px; font-size: 1.75rem; }
.number-grid p { max-width: 290px; margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.situations-section { background: var(--paper); }
.situations-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 90px; }
.situations-title { position: sticky; top: 122px; align-self: start; }
.situations-title h2 { max-width: 440px; margin: 0; font-size: clamp(2.5rem, 4.8vw, 4.25rem); }
.situation-list { border-top: 1px solid var(--line); }
.situation-list > * { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(190px, 0.85fr) 24px; align-items: center; gap: 18px; min-height: 88px; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.situation-list > * > span { color: var(--teal); font-size: 0.77rem; font-weight: 850; }
.situation-list strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; letter-spacing: -0.02em; }
.situation-list em { color: var(--ink-soft); font-size: 0.86rem; font-style: normal; }
.situation-list b { color: var(--teal); font-size: 1.15rem; }
.situation-list a:hover strong { color: var(--teal); }
.state-feature-section { background: var(--cream); }
.state-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; border-radius: var(--radius); color: var(--white); background: var(--teal-dark); overflow: hidden; box-shadow: var(--shadow); }
.state-feature-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.state-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 62px; }
.state-feature-copy h2 { margin: 0 0 24px; font-size: clamp(2.35rem, 4vw, 3.8rem); }
.state-feature-copy p { margin-bottom: 28px; color: rgba(255,255,255,0.75); }
.text-link-light { align-self: flex-start; color: var(--white); font-weight: 800; text-decoration: none; }
.text-link-light span { padding-left: 9px; }
.method-section { background: var(--cream); }
.method-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 90px; }
.method-layout h2 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.1rem); }
.method-points { border-top: 1px solid var(--line); }
.method-points article { display: grid; grid-template-columns: 58px 1fr; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.method-points article > span { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.method-points h3 { margin: 0 0 4px; font-size: 1.35rem; }
.method-points p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Footer */
.site-footer { padding: 72px 0 30px; color: #d8e2df; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(2, 0.75fr); gap: 60px; padding-bottom: 44px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark::before, .site-footer .brand-mark::after { background: var(--white); }
.footer-about { max-width: 430px; margin-top: 18px; color: #aebdb9; font-size: 0.88rem; }
.footer-title { margin: 0 0 17px; color: var(--white); font-family: inherit; font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #bbc8c5; font-size: 0.88rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-emergency { padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.13); color: #e6d6a8; font-size: 0.8rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.13); color: #8fa39e; font-size: 0.76rem; }

/* Articles */
.page-hero { padding: 76px 0 68px; border-bottom: 1px solid var(--line); background: var(--cream); }
.page-hero .container { width: min(calc(100% - 48px), 1110px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; color: var(--ink-soft); font-size: 0.78rem; }
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }
.page-hero h1 { max-width: 820px; margin: 0 0 25px; font-size: clamp(3.1rem, 6vw, 5.65rem); text-wrap: balance; }
.page-summary { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: clamp(1.06rem, 1.8vw, 1.25rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 11px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.78rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 278px; justify-content: center; gap: 72px; padding: 72px 0 112px; }
.article-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 104px; align-self: start; }
.article-body { grid-column: 1; grid-row: 1; min-width: 0; font-size: 1.1rem; line-height: 1.82; }
.toc { padding: 26px 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 12px 34px rgba(20,40,44,0.05); }
.toc-title { margin: 0 0 18px; color: var(--ink); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.toc ol { display: grid; gap: 13px; margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--teal); }
.answer-box { margin-bottom: 44px; padding: 30px 32px; border-radius: 8px; color: var(--white); background: var(--teal-dark); }
.answer-box strong { display: block; margin-bottom: 9px; color: #f3cf75; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.answer-box p, .answer-box p:last-child { margin-bottom: 0; color: rgba(255,255,255,0.88); }
.article-body h2 { margin: 68px 0 20px; padding-top: 8px; font-size: clamp(2rem, 3.5vw, 2.8rem); scroll-margin-top: 110px; }
.article-body h3 { margin: 42px 0 14px; font-size: 1.55rem; scroll-margin-top: 110px; }
.article-body p, .article-body li { color: #344e50; }
.article-body p { margin: 0 0 21px; }
.article-body ul, .article-body ol { margin: 0 0 29px; padding-left: 1.35rem; }
.article-body li + li { margin-top: 10px; }
.article-body a { color: var(--teal-dark); }
.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0 38px; }
.term-card { padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.term-card strong { display: block; margin-bottom: 5px; color: var(--ink); }
.term-card p { margin: 0; font-size: 0.96rem; }
.note-box { margin: 34px 0; padding: 24px 26px; border-left: 4px solid var(--gold); background: #fbf2d8; }
.note-box strong { color: #705417; }
.steps-list { display: grid; gap: 18px; margin: 28px 0 38px; padding: 0; list-style: none; counter-reset: steps; }
.steps-list li { position: relative; min-height: 58px; padding: 5px 0 5px 68px; counter-increment: steps; }
.steps-list li::before { position: absolute; top: 0; left: 0; display: grid; width: 47px; height: 47px; place-items: center; color: var(--white); background: var(--teal); content: counter(steps, decimal-leading-zero); font-size: 0.73rem; font-weight: 900; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,253,248,0.6); }
.faq-list summary { padding: 19px 4px; font-weight: 800; cursor: pointer; }
.faq-list details p { padding: 0 4px 20px; }
.sources { margin-top: 64px; padding: 34px; border-radius: 8px; color: #dce6e3; background: var(--ink); }
.sources h2 { margin-top: 0; color: var(--white); font-size: 1.85rem; }
.sources li, .sources p { color: #bfd0cc; font-size: 0.93rem; }
.sources strong { color: var(--white); }

/* Standard pages */
.standard-page { max-width: 820px; padding: 84px 0 112px; }
.standard-page::before { display: block; width: 34px; height: 2px; margin-bottom: 25px; background: var(--teal); content: ""; }
.standard-page h1 { margin-bottom: 34px; font-size: clamp(3rem, 6vw, 5.2rem); }
.standard-page h2 { margin: 56px 0 16px; font-size: 2.15rem; }
.standard-page p, .standard-page li { color: #344e50; font-size: 1.05rem; }
.error-page { min-height: 66vh; display: grid; place-items: center; padding: 90px 0; text-align: center; }
.error-code { margin-bottom: 10px; color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 15vw, 10rem); font-weight: 700; line-height: 0.9; }

@media (max-width: 1040px) {
  .feature-grid { gap: 15px; }
  .feature-copy { min-height: 230px; padding: 25px 23px; }
  .article-layout { grid-template-columns: minmax(0, 780px); }
  .article-body { grid-column: 1; }
  .article-sidebar { display: none; }
  .state-feature-copy { padding: 45px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  body.menu-open { overflow: hidden; }
  .site-header { background: rgba(244,240,231,0.99); backdrop-filter: none; }
  .nav-wrap { position: relative; justify-content: center; }
  .nav-wrap > .brand { position: absolute; z-index: 31; left: 50%; transform: translateX(-50%); }
  .menu-toggle { position: absolute; z-index: 32; right: 0; display: block; }
  .nav-list { position: fixed; z-index: 29; top: var(--mobile-menu-top, 72px); right: 0; bottom: 0; left: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 8px; margin: 0; padding: 40px 24px; background: var(--cream); text-align: center; overflow-y: auto; }
  .nav-list.is-open { display: flex; }
  .nav-list a { display: block; width: min(310px, calc(100vw - 48px)); padding: 14px 20px; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
  .section { padding: 78px 0; }
  .section-heading, .editorial-intro, .situations-layout, .method-layout { grid-template-columns: 1fr; gap: 32px; }
  .section-heading { align-items: start; margin-bottom: 36px; }
  .feature-grid { grid-template-columns: 1fr; gap: 26px; }
  .feature-card { display: grid; grid-template-columns: 0.9fr 1.1fr; }
  .feature-card > img { height: 100%; aspect-ratio: auto; border-radius: var(--radius) 0 0 var(--radius); }
  .feature-copy { min-height: 230px; border-radius: 0 var(--radius) var(--radius) 0; }
  .number-grid { grid-template-columns: 1fr; }
  .number-grid article { min-height: 220px; }
  .number-grid article > span { margin-bottom: 40px; }
  .situations-title { position: static; }
  .state-feature { grid-template-columns: 1fr; }
  .state-feature-image img { min-height: 0; aspect-ratio: 3 / 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .page-hero .container { width: min(calc(100% - 32px), 1110px); }
}

@media (max-width: 600px) {
  .editorial-hero { color: var(--white); background: var(--teal-dark); }
  .editorial-hero-shade { display: none; }
  .editorial-hero-copy { position: static; padding-top: 30px; padding-bottom: 34px; transform: none; }
  .editorial-hero-copy h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .editorial-hero-copy p { font-size: 0.98rem; }
  .intro-section { padding-top: 72px; }
  .editorial-intro h2, .section-heading h2, .situations-title h2, .method-layout h2 { font-size: clamp(2.25rem, 10vw, 3.35rem); }
  .feature-card { display: flex; }
  .feature-card > img { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
  .feature-copy { min-height: 215px; border-radius: 0 0 var(--radius) var(--radius); }
  .situation-list > * { grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 11px; }
  .situation-list em { grid-column: 2 / -1; margin-top: -10px; }
  .situation-list b { grid-column: 3; grid-row: 1; }
  .state-feature-copy { padding: 36px 26px 40px; }
  .state-feature-copy h2 { font-size: 2.45rem; }
  .page-hero { padding: 48px 0 46px; }
  .breadcrumbs { margin-bottom: 30px; }
  .page-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .article-layout { padding: 48px 0 82px; }
  .article-body { font-size: 1.07rem; line-height: 1.78; }
  .answer-box { margin-inline: -4px; padding: 25px 23px; }
  .article-body h2 { margin-top: 56px; font-size: 2.05rem; }
  .term-grid { grid-template-columns: 1fr; }
  .sources { padding: 26px 22px; }
  .standard-page { padding-top: 62px; }
  .standard-page h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
