:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #5b665f;
  --line: #e2ddcf;
  --brand: #2f3d2a;
  --brand-2: #4d6a3f;
  --accent: #e9b949;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; color: var(--brand); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 243, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--serif); color: var(--brand); text-decoration: none; }
.brand__logo { display: block; width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--accent); font-size: 19px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; transition: background .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: #ebe5d6; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.progress { position: sticky; top: 64px; height: 3px; z-index: 19; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #eef3ef; }
.hero__inner { position: relative; z-index: 1; padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 11vw, 140px); max-width: 820px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 68px); margin: 0 0 18px; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero__sub { font-size: clamp(17px, 2vw, 20px); color: #cfdcd5; max-width: 620px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--accent); margin: 0 0 16px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero--photo { background: linear-gradient(90deg, rgba(31, 42, 27, .94) 0%, rgba(31, 42, 27, .8) 50%, rgba(31, 42, 27, .45) 100%), url(img/hero.webp) center / cover no-repeat, var(--brand); }
.hero__chart { position: absolute; right: 2%; bottom: 0; width: min(560px, 70%); opacity: .3; }
.hero__chart path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--brand); font-weight: 650; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); color: var(--brand); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: #fff; }
.btn--small { padding: 9px 16px; font-size: 15px; background: var(--brand); color: #fff; }
.btn--small:hover { color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section__head { margin-bottom: 28px; }
.section__head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.section__head p { color: var(--muted); margin: 0; }
.section__head h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.section__link { color: inherit; text-decoration: none; }
.section__link:hover { color: var(--brand-2); }
.section__grid { margin-bottom: 56px; }
.section__grid:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(47, 61, 42, .12); border-color: #cfc7b3; }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #e4e0d4; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.card h3 { font-size: 22px; margin: 12px 0 8px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; flex: 1; }
.card__meta { font-size: 14px; font-weight: 600; color: var(--brand-2); }
.tag { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); background: #e8eedf; padding: 4px 10px; border-radius: 999px; }
.band { background: var(--brand-2); color: #e9f1ec; }
.band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 34px); }
.band p { margin: 0; }
.principles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.principles h3 { margin: 6px 0; font-size: 22px; }
.principles p { color: var(--muted); margin: 0; }
.num { font: 700 15px var(--sans); color: #b08a2e; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 40px 0 72px; }
.article { min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.article__head h1 { font-size: clamp(32px, 4.6vw, 48px); margin: 14px 0 12px; }
.article__meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.prose { max-width: 720px; }
.article__figure { margin: 0 0 32px; max-width: 760px; }
.article__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #e4e0d4; }
.article__figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article__figure figcaption a { color: inherit; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: 20px; line-height: 1.6; color: #2d3a33; }
.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }
.related { margin-top: 56px; }
.related h2 { font-size: 28px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sidebar__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sidebar__box p { margin: 0 0 12px; font-size: 15px; }
.sidebar__sticky { position: sticky; top: 90px; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: #efeadd; font-weight: 650; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }

/* Ads: clearly labelled, separated from content */
.ad { margin: 36px auto; padding-top: 6px; border-top: 1px solid var(--line); text-align: center; min-height: 0; }
.ad__label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8b938e; margin-bottom: 6px; }
.ad--top { width: min(1160px, 100% - 32px); }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* Calculator */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.calc input { font: 600 18px var(--sans); padding: 11px 12px; border: 1px solid #cfc7b3; border-radius: 10px; background: #fffdf8; color: var(--ink); width: 100%; }
.calc input:focus { outline: 2px solid var(--accent); border-color: var(--brand-2); }
.calc__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.calc__results div { background: var(--brand); color: #cfdcd5; border-radius: var(--radius); padding: 18px 20px; }
.calc__results span { font-size: 14px; }
.calc__results strong { display: block; color: #fff; font: 700 28px var(--serif); margin-top: 4px; }

/* Footer */
.site-footer { background: #1f2a1b; color: #b9c8c0; padding: 56px 0 24px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 32px; }
.site-footer .footer-title a { display: inline; margin: 0; color: #fff; }
.site-footer a { display: block; color: #dfe8e3; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.brand--footer { color: #fff; margin: 0 0 12px; }
.footer-title { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; margin: 0 0 12px; }
.sidebar__box .footer-title { color: var(--brand); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 13.5px; }

/* Reveal (content stays visible if JS fails) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar__sticky { position: static; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; flex-direction: column; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .section { padding: 52px 0; }
}
