:root {
  --paper: #faf8f4;
  --paper-2: #f1f0e8;
  --white: #fff;
  --ink: #063b36;
  --text: #294943;
  --muted: #58716d;
  --plum: #6550a3;
  --lavender: #d6c8f4;
  --lavender-soft: #efedf7;
  --line: rgba(6, 59, 54, .16);
  --focus: #dba43a;
  --wrap: min(1240px, calc(100vw - 40px));
  --reading: min(720px, calc(100vw - 40px));
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.65; }
.article-page { background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--lavender); color: var(--ink); }

.skip { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; transform: translateY(-160%); }
.skip:focus { transform: none; }

header { position: sticky; z-index: 100; top: 0; padding: 10px 20px; transform: translateY(0); transition: transform 280ms var(--ease); }
header.nav-hidden { transform: translateY(-100%); }
.nav { position: relative; display: flex; width: min(960px, calc(100% - 32px)); min-height: 56px; align-items: center; gap: 22px; margin: auto; padding: 6px 7px 6px 18px; border: 1px solid rgba(6, 59, 54, .1); border-radius: 14px; background: var(--paper-2); box-shadow: 0 12px 32px rgba(6, 59, 54, .16); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mark { display: grid; width: 24px; height: 24px; place-items: center; }
.mark img { width: 18px; height: 18px; }
.mark svg { width: 18px; height: 18px; }
.brand-lockup { display: grid; gap: 3px; line-height: 1; text-align: left; }
.brand-lockup strong { font: inherit; font-weight: 800; }
.brand-curator { display: inline-block; margin-left: .04em; font-family: Newsreader, serif; font-size: 1.12em; font-style: italic; font-weight: 600; letter-spacing: -.035em; transform: translateY(.015em); }
.brand-lockup small { font-size: 8px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; opacity: .68; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nav-links > a { display: flex; min-height: 32px; align-items: center; text-decoration: none; }
.nav-links > a[aria-current="page"], .resources-trigger[aria-current="page"] { color: var(--plum); }
.nav-cta { flex: none; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid currentColor; border-radius: 999px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform 200ms var(--ease), background 200ms ease, color 200ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; background: #fff; color: var(--ink); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.nav-cta .btn { min-height: 42px; padding: 9px 18px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.menu { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--ink); color: #fff; }
.menu svg { width: 22px; height: 22px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 32px; color: var(--muted); font-size: .78rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.blog-hero { margin-top: -76px; padding: clamp(156px, 16vw, 220px) 20px clamp(82px, 9vw, 126px); background: var(--lavender); }
.blog-hero .inner, .blog-library .inner { width: var(--wrap); margin: auto; }
h1, h2, h3 { margin-top: 0; font-family: 'Space Grotesk', Inter, sans-serif; letter-spacing: -.035em; line-height: 1.02; }
.blog-hero h1 { max-width: 15ch; margin-bottom: 24px; font-size: clamp(3.2rem, 6.2vw, 6.7rem); }
.blog-hero p { max-width: 62ch; margin: 0; color: var(--text); font-size: 1.08rem; }
.blog-library { padding: clamp(74px, 9vw, 124px) 20px; background: #fff; }
.resource-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resource-primary { grid-column: 1 / -1; max-width: none; }
.resource-tile { display: flex; min-height: 390px; flex-direction: column; align-items: flex-start; padding: clamp(30px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.resource-tile.resource-guides { background: var(--lavender-soft); }
.resource-tile h2 { max-width: 15ch; margin-bottom: 18px; font-size: clamp(2rem, 3.2vw, 3.25rem); }
.resource-tile > p:not(.article-meta) { max-width: 48ch; margin: 0 0 28px; color: var(--text); }
.resource-tile .btn { margin-top: auto; }
.featured-article { max-width: 960px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--lavender-soft); }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 5vw, 64px); }
.article-meta { margin: 0 0 18px; color: var(--plum); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.feature-copy h2 { max-width: 15ch; margin-bottom: 20px; font-size: clamp(2.25rem, 4vw, 4.3rem); }
.feature-copy p:not(.article-meta) { max-width: 49ch; margin: 0 0 28px; color: var(--text); }
.blog-note { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 18px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.blog-note p { margin: 0; color: var(--muted); }

.article-hero { margin-top: -76px; padding: clamp(148px, 15vw, 208px) 20px clamp(72px, 8vw, 108px); background: var(--ink); color: #fff; }
.article-hero .inner { width: min(1200px, calc(100vw - 40px)); margin: auto; }
.article-hero .breadcrumb { color: rgba(255, 255, 255, .68); }
.article-hero h1 { max-width: 17ch; margin: 0 0 26px; font-size: clamp(2.8rem, 5.3vw, 5.8rem); color: #fff; text-wrap: balance; }
.article-hero .dek { max-width: 65ch; margin: 0; color: rgba(255, 255, 255, .82); font-size: clamp(1.05rem, 1.45vw, 1.28rem); }
.article-hero .byline { margin: 28px 0 0; color: var(--lavender); font-size: .78rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 720px); justify-content: center; gap: clamp(40px, 7vw, 96px); width: min(1160px, calc(100vw - 40px)); margin: clamp(58px, 7vw, 88px) auto clamp(70px, 9vw, 116px); }
.toc { position: sticky; top: 100px; align-self: start; }
.toc strong { display: block; margin-bottom: 12px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; padding: 8px 0; color: var(--text); font-size: .8rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--plum); text-decoration: underline; }
.article-body { min-width: 0; }
.article-body p { margin: 0 0 25px; color: #1f403a; font-size: 1rem; line-height: 1.78; }
.article-body h2 { scroll-margin-top: 110px; margin: 72px 0 24px; font-size: clamp(2rem, 3.5vw, 3.1rem); }
.article-body h3 { scroll-margin-top: 110px; margin: 48px 0 16px; color: var(--plum); font-size: clamp(1.3rem, 1.8vw, 1.65rem); }
.article-body ul { margin: 0 0 28px; padding-left: 24px; }
.article-body li { padding-left: 7px; color: #1f403a; font-size: 1rem; line-height: 1.72; }
.article-body li + li { margin-top: 10px; }
.article-body a { color: var(--plum); font-weight: 650; }
.article-body .lead-paragraph { color: var(--ink); font-size: 1.16rem; line-height: 1.68; }
.principle { margin: 42px 0; padding: clamp(26px, 4vw, 42px); border-radius: 16px; background: var(--lavender-soft); }
.principle h3 { margin-top: 0; }
.principle > :last-child { margin-bottom: 0; }
.source-list { padding-top: 26px; border-top: 1px solid var(--line); }
.source-list li { font-size: .9rem; }
.article-close { padding: clamp(66px, 8vw, 104px) 20px; background: var(--lavender); }
.article-close .inner { display: grid; grid-template-columns: minmax(0, 650px) max-content; align-items: center; justify-content: center; gap: clamp(36px, 7vw, 94px); width: var(--wrap); margin: auto; }
.article-close h2 { max-width: 16ch; margin-bottom: 14px; font-size: clamp(2.35rem, 4.5vw, 4.8rem); }
.article-close p { max-width: 62ch; margin: 0; color: var(--text); }

footer { padding: 44px 20px 28px; background: #042f2b; color: #fff; }
.foot { display: flex; width: var(--wrap); align-items: flex-start; justify-content: space-between; gap: 34px; margin: auto; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; text-decoration: none; }
.foot-brand .mark { width: 28px; height: 28px; }
.foot-brand .mark svg { width: 23px; height: 23px; }
.foot-brand .brand-lockup small { color: rgba(255, 255, 255, .72); }
.foot p { max-width: 52ch; margin: 10px 0 0; color: rgba(255, 255, 255, .72); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; font-size: .82rem; font-weight: 700; }
.copyright { width: var(--wrap); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .62); font-size: .76rem; }

@media (max-width: 950px) {
  .nav-links { display: none; margin-left: 0; }
  .nav-links.is-open { position: absolute; top: 62px; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 35px rgba(6, 59, 54, .12); }
  .nav-links.is-open > a { width: 100%; min-height: 44px; justify-content: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 15px; letter-spacing: .06em; text-align: left; }
  .menu { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .toc div { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .toc a { display: inline-flex; }
  .article-close .inner { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
  .foot-links { justify-content: flex-start; }
  .resource-library { grid-template-columns: 1fr; }
  .resource-primary { grid-column: auto; }
  .resource-tile { min-height: 0; }
}

@media (max-width: 560px) {
  :root { --wrap: min(100%, calc(100vw - 36px)); }
  header { padding-inline: 10px; }
  .nav { width: 100%; gap: 8px; padding-left: 10px; }
  .blog-hero, .article-hero { margin-top: -76px; padding-right: 18px; padding-left: 18px; }
  .blog-hero h1, .article-hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .blog-library { padding-right: 18px; padding-left: 18px; }
  .feature-copy { padding: 30px 22px 34px; }
  .blog-note { align-items: flex-start; flex-direction: column; }
  .article-layout { width: auto; margin-right: 20px; margin-left: 20px; }
  .article-body p { font-size: 1rem; line-height: 1.72; }
  .article-body .lead-paragraph { font-size: 1.13rem; }
  .article-body h2 { margin-top: 58px; }
  .article-close .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  header, .btn { transition: none; }
}
