:root {
  --ink: #10283b;
  --ink-soft: #435767;
  --paper: #f7f4ee;
  --white: #fffdf9;
  --line: #d9d3c8;
  --accent: #e96b3b;
  --teal: #0f6f72;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 14px; background: var(--white); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.site-header { height: 86px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: rgba(247,244,238,.96); border-bottom: 1px solid rgba(16,40,59,.12); position: relative; z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .04em; }
.brand img { width: 54px; height: 54px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1.05rem; letter-spacing: .12em; }
.brand small { margin-top: 4px; color: var(--ink-soft); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.main-menu { display: flex; align-items: center; gap: 30px; }
.main-menu a { position: relative; text-decoration: none; font-size: .9rem; font-weight: 650; }
.main-menu a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--accent); transition: right .25s ease; }
.main-menu a:hover::after, .main-menu a[aria-current="page"]::after { right: 0; }
.main-menu .nav-cta { padding: 11px 18px; color: white; background: var(--ink); border-radius: 999px; transition: transform .2s ease, background .2s ease; }
.main-menu .nav-cta:hover { transform: translateY(-2px); background: var(--teal); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease; }

.blog-hero { height: clamp(500px, 68svh, 640px); position: relative; display: flex; align-items: flex-end; overflow: hidden; color: white; }
.blog-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; animation: hero-scale 10s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,42,.91) 0%, rgba(9,28,42,.64) 39%, rgba(9,28,42,.08) 70%), linear-gradient(0deg, rgba(9,28,42,.62), transparent 55%); }
.hero-copy { position: relative; z-index: 2; width: min(660px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - var(--max)) / 2)); padding: 0 0 clamp(48px, 8vh, 78px); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.blog-hero .eyebrow { color: #ffb083; }
.blog-hero h1 { margin: 0; max-width: 600px; font: 400 clamp(4rem, 9vw, 8.4rem)/.82 var(--serif); letter-spacing: -.06em; }
.blog-hero p:not(.eyebrow) { max-width: 510px; margin: 28px 0 34px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.88); }
@keyframes hero-scale { from { transform: scale(1.04); } to { transform: scale(1); } }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 999px; color: white; background: var(--ink); font-size: .88rem; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--teal); border-color: var(--teal); }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); gap: 18px; }
.button-light:hover { color: white; }
.button-outline { color: var(--ink); background: transparent; }
.text-link { font-weight: 700; text-underline-offset: 5px; }

