:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1d1b18; --muted: #6b665e; --line: #e6e1d8;
  --accent: #2f5d50; --accent-ink: #ffffff; --warn: #9a3b1c; --ok: #2f6b3a; --soft: #f1ede5;
  --radius: 10px; --measure: 42rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171614; --surface: #201f1c; --ink: #ece8e1; --muted: #a39d93; --line: #34322d;
          --accent: #8cc4b2; --accent-ink: #10201b; --warn: #f0a07f; --ok: #9bd3a5; --soft: #292723; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent); }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
.wide { max-width: 72rem; }

.nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px;
             min-height: 56px; max-width: 72rem; }
.brand { font: 600 20px var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 15px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.avatar { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }

main { padding: 40px 0 64px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; font-weight: 600; }
h1 { font-size: 34px; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 32px 0 8px; }
h3 { font-size: 18px; margin: 0 0 4px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0;
       border-radius: var(--radius); padding: 11px 18px; font: 600 16px var(--sans);
       text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: var(--soft); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 20px; margin: 16px 0; }
.steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 20px 44px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
                      border-radius: 50%; background: var(--soft); color: var(--ink);
                      display: grid; place-items: center; font: 600 15px var(--sans); }

form .field { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=number] {
  width: 100%; padding: 10px 12px; font: 16px var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.error { color: var(--warn); font-weight: 600; }
details { margin: 8px 0 0; }
summary { cursor: pointer; color: var(--accent); }

.privacy { background: var(--soft); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; }
.privacy p { margin: 0 0 10px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.pill.active { color: var(--ok); } .pill.waitlist { color: var(--warn); }

.footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; color: var(--muted); }
.footer .wrap { max-width: 72rem; display: flex; gap: 16px; flex-wrap: wrap; }

/* projects */
.project-card h3 a { color: var(--ink); text-decoration: none; }
.headline { font-weight: 600; margin: 4px 0; }
.flag { color: var(--warn); font-weight: 600; }
.meter { display: flex; gap: 4px; margin: 8px 0 2px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--soft); }
.meter span.started { background: var(--line); }
.meter span.done { background: var(--accent); }
.sched { list-style: none; padding: 0; margin: 8px 0; }
.checklist, .parts { list-style: none; padding: 0; margin: 20px 0; }
.checklist li, .parts li { position: relative; padding: 4px 0 8px 32px; }
.checklist li::before, .parts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.checklist li.done::before, .parts li.done::before { background: var(--accent); border-color: var(--accent); }
.parts li.started::before { border-color: var(--accent); }
.checklist li.done { color: var(--muted); }
.copyline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--soft);
            border-radius: 8px; padding: 8px 12px; }
.copyline code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.small-btn { padding: 6px 12px; font-size: 14px; }
