/* ============================================================
   DogeCode - "Shibe & Shell" design system
   Warm espresso dark + Dogecoin gold + cream. Terminal motifs,
   rounded-square marks, JetBrains Mono for anything machine-ish.
   Professional first; the doge warmth lives in the details.
   ============================================================ */

:root {
  --ink:      #16110b;
  --ink-2:    #1e1710;
  --ink-3:    #272015;
  --ink-deep: #0f0b07;
  --line:     rgba(232, 185, 59, 0.14);
  --line-2:   rgba(242, 233, 216, 0.09);
  --cream:    #f2e9d8;
  --muted:    #b5a78c;
  --faint:    #8a7d64;
  --gold:     #e8b93b;
  --gold-hi:  #f5cb5c;
  --gold-deep:#c2a633;
  --gold-soft:rgba(232, 185, 59, 0.10);
  --copper:   #c97e4a;
  --green:    #7cb878;
  --teal:     #6fb3a8;
  --red:      #c96f5a;
  --radius:   14px;
  --radius-sm: 9px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1000px 520px at 78% -10%, rgba(232, 185, 59, 0.09), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(201, 126, 74, 0.05), transparent 55%);
}
body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.16; margin: 0 0 0.55em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--font-mono); }

.container { width: min(1160px, calc(100% - 2.5rem)); margin: 0 auto; }
.container--narrow { width: min(780px, calc(100% - 2.5rem)); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 17, 11, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand__mark { display: inline-flex; width: 30px; height: 30px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand__word b { color: var(--gold); font-weight: 800; }

.site-nav { display: flex; align-items: center; }
.site-nav__toggle { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0.25rem; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; }
.site-nav__list a {
  display: block; padding: 0.42rem 0.95rem; border-radius: 999px;
  color: var(--muted); font-size: 0.93rem; font-weight: 500; white-space: nowrap;
}
.site-nav__list a:hover { color: var(--cream); }
.site-nav__list a.is-active { color: var(--cream); background: var(--ink-3); }
.site-nav__cta a { background: var(--gold); color: var(--ink) !important; font-weight: 600; }
.site-nav__cta a:hover { background: var(--gold-hi); }
.site-nav__cta a.is-active { background: var(--gold-hi); color: var(--ink) !important; }

@media (max-width: 940px) {
  .site-nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 40px; padding: 0 10px;
    background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  }
  .site-nav__toggle-bar { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav__pill {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 1.25rem; left: 1.25rem;
  }
  .site-nav__pill.is-open { display: block; }
  .site-nav__list {
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    border-radius: var(--radius); padding: 0.5rem; box-shadow: var(--shadow);
    background: var(--ink-2);
  }
  .site-nav__list a { padding: 0.7rem 1rem; border-radius: 10px; }
}

/* ---------------- buttons & kickers ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.62rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--lg { padding: 0.8rem 1.6rem; font-size: 1.02rem; }
.btn--small { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-hi); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-1px); }
.btn--on-ink { background: var(--ink); color: var(--cream); }
.btn--on-ink:hover { background: var(--ink-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost-ink { background: transparent; color: var(--ink); border-color: rgba(22, 17, 11, 0.4); }
.btn--ghost-ink:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.kicker--on-ink { color: var(--ink); }
.kicker--on-ink::before { background: var(--ink); }

/* ---------------- hero ---------------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.4rem, 5vw, 4rem); }
.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lede { font-size: 1.13rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0 1rem; }
.hero__note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.02em; }
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: -1; }
}

/* terminal card */
.term-card {
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(0.6deg);
}
.term-card__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--line-2);
  background: rgba(242, 233, 216, 0.03);
}
.term-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.term-card__bar span:nth-child(2) { background: var(--gold); }
.term-card__bar span:nth-child(3) { background: var(--green); }
.term-card__bar em { margin-left: auto; font-family: var(--font-mono); font-style: normal; font-size: 0.72rem; color: var(--faint); }
.term-card__body {
  margin: 0; padding: 1.15rem 1.25rem 1.3rem;
  font-size: 0.88rem; line-height: 1.85; overflow-x: auto;
}
.t-prompt { color: var(--gold); font-weight: 700; }
.t-out { color: var(--cream); opacity: 0.92; }
.t-comment { color: var(--faint); font-style: italic; }
.t-cursor {
  display: inline-block; width: 0.62em; height: 1.05em; vertical-align: text-bottom;
  background: var(--gold); animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- stat band ---------------- */
.statband { border-block: 1px solid var(--line-2); background: rgba(242, 233, 216, 0.02); }
.statband__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
.stat { text-align: center; padding: 0.4rem 0.6rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 760px) { .statband__inner { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- sections ---------------- */
.section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.section--alt { background: rgba(242, 233, 216, 0.025); border-block: 1px solid var(--line-2); }
.section--tight { padding-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.section__head { max-width: 780px; margin-bottom: 2.2rem; }
.section__head p { color: var(--muted); }
.section__foot { margin-top: 2rem; }

/* ---------------- card grids ---------------- */
.cardgrid { display: grid; gap: 1.1rem; }
.cardgrid--3 { grid-template-columns: repeat(3, 1fr); }
.cardgrid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .cardgrid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 940px) { .cardgrid--3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cardgrid--4 { grid-template-columns: 1fr; } }

/* project card */
.pcard {
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.05rem; display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line); }
.pcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.7rem; }
.pcard__top h3 { margin: 0; font-size: 1.05rem; }
.pcard__top h3 a { color: var(--cream); }
.pcard__top h3 a:hover { color: var(--gold-hi); }
.pcard__by { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); margin: 0.25rem 0 0.6rem; }
.pcard > p:not(.pcard__by):not(.pcard__meta):not(.pcard__tags) { font-size: 0.93rem; color: var(--muted); flex: 1; }
.pcard__meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint);
  border-top: 1px solid var(--line-2); padding-top: 0.7rem; margin: 0.4rem 0 0.35rem;
}
.pcard__meta a { color: var(--gold-deep); }
.pcard__meta a:hover { color: var(--gold-hi); }
.pcard__tags { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); opacity: 0.85; }

