:root {
  --ink: #1f2b27;
  --muted: #58655f;
  --paper: #fbf8f3;
  --cream: #f3eadf;
  --sage: #dbe6de;
  --moss: #31584d;
  --moss-dark: #234239;
  --clay: #b75f3a;
  --line: #ded8ce;
  --white: #fff;
  --shadow: 0 20px 55px rgba(39, 52, 47, .09);
  --radius: 22px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--moss); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--clay); }
h1, h2, h3 {
  margin: 0 0 .65em;
  color: #1c3029;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.65rem, 7vw, 5.8rem); }
h2 { margin-top: 1.6em; font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { margin-top: 1.4em; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
p, ul, ol, table, blockquote { margin: 0 0 1.25em; }
strong { color: #17392f; }
.wrap { width: min(calc(100% - 36px), var(--wrap)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 50; border-bottom: 1px solid rgba(49,88,77,.13); background: rgba(251,248,243,.96); }
.site-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-family: Georgia, serif; font-size: 1.3rem; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.menu, .sub-menu, .footer-menu { margin: 0; padding: 0; list-style: none; }
.primary-navigation > .menu { display: flex; align-items: center; gap: 5px; }
.primary-navigation .menu-item { position: relative; }
.primary-navigation a { display: block; padding: 12px 13px; border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 680; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { background: var(--sage); color: var(--moss-dark); }
.primary-navigation .sub-menu {
  position: absolute; left: 0; top: calc(100% + 3px); width: 255px; padding: 9px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-navigation .sub-menu a { padding: 10px 11px; font-weight: 570; }
.primary-navigation > .menu > .menu-item:last-child > .sub-menu { right: 0; left: auto; }
.nav-toggle { display: none; width: 46px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.nav-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.home-hero { padding: clamp(42px, 7vw, 88px) 0 64px; overflow: hidden; background: linear-gradient(180deg,#f5ede3 0%,var(--paper) 100%); }
.home-hero__grid { display: grid; grid-template-columns: minmax(0,.88fr) minmax(440px,1.12fr); align-items: center; gap: clamp(34px,6vw,88px); }
.eyebrow { margin-bottom: 16px; color: var(--clay); font-size: .75rem; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.home-hero h1 { max-width: 780px; }
.hero-lead { max-width: 700px; color: var(--muted); font-size: clamp(1.08rem,2vw,1.35rem); line-height: 1.55; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 30px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 999px; background: var(--moss); color: #fff; font-weight: 760; text-decoration: none; box-shadow: 0 8px 20px rgba(49,88,77,.18); }
.button:hover { background: var(--moss-dark); color: #fff; transform: translateY(-1px); }
.text-link { font-weight: 760; text-decoration: none; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--moss); font-weight: 900; }
.home-hero__media { position: relative; margin: 0; }
.home-hero__media::before { content: ""; position: absolute; inset: -18px 22px 26px -24px; z-index: 0; border-radius: 48% 52% 52% 48%; background: #d9cbb9; transform: rotate(-3deg); }
.home-hero__media img { position: relative; z-index: 1; aspect-ratio: 3/2; border-radius: 52% 48% 44% 56% / 46% 52% 48% 54%; object-fit: cover; box-shadow: var(--shadow); }
.home-hero__media figcaption { position: absolute; right: 14px; bottom: -25px; z-index: 2; max-width: 310px; padding: 13px 17px; border-radius: 13px; background: #fff; color: var(--muted); box-shadow: var(--shadow); font-size: .78rem; }
.home-content { padding-block: 35px 100px; }

.section-intro { max-width: 760px; margin-bottom: 30px; }
.section-intro h2 { margin-bottom: .3em; }
.silo-section { padding-top: 32px; scroll-margin-top: 24px; }
.silo-section + .silo-section { margin-top: 34px; border-top: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card-grid--featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
.content-card { position: relative; display: flex; min-height: 245px; flex-direction: column; padding: 27px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: 0 8px 26px rgba(39,52,47,.05); transition: transform .18s ease, box-shadow .18s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.content-card h3, .content-card h2 { margin-top: 0; font-size: 1.55rem; }
.content-card h3 a, .content-card h2 a { color: var(--ink); text-decoration: none; }
.content-card p { color: var(--muted); font-size: .94rem; }
.content-card .text-link { margin-top: auto; }
.content-card--sage { background: var(--sage); }
.content-card--cream { background: var(--cream); }
.content-card--clay { background: #f2dfd5; }
.content-card__number { margin-bottom: auto; color: var(--clay); font-family: Georgia,serif; font-size: 2.7rem; line-height: 1; }
.callout { margin: 36px 0; padding: 28px clamp(24px,4vw,42px); border-radius: var(--radius); background: var(--sage); }
.callout h2, .callout h3 { margin-top: 0; }
.future-tools { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 28px 0; }
.future-tool { padding: 22px; border: 1px dashed #91a69c; border-radius: 16px; background: rgba(255,255,255,.5); }
.future-tool strong { display: block; }
.future-tool span { color: var(--muted); font-size: .85rem; }

.breadcrumbs { padding-top: 19px; color: var(--muted); font-size: .78rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #a9afa9; }
.breadcrumbs a { color: var(--muted); }
.article { padding-bottom: 96px; }
.article-header { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.72fr); align-items: center; gap: clamp(34px,6vw,80px); padding: 45px 0 58px; }
.article-header h1 { font-size: clamp(2.55rem,6vw,4.8rem); }
.article-header__image { aspect-ratio: 4/3; width: 100%; border-radius: 42% 58% 45% 55% / 50% 44% 56% 50%; object-fit: cover; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0,760px) minmax(230px,300px); align-items: start; justify-content: space-between; gap: clamp(35px,6vw,80px); }
.article-content { min-width: 0; }
.article-content > :first-child { margin-top: 0; }
.article-content > p:first-child { color: #35443e; font-size: 1.12rem; }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-content li { margin-bottom: .42em; }
.article-content a { font-weight: 650; }
.article-sidebar { position: sticky; top: 24px; }
.sidebar-card { padding: 24px; border-radius: 18px; background: var(--cream); font-size: .87rem; }
.sidebar-card p:last-of-type { color: var(--muted); }
.quick-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 28px 0 38px; padding: 0; list-style: none; }
.quick-facts li { padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.quick-facts strong { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.pattern-note { padding: 22px 24px; border-left: 5px solid var(--clay); border-radius: 0 15px 15px 0; background: #f7e9e2; }
.related-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; }
.related-links li { margin: 0; }
.related-links a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; }
.faq-list { margin-top: 25px; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 .4em; font-family: inherit; font-size: 1.06rem; letter-spacing: 0; }
.faq-item p { margin: 0; color: var(--muted); }
.table-wrap { margin: 25px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
caption { padding: 15px; font-weight: 760; text-align: left; }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--sage); color: var(--moss-dark); }
tr:last-child td { border-bottom: 0; }
.chart { width: auto; margin-inline: auto; border-collapse: collapse; }
.chart td { width: 18px; height: 18px; padding: 0; border: 1px solid #d8d2c8; background: #fff; }
.chart td.is-color { background: var(--moss); }
.chart-key { display: flex; justify-content: center; gap: 20px; font-size: .82rem; }
.chart-key i { display: inline-block; width: 13px; height: 13px; margin-right: 5px; border: 1px solid var(--line); vertical-align: -1px; }
.chart-key .key-color { background: var(--moss); }
.ad-slot { min-height: 250px; margin: 34px 0; display: grid; place-items: center; border: 1px solid var(--line); background: #f6f3ee; contain: layout; }
.ad-slot__label { align-self: start; color: #8b938f; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.error-page, .archive-page { min-height: 58vh; padding-block: 90px; }
.error-page p { max-width: 650px; }

.site-footer { padding: 64px 0 25px; background: #203b33; color: #dce7e1; }
.site-footer__grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: 55px; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-family: inherit; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { max-width: 430px; color: #b9cbc3; font-size: .86rem; }
.site-footer a { color: #fff; }
.brand--footer { margin-bottom: 18px; }
.brand--footer strong { color: #fff; }
.brand--footer small { color: #b9cbc3; }
.footer-menu li { margin: 8px 0; }
.footer-menu a { color: #dce7e1; font-size: .87rem; text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); }
.site-footer__bottom p { margin: 0; font-size: .75rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-navigation { position: absolute; inset: 82px 18px auto; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation > .menu { display: block; }
  .primary-navigation .sub-menu { position: static; width: auto; padding: 0 0 5px 18px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero__copy { max-width: 760px; }
  .home-hero__media { max-width: 760px; }
  .article-header { grid-template-columns: 1fr; }
  .article-header__image { max-height: 460px; border-radius: 24px; }
  .article-layout { grid-template-columns: minmax(0,760px); }
  .article-sidebar { position: static; }
  .article-sidebar .ad-slot { display: none; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 28px),var(--wrap)); }
  .site-header__inner { min-height: 72px; }
  .brand small { display: none; }
  .primary-navigation { inset-top: 72px; }
  .home-hero { padding-top: 38px; }
  .home-hero__grid { gap: 40px; }
  .home-hero__media figcaption { position: relative; right: auto; bottom: auto; margin: -12px 10px 0; }
  .trust-list { display: grid; }
  .card-grid, .card-grid--featured, .future-tools { grid-template-columns: 1fr; }
  .content-card { min-height: 210px; }
  .article-header { padding: 28px 0 38px; }
  .quick-facts, .related-links { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom { display: block; }
  .table-wrap { margin-inline: -5px; }
  th, td { padding: 10px; }
}

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