@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --bg: #05080f;
  --text: #eef2f8;
  --dim: rgba(238, 242, 248, 0.56);
  --faint: rgba(238, 242, 248, 0.34);
  --line: rgba(238, 242, 248, 0.1);
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.06);
  --mark: #f4b740;
  --done: #7bd8b4;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 34% at 85% 38%, rgba(34, 60, 190, 0.34), transparent 70%),
    radial-gradient(55% 30% at 8% 62%, rgba(26, 44, 160, 0.3), transparent 70%),
    radial-gradient(40% 22% at 50% 96%, rgba(40, 70, 210, 0.22), transparent 70%);
}
a { color: var(--text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0 0 1em; }
.dim { color: var(--dim); }

/* Framed page: hairline rails left and right */
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 40px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
main > .wrap, main.wrap { padding: 0; }

/* Header: no line under it */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 8, 15, 0.82); backdrop-filter: blur(14px); }
.site-header .wrap { position: relative; display: flex; align-items: center; height: 56px; padding: 0 24px; border-color: transparent; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; color: var(--text); text-decoration: none; }
.brand svg { display: block; width: 24px; height: 24px; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-cta { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px var(--sans); padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--text); color: #05080f;
}
.btn:hover { background: #fff; }
.btn.quiet { background: rgba(5, 8, 15, 0.6); color: var(--text); border-color: rgba(238, 242, 248, 0.16); }
.btn.quiet:hover { border-color: rgba(238, 242, 248, 0.4); }
.btn.small { padding: 8px 14px; font-size: 13px; }

/* Hero */
.hero { text-align: center; padding: 104px 24px 72px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); max-width: 896px; margin: 0 auto; }
.hero h1 span { display: block; }
.hero .lede { color: var(--dim); font-size: 17px; max-width: 34em; margin: 28px auto 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero .note { color: var(--faint); font-size: 12px; margin: 18px 0 0; }

/* Contents box */
.contents { max-width: 704px; margin: 0 auto; border: 1px solid var(--line); background: rgba(5, 8, 15, 0.5); }
.contents-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.label { font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.contents ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.contents li { display: grid; grid-template-columns: 30px 1fr 16px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.contents li:nth-child(odd) { border-right: 1px solid var(--line); }
.contents li:nth-last-child(-n+2) { border-bottom: 0; }
.contents li span { order: -1; font: 400 11px var(--mono); color: var(--faint); }
.contents li a { padding: 12px 0; font-size: 14px; color: var(--text); text-decoration: none; }
.contents li::after { content: "\2192"; color: var(--faint); font-size: 13px; }
.contents li:hover { background: var(--panel); }
.contents li.is-done a { color: var(--done); }
.hero-foot { padding: 0 24px 72px; }

/* Tools strip */
.strip { display: grid; grid-template-columns: 1.1fr repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > * { padding: 22px 18px; border-right: 1px solid var(--line); display: flex; align-items: center; }
.strip > *:last-child { border-right: 0; }
.strip a { justify-content: center; color: var(--dim); text-decoration: none; font-size: 15px; }
.strip a:hover { color: var(--text); background: var(--panel); }

/* Intro */
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; padding: 88px 40px; border-bottom: 1px solid var(--line); }
.pill { display: inline-block; font: 400 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; margin-bottom: 22px; }
.intro h2 { font-size: clamp(32px, 4.2vw, 48px); max-width: 13em; }
.intro .side { font-size: 14px; color: var(--dim); }
.intro .side strong { color: var(--text); font-weight: 500; }
.meter { height: 3px; background: var(--line); margin: 18px 0 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--done); transition: width 0.3s; }
.count { font: 400 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0; }

/* Steps: title left, content right */
.step { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: 56px; padding: 72px 40px; border-bottom: 1px solid var(--line); position: relative; }
.step::before, .step::after, .intro::before, .intro::after { content: ""; position: absolute; bottom: -4px; width: 7px; height: 7px; border-bottom: 1px solid var(--dim); }
.intro { position: relative; }
.step::before, .intro::before { left: -1px; border-left: 1px solid var(--dim); bottom: -1px; }
.step::after, .intro::after { right: -1px; border-right: 1px solid var(--dim); bottom: -1px; }
.step-head { position: sticky; top: 96px; align-self: start; }
.num { display: inline-grid; place-items: center; min-width: 36px; height: 34px; padding: 0 8px; border: 1px solid var(--line); font: 500 12px var(--mono); color: var(--dim); margin-bottom: 24px; }
.step.is-done .num { color: var(--done); border-color: rgba(123, 216, 180, 0.5); }
.step h3 { font-size: 30px; }
.chip { display: inline-block; margin-top: 18px; padding: 6px 12px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--text); text-decoration: none; }
.chip:hover { background: var(--panel); }

.body { font-size: 15px; }
.body > p { color: var(--dim); }
.body > p:first-child { color: var(--text); }
.body h4 { font-size: 13px; font-weight: 500; letter-spacing: 0; margin: 28px 0 10px; }
.body ul:not(.checklist), .body ol { list-style: none; counter-reset: row; margin: 20px 0; padding: 0; border: 1px solid var(--line); background: rgba(5, 8, 15, 0.45); }
.body ul:not(.checklist) > li, .body ol > li { counter-increment: row; display: grid; grid-template-columns: 30px 1fr; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.body ul:not(.checklist) > li:last-child, .body ol > li:last-child { border-bottom: 0; }
.body ul:not(.checklist) > li::before, .body ol > li::before { content: counter(row, decimal-leading-zero); font: 400 10px var(--mono); color: var(--faint); }
.body li strong { font-weight: 500; }

.callout { border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; margin: 20px 0; font-size: 14px; color: var(--dim); }
.callout p { margin: 0; }

/* Panels: prompts and illustrations */
.prompt, .practice-wrap { border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 15, 24, 0.82); margin: 20px 0; overflow: hidden; }
.prompt header, .panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 400 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.prompt pre { margin: 0; padding: 16px; white-space: pre-wrap; font: 13px/1.6 var(--mono); color: rgba(238, 242, 248, 0.82); }
.copy { font: 500 11px var(--sans); letter-spacing: 0; text-transform: none; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.copy:hover { background: var(--panel-2); }
.copy.copied { color: var(--done); border-color: var(--done); }
.tagline { font: 400 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; }

.post { border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 15, 24, 0.82); padding: 14px 16px; margin: 10px 0; font-size: 14px; }
.post .who { font-weight: 500; }
.post .who span { color: var(--faint); font-weight: 400; }
.post p { margin: 4px 0 0; color: var(--dim); }
.tag { display: inline-block; margin: 8px 0 2px; font: 400 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

.practice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.practice label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 12px; }
.practice input, .practice textarea { display: block; width: 100%; margin-top: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 9px 11px; font: 14px var(--sans); }
.practice textarea { resize: vertical; min-height: 70px; }
.coin { border: 1px solid var(--line); border-radius: 9px; padding: 16px; align-self: start; background: rgba(255, 255, 255, 0.03); }
.coin .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: #05080f; display: grid; place-items: center; font-weight: 600; font-size: 19px; margin-bottom: 12px; }
.coin strong { display: block; font-weight: 500; font-size: 18px; }
.coin em { font: 400 12px var(--mono); font-style: normal; color: var(--dim); }
.coin p { color: var(--dim); font-size: 13px; margin: 10px 0 0; overflow-wrap: anywhere; }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--line); background: rgba(5, 8, 15, 0.45); }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 12px; align-items: center; padding: 12px 16px; font-size: 14px; cursor: pointer; }
.checklist input, .done-toggle input { width: 15px; height: 15px; accent-color: var(--done); flex: none; }
.done-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--dim); cursor: pointer; }

