@font-face {
  font-family: "Sora";
  src: url("/assets/Sora-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Sora", system-ui, sans-serif;
  color: #17251e;
  background: #f5f7f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: #f5f7f4; }
a { color: #17623f; text-underline-offset: 3px; }
a:hover { color: #0d472d; }
a:focus-visible { outline: 3px solid #d9a928; outline-offset: 3px; border-radius: 3px; }

.site-header {
  background: #08251a;
  color: #f5fff7;
  border-bottom: 4px solid #d9a928;
}

.header-inner {
  width: min(100% - 40px, 1080px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 750;
}

.brand img { width: 42px; height: 42px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-nav a { color: #dcebe1; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #ffe084; }

.page-intro {
  background: #dfece3;
  border-bottom: 1px solid #c7d8cd;
}

.page-intro-inner {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 44px 0 38px;
}

.eyebrow { margin: 0 0 10px; color: #397054; font-size: 13px; font-weight: 750; text-transform: uppercase; }
h1 { margin: 0; max-width: 780px; font-size: 42px; line-height: 1.12; letter-spacing: 0; }
.lede { margin: 16px 0 0; max-width: 760px; color: #3f5147; font-size: 17px; line-height: 1.65; }
.meta { margin: 14px 0 0; color: #53665b; font-size: 13px; }

.page-layout {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 42px 0 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 52px;
  align-items: start;
}

.toc { position: sticky; top: 24px; }
.toc strong { display: block; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; color: #53665b; }
.toc a { display: block; padding: 8px 0; color: #345243; font-size: 14px; text-decoration: none; }
.toc a:hover { color: #17623f; text-decoration: underline; }

article { min-width: 0; }
article section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid #d6dfd9; }
article section:last-child { margin-bottom: 0; border-bottom: 0; }
h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
h3 { margin: 22px 0 8px; font-size: 18px; line-height: 1.4; letter-spacing: 0; }
p, li { color: #33453b; font-size: 15px; line-height: 1.75; }
p { margin: 0 0 14px; }
ul, ol { margin: 10px 0 14px; padding-left: 24px; }
li + li { margin-top: 7px; }

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid #d9a928;
  background: #edf3ef;
}
.callout p:last-child { margin-bottom: 0; }

.action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #0e4e31;
  border-radius: 7px;
  background: #17623f;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease;
}
.action:hover { color: #ffffff; background: #0f4d31; }
.action:active { transform: scale(.975); }

.site-footer { background: #102b20; color: #dce9e1; }
.footer-inner {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 30px 0 max(30px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-inner p { margin: 0; color: #bcd0c3; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #dce9e1; font-size: 13px; }

@media (max-width: 760px) {
  .header-inner { padding: 16px 0; align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-nav { gap: 14px 18px; }
  .page-intro-inner { padding: 34px 0 30px; }
  h1 { font-size: 34px; }
  .page-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .toc { position: static; padding-bottom: 18px; border-bottom: 1px solid #d6dfd9; }
  .toc a { display: inline-block; margin-right: 16px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .header-inner, .page-intro-inner, .page-layout, .footer-inner { width: min(100% - 28px, 1080px); }
  .site-nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  h1 { font-size: 30px; }
  .lede { font-size: 16px; }
}

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