:root {
  --paper: #fffbf7;
  --surface: #ffffff;
  --ink: #1c1b1a;
  --ink-muted: #52443a;
  --ink-faint: #8a7a6d;
  --line: #eadfd2;
  --accent: #f0532a;
  --accent-soft: #ffdbcf;
  --accent-ink: #7a2100;
  --shadow: 0 1px 2px rgba(28, 27, 26, 0.05), 0 8px 24px rgba(28, 27, 26, 0.05);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1712;
    --surface: #241d17;
    --ink: #ede0d4;
    --ink-muted: #d7c3b4;
    --ink-faint: #9f8d7f;
    --line: #3a2f26;
    --accent: #ffb4a0;
    --accent-soft: #5f1400;
    --accent-ink: #ffdbcf;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1rem;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
}
.top-nav nav {
  display: flex;
  gap: 18px;
  font-size: 0.86rem;
}
.top-nav nav a {
  color: var(--ink-muted);
  text-decoration: none;
}
.top-nav nav a:hover, .top-nav nav a.current { color: var(--accent); }

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 90px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: balance;
}
.updated {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

section + section { margin-top: 28px; }
h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}
section p { margin: 0; color: var(--ink-muted); }

.lede {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 8px;
}

.card-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.doc-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.doc-card .doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.doc-card .doc-title .arrow { color: var(--accent); font-family: var(--font-body); }
.doc-card p { margin: 6px 0 0; color: var(--ink-muted); font-size: 0.92rem; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps p { margin: 0; color: var(--ink-muted); }
.steps strong { color: var(--ink); }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}
.callout strong { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 8px;
}

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}
footer a { color: var(--ink-faint); }
