/* neerajbhatyal.com — styles
   Tokens live in :root only; components use variables (see docs/DESIGN.md). */

/* ---------- fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/unbounded-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #0B0D12;
  --bg-2: #11141B;
  --surface: #141821;
  --surface-2: #1B2030;
  --border: #262B37;
  --border-2: #3A4152;
  --grid-line: #1A1F2B;

  --text: #F2F4F8;
  --text-2: #B9C0CD;
  --muted: #A3AAB8;
  --faint: #8E96A6;
  --ink: #0B0D12; /* dark text on bright accents */

  --violet: #6A45FF;
  --violet-text: #F1EEFF;
  --lime: #C6F432;
  --cyan: #3DD6F5;
  --coral: #FF6B57;
  --amber: #FFC44D;

  --chip-free-bg: #1F3B26;
  --chip-soon-bg: #2A2350;
  --chip-soon-text: #CFC4FF;
  --error: #FF8A7A;
  --success: #C6F432;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 32px; --r-pill: 999px;
  --container: 1280px;
  --gutter: 24px;
  --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 112px; padding-bottom: 112px; }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
.section-label { margin: 0 0 14px; font-family: var(--font-mono); font-size: 14px; color: var(--lime); }
.section-title { font-weight: 700; font-size: clamp(30px, 4vw, 50px); max-width: 820px; }
.section-lead { margin-top: 16px; max-width: 640px; color: var(--text-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 12px 40px rgba(106, 69, 255, 0.45); }
.btn--primary:hover { color: #fff; background: #5a37f0; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { color: var(--ink); background: #b8e626; }
.btn--ghost { background: var(--surface); border-color: #333A48; color: var(--text); }
.btn--ghost:hover { color: var(--text); border-color: var(--border-2); }
.btn--outline { border-color: var(--border-2); color: var(--text); background: transparent; }
.btn--outline:hover { color: var(--text); border-color: var(--text-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: #000; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.chip--free { background: var(--chip-free-bg); color: var(--lime); }
.chip--soon { background: var(--chip-soon-bg); color: var(--chip-soon-text); }
.tag {
  padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-2); font-family: var(--font-mono); font-size: 13px; color: #D5D9E2;
}

/* ---------- header ---------- */
.site-header { position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav__list {
  display: flex; align-items: center; gap: 4px; margin: 0; padding: 6px; list-style: none;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border);
}
.nav__list a {
  display: block; padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.nav__list a[aria-current="page"] { background: var(--surface-2); color: var(--lime); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav__list {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 84px;
    flex-direction: column; align-items: stretch; padding: 10px; border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
  }
  .js .nav.is-open .nav__list { display: flex; }
  .nav__list a { padding: 14px 16px; }
  .nav__cta { order: -1; }
  .nav { gap: 10px; }
  .js .site-header__inner { flex-wrap: nowrap; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .nav__list { flex-wrap: wrap; border-radius: var(--r-lg); }
}

@media (max-width: 440px) {
  .site-header__inner { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand__mark { width: 38px; height: 38px; font-size: 14px; }
  .brand__name { font-size: 14px; white-space: nowrap; }
  .nav { gap: 8px; }
  .nav__cta { padding: 0 14px; font-size: 14px; }
  .nav__cta svg { display: none; }
  .nav-toggle { width: 44px; height: 44px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--violet { width: 620px; height: 620px; right: -120px; top: -160px; background: var(--violet); opacity: .35; filter: blur(140px); }
.glow--cyan { width: 420px; height: 420px; left: -160px; bottom: -120px; background: var(--cyan); opacity: .18; filter: blur(130px); }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 32px; padding-bottom: 112px; }
.hero__copy { flex: 1 1 620px; min-width: 0; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: #D5D9E2;
}
.hero__pill b { padding: 3px 10px; border-radius: var(--r-pill); background: var(--lime); color: var(--ink); font-size: 12px; }
.hero h1 { margin-top: 24px; font-weight: 800; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.hl-lime { color: var(--lime); }
.hl-violet { background: var(--violet); color: #fff; padding: 0 .18em; border-radius: .18em; white-space: nowrap; }
.hero__lead { margin-top: 24px; max-width: 580px; font-size: 20px; line-height: 1.55; color: var(--text-2); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tags { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; }

.portrait { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.portrait__frame { position: relative; width: min(100%, 420px); padding: 18px 0; }
.portrait__frame::before {
  content: ""; position: absolute; inset: 10% 8%; border-radius: 50%;
  background: var(--violet); opacity: .45; filter: blur(70px);
}
.portrait__img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px; border: 1px solid var(--border-2); box-shadow: var(--shadow-lg);
}
.badge {
  position: absolute; padding: 12px 16px; border-radius: 14px; color: var(--ink); box-shadow: var(--shadow-md);
}
.badge strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; }
.badge span { font-size: 13px; font-weight: 700; }
.badge--lime { left: -22px; bottom: 26px; background: var(--lime); transform: rotate(-4deg); }
.badge--coral { right: -16px; top: 36px; background: var(--coral); transform: rotate(5deg); }
@media (max-width: 899px) {
  .portrait { order: -1; }
  .portrait__frame { width: min(100%, 300px); }
  .badge--lime { left: -10px; }
  .badge--coral { right: -6px; }
  .hero__inner { padding-top: 24px; padding-bottom: 80px; gap: 40px; }
}

/* ---------- path cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.path-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 320px; padding: 32px;
  border-radius: 24px; text-decoration: none; overflow: hidden; color: var(--ink);
}
.path-card:hover { color: var(--ink); transform: translateY(-2px); }
.path-card { transition: transform .15s ease; }
.path-card--cyan { background: var(--cyan); }
.path-card--lime { background: var(--lime); }
.path-card--violet { background: var(--violet); color: #fff; }
.path-card--violet:hover { color: #fff; }
.path-card__kicker { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.path-card__title { position: relative; z-index: 1; padding-right: 36px; font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.15; }
.path-card__text { font-size: 16px; font-weight: 500; }
.path-card--violet .path-card__text { color: var(--violet-text); }
.path-card__cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.path-card--violet .path-card__cta { background: #fff; color: var(--ink); }
.path-card__deco { position: absolute; pointer-events: none; }
.deco-ring { right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; border: 28px solid rgba(11, 13, 18, .12); }
.deco-square { right: -24px; bottom: -24px; width: 130px; height: 130px; border-radius: 28px; transform: rotate(20deg); background: rgba(11, 13, 18, .10); }
.deco-dot { right: 24px; top: 24px; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .16); }

/* ---------- topic cards ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.topic-card {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.topic-card:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.topic-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-tile--cyan { background: var(--cyan); }
.icon-tile--lime { background: var(--lime); }
.icon-tile--violet { background: var(--violet); color: #fff; }
.icon-tile--coral { background: var(--coral); }
.icon-tile--amber { background: var(--amber); }
.icon-tile--white { background: var(--text); }
.topic-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.topic-card p { color: var(--muted); font-size: 16px; }
.topic-card__more { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--lime); }

/* ---------- books ---------- */
.band { position: relative; background: var(--bg-2); border-top: 1px solid #1E2330; border-bottom: 1px solid #1E2330; overflow: hidden; }
.band .glow--violet { left: 40%; top: -200px; right: auto; width: 500px; height: 500px; opacity: .18; }
.band > .container { position: relative; }

.book-feature {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border);
}
.book-feature__cover { flex: 0 1 300px; min-width: 0; margin: 0 auto; }
.book-feature__body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.book-feature__body h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; }
.book-feature__body p { color: var(--text-2); }
.book-meta { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.cover-img {
  width: 100%; aspect-ratio: 7 / 10; object-fit: cover; border-radius: 6px 12px 12px 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55); transform: rotate(-3deg);
}
.cover-img--flat { transform: none; }

.book-pair { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.book-soon {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 32px;
  border-radius: var(--r-xl); text-decoration: none; color: inherit;
}
.book-soon:hover { color: inherit; }
.book-soon--violet { background: var(--violet); color: #fff; }
.book-soon--coral { background: var(--coral); color: var(--ink); }
.book-soon__body { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.book-soon__body h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.book-soon--violet .book-soon__body p { color: var(--violet-text); }
.book-soon__body p { font-size: 15px; font-weight: 500; }
.chip--on-violet { background: #fff; color: #2A1A80; }
.chip--on-coral { background: var(--ink); color: #fff; }

.css-cover {
  flex: 0 0 150px; width: 150px; height: 220px; border-radius: 6px 12px 12px 6px; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
  background: var(--ink); color: var(--text);
}
.css-cover__author { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; color: var(--lime); }
.css-cover__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.08; }
.css-cover__vol { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.css-cover__bar { width: 44px; height: 7px; border-radius: 4px; }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(4deg); }

/* ---------- guides ---------- */
.guide-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
.guide-card h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.guide-card p { color: var(--muted); font-size: 16px; }
.guide-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--faint); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--r-2xl); background: var(--lime); color: var(--ink);
  padding: clamp(32px, 5vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.cta-banner::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(11, 13, 18, .08); pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); max-width: 640px; }
.cta-banner p { margin-top: 14px; font-size: 18px; font-weight: 500; max-width: 560px; }
.cta-banner .section-label { color: var(--ink); font-weight: 600; }

/* ---------- page header (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 72px; border-bottom: 1px solid #1E2330; }
.page-hero .glow--violet { opacity: .25; }
.page-hero__inner { position: relative; }
.page-hero h1 { font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; max-width: 900px; }
.page-hero p { margin-top: 20px; font-size: 19px; color: var(--text-2); max-width: 680px; }
.breadcrumb { margin-bottom: 20px; font-size: 14px; color: var(--faint); }
.breadcrumb a { color: var(--text-2); }

/* ---------- prose (about, legal, guides) ---------- */
.prose { max-width: 70ch; font-size: 18px; line-height: 1.7; color: #DCE0E8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 26px; font-weight: 700; color: var(--text); }
.prose h3 { margin-top: 1.6em; font-size: 20px; font-weight: 700; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--lime); }
.prose strong { color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }

/* ---------- about ---------- */
.about-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-grid__photo { flex: 0 1 340px; min-width: 0; margin: 0 auto; position: sticky; top: 24px; }
.about-grid__body { flex: 1 1 480px; min-width: 0; }
.about-grid__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; border: 1px solid var(--border-2); }
.fact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.fact-list li { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); font-size: 16px; }
.fact-list strong { font-family: var(--font-mono); font-size: 13px; color: var(--lime); min-width: 92px; padding-top: 2px; }
@media (max-width: 899px) { .about-grid__photo { position: static; max-width: 300px; } }

/* ---------- book page ---------- */
.book-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.book-hero__cover { flex: 0 1 340px; min-width: 0; margin: 0 auto; }
.book-hero__body { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.book-hero__body h1 { font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; }
.book-hero__subtitle { font-size: 19px; color: var(--text-2); }
.download-note { font-size: 14px; color: var(--faint); }
.who-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.who-list li { display: flex; gap: 10px; color: #DCE0E8; }
.who-list svg { flex: none; margin-top: 5px; color: var(--lime); }

.toc { display: grid; gap: 14px; }
.toc details { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer;
  list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--lime); }
.toc details[open] summary::after { content: "\2212"; }
.toc summary span { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--faint); margin-left: auto; }
.toc ol { list-style: none; margin: 0; padding: 0 24px 20px; display: grid; gap: 2px; }
.toc li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 16px; color: #DCE0E8; }
.toc li b { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--lime); min-width: 30px; }
.toc li em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }

.soon-box {
  padding: 28px; border-radius: var(--r-lg); border: 1px dashed var(--border-2); background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
}
.soon-box h2 { font-size: 22px; }
.soon-box p { color: var(--text-2); }

/* ---------- contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-grid__form { flex: 1 1 520px; min-width: 0; }
.contact-grid__aside { flex: 1 1 300px; min-width: 0; }
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: var(--r-md);
  border: 1px solid var(--border-2); background: var(--bg); color: var(--text); font: inherit;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.field__hint { font-size: 13px; color: var(--faint); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 600; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }
.aside-card { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.aside-card h2 { font-size: 22px; }
.aside-card p { color: var(--text-2); font-size: 16px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 0 140px; }
.not-found__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 18vw, 200px); line-height: 1; color: var(--lime); }
.not-found h1 { margin-top: 16px; font-size: clamp(26px, 3.4vw, 40px); }
.not-found p { margin: 16px auto 0; max-width: 520px; color: var(--text-2); }
.not-found .hero__actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid #1E2330; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; font-size: 15px; color: var(--muted); }
.site-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer nav a { display: inline-block; padding: 8px 0; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--lime); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .path-card:hover, .topic-card:hover { transform: none; }
}

/* ---------- guide pages ---------- */
.guide-hero h1 { max-width: 860px; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px !important; font-size: 15px !important; color: var(--faint) !important; }
.guide-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; padding-bottom: 96px; }
.guide-toc { flex: 0 0 240px; position: sticky; top: 24px; }
.guide-toc__title { font-family: var(--font-mono); font-size: 13px; color: var(--lime); margin-bottom: 12px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.guide-toc a { display: block; padding: 7px 0 7px 16px; font-size: 15px; color: var(--muted); text-decoration: none; }
.guide-toc a:hover { color: var(--lime); }
.guide-body { flex: 1 1 560px; min-width: 0; }
.guide-lede { font-size: 21px; line-height: 1.55; color: var(--text) !important; }
.prose h2 { scroll-margin-top: 24px; }
.tbl { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.tbl th { background: var(--surface-2); font-weight: 700; color: var(--text); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.book-callout { margin-top: 56px !important; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.book-callout h2 { margin: 0 !important; font-size: 22px !important; }
.book-callout p { color: var(--text-2); font-size: 16px; }
.author-card { margin-top: 24px !important; display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.author-card p { font-size: 15px; color: var(--text-2); }
.author-card__name { font-weight: 700; color: var(--text) !important; font-size: 16px !important; }
@media (max-width: 899px) {
  .guide-toc { position: static; flex-basis: 100%; }
  .guide-layout { gap: 32px; padding-top: 40px; }
}

/* ---------- resume ---------- */
.cv-headline { font-family: var(--font-mono); font-size: 15px !important; color: var(--lime) !important; line-height: 1.6; }
.cv-contact { font-size: 16px !important; margin-top: 12px !important; }
.cv-contact a { color: var(--text); }
.cv-actions { margin-top: 28px; }
.cv__inner { max-width: 960px; display: grid; gap: 56px; }
.cv-block h2 { font-size: 26px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.cv-summary { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: #DCE0E8; }
.cv-summary a { color: var(--lime); }
.cv-job { padding: 0 0 26px; }
.cv-job + .cv-job { padding-top: 26px; border-top: 1px dashed var(--border); }
.cv-job__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; margin-bottom: 10px; }
.cv-job h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; letter-spacing: 0; }
.cv-job h3 span { color: var(--lime); }
.cv-job__meta { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.cv-job ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: #DCE0E8; font-size: 16px; }
.cv-job li strong { color: var(--text); }
.cv-skills { margin: 0; display: grid; gap: 10px; }
.cv-skill { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.cv-skill dt { font-weight: 700; }
.cv-skill dd { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 640px) { .cv-skill { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- print (resume PDF and any printed page) ---------- */
@media print {
  @page { size: Letter; margin: 0.55in 0.6in; }
  :root { --text: #111318; --text-2: #333844; --muted: #3E4450; --faint: #555B66; --lime: #3B2DB8; --border: #CFD3DA; --surface: #FFFFFF; }
  html, body { background: #fff !important; color: #111318; font-size: 10.5pt; }
  .skip-link, .site-header, .site-footer, .glow, .hero__actions, .cv-actions, .section-label { display: none !important; }
  .page-hero { padding: 0 0 10pt !important; border: 0 !important; background: none !important; }
  .page-hero h1 { font-size: 24pt; color: #111318; }
  .page-hero p { margin-top: 4pt !important; }
  .cv-headline { color: #3B2DB8 !important; font-size: 9.5pt !important; }
  .cv-contact, .cv-contact a { color: #333844 !important; font-size: 9.5pt !important; text-decoration: none; }
  .section { padding: 0 !important; }
  .container { padding: 0 !important; max-width: none !important; }
  .cv__inner { gap: 14pt; }
  .cv-block h2 { font-size: 13pt; padding-bottom: 4pt; margin-bottom: 8pt; color: #111318; break-after: avoid; }
  .cv-summary, .cv-job ul { color: #222630; font-size: 9.5pt; gap: 2pt; }
  .cv-summary a { color: #222630; text-decoration: none; }
  .cv-job { padding: 0 0 8pt; break-inside: avoid; }
  .cv-job + .cv-job { padding-top: 8pt; }
  .cv-job h3 { font-size: 11pt; color: #111318; }
  .cv-job h3 span { color: #3B2DB8; }
  .cv-job__meta { font-size: 8.5pt; }
  .cv-job li strong { color: #111318; }
  .cv-skills { gap: 3pt; }
  .cv-skill { grid-template-columns: 150pt 1fr; gap: 8pt; padding: 3pt 0; border: 0; border-radius: 0; background: none; }
  .cv-skill dt { font-size: 9.5pt; color: #111318; }
  .cv-skill dd { font-size: 9.5pt; color: #333844; }
  a { color: inherit; }
}

/* ---------- linked book contents ---------- */
.toc li > a { display: flex; gap: 14px; width: 100%; color: #DCE0E8; text-decoration: none; }
.toc li > a:hover { color: var(--lime); }
.toc li > a:hover b { color: var(--text); }
.continue-reading { padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-2); font-size: 15px; }
.continue-reading a { color: var(--lime); font-weight: 700; }