/* status badges */
.badge {
  flex-shrink: 0;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.22rem 0.55rem; border-radius: 999px; border: 1px solid;
  cursor: help;
}
.badge--active   { color: var(--green); border-color: rgba(124, 184, 120, 0.4);  background: rgba(124, 184, 120, 0.09); }
.badge--slow     { color: var(--gold);  border-color: rgba(232, 185, 59, 0.4);   background: rgba(232, 185, 59, 0.08); }
.badge--quiet    { color: var(--muted); border-color: rgba(181, 167, 140, 0.35); background: rgba(181, 167, 140, 0.07); }
.badge--archived { color: var(--red);   border-color: rgba(201, 111, 90, 0.4);   background: rgba(201, 111, 90, 0.09); }
.badge--live     { color: var(--teal);  border-color: rgba(111, 179, 168, 0.4);  background: rgba(111, 179, 168, 0.09); }
.badge--dev      { color: var(--copper);border-color: rgba(201, 126, 74, 0.45);  background: rgba(201, 126, 74, 0.09); }

/* track cards (home) */
.trackgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 940px) { .trackgrid { grid-template-columns: 1fr; } }
.tcard { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem; }
.tcard__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.tcard__num {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); background: var(--gold);
  padding: 0.24rem 0.6rem; border-radius: 999px;
}
.tcard__level { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.tcard h3 { font-size: 1.15rem; }
.tcard h3 a { color: var(--cream); }
.tcard h3 a:hover { color: var(--gold-hi); }
.tcard > p { font-size: 0.92rem; color: var(--muted); }
.tcard__lessons { list-style: none; margin: 1rem 0 0.2rem; padding: 0; counter-reset: tl; }
.tcard__lessons li {
  counter-increment: tl;
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.45rem 0; border-top: 1px solid var(--line-2);
  font-size: 0.9rem;
}
.tcard__lessons li::before {
  content: counter(tl, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-deep);
}
.tcard__lessons a { color: var(--cream); flex: 1; }
.tcard__lessons a:hover { color: var(--gold-hi); }
.tcard__lessons span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }

/* kit cards (home) */
.kcard {
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.05rem; transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.kcard:hover { transform: translateY(-3px); border-color: var(--line); }
.kcard h3 { font-size: 1.02rem; }
.kcard h3 a { color: var(--cream); }
.kcard h3 a:hover { color: var(--gold-hi); }
.kcard > p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.kcard__meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint);
  border-top: 1px solid var(--line-2); padding-top: 0.65rem; margin: 0.5rem 0 0;
}

/* why cards + stance */
.wcard { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.4rem; }
.wcard h3 { color: var(--gold); font-size: 1.05rem; }
.wcard p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.stance {
  margin-top: 2rem; padding: 1.3rem 1.6rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--gold-soft);
}
.stance p { margin: 0; color: var(--cream); font-size: 0.97rem; }

/* ---------------- page heads ---------------- */
.pagehead { padding: clamp(2.6rem, 5.5vw, 4.2rem) 0 clamp(1.2rem, 2.5vw, 2rem); }
.pagehead__inner { max-width: 860px; }
.pagehead__lede { font-size: 1.1rem; color: var(--muted); }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.pagehead--lesson { padding-bottom: 0.6rem; }
.crumbs { font-family: var(--font-mono); font-size: 0.76rem; color: var(--faint); margin-bottom: 1rem; }
.crumbs a { color: var(--gold-deep); }
.crumbs span { margin: 0 0.35rem; opacity: 0.6; }

