@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600&display=swap");

:root {
  --forest-950: #0d2f26;
  --forest-800: #174c3c;
  --leaf-600: #236a52;
  --mint-100: #dff1e8;
  --ink-900: #17211d;
  --slate-600: #5f6c66;
  --cream-50: #f6f3ed;
  --paper: #fffdfa;
  --line-200: #dcd9d1;
  --amber-600: #b66a25;
  --page: min(72rem, calc(100vw - 2.5rem));
  --reading: min(44rem, calc(100vw - 2.5rem));
  color: var(--ink-900);
  background: var(--cream-50);
  font-family: "DM Sans", "Avenir Next", Avenir, Inter, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream-50); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--leaf-600); }
img { max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: 0.75rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(246 243 237 / 88%); border-bottom: 1px solid rgb(23 33 29 / 10%); backdrop-filter: blur(14px); }
.nav { width: var(--page); min-height: 4.5rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 2rem; height: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-cta { padding: 0.65rem 0.9rem; color: white; background: var(--forest-800); border-radius: 0.65rem; }
.nav-cta:hover { color: white; background: var(--forest-950); }
main { min-height: 70vh; }
.hero { width: var(--page); margin: auto; padding: clamp(5rem, 11vw, 9rem) 0 5rem; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr); gap: 5rem; align-items: end; }
.eyebrow { margin: 0 0 1.25rem; color: var(--leaf-600); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1, .page-hero h1 { max-width: 15ch; margin: 0; font-size: clamp(3.5rem, 8vw, 7.4rem); font-weight: 650; letter-spacing: -0.065em; line-height: 0.92; }
.hero h1 em { color: var(--forest-800); font-family: Fraunces, Georgia, serif; font-weight: 600; }
.hero-aside { border-top: 2px solid var(--ink-900); padding-top: 1.3rem; color: var(--slate-600); font-size: 1.05rem; line-height: 1.65; }
.hero-aside strong { color: var(--ink-900); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button { display: inline-flex; padding: 0.85rem 1.1rem; border: 1px solid var(--forest-800); border-radius: 0.7rem; font-weight: 700; text-decoration: none; }
.button.primary { color: white; background: var(--forest-800); }
.button.primary:hover { color: white; background: var(--forest-950); }
.button.secondary:hover { background: var(--paper); }
.section { width: var(--page); margin: auto; padding: 5rem 0; border-top: 1px solid var(--line-200); }
.section-heading { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { max-width: 16ch; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.045em; }
.section-heading p { max-width: 37rem; margin: 0; color: var(--slate-600); font-size: 1.08rem; line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { min-height: 18rem; display: flex; flex-direction: column; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line-200); border-radius: 1rem; text-decoration: none; }
.card:hover { color: var(--ink-900); border-color: var(--leaf-600); transform: translateY(-2px); transition: 160ms ease; }
.card .tag { color: var(--leaf-600); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.card h3 { margin: auto 0 1rem; font-size: 1.65rem; line-height: 1.12; letter-spacing: -0.035em; }
.card p { margin: 0; color: var(--slate-600); line-height: 1.55; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-200); border: 1px solid var(--line-200); }
.principle { min-height: 16rem; padding: 1.5rem; background: var(--cream-50); }
.principle span { color: var(--amber-600); font-family: Fraunces, Georgia, serif; font-size: 2.4rem; }
.principle h3 { margin: 2.5rem 0 0.8rem; font-size: 1.25rem; }
.principle p { margin: 0; color: var(--slate-600); line-height: 1.6; }
.page-hero { width: var(--page); margin: auto; padding: 6rem 0 4rem; }
.page-hero h1 { max-width: 18ch; font-size: clamp(3rem, 6vw, 5.7rem); }
.page-hero .dek { max-width: 44rem; margin: 1.5rem 0 0; color: var(--slate-600); font-size: 1.2rem; line-height: 1.65; }
.article-shell { width: var(--page); margin: auto; display: grid; grid-template-columns: minmax(11rem, 0.45fr) minmax(0, 1.55fr); gap: 4rem; padding: 3rem 0 7rem; border-top: 1px solid var(--line-200); }
.article-shell > div { min-width: 0; }
.article-meta { position: sticky; top: 7rem; align-self: start; color: var(--slate-600); font-size: 0.82rem; line-height: 1.6; }
.article-meta dl { margin: 0; }
.article-meta dt { margin-top: 1.1rem; color: var(--ink-900); font-weight: 700; }
.article-meta dd { margin: 0.2rem 0 0; }
.prose { min-width: 0; max-width: 47rem; font-size: 1.08rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 4rem 0 1.1rem; font-size: 2rem; line-height: 1.15; letter-spacing: -0.035em; }
.prose h3 { margin: 2.5rem 0 0.75rem; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { margin: 1rem 0; }
.prose li + li { margin-top: 0.45rem; }
.prose blockquote { margin: 2rem 0; padding: 1.3rem 1.5rem; background: var(--mint-100); border-left: 4px solid var(--forest-800); font-family: Fraunces, Georgia, serif; font-size: 1.3rem; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 1.25rem; color: var(--cream-50); background: var(--forest-950); border-radius: 0.8rem; font-size: 0.9rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.75rem; border-bottom: 1px solid var(--line-200); text-align: left; vertical-align: top; }
.answer-box { max-width: 47rem; margin-bottom: 2.5rem; padding: 1.5rem; background: var(--mint-100); border-radius: 1rem; }
.answer-box strong { display: block; margin-bottom: 0.6rem; color: var(--leaf-600); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.answer-box p { margin: 0; font-size: 1.18rem; line-height: 1.6; }
.method-note { margin-top: 4rem; padding: 1.5rem; border: 1px solid var(--line-200); border-radius: 1rem; }
.method-note h2 { margin: 0 0 0.7rem; font-size: 1.25rem; }
.method-note p { margin: 0; color: var(--slate-600); line-height: 1.65; }
.site-footer { color: var(--cream-50); background: var(--forest-950); }
.footer-inner { width: var(--page); margin: auto; padding: 4rem 0 2rem; }
.footer-lead { max-width: 17ch; margin: 0 0 4rem; font-family: Fraunces, Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; }
.footer-row { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 20%); color: rgb(255 255 255 / 72%); font-size: 0.82rem; }
.footer-row nav { display: flex; gap: 1.2rem; }

@media (max-width: 760px) {
  .nav { min-height: 4rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 4.5rem; }
  .section-heading, .article-shell { grid-template-columns: 1fr; }
  .card-grid, .principles { grid-template-columns: 1fr; }
  .card { min-height: 14rem; }
  .article-meta { position: static; display: none; }
  .footer-row { flex-direction: column; }
}

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