.archive-section, .related-section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px 80px; margin-bottom: 58px; }
.section-heading .eyebrow { grid-row: 1 / span 2; }
.section-heading h2, .closing-cta h2, .related-section > h2 { margin: 0; font: 400 clamp(2.3rem, 5vw, 4.6rem)/1 var(--serif); letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 10px 0 0; max-width: 540px; color: var(--ink-soft); }
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 72px 1fr 54px; gap: 28px; align-items: center; padding: 42px 0; border-bottom: 1px solid var(--line); }
.article-number { align-self: start; padding-top: 8px; color: var(--accent); font: italic 1.25rem var(--serif); }
.article-meta { display: flex; gap: 18px; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.article-meta span::before { content: "·"; margin-right: 18px; }
.article-row h3 { margin: 10px 0 12px; max-width: 820px; font: 400 clamp(1.6rem, 3vw, 2.45rem)/1.1 var(--serif); letter-spacing: -.025em; }
.article-row h3 a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom/0 2px no-repeat; transition: background-size .3s ease; }
.article-row:hover h3 a { background-size: 100% 2px; }
.article-row-copy > p { max-width: 760px; margin: 0; color: var(--ink-soft); }
.round-link { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; text-decoration: none; transition: transform .25s ease, background .25s ease, color .25s ease; }
.article-row:hover .round-link { transform: rotate(45deg); color: white; background: var(--ink); }
.empty-state { padding: 70px 0; border-block: 1px solid var(--line); }
.empty-state h3 { margin: 0 0 10px; font: 400 2rem var(--serif); }
.empty-state p { color: var(--ink-soft); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.pagination a[aria-current="page"] { color: white; background: var(--ink); border-color: var(--ink); }

.closing-cta { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); color: white; background: var(--teal); }
.closing-cta .eyebrow { color: #ffc09f; }
.closing-cta h2 { max-width: 900px; }
.closing-cta > div { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.closing-cta .button { color: var(--ink); background: white; border-color: white; }

.single-article { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.article-header { max-width: 980px; padding: 80px 0 54px; }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 64px; color: var(--ink-soft); font-size: .8rem; }
.breadcrumbs a { text-underline-offset: 4px; }
.article-header h1 { margin: 0; font: 400 clamp(3rem, 7vw, 6.4rem)/.95 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.article-lead { max-width: 790px; margin: 30px 0; color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.byline { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .79rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.byline > * + *::before { content: "·"; margin-right: 24px; color: var(--accent); }
.article-rule { border-top: 1px solid var(--line); }
.article-layout { max-width: 720px; margin: 0 auto; padding: 72px 0; }
.article-body { color: #203646; font-family: var(--serif); font-size: 1.18rem; line-height: 1.8; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 2.1em 0 .65em; color: var(--ink); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.035em; }
.article-body h3 { margin: 1.8em 0 .6em; color: var(--ink); font-size: 1.65rem; line-height: 1.2; }
.article-body a { color: var(--teal); text-underline-offset: 4px; }
.article-body blockquote { margin: 2em 0; padding: 10px 0 10px 26px; border-left: 3px solid var(--accent); font-size: 1.35rem; font-style: italic; }
.article-body li { margin-bottom: .45em; }
.medical-note { max-width: 960px; margin: 0 auto 70px; padding: 30px 34px; background: #ebe6db; border-left: 4px solid var(--accent); }
.medical-note strong { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.medical-note p { margin: 8px 0 0; color: var(--ink-soft); }
.sources-section { max-width: 960px; margin: 0 auto; padding: 70px 0 110px; border-top: 1px solid var(--line); }
.sources-section h2 { margin: 0 0 30px; font: 400 3rem var(--serif); }
.sources-section ol { padding-left: 28px; }
.sources-section li { margin: 18px 0; padding-left: 10px; }
.sources-section li a { font-weight: 700; text-underline-offset: 4px; }
.sources-section li span { display: block; color: var(--ink-soft); font-size: .83rem; }
.article-cta { padding: 80px 24px; text-align: center; color: white; background: var(--ink); }
.article-cta h2 { max-width: 800px; margin: 0 auto 30px; font: 400 clamp(2.2rem, 5vw, 4rem)/1 var(--serif); }
.article-cta > div { display: flex; justify-content: center; gap: 12px; }
.article-cta .button { color: var(--ink); background: white; border-color: white; }
.article-cta .button-outline { color: white; background: transparent; }
.related-section > h2 { margin-bottom: 40px; }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; border-top: 1px solid var(--line); }
.related-list article { padding: 34px 0; }
.related-list time { color: var(--ink-soft); font-size: .8rem; }
.related-list h3 { margin: 12px 0 25px; font: 400 2rem/1.1 var(--serif); }
.related-list h3 a { text-decoration: none; }
.related-list article > a { font-weight: 750; text-underline-offset: 5px; }

.error-page { min-height: 65vh; padding: 110px max(24px, calc((100vw - 900px) / 2)); }
.error-page h1 { margin: 0; font: 400 clamp(3rem, 8vw, 6rem)/1 var(--serif); }
.error-page > p:not(.eyebrow) { margin: 24px 0 34px; color: var(--ink-soft); }
.site-footer { padding: 58px max(24px, calc((100vw - var(--max)) / 2)) 28px; color: white; background: #0b202f; display: grid; grid-template-columns: 1fr auto; gap: 34px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 58px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { letter-spacing: .12em; text-transform: uppercase; }
.footer-brand span { color: rgba(255,255,255,.6); font-size: .8rem; }
.site-footer nav { display: flex; gap: 24px; align-items: center; }
.site-footer nav a { color: rgba(255,255,255,.82); font-size: .82rem; }
.site-footer > p { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-size: .74rem; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .site-header { height: 74px; padding-inline: 18px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: .9rem; }
  .menu-toggle { display: block; }
  .main-menu { position: absolute; left: 0; right: 0; top: 74px; padding: 22px 24px 28px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .main-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-menu .nav-cta { margin-top: 14px; padding: 12px 18px; text-align: center; border: 0; }
  .blog-hero { height: min(620px, calc(100svh - 74px)); min-height: 520px; }
  .blog-hero > img { object-position: center 48%; }
  .hero-shade { background: linear-gradient(0deg, rgba(9,28,42,.94), rgba(9,28,42,.12) 80%); }
  .hero-copy { margin: 0 20px; padding-bottom: 52px; }
  .blog-hero h1 { font-size: clamp(3.6rem, 19vw, 5.6rem); }
  .archive-section, .related-section, .single-article { width: min(100% - 36px, var(--max)); }
  .archive-section, .related-section { padding: 76px 0; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-heading h2 { margin-top: 8px; }
  .article-row { grid-template-columns: 40px 1fr; gap: 14px; padding: 30px 0; }
  .article-number { grid-row: 1; }
  .article-row-copy { grid-column: 2; }
  .round-link { display: none; }
  .article-meta { flex-direction: column; gap: 2px; }
  .article-meta span::before { display: none; }
  .closing-cta { padding-block: 76px; }
  .closing-cta > div { align-items: flex-start; flex-direction: column; }
  .article-header { padding: 50px 0 38px; }
  .breadcrumbs { margin-bottom: 42px; }
  .article-layout { display: block; padding: 48px 0; }
  .article-body { font-size: 1.08rem; }
  .medical-note { padding: 24px; }
  .sources-section { padding-bottom: 76px; }
  .article-cta > div { flex-direction: column; align-items: stretch; max-width: 310px; margin: auto; }
  .related-list { grid-template-columns: 1fr; gap: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: 10px; }
}

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