/* ---------------- directory ---------------- */
.dir-tools { margin-bottom: 2.4rem; }
.dir-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-bottom: 0.8rem; }
.legend-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend-item em { font-style: normal; font-size: 0.78rem; color: var(--faint); }
.dir-note { font-size: 0.86rem; color: var(--faint); max-width: 62em; }
.dir-filter { display: flex; align-items: center; gap: 0.8rem; margin: 1.3rem 0 1rem; }
.dir-filter__label { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.dir-filter input {
  flex: 1; max-width: 430px;
  background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.6rem 1.1rem; font-family: var(--font-body); font-size: 0.95rem;
}
.dir-filter input:focus { outline: none; border-color: var(--gold); }
.dir-filter__count { font-family: var(--font-mono); font-size: 0.76rem; color: var(--faint); }
.dir-jump { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dir-jump a {
  font-size: 0.84rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.32rem 0.85rem;
}
.dir-jump a:hover { color: var(--gold-hi); border-color: var(--line); }
.dir-jump a span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-deep); }
.dir-cat { margin-bottom: 2.8rem; scroll-margin-top: 90px; }
.dir-cat__head { margin-bottom: 1.1rem; max-width: 720px; }
.dir-cat__head h2 { margin-bottom: 0.2em; }
.dir-cat__head p { color: var(--faint); font-size: 0.93rem; margin: 0; }
.dir-cta {
  margin-top: 3rem; padding: 1.8rem 2rem;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.dir-cta h2 { font-size: 1.25rem; }
.dir-cta p { color: var(--muted); margin: 0; }

/* ---------------- learn ---------------- */
.learn-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 3rem; }
@media (max-width: 860px) { .learn-how { grid-template-columns: 1fr; } }
.learn-how > div { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.learn-how h3 { font-size: 0.98rem; color: var(--gold); margin-bottom: 0.4em; }
.learn-how p { font-size: 0.9rem; color: var(--muted); margin: 0; }

.track { margin-bottom: 3rem; scroll-margin-top: 90px; }
.track__head { max-width: 760px; margin-bottom: 1.2rem; }
.track__head h2 { margin: 0.6rem 0 0.15em; }
.track__level { font-family: var(--font-mono); font-size: 0.76rem; color: var(--gold-deep); margin-bottom: 0.6rem; }
.track__head > p:last-child { color: var(--muted); margin: 0; }

.lessonlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.lessonlist__item + .lessonlist__item { border-top: 1px solid var(--line-2); }
.lessonlist__link {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.3rem; background: var(--ink-2); color: var(--cream);
  transition: background 0.15s ease;
}
.lessonlist__link:hover { background: var(--ink-3); color: var(--cream); }
.lessonlist__num { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--gold); }
.lessonlist__body { flex: 1; min-width: 0; }
.lessonlist__body strong { display: block; font-weight: 600; }
.lessonlist__body em { display: block; font-style: normal; font-size: 0.86rem; color: var(--faint); margin-top: 0.1rem; }
.lessonlist__min { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); white-space: nowrap; }
@media (max-width: 640px) { .lessonlist__body em { display: none; } }

/* ---------------- lesson article ---------------- */
.lesson__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin-top: 0.9rem; }
.lesson__meta span {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.22rem 0.7rem;
}
.lesson__body { padding-bottom: 1rem; }

.prose { max-width: 780px; }
.prose .lede { font-size: 1.14rem; color: var(--cream); }
.prose p, .prose li { color: #ded3bc; }
.prose h2 { margin-top: 2.2em; color: var(--cream); }
.prose h2:first-child { margin-top: 0.4em; }
.prose h3 { margin-top: 1.6em; color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold-deep); }
.prose strong { color: var(--cream); }
.prose code {
  background: var(--ink-3); color: var(--gold-hi);
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 0.1em 0.38em; font-size: 0.85em;
}
.prose pre {
  background: var(--ink-deep); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.05rem 1.2rem;
  overflow-x: auto; margin: 0 0 1.3em; line-height: 1.7;
}
.prose pre code { background: none; border: 0; padding: 0; color: var(--cream); font-size: 0.86rem; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.95rem; border-bottom: 1px solid var(--line-2); }
.prose th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); background: rgba(242, 233, 216, 0.03); }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: #ded3bc; }

.callout { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 0 0 1.3em; border: 1px solid; }
.callout p { margin: 0; font-size: 0.95rem; }
.callout--tip  { border-color: rgba(232, 185, 59, 0.35); background: var(--gold-soft); }
.callout--warn { border-color: rgba(201, 126, 74, 0.5); background: rgba(201, 126, 74, 0.08); }

