:root {
  color-scheme: light;
  --background: #faf9f6;
  --text: #20231f;
  --muted: #646960;
  --line: #d9d6ce;
  --accent: #285f49;
  --content: 46rem;
  --shell: 58rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--background);
  background: var(--accent);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-links a:hover {
  color: var(--text);
}

main {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.home,
.document {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.hero {
  margin-bottom: 4.5rem;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

h2 {
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
}

h3 {
  font-size: 1.05rem;
}

.lede {
  max-width: 39rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.lede strong {
  color: var(--text);
  font-weight: 620;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  display: flex;
  gap: 0.4rem;
}

.fact dt,
.fact dd {
  margin: 0;
  font-size: 0.82rem;
}

.fact dt {
  color: var(--muted);
}

.fact dt::after {
  content: ":";
}

.fact dd {
  color: var(--text);
  font-weight: 550;
}

.section-grid {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

.steps,
.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps {
  counter-reset: flow;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  counter-increment: flow;
}

.steps li::before {
  content: counter(flow, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.scope-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.scope-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.scope-list strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.scope-list span,
.meta {
  color: var(--muted);
}

.document-header {
  margin-bottom: 3.5rem;
}

.document-header h1 {
  margin-bottom: 1rem;
}

.meta {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
}

.prose h2 {
  margin: 3rem 0 0.8rem;
}

.prose h3 {
  margin: 2rem 0 0.65rem;
}

.prose p,
.prose ul {
  margin-block: 0.9rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.note {
  margin-block: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--accent);
  background: #f1efe8;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.2rem;
  }

  main {
    padding-block: 3.5rem 5rem;
  }

  .hero {
    margin-bottom: 3.5rem;
  }

  .facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .scope-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
