:root {
  --ink: #17181a;
  --ink-soft: #55585e;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #e6e3dc;
  --accent: #b5540f;
  --accent-dark: #8a3f0a;
  --accent-tint: #fbeee1;
  --good: #2f7a4f;
  --shadow: 0 1px 2px rgba(23,24,26,0.04), 0 12px 28px -14px rgba(23,24,26,0.18);
  --radius: 12px;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent-dark); }
.accent { color: var(--accent); }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 7px; padding: 4px 7px; letter-spacing: -0.02em;
}
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 19px; color: var(--ink); }
.header-tag { font-size: 12.5px; color: var(--ink-soft); font-style: italic; display: none; }
@media (min-width: 640px) { .header-tag { display: block; } }

/* Hero */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; text-align: center; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px; }
.hero-title { font-size: clamp(30px, 5.2vw, 46px); letter-spacing: -0.01em; margin-bottom: 22px; }
.hero-sub { font-size: 17.5px; max-width: 620px; margin: 0 auto 32px; color: var(--ink-soft); }
.btn-primary {
  display: inline-block; font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 9px; text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-dark); }

/* Callout */
.callout-section { padding: 48px 24px; }
.callout-card {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.callout-card h2 { font-size: 22px; margin-bottom: 14px; }
.callout-card p:last-child { margin-bottom: 0; }

/* Section titles */
.section-title { font-size: 28px; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; font-size: 15.5px; margin-bottom: 32px; }

/* Progress bar */
#progress-bar-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.progress-track { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.25s ease; border-radius: 999px; }
.progress-label { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

/* Phase blocks */
.phase-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.phase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.phase-head h3 { font-size: 21px; margin-bottom: 0; }
.phase-count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); flex-shrink: 0; }
.phase-blurb { font-size: 14.5px; margin-bottom: 18px; }

.checklist-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist-item { border-top: 1px solid var(--line); padding-top: 16px; }
.checklist-item:first-child { border-top: none; padding-top: 0; }
.checklist-item label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.checklist-item input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer;
}
.item-text { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.item-done .item-text { color: var(--good); text-decoration: line-through; text-decoration-color: var(--line); }
.item-note { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 0 29px; line-height: 1.55; }

/* Guides */
.guides-section { padding: 8px 24px 60px; }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.guide-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; box-shadow: var(--shadow); transition: border-color 0.15s ease;
}
.guide-card:hover { border-color: var(--accent); }
.guide-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.guide-card h3 { font-size: 18px; margin: 10px 0 8px; color: var(--ink); }
.guide-card p { font-size: 14px; margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 24px 48px; margin-top: 20px; }
.site-footer p { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 0; }
.site-footer a { color: var(--ink-soft); text-decoration: underline; }

/* Guide page (used by deep-dive pages) */
.guide-page { padding: 48px 0 60px; }
.guide-page h1 { font-size: clamp(28px, 4.5vw, 38px); margin-bottom: 8px; }
.guide-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin-bottom: 32px; }
.guide-page h2 { font-size: 23px; margin-top: 40px; margin-bottom: 14px; }
.guide-page h3 { font-size: 18px; margin-top: 26px; margin-bottom: 10px; }
.guide-page p { font-size: 16px; color: var(--ink-soft); }
.guide-page ul, .guide-page ol { color: var(--ink-soft); font-size: 16px; padding-left: 22px; }
.guide-page li { margin-bottom: 8px; }
.guide-page code { font-family: var(--font-mono); background: var(--accent-tint); color: var(--accent-dark); padding: 0.15em 0.4em; border-radius: 5px; font-size: 0.9em; }
.callout-box {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; box-shadow: var(--shadow);
}
.callout-box p:last-child { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 32px; }
  .callout-card, .phase-block { padding: 22px; }
  .header-inner { padding: 14px 16px; }
}
