:root {
  --bg: #f5f6f3;
  --surface: #ffffff;
  --tile: #ececee;
  --ink: #1d2420;
  --muted: #5b655f;
  --line: #dfe3dc;
  --leaf: #2f6b45;
  --leaf-soft: #e3efe6;
  --glow: #6b3fd1;
  --glow-soft: #efe9fb;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121512;
    --surface: #1a1f1b;
    --tile: #e6e7e9;
    --ink: #e8ece7;
    --muted: #a3ada6;
    --line: #2c332e;
    --leaf: #7cc596;
    --leaf-soft: #1f2d23;
    --glow: #b99bff;
    --glow-soft: #251d38;
    color-scheme: dark;
  }
}

* { 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); }
[id] { scroll-margin-top: 72px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.brand img { border-radius: 50%; }
.menu-btn { display: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--leaf); font-weight: 600; }
@media (max-width: 720px) {
  .menu { position: relative; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; cursor: pointer; border: 0; background: none; border-radius: 8px; }
  .menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu:not(.open) .nav { display: none; }
  .nav { position: absolute; right: 0; top: 52px; flex-direction: column; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
  .nav a { padding: 12px 14px; font-size: 1rem; }
}

/* sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--glow); margin-bottom: .6em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* hero */
.hero { padding: 64px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero-logo { width: 220px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgb(107 63 209 / .18); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--leaf); color: var(--surface); }
.btn.ghost { background: transparent; color: var(--leaf); box-shadow: inset 0 0 0 1.5px var(--leaf); }
@media (max-width: 720px) {
  .hero { padding: 36px 0 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-logo { width: 120px; order: -1; }
}

/* stages */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: stage; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 18px; overflow: hidden; }
.stage img { width: 100%; aspect-ratio: 1; background: var(--tile); }
.stage h3, .stage p { padding: 0 18px; }
.stage h3 { margin-top: 16px; }
.stage .when { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.stage p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .stages { grid-template-columns: 1fr; }
  .stage { display: grid; grid-template-columns: 96px 1fr; align-items: center; padding: 0; }
  .stage img { grid-row: span 2; height: 100%; }
  .stage h3 { margin-top: 14px; }
  .stage p { padding-bottom: 14px; }
}

/* businesses */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .go { margin-top: auto; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tags li { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf); }
.tags li.phase { background: var(--glow-soft); color: var(--glow); }
.card.next { border-style: dashed; background: transparent; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* rules */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.rules li { padding-left: 18px; border-left: 3px solid var(--leaf); }
.rules strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.rules span { color: var(--muted); font-size: .95rem; }

/* follow */
.follow { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.follow a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; }
.follow a:hover { border-color: var(--leaf); color: var(--leaf); }

/* prose pages */
.page { padding: 48px 0 64px; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.phase-list { list-style: none; padding: 0; margin: 28px 0 0; max-width: 52em; }
.phase-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.phase-list .num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--glow); }
.phase-list p { color: var(--muted); margin: 0 0 .4em; }
.phase-list .gate { color: var(--ink); font-size: .95rem; }
.phase-list .gate b { color: var(--leaf); }
@media (max-width: 480px) { .phase-list li { grid-template-columns: 28px 1fr; gap: 12px; } .phase-list .num { font-size: 1.6rem; } }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 28px; }
.note .date { color: var(--muted); font-size: .9rem; margin-bottom: .4em; }
.note h3 { margin-top: 1.4em; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.figures div { background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.figures b { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.figures span { color: var(--muted); font-size: .85rem; }

/* footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 20px; color: var(--muted); font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--serif); font-weight: 600; margin-bottom: .3em; }
.foot-brand img { border-radius: 50%; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; }
.foot nav a { color: var(--muted); }
.foot-small { margin-top: 20px; font-size: .82rem; }

/* weekly notes list */
.note-list { list-style: none; padding: 0; margin: 28px 0 0; max-width: 44em; }
.note-list li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.note-list a { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.note-list a:hover { text-decoration: underline; }
.note-list .date { color: var(--muted); font-size: .9rem; }
.latest { font-size: 1.05rem; }
.eyebrow a { color: inherit; text-decoration: none; }
