:root {
  color-scheme: light;
  --paper: #fafaf4;
  --paper-2: #f4eedb;
  --surface: #fffffa;
  --surface-soft: #f0f5ef;
  --surface-blue: #edf6f6;
  --ink: #203846;
  --ink-soft: #39424e;
  --muted: #64737a;
  --line: #d8e2dc;
  --line-strong: #bfd8cf;
  --navy: #264e63;
  --teal: #3f8f98;
  --sage: #9dbba5;
  --mint: #bfd8cf;
  --cream: #f4eedb;
  --clay: #a9785e;
  --shadow: 0 14px 40px rgba(38, 78, 99, 0.07);
  --radius: 14px;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(38, 78, 99, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, var(--paper), #fffdf2 46%, var(--paper));
  color: var(--ink);
  font-size: 18px;
  line-height: 1.68;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { color: var(--teal); }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 10; background: var(--ink); color: white; padding: .7rem 1rem; border-radius: 999px; }
.skip-link:focus { left: 1rem; }
.site-header { border-bottom: 1px solid var(--line-strong); background: rgba(250, 250, 244, .96); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.nav { max-width: var(--max); margin: 0 auto; padding: .82rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.site-logo { display: block; width: min(374px, 62vw); height: auto; }
.nav-links { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; font-size: .92rem; }
.nav-link { text-decoration: none; color: var(--ink-soft); padding: .44rem .7rem; border: 1px solid transparent; border-radius: 999px; }
.nav-link:hover { color: var(--navy); border-color: var(--line-strong); background: rgba(255,255,250,.72); }
main { display: block; }
.hero, .section, .article-wrap { max-width: var(--max); margin: 0 auto; padding: 5rem 1.25rem; }
.hero { padding-top: 5.6rem; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .72fr); gap: 3rem; align-items: center; }
.eyebrow { margin: 0 0 .75rem; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -0.032em; }
h1 { margin: 0; font-size: clamp(2.45rem, 6vw, 5.15rem); max-width: 13ch; }
h2 { margin: 0 0 1rem; font-size: clamp(1.65rem, 3vw, 2.42rem); }
h3 { margin: 1.7rem 0 .65rem; font-size: 1.28rem; }
.lede { font-size: clamp(1.08rem, 2vw, 1.34rem); color: var(--muted); max-width: 760px; margin: 1.15rem 0 0; }
.hero-panel, .card, .note, .toc, .mobile-toc, .checklist, .quote-card { background: rgba(255,255,250,.92); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-panel { padding: 1.45rem; }
.manual-card { border-top: 5px solid var(--teal); background: linear-gradient(180deg, #fffffb, #f8fbf7); }
.manual-steps { counter-reset: manual-step; list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line); }
.manual-steps li { counter-increment: manual-step; display: grid; grid-template-columns: 2.2rem 1fr; gap: .65rem; align-items: center; padding: .72rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.manual-steps li::before { content: counter(manual-step, decimal-leading-zero); color: var(--teal); font-weight: 800; font-size: .78rem; letter-spacing: .08em; }
.panel-list, .card-list { padding-left: 1.2rem; margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.35rem; padding: .82rem 1.08rem; border-radius: 10px; background: var(--navy); color: white; font-weight: 760; text-decoration: none; box-shadow: 0 10px 24px rgba(38,78,99,.12); }
.button.secondary { background: transparent; color: var(--navy); border: 1px solid var(--teal); box-shadow: none; }
.button:hover { color: white; background: var(--teal); }
.button.secondary:hover { color: var(--ink); background: var(--surface-blue); }
.section-soft { background: linear-gradient(180deg, rgba(237,246,246,.76), rgba(244,238,219,.48)); border-block: 1px solid var(--line-strong); }
.section-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.5rem; }
.section-kicker { margin: 0; color: var(--muted); max-width: 680px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 1.22rem; border-radius: 12px; position: relative; }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 12px 0 0 12px; background: var(--mint); opacity: .9; }
.feature-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; border-color: var(--line-strong); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.meta-pill { display: inline-block; margin-bottom: .8rem; padding: .28rem .58rem; border-radius: 7px; background: var(--surface-blue); color: var(--navy); border: 1px solid var(--line-strong); font-size: .74rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 730px) minmax(235px, 1fr); gap: 3rem; align-items: start; }
.article { max-width: 760px; }
.article h1 { max-width: 14ch; }
.article p, .article li { color: #33464b; }
.article-meta { color: var(--muted); font-size: .95rem; margin: 1rem 0 0; }
.article h2 { margin-top: 3.15rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.article h3 { margin-top: 2rem; }
.article blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 5px solid var(--teal); background: var(--surface-blue); border-radius: 0 12px 12px 0; color: var(--ink); }
.article section { scroll-margin-top: 6.3rem; }
.toc { padding: 1rem; position: sticky; top: 5.8rem; font-size: .92rem; border-radius: 12px; box-shadow: none; max-height: calc(100vh - 7rem); overflow: auto; }
.toc strong, .mobile-toc strong { display: block; margin-bottom: .55rem; color: var(--ink); }
.toc a { display: block; padding: .34rem .45rem .34rem .85rem; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; }
.toc a:hover { color: var(--ink); background: var(--surface-blue); border-left-color: var(--mint); }
.toc a.is-active { color: var(--navy); background: #eef7f4; border-left-color: var(--teal); font-weight: 760; }
.mobile-toc { display: none; padding: .95rem; margin: 1.5rem 0; box-shadow: none; }
.mobile-toc a { display: inline-flex; margin: .28rem .35rem .28rem 0; padding: .34rem .55rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: .92rem; }
.note, .checklist, .quote-card { padding: 1.1rem 1.2rem; margin: 1.5rem 0; }
.note { background: #f8f5ec; box-shadow: none; }
.checklist { background: #fbfdf9; border-color: var(--line-strong); box-shadow: none; }
.checklist ul { list-style: none; padding-left: 0; }
.checklist li { padding: .28rem 0 .28rem 1.55rem; position: relative; }
.checklist li::before { content: "□"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.quote-card { border-left: 5px solid var(--sage); box-shadow: none; background: #fbf8ec; }
.footer { border-top: 1px solid var(--line-strong); background: #edf6f6; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem; color: var(--muted); font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a { color: var(--muted); }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero, .section, .article-wrap { padding: 3.2rem 1rem; }
  .hero-inner, .article-wrap, .grid, .grid.two, .feature-card { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .toc { display: none; }
  .mobile-toc { display: block; }
  .nav { align-items: center; flex-direction: column; text-align: center; }
  .logo { justify-content: center; width: 100%; }
  .nav-links { justify-content: center; width: 100%; }
  .site-logo { width: min(292px, 88vw); }
  h1 { max-width: none; }
}
