/* Shared styles for index.html and about.html */
:root {
  --black: #0b0b0b;
  --black-2: #161616;
  --lime: #d7ff3f;
  --cream: #f7f3e8;
  --cream-2: #ece6d6;
  --ink: #111;
  --ink-muted: #5d5a52;
  --on-black: #f4f4f4;
  --on-black-muted: #a8a8a8;
  --heavy: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--on-black);
  font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--cream); color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.links { margin-right: 12px; }
.mark { text-decoration: none; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.mark small { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mark small b { font-weight: 800; }
.mark span { font-family: var(--heavy); font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.links a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.icon:hover { background: var(--cream-2); }
.icon svg { width: 20px; height: 20px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--black); color: var(--lime); text-decoration: none;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 640px) {
  .links, .nav .icon { display: none; }
  .pill { margin-left: auto; padding: 0 16px; }
}

/* ---------- hero ---------- */
.hero { background: var(--black); text-align: center; padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 50%; top: 58%; width: 720px; height: 320px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(215,255,63,.13), transparent); pointer-events: none;
}
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 22px; }
.hero .kicker { color: var(--lime); }
.hero h1 {
  position: relative; z-index: 1;
  margin: 0; line-height: 0.92; color: var(--on-black);
  font-family: var(--heavy); font-weight: 400; letter-spacing: -0.035em; text-transform: uppercase;
  font-size: clamp(50px, 13vw, 150px);
}
.hero h1 em {
  font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: -0.01em;
  color: var(--lime); font-size: 1.12em; display: inline-block; margin-top: 0.04em;
}
.hero p { position: relative; z-index: 1; max-width: 560px; margin: 30px auto 34px; font-size: clamp(16px, 2.4vw, 19px); color: #d6d6d6; font-weight: 500; }
.cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--lime); color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 800; letter-spacing: 0.04em;
}
.cta:active, .btn:active, .pill:active { transform: translateY(1px); }

/* ---------- library ---------- */
.library { background: var(--cream); color: var(--ink); padding: 64px 0 80px; }
.library .kicker { color: var(--ink-muted); margin-bottom: 10px; }
.library h2 { font-family: var(--heavy); font-weight: 400; font-size: clamp(32px, 6vw, 52px); letter-spacing: -0.03em; line-height: 1; margin: 0 0 8px; text-transform: uppercase; }
.library h2 em { font-family: var(--serif); font-style: italic; text-transform: none; font-size: 1.15em; letter-spacing: 0; }
.lede { margin: 0 0 28px; color: var(--ink-muted); font-size: 16px; max-width: 560px; }

.how {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; margin: 0 0 26px; border-radius: 14px;
  background: var(--black); color: #e2e2e2; font-size: 15px;
}
.how b { color: var(--lime); }
.how .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }

.controls { display: grid; gap: 18px; margin-bottom: 22px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; display: block; }
.search input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 14px 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; outline: none;
}
.search input:focus { box-shadow: 0 0 0 4px var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: none; background: var(--cream-2); color: var(--ink);
}
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--lime); font-weight: 700; }
.count { font-size: 13px; color: var(--ink-muted); margin: 0 0 12px; min-height: 1.5em; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: 18px;
  padding: 20px 20px 18px; display: flex; flex-direction: column;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.card.hit { box-shadow: 4px 4px 0 var(--ink), 0 0 0 4px var(--lime); }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.kw { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; background: var(--ink); color: var(--lime); padding: 4px 9px; border-radius: 999px; }
.cat { font-size: 12px; color: var(--ink-muted); font-weight: 600; margin-left: auto; }
.type { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border: 1.5px solid var(--ink); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.2; }
.card p { margin: 0 0 16px; color: #3d3b36; font-size: 15px; flex: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.btn.primary { background: var(--lime); }
.empty { text-align: center; color: var(--ink-muted); padding: 32px 8px; display: none; }

/* ---------- about ---------- */
.about { background: var(--black); padding: 80px 0; }
.about .inner { max-width: 680px; }
.about .kicker { color: var(--lime); margin-bottom: 14px; }
.about h2 { font-family: var(--heavy); font-weight: 400; font-size: clamp(34px, 7vw, 60px); letter-spacing: -0.03em; line-height: 1; margin: 0 0 24px; text-transform: uppercase; }
.about h2 em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--lime); font-size: 1.15em; letter-spacing: 0; }
.about p { font-size: 18px; color: #d6d6d6; margin: 0 0 16px; }
.about p strong { color: var(--on-black); }
.follow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.follow a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--lime); color: var(--lime); text-decoration: none; font-weight: 700;
}
.follow svg { width: 18px; height: 18px; }

footer { background: var(--cream); color: var(--ink); border-top: 2px solid var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--ink-muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 20;
  background: var(--ink); color: var(--lime); font-weight: 800;
  padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .toast { transition: none; } }