.takeaways {
  margin-top: 2.4em; padding: 1.3rem 1.5rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.takeaways h2 { margin: 0 0 0.6em; font-size: 1.05rem; color: var(--gold); }
.takeaways ul { margin: 0; }

.checklist ul { list-style: none; padding-left: 0.2rem; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55em; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}

.lesson__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding-top: 2rem; padding-bottom: 3.4rem; max-width: 780px;
}
@media (max-width: 640px) { .lesson__nav { grid-template-columns: 1fr; } }
.lesson__navlink {
  display: block; padding: 1rem 1.2rem;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lesson__navlink:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.lesson__navlink em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); margin-bottom: 0.25rem; }
.lesson__navlink strong { color: var(--cream); font-weight: 600; font-size: 0.95rem; }
.lesson__navlink--next { text-align: right; }

/* ---------------- kits ---------------- */
.kitgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 860px) { .kitgrid { grid-template-columns: 1fr; } }
.kitcard {
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.3rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.kitcard:hover { transform: translateY(-3px); border-color: var(--line); }
.kitcard h2 { font-size: 1.3rem; margin-bottom: 0.1em; }
.kitcard h2 a { color: var(--cream); }
.kitcard h2 a:hover { color: var(--gold-hi); }
.kitcard__tag { color: var(--gold); font-weight: 500; margin-bottom: 0.5em; }
.kitcard > p:not(.kitcard__tag):not(.kcard__meta):not(.kitcard__stack) { font-size: 0.94rem; color: var(--muted); }
.kitcard__stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 1rem; }
.kitcard__stack span {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.18rem 0.6rem;
}
.kitcard .btn { align-self: flex-start; }

.promptbox { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5em; background: var(--ink-deep); }
.promptbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--line-2); background: rgba(242, 233, 216, 0.03);
}
.promptbox__bar span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.promptbox__body { margin: 0; padding: 1.15rem 1.25rem; max-height: 560px; overflow: auto; }
.promptbox__body code { white-space: pre-wrap; word-break: break-word; color: var(--cream); font-size: 0.84rem; line-height: 1.7; background: none; border: 0; padding: 0; }

/* ---------------- FAQ ---------------- */
.faqlist { display: flex; flex-direction: column; gap: 0.8rem; padding-bottom: 1rem; }
.faq { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.faq[open] { border-color: var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq__toggle { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq__toggle::before, .faq__toggle::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--gold); border-radius: 2px; transition: transform 0.2s ease;
}
.faq__toggle::before { width: 14px; height: 2px; }
.faq__toggle::after { width: 2px; height: 14px; }
.faq[open] .faq__toggle::after { transform: rotate(90deg); }
.faq__a { padding: 0 1.3rem 1.2rem; }
.faq__a p { margin: 0; color: #ded3bc; font-size: 0.97rem; }

/* ---------------- forms ---------------- */
.bigform { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 2.5rem; }
.bigform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 680px) { .bigform__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field label em { font-style: normal; font-weight: 400; color: var(--faint); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); color: var(--cream);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.68rem 0.9rem; font-family: var(--font-body); font-size: 0.97rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.bigform__note { font-size: 0.82rem; color: var(--faint); margin: 0.9rem 0 0; }
.formerror {
  background: rgba(201, 111, 90, 0.12); border: 1px solid rgba(201, 111, 90, 0.5);
  color: #eec4b8; border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.94rem;
}
.form-status { margin-top: 0.8rem; font-size: 0.93rem; min-height: 1.3em; }
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: var(--red); }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-deep) 100%); color: var(--ink); }
.cta-band__inner { text-align: center; max-width: 720px; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: rgba(22, 17, 11, 0.78); font-size: 1.05rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line-2); background: var(--ink-deep); }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 2.5rem;
  padding: 3rem 0 2.4rem;
}
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer__tag { color: var(--muted); font-size: 0.92rem; margin: 0.9rem 0 1.4rem; }
.site-footer__col h2 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.9rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin-bottom: 0.55rem; }
.link-list a { color: var(--muted); font-size: 0.94rem; }
.link-list a:hover { color: var(--gold-hi); }

.foot-news__label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.foot-news__pitch { font-size: 0.84rem; color: var(--faint); margin: 0 0 0.7rem; }
.foot-news__row { display: flex; gap: 0.5rem; max-width: 420px; }
.foot-news__row input {
  flex: 1; background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.92rem;
}
.foot-news__row input:focus { outline: none; border-color: var(--gold); }

.site-footer__base { border-top: 1px solid var(--line-2); }
.site-footer__base-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 1.1rem 0; font-size: 0.78rem; color: var(--faint);
}
.site-footer__base-inner p { margin: 0; }
.site-footer__wow { font-family: var(--font-mono); letter-spacing: 0.06em; opacity: 0.8; }

/* ---------------- misc ---------------- */
.err404 { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--gold); margin: 0; line-height: 1; opacity: 0.9; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