/* Closing */
.closing { text-align: center; padding: 96px 24px; border-bottom: 1px solid var(--line); }
.closing h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.closing p { color: var(--dim); max-width: 34em; margin-left: auto; margin-right: auto; }

/* Tools page */
.tools-head { padding: 96px 40px 64px; border-bottom: 1px solid var(--line); }
.tools-head h1 { font-size: clamp(38px, 5.4vw, 64px); }
.tools-head p { color: var(--dim); max-width: 36em; margin: 20px 0 0; }
.shelf { padding: 56px 40px; border-bottom: 1px solid var(--line); }
.shelf h2 { font-size: 30px; margin-bottom: 6px; }
.shelf > p { color: var(--dim); font-size: 14px; margin-bottom: 24px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool { display: block; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: rgba(5, 8, 15, 0.45); }
.tool:hover { background: var(--panel-2); }
.tool strong { display: block; font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.tool span { color: var(--dim); font-size: 14px; }
.tool small { display: block; margin-top: 14px; font: 400 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.shelf .prompt { max-width: 760px; }

footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding: 28px 40px 48px; color: var(--faint); font-size: 13px; }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; border: 0; }
  .nav { position: static; transform: none; margin-left: auto; gap: 18px; }
  .header-cta { display: none; }
  .site-header .wrap { padding: 0 20px; }
  .hero { padding: 64px 20px 48px; }
  .hero-foot { padding: 0 20px 48px; }
  .contents ol { grid-template-columns: 1fr; }
  .contents li:nth-child(odd) { border-right: 0; }
  .contents li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > * { border-bottom: 1px solid var(--line); justify-content: flex-start !important; }
  .strip > .label { grid-column: 1 / -1; }
  .intro { grid-template-columns: 1fr; padding: 56px 20px; gap: 28px; }
  .step { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px; }
  .step-head { position: static; }
  .num { margin-bottom: 16px; }
  .step h3 { font-size: 26px; }
  .practice { grid-template-columns: 1fr; }
  .tools-head, .shelf { padding-left: 20px; padding-right: 20px; }
  footer .wrap { padding: 24px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
