@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ground: #f5f6f1;
  --surface: #101311;
  --surface-soft: #e8ebe4;
  --line: #d9ded6;
  --text: #171a18;
  --text-dim: #626a65;
  --accent: #b4f43c;
  --accent-warm: #ff6f55;
  --live: #168c78;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-face: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --gutter: clamp(18px, 4vw, 42px);
  --maxw: 860px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--text-face);
  font-size: 0.96rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 26, 24, 0.1);
  background: rgba(250, 251, 247, 0.92);
  backdrop-filter: blur(18px) saturate(125%);
}

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  max-width: 1240px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 5px;
  background: var(--accent);
  color: #11150d;
}

.brand-accent { color: #618f00; }
.spacer { flex: 1; }

.legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-links a {
  color: var(--text-dim);
  text-decoration: none;
}

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

main { padding: clamp(38px, 7vw, 76px) 0 70px; }

.page-kicker {
  margin: 0 0 9px;
  color: #638d0c;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.updated {
  margin: 0 0 30px;
  color: var(--text-dim);
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
}

h2 {
  margin: 46px 0 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 26, 24, 0.13);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.2;
  scroll-margin-top: 84px;
  text-transform: uppercase;
}

h3 {
  margin: 28px 0 7px;
  color: #587d0b;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 850;
  text-transform: uppercase;
}

p,
ul { margin: 0 0 15px; }
ul { padding-left: 22px; }
li { margin-bottom: 7px; }
a { color: #3f6500; }

a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--live);
  outline-offset: 4px;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 0.85em;
  word-break: break-all;
}

.callout {
  margin: 0 0 22px;
  padding: 22px 24px;
  border: 0;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  color: #eef2ed;
  box-shadow: 0 14px 34px rgba(20, 24, 21, 0.12);
}

.callout p { color: #c3cac5; }
.callout p:last-child { margin-bottom: 0; }
.callout b { color: #fff; }

.toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.toc a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  background: #fbfcf8;
  color: var(--text-dim);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
}

.toc a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

footer {
  padding: 28px 0 34px;
  border-top: 1px solid rgba(23, 26, 24, 0.1);
  background: var(--surface-soft);
  color: var(--text-dim);
  font-family: var(--display);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.foot {
  display: flex;
  max-width: 1240px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.foot a {
  color: var(--text-dim);
  text-decoration: none;
}

.foot a:hover { color: var(--text); }

@media (max-width: 600px) {
  .bar { min-height: 58px; }
  .brand { font-size: 0.9rem; }
  .legal-links { gap: 10px; font-size: 0.6rem; }
  .legal-links .optional { display: none; }
  .toc { grid-template-columns: 1fr; }
  .callout { padding: 18px; }
  h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
}
