:root {
  color-scheme: light dark;
  --forest: #173d29;
  --forest-2: #245c3b;
  --leaf: #367a4f;
  --cream: #f7f3e5;
  --paper: #fffdf6;
  --ink: #173126;
  --muted: #5c6b62;
  --gold: #d5a93f;
  --line: #d9dfd1;
  --soft: #e8f0e5;
  --rust: #a64b2a;
  --shadow: 0 18px 60px rgba(29, 62, 42, .11);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0d1711;
    --paper: #142219;
    --ink: #edf7ed;
    --muted: #b4c4b7;
    --line: #304237;
    --soft: #1b3022;
    --gold: #e2bc58;
    --shadow: 0 18px 60px rgba(0, 0, 0, .28);
  }
}
:root[data-theme="light"] {
  --cream: #f7f3e5; --paper: #fffdf6; --ink: #173126; --muted: #5c6b62;
  --line: #d9dfd1; --soft: #e8f0e5; --gold: #d5a93f;
  --shadow: 0 18px 60px rgba(29, 62, 42, .11);
}
:root[data-theme="dark"] {
  --cream: #0d1711; --paper: #142219; --ink: #edf7ed; --muted: #b4c4b7;
  --line: #304237; --soft: #1b3022; --gold: #e2bc58;
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--leaf) 10%, transparent), transparent 30rem),
    var(--cream);
  color: var(--ink);
  font: 16px/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--forest-2); text-underline-offset: .2em; }
@media (prefers-color-scheme: dark) { a { color: #8bd4a4; } }
:root[data-theme="dark"] a { color: #8bd4a4; }
:root[data-theme="light"] a { color: var(--forest-2); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px;
}
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--paper); }
.skip:focus { top: 16px; }
.site-head {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--cream) 91%, transparent);
  backdrop-filter: blur(14px);
}
.head-inner, .trail, .page, .site-foot__inner { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.head-inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; line-height: 1; text-decoration: none; }
.wordmark img { width: 38px; height: 38px; object-fit: contain; }
.head-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.head-nav a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.head-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px;
  border-radius: 999px; background: var(--forest); color: #fff !important; font-weight: 800; text-decoration: none;
}
.trail { padding-block: 18px 0; color: var(--muted); font-size: .84rem; }
.trail a { color: inherit; }
.page { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(36px, 7vw, 84px); padding-block: 48px 90px; }
.article { min-width: 0; }
.kicker {
  margin: 0 0 14px; color: var(--forest-2); font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.article h1, .article h2, .article h3 {
  font-family: Fraunces, Georgia, serif; text-wrap: balance; letter-spacing: -.025em;
}
.article h1 { max-width: 16ch; margin: 0; font-size: clamp(2.5rem, 6vw, 5.3rem); line-height: .98; }
.dek { max-width: 66ch; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.6; }
.answer {
  margin-block: 34px; padding: clamp(22px, 4vw, 32px); background: var(--forest); color: #f6f1dc;
  border-radius: 4px 28px 4px 28px; box-shadow: var(--shadow);
}
.answer strong { display: block; margin-bottom: 8px; color: #f4cf6c; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.article h2 { margin: 54px 0 14px; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.12; }
.article h3 { margin: 30px 0 8px; font-size: 1.35rem; }
.article p, .article li { max-width: 70ch; }
.article li + li { margin-top: .55rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.figure {
  margin: 36px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px;
  background: var(--paper); box-shadow: var(--shadow);
}
.figure img { width: 100%; max-height: 520px; object-fit: cover; }
.figure figcaption { padding: 13px 18px; color: var(--muted); font-size: .86rem; }
.steps { counter-reset: path; display: grid; gap: 12px; padding: 0 !important; list-style: none; }
.steps li {
  counter-increment: path; position: relative; max-width: none; padding: 18px 20px 18px 58px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
}
.steps li::before {
  content: counter(path); position: absolute; left: 18px; top: 18px; display: grid; width: 26px; height: 26px;
  place-items: center; border-radius: 50%; background: var(--soft); color: var(--forest-2); font-weight: 900;
}
.callout { margin: 34px 0; padding: 20px 22px; border-left: 5px solid var(--gold); background: var(--soft); }
.callout p { margin: 0; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.related a {
  display: block; padding: 20px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); color: var(--ink); font-weight: 800; text-decoration: none;
}
.related small { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 800; }
.faq details p { margin-top: -6px; padding-bottom: 15px; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: .84rem; }
.side { align-self: start; position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.side strong { display: block; margin-bottom: 12px; font-family: Fraunces, Georgia, serif; font-size: 1.2rem; }
.side nav { display: grid; gap: 9px; }
.side nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.side .button { margin-top: 20px; width: 100%; }
.site-foot { border-top: 1px solid var(--line); background: var(--forest); color: #dbe8dc; }
.site-foot__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding-block: 42px; }
.site-foot a { color: #fff; }
.site-foot nav { display: grid; align-content: start; gap: 7px; }
.site-foot p { margin: 0; max-width: 50ch; }
.site-foot small { color: #aac2ae; }
@media (max-width: 780px) {
  .head-nav a:not(.head-cta) { display: none; }
  .page { grid-template-columns: 1fr; padding-top: 34px; }
  .side { position: static; order: -1; }
  .side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related, .site-foot__inner { grid-template-columns: 1fr; }
  .article h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