/* ---------- about teaser (index) ---------- */
.teaser { background: var(--black); padding: 40px 0; }
.teaser-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  padding: 16px; border: 2px solid #2a2a2a; border-radius: 18px; background: var(--black-2);
}
.teaser-card:hover { border-color: var(--lime); }
.teaser-card img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); }
.teaser-card span { color: #cfcfcf; font-size: 15px; flex: 1 1 0; min-width: 0; }
.teaser-card b { display: block; color: var(--on-black); font-size: 17px; }
.teaser-card .go { flex: none; margin-left: auto; color: var(--lime); font-weight: 800; white-space: nowrap; }
@media (max-width: 520px) { .teaser-card .go { display: none; } .teaser-card span b::after { content: " →"; color: var(--lime); } }

/* ---------- about page ---------- */
.about-page { padding: 64px 0 88px; }
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 5fr 6fr; gap: 64px; } }
.photo { position: relative; max-width: 420px; width: 100%; margin: 0 auto; }
.photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 22px; border: 3px solid var(--on-black); position: relative; z-index: 1;
}
.photo::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); border-radius: 22px; background: var(--lime); }
.photo .tag {
  position: absolute; z-index: 2; left: -8px; bottom: 28px;
  background: var(--cream); color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); transform: rotate(-4deg);
}
@media (max-width: 520px) { .photo { max-width: calc(100% - 14px); margin: 0; } .photo .tag { left: 8px; } }
.about-page .about { padding: 0; background: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn-row .cta { position: static; }

/* ---------- course waitlist (index) ---------- */
.waitlist { background: var(--black); padding: 0 0 72px; }
.wl-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--lime); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 24px; padding: 36px 20px 28px;
  box-shadow: 6px 6px 0 var(--on-black);
}
.wl-tag { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.wl-card h2 { margin: 0 0 12px; font-family: var(--heavy); font-weight: 400; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; font-size: clamp(30px, 6.5vw, 52px); }
.wl-card h2 em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.12em; }
.wl-lede { max-width: 520px; margin: 0 auto 22px; font-size: 16px; font-weight: 500; color: #23260f; }
.wl-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.wl-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink);
  min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; outline: none;
}
.wl-form input:focus { box-shadow: 0 0 0 4px var(--ink); }
.wl-form button {
  flex: none; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--lime);
}
.wl-form button:disabled { opacity: .7; cursor: default; }
.wl-note { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: #3a3d1c; }
.wl-note.ok { font-size: 17px; font-weight: 800; color: var(--ink); }
.wl-note.bad { color: #8a1b00; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .wl-form { flex-direction: column; } .wl-form button { width: 100%; } }

/* ---------- simple type (2026-11-09): Inter only, no all-caps headings, no italics ---------- */
.hero h1, .library h2, .about h2, .wl-card h2, .mark span { text-transform: none; font-weight: 800; letter-spacing: -0.025em; }
.hero h1 { font-size: clamp(44px, 9vw, 104px); line-height: 1.02; }
.hero h1 em, .library h2 em, .about h2 em, .wl-card h2 em { font-style: normal; font-size: 1em; letter-spacing: -0.025em; }
.mark span { font-size: 24px; }

/* ---------- waitlist in the hero (2026-11-09) ---------- */
.hero .wl-form { position: relative; z-index: 1; margin-top: 4px; }
.hero .wl-form input { border-color: var(--on-black); }
.hero .wl-form input:focus { box-shadow: 0 0 0 4px var(--lime); }
.hero .wl-form button { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.hero .wl-note { position: relative; z-index: 1; color: var(--on-black-muted); }
.hero .wl-note.ok { color: var(--lime); }
.hero .wl-note.bad { color: #ff8a6b; }
.hero-skip { position: relative; z-index: 1; display: inline-block; margin-top: 40px; color: var(--on-black); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero h1 br { display: block; }
.hero p.wl-note { font-size: 13px; margin: 14px auto 0; font-weight: 500; }

/* ---------- personal home layout (2026-11-09) ---------- */
.hero.home { text-align: left; padding: 64px 0 80px; }
.hero.home::after { left: 30%; }
.home-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .home-grid { grid-template-columns: 7fr 5fr; gap: 56px; } }
.home-text { position: relative; z-index: 1; }
.hero.home h1 { font-size: clamp(44px, 7.5vw, 88px); }
.hero.home p { margin: 22px 0 30px; max-width: 520px; }
.home-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.home-btns.center { justify-content: center; }
.cta.ghost { background: transparent; color: var(--lime); border: 2px solid var(--lime); }
.home-photo { max-width: 380px; margin: 0 auto; }
@media (max-width: 859px) { .home-photo { max-width: 300px; } }
.home-photo .tag { transform: rotate(-4deg); }

.me { background: var(--black); padding: 72px 0; border-top: 1px solid #222; }
.me-grid { display: grid; gap: 24px; align-items: start; max-width: 760px; }
@media (min-width: 640px) { .me-grid { grid-template-columns: 120px 1fr; gap: 32px; } }
.me img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lime); }
.me .kicker { color: var(--lime); margin-bottom: 10px; }
.me h2 { margin: 0 0 14px; font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.me h2 em { font-style: normal; color: var(--lime); }
.me p { color: #d6d6d6; font-size: 17px; margin: 0 0 22px; }

.hi { background: var(--black); padding: 0 0 80px; }
.hi-card { text-align: center; max-width: 760px; margin: 0 auto; padding: 44px 20px; border-radius: 24px; background: var(--black-2); border: 2px solid #2a2a2a; }
.hi .kicker { color: var(--lime); margin-bottom: 10px; }
.hi h2 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.hi h2 em { font-style: normal; color: var(--lime); }
.hi p { color: #cfcfcf; margin: 0 0 24px; }
.waitlist { padding: 72px 0; }
@media (max-width: 859px) { .hero.home { padding-bottom: 40px; } .waitlist { padding-top: 32px; } }

/* ---------- guide pages (guides/*.html, built by guides-src/build.mjs) ---------- */
.guide { background: var(--cream); color: var(--ink); padding: 40px 0 64px; }
.guide-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.guide .back { display: inline-block; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink-muted); margin-bottom: 22px; }
.guide .back:hover { color: var(--ink); }
.guide .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.guide .tags span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.guide .tags span + span { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.guide h1 { font-size: clamp(32px, 7vw, 50px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; }
.guide .intro { font-size: 19px; line-height: 1.55; font-weight: 500; margin: 0 0 18px; }
.guide .soft { font-size: 15px; line-height: 1.55; background: #fff; border: 1.5px solid var(--cream-2); border-left: 5px solid var(--lime); border-radius: 12px; padding: 14px 16px; margin: 0 0 36px; }
.guide .soft a { font-weight: 800; }
.guide h2 { font-size: clamp(24px, 4.6vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 14px; padding-top: 28px; border-top: 2px solid var(--cream-2); }
.guide h3 { font-size: 19px; font-weight: 800; margin: 26px 0 8px; }
.guide p, .guide li { font-size: 16.5px; line-height: 1.65; }
.guide p { margin: 0 0 14px; }
.guide ul, .guide ol { margin: 0 0 16px; padding-left: 22px; }
.guide li { margin-bottom: 6px; }
.guide li::marker { font-weight: 800; }
.guide a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: #9fbf1f; }
.guide :not(pre) > code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--cream-2); padding: 2px 6px; border-radius: 6px; }
.guide .code { position: relative; margin: 6px 0 22px; }
.guide .code pre { margin: 0; background: var(--black); color: var(--on-black); border-radius: 14px; padding: 46px 18px 18px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.guide .code code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 1.6; }
.guide .copy { position: absolute; top: 9px; right: 9px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 0; background: var(--lime); color: var(--ink); }
.guide .copy.done { background: #fff; }
.guide .note { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--on-black); font-size: 15px; line-height: 1.55; }
.guide .note strong { color: var(--lime); }
.guide-wl { padding: 56px 0 72px; }
footer a { color: inherit; }

/* ---------- guide cards (home "start with these" + guides.html) ---------- */
.guides-home, .all-guides { background: var(--cream); color: var(--ink); padding: 64px 0 64px; }
.guides-home .kicker, .all-guides .kicker { color: var(--ink-muted); margin-bottom: 10px; }
.guides-home h2, .all-guides h2 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -0.025em; line-height: 1; margin: 0 0 8px; }
.guides-home h2 em { font-style: normal; background: var(--lime); padding: 0 .12em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.all-guides h2 { margin-bottom: 22px; }
.guide-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .guide-cards { grid-template-columns: repeat(3, 1fr); } }
.gcard {
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 18px; padding: 20px 20px 18px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.gcard:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.gcard .gtag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); border: 1.5px solid var(--ink); margin-bottom: 12px; }
.gcard h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; }
.gcard p { margin: 0 0 16px; color: #3d3b36; font-size: 15px; line-height: 1.5; flex: 1; }
.gcard b { font-size: 15px; font-weight: 800; }
.gcard:hover b { text-decoration: underline; text-decoration-color: #9fbf1f; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.see-all { margin-top: 30px; text-align: center; }
.cta.dark { background: var(--ink); color: var(--lime); }

/* ---------- guides.html header ---------- */
.lib-hero { background: var(--black); padding: 56px 0 48px; }
.lib-hero .kicker { color: var(--lime); margin-bottom: 12px; }
.lib-hero h1 { font-size: clamp(44px, 9vw, 84px); font-weight: 800; letter-spacing: -0.035em; line-height: .95; margin: 0 0 16px; }
.lib-hero h1 em { font-style: normal; color: var(--lime); }
.lib-hero p { max-width: 560px; font-size: 18px; margin: 0 0 14px; color: var(--on-black); }
.lib-hero .lib-tip { font-size: 14px; color: var(--on-black-muted); border-left: 3px solid var(--lime); padding-left: 12px; }
.all-guides + .library { padding-top: 24px; }
