
:root {
  --paper: #f4efe4;
  --raised: #fffaf2;
  --ink: #1b1914;
  --muted: #534c42;
  --line: #d9d0c1;
  --accent: #0d4f42;
  --p0: #8d1d1d;
  --p1: #8a4b00;
  --p2: #1d4e89;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Liberation Serif", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 1.05rem/1.55 var(--sans);
  background:
    linear-gradient(180deg, rgba(13, 79, 66, 0.05), transparent 220px),
    var(--paper);
  color: var(--ink);
}

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

a { color: var(--accent); }
a:hover { color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 3;
}

.skip:focus { top: 1rem; }

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background: #f4efe4;
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

main { padding-bottom: 4rem; }

section { margin: 3.5rem 0; }

section[id] { scroll-margin-top: 5.5rem; }

.kicker,
.index {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }

h1 {
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  line-height: 0.92;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; margin: 0 0 1rem; }

h3 { font-size: 1.45rem; margin: 0 0 0.4rem; }

.lede { font-size: 1.25rem; max-width: 40rem; }

.note, .evidence, .optional { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.button,
button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--ink);
}

button:disabled { opacity: 0.6; cursor: default; }

.split, .steps, .findings {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.split article,
.steps li,
.findings li,
form,
.turnstile-placeholder {
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}

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

.path { font-family: ui-monospace, monospace; }

.banner {
  background: #efe6c8;
  border-left: 4px solid var(--ink);
  padding: 0.8rem 1rem;
}

.prio {
  display: inline-block;
  min-width: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p0 { color: var(--p0); }
.p1 { color: var(--p1); }
.p2 { color: var(--p2); }

.code { font-family: ui-monospace, monospace; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--raised); }

table { width: 100%; border-collapse: collapse; min-width: 52rem; }

caption {
  text-align: left;
  padding: 0.8rem 0.9rem 0;
  color: var(--muted);
}

th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th { font-size: 0.85rem; letter-spacing: 0.03em; }

form { display: grid; gap: 0.45rem; max-width: 36rem; }

label { font-weight: 650; }

input,
textarea {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid #b7ad9d;
  border-radius: 2px;
  background: white;
  color: var(--ink);
  width: 100%;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.site-footer a { color: var(--muted); }


textarea { font: inherit; resize: vertical; }
