:root {
  --brand: #f4e547;
  --ink: #171812;
  --muted: #606257;
  --paper: #fbfbf7;
  --surface: #f1f1e9;
  --rule: #d8d9ce;
  --link: #365800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover { text-decoration-thickness: 0.14em; }

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-header,
footer {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { padding-block: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--ink);
  background: var(--brand);
  font-size: 20px;
  font-weight: 850;
}

nav { display: flex; gap: 18px; }
nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main {
  border-block: 1px solid var(--rule);
  background: #fff;
}

article {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
  padding-block: 72px 88px;
}

.document-header { margin-bottom: 64px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--link);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 { line-height: 1.18; text-wrap: balance; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.045em;
}

.summary {
  max-width: 650px;
  margin: 24px 0 0;
  color: #3d3f36;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.5;
}

.updated { margin-top: 24px; color: var(--muted); font-size: 15px; }

section { margin-top: 48px; scroll-margin-top: 24px; }
h2 { margin: 0 0 14px; font-size: 1.6rem; letter-spacing: -0.025em; }
h3 { margin: 30px 0 8px; font-size: 1.12rem; }
p { margin: 0 0 16px; }
ul { margin: 12px 0 0; padding-left: 1.35em; }
li + li { margin-top: 10px; }

.contact {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
}

footer {
  padding-block: 28px;
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { align-items: flex-start; }
  .brand > span:last-child { display: none; }
  article { padding-block: 48px 64px; }
  .document-header { margin-bottom: 48px; }
  .contact { padding: 22px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2ea;
    --muted: #afb1a4;
    --paper: #151611;
    --surface: #24251d;
    --rule: #414338;
    --link: #d9ea65;
  }
  main { background: #1b1c16; }
  .summary { color: #d5d6cc; }
  .brand-mark { color: #171812; }
}

@media print {
  .site-header, footer { display: none; }
  main { border: 0; }
  article { width: 100%; padding: 0; }
  a { color: inherit; }
  .contact { break-inside: avoid; }
}
