:root {
  --bg: #f5f3ed; --paper: #fcfbf8; --ink: #1c1c1a; --muted: #6f6c64; --line: #e3e0d6; --sage: #dfe5d4; --rust: #a2472c;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #151513; --paper: #1d1d1b; --ink: #eeebe3; --muted: #a29e94; --line: #34332f; --sage: #2c3327; --rust: #e0876b; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--line); background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; font-size: 14px; text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; letter-spacing: 0; }
nav { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
main { padding: 48px 0 72px; }
.eyebrow { font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h1 { font: 400 clamp(36px, 7vw, 52px)/1.1 var(--serif); letter-spacing: -.02em; margin: 14px 0 12px; }
h2 { font: 400 27px/1.25 var(--serif); margin: 44px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
.meta { font-size: 14px; color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 22px 0; }
.card.sage { background: var(--sage); border-color: transparent; }
ul { padding-left: 22px; } li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
input, select, textarea { font: 16px/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
button { font: 600 16px/1 var(--sans); background: var(--ink); color: var(--paper); border: 0; border-radius: 10px; padding: 16px 22px; cursor: pointer; justify-self: start; }
button:disabled { opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 15px; min-height: 1.4em; margin: 0; }
.status.error { color: var(--rust); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
