/* BotBites — local draft site
   Brand: paper #F7F4F3, visor #06353F, plate #0B3D3A, teal #3B929B,
   orange badge #FFA53A, cyan eyes #2EE8F0.
   Chapter accents come from chapter-band-spec.md and are set inline. */

:root {
  --paper: #F7F4F3;
  --ink: #06353F;
  --plate: #0B3D3A;
  --teal: #3B929B;
  --teal-dark: #2E747C;
  --orange: #FFA53A;
  --cyan: #2EE8F0;
  --radius: 1.15rem;
  --header-h: 4.25rem;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --content: 70rem;

  --bg: #F7F4F3;
  --text: #06353F;
  --heading: #0B3D3A;
  --link: #2E747C;
  --muted: #4a6a68;
  --card: #ffffff;
  --line: #d8e3e1;
  --shadow: 0 10px 30px rgba(6, 53, 63, 0.08);
  --header-bg: rgba(247, 244, 243, 0.92);
  --nav-bg: #ffffff;
  --logo-accent: #3B929B;
  --footer-bg: #0B3D3A;
  --footer-text: #e7f2f1;
  --footer-heading: #ffffff;
  --footer-link: #FFA53A;
  --footer-muted: #c5d8d6;
  --on-orange: #0B3D3A;
  --btn-primary-hover: #ffb45c;
  --btn-disabled-bg: #e6ded6;
  --btn-disabled-text: #5A524C;
  --teaser-bg: #fff8e6;
  --teaser-border: #C9A227;
  --teaser-text: #06353F;
  --teaser-muted: #4a6a68;
  --teaser-heading: #0B3D3A;
  --price-bg: #ffffff;
  --price-border: #c9b08a;
  --price-label: #8a5a12;
  --price-amount: #0B3D3A;
  --note-bg: #fff6e8;
  --note-border: #f0d7a8;
  --note-text: #5a3e10;
  --thumb-bg: #e8eeed;
  --cover-bg: #ffffff;
  --focus: #0B3D3A;
  --prompt-bg: #f4fbfb;
  --prompt-edge: #c5dddc;
  --human-bg: #fff3e0;
  --human-edge: #ffd9a0;
  --human-heading: #7a4a10;
  --human-text: #3a2a14;
  --price-tag-bg: #0B3D3A;
  --price-tag-text: #FFFFFF;
  --price-tag-border: transparent;
  --price-tag-hole-ring: #FFFFFF;
  --price-tag-shadow: 0 5px 0 rgba(6, 53, 63, 0.28);
}

html { color-scheme: light; }

html[data-theme="dark"] {
  --bg: #0E2224;
  --text: #E8F2F1;
  --heading: #F3F7F6;
  --link: #6EC8CE;
  --muted: #A8C3C1;
  --card: #163032;
  --line: #2C4E50;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(14, 34, 36, 0.92);
  --nav-bg: #163032;
  --logo-accent: #6EC8CE;
  --footer-bg: #0B3D3A;
  --footer-text: #e7f2f1;
  --footer-heading: #ffffff;
  --footer-link: #FFA53A;
  --footer-muted: #c5d8d6;
  --on-orange: #0B3D3A;
  --btn-primary-hover: #ffb45c;
  --btn-disabled-bg: #2A3838;
  --btn-disabled-text: #C5BDB6;
  --teaser-bg: #2A2410;
  --teaser-border: #C9A227;
  --teaser-text: #F3E8C8;
  --teaser-muted: #D4C9A0;
  --teaser-heading: #F3E8C8;
  --price-bg: #1C2418;
  --price-border: #C9A227;
  --price-label: #F0D090;
  --price-amount: #F3F7F6;
  --note-bg: #2A2410;
  --note-border: #C9A227;
  --note-text: #F3E8C8;
  --thumb-bg: #163032;
  --cover-bg: #163032;
  --focus: #7ED0D4;
  --prompt-bg: #132C2E;
  --prompt-edge: #2C4E50;
  --human-bg: #2A2410;
  --human-edge: #C9A227;
  --human-heading: #F0D090;
  --human-text: #F3E8C8;
  --price-tag-bg: #0B3D3A;
  --price-tag-text: #FFFFFF;
  --price-tag-border: #6EC8CE;
  --price-tag-hole-ring: #E7F2F1;
  --price-tag-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
  --bg: #0E2224;
  --text: #E8F2F1;
  --heading: #F3F7F6;
  --link: #6EC8CE;
  --muted: #A8C3C1;
  --card: #163032;
  --line: #2C4E50;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(14, 34, 36, 0.92);
  --nav-bg: #163032;
  --logo-accent: #6EC8CE;
  --footer-bg: #0B3D3A;
  --footer-text: #e7f2f1;
  --footer-heading: #ffffff;
  --footer-link: #FFA53A;
  --footer-muted: #c5d8d6;
  --on-orange: #0B3D3A;
  --btn-primary-hover: #ffb45c;
  --btn-disabled-bg: #2A3838;
  --btn-disabled-text: #C5BDB6;
  --teaser-bg: #2A2410;
  --teaser-border: #C9A227;
  --teaser-text: #F3E8C8;
  --teaser-muted: #D4C9A0;
  --teaser-heading: #F3E8C8;
  --price-bg: #1C2418;
  --price-border: #C9A227;
  --price-label: #F0D090;
  --price-amount: #F3F7F6;
  --note-bg: #2A2410;
  --note-border: #C9A227;
  --note-text: #F3E8C8;
  --thumb-bg: #163032;
  --cover-bg: #163032;
  --focus: #7ED0D4;
  --prompt-bg: #132C2E;
  --prompt-edge: #2C4E50;
  --human-bg: #2A2410;
  --human-edge: #C9A227;
  --human-heading: #F0D090;
  --human-text: #F3E8C8;
  --price-tag-bg: #0B3D3A;
  --price-tag-text: #FFFFFF;
  --price-tag-border: #6EC8CE;
  --price-tag-hole-ring: #E7F2F1;
  --price-tag-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--heading); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--heading);
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--footer-bg);
  color: var(--footer-heading);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Draft notice */
.draft-bar {
  background: var(--plate);
  color: #f3f7f6;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.45rem 1rem;
}
.draft-bar strong { color: var(--orange); font-weight: 800; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #A6D7D2;
  object-fit: cover;
}
.logo span { color: var(--logo-accent); margin-left: -0.06em; }

nav#site-nav { display: flex; align-items: center; gap: 0.35rem 1.1rem; margin-left: auto; }
nav#site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
nav#site-nav a:not(.btn):hover,
nav#site-nav a:not(.btn)[aria-current="page"] { color: var(--link); }
nav#site-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }
nav#site-nav a.btn {
  padding: 0.7rem 22px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--on-orange);
}
nav#site-nav a.btn:hover {
  color: var(--on-orange);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--heading);
  color: var(--heading);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 2px solid var(--heading);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
html[data-theme="light"] .theme-toggle .icon-sun,
html:not([data-theme]) .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--orange);
  color: var(--on-orange);
}
.btn-primary:hover { background: var(--btn-primary-hover); color: var(--on-orange); }
.btn-dark {
  background: var(--heading);
  color: var(--bg);
}
.btn-dark:hover { background: var(--text); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--heading);
}
.btn-ghost:hover { background: var(--heading); color: var(--bg); }
.btn-disabled,
.btn[aria-disabled="true"] {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-text);
  pointer-events: none;
  cursor: not-allowed;
}

.paypal-buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0;
}
.paypal-buy input[type="submit"].btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.7rem 22px;
  white-space: nowrap;
  color: var(--on-orange);
}
.paypal-buy input[type="submit"].btn:hover {
  color: var(--on-orange);
}
.paypal-buy input[type="submit"].btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.paypal-buy .paypal-cards {
  display: block;
  width: min(16.5rem, 100%);
  height: auto;
}
.paypal-buy .paypal-powered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  background: #ffffff;
  color: #111111;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}
.paypal-buy .paypal-powered img {
  display: block;
  height: 1.15rem;
  width: auto;
}



.wrap {
  width: min(100% - 2.3rem, var(--content));
  margin-inline: auto;
}
main { flex: 1; padding-bottom: 4rem; }

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  padding: 2.2rem 0 1.5rem;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 0.7rem;
}
.kicker .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 165, 58, 0.25);
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  margin-bottom: 0.55em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero-art {
  background: #A6D7D2;
  border-radius: 2rem;
  padding: 0.6rem;
  box-shadow: var(--shadow);
}
.hero-art img { width: 100%; border-radius: 1.5rem; }

/* Sections */
.section { padding: 2.75rem 0 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 0; color: var(--muted); }

.mascot-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
  margin-top: 2rem;
}
.mascot-strip a {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.mascot-strip a:hover { transform: translateY(-3px); }
.mascot-strip img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.mascot-strip span {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-display);
  padding: 0.3rem 0.2rem 0.45rem;
  color: var(--on, var(--plate));
}

/* Cards */
.grid-3, .grid-2, .chapters-grid, .tips-grid {
  display: grid;
  gap: 1.1rem;
}
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.tips-grid { grid-template-columns: 1fr; }
.chapters-grid { grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--link); }

.badge {
  display: inline-block;
  background: var(--orange);
  color: var(--on-orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 0.4rem;
}
.badge .bid {
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: 0.03em;
  margin-left: 0.2em;
  opacity: 0.9;
}
/* Chapter bands always use white text, in both themes. */
.book-tip .chapter-band,
.chapter-card .band,
.chapter-hero .band,
.chapter-pill,
.mascot-strip span {
  color: #fff;
}

.chapter-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  margin-right: 0.35rem;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.tip-card { display: grid; grid-template-columns: 1fr; }
.tip-card .thumb {
  background: var(--thumb-bg);
  aspect-ratio: 9 / 11;
  max-height: 16rem;
  overflow: hidden;
}
.tip-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tip-text { color: var(--text); }

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.missing {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}
.note {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  color: var(--note-text);
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

/* Chapter cards */
.chapter-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}
.chapter-card:hover { transform: translateY(-4px); color: inherit; }
.chapter-card .band {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.chapter-card .art {
  aspect-ratio: 1;
  overflow: hidden;
}
.chapter-card .art img { width: 100%; height: 100%; object-fit: cover; }
.chapter-card .card-body { flex: 1; }
.nick { color: var(--muted); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; }

/* Chapter page */
.chapter-hero .band {
  padding: 0.7rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.chapter-hero .inner {
  display: grid;
  gap: 1.5rem;
  padding: 1.6rem 0 0.5rem;
  align-items: center;
}
.chapter-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.chapter-mascot {
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chapter-mascot img { width: 100%; }

.tip-detail {
  display: grid;
  gap: 1.2rem;
  padding: 1.3rem;
  margin-bottom: 1.2rem;
}
.tip-detail h2 { font-size: 1.45rem; margin: 0.2em 0 0.4em; }
.tip-detail .the-tip { margin: 0 0 0.95rem; }
.tip-detail .book-section.why { margin: 0 0 1rem; }
.tip-detail .book-section.why p { margin: 0 0 0.7rem; }
.media-col { display: grid; gap: 0.7rem; }
.yt-wrap, .yt-facade {
  position: relative;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 9 / 16;
  background: #0b3d3a;
  border-radius: 1rem;
  overflow: hidden;
}
.yt-wrap iframe, .yt-facade img, .yt-wrap img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center top;
}
.yt-facade {
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.yt-facade .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.yt-facade .play span {
  background: var(--orange);
  color: var(--plate);
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Ebook */
.ebook-layout, .promo {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}
.cover {
  background: var(--cover-bg);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 0.7rem;
}
.cover img { width: 100%; border-radius: 0.6rem; }
.price-box {
  background: var(--price-bg);
  border: 2px dashed var(--price-border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.price-box .label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--price-label);
}
.price-box .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--price-amount);
}
.price-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 1.15rem 0 0.55rem;
}
.price-tag-string {
  position: relative;
  z-index: 1;
  width: 2px;
  height: 1.55rem;
  margin-bottom: -0.55rem;
  background: var(--heading);
  border-radius: 2px;
}
.price-tag-string::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--heading);
  border-radius: 50%;
  background: transparent;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.price-tag-body {
  position: relative;
  min-width: 11.5rem;
  max-width: 100%;
  padding: 1.45rem 1.5rem 1rem;
  background: var(--price-tag-bg);
  color: var(--price-tag-text);
  border: 2px solid var(--price-tag-border);
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--price-tag-shadow);
}
.price-tag-hole {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--price-tag-hole-ring);
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(-50%);
  box-sizing: border-box;
}
.price-tag-label {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.price-tag-value {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4.2vw, 1.8rem);
  line-height: 1.15;
}
.price-tag-note {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--price-tag-text);
}
@media (max-width: 799px) {
  .price-tag-body { min-width: 0; width: min(16rem, 100%); }
}
.chapter-ebook-nudge {
  margin: 1.8rem 0 1.2rem;
  padding: 1rem 1.15rem;
  max-width: 38rem;
  background: var(--teaser-bg);
  border: 1px solid var(--teaser-border);
  border-radius: 0.9rem;
  color: var(--teaser-text);
  font-weight: 600;
}
.chapter-ebook-nudge a { font-weight: 800; }
.chapter-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.chapter-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.chapter-list a { text-decoration: none; font-weight: 700; color: inherit; }
.chapter-list a:hover { color: var(--link); }

/* About + checkout */
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }

.front-matter h1:not(:first-child) {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.front-matter-figure { margin: 0.35rem 0 1.4rem; }
.front-matter-figure img {
  display: block;
  width: min(16rem, 70vw);
  height: auto;
  border-radius: 1.15rem;
}
.front-matter ul { padding-left: 1.2rem; }
.front-matter li { margin: 0.45rem 0; }
.front-matter-next { margin-top: 2rem; }

.golden-rules {
  background: var(--teaser-bg);
  border: 2px solid var(--teaser-border);
  color: var(--teaser-text);
  border-radius: 1.15rem;
  padding: 1.1rem 1.25rem 1.15rem;
  margin: 1.5rem 0 1.6rem;
}
.golden-rules h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  color: var(--teaser-heading);
}
.golden-rules p:last-child,
.golden-rules ul:last-child { margin-bottom: 0; }

.placeholder-email, .placeholder-flag {
  display: inline-block;
  background: var(--note-bg);
  border: 1px dashed var(--note-border);
  color: var(--note-text);
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  font-weight: 700;
}
.checkout-panel {
  background: var(--card);
  border: 2px solid var(--teaser-border);
  border-radius: 1.2rem;
  padding: 1.4rem;
  max-width: 40rem;
  box-shadow: var(--shadow);
}
.warn {
  background: #3b1d10;
  color: #fff6e8;
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.2rem 0 1.6rem;
  margin-top: auto;
}
.site-footer a { color: var(--footer-link); }
.site-footer .wrap {
  display: grid;
  gap: 1.2rem;
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--footer-heading);
}
.foot-meta { color: var(--footer-muted); font-size: 0.9rem; }
.site-disclaimer {
  color: var(--footer-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 38rem;
  margin: 0;
}
.page-disclaimer {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 38rem;
  margin: 1rem 0 0;
}
.start-here-trust {
  margin: 2.4rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

@media (min-width: 640px) {
  .grid-3, .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .chapters-grid { grid-template-columns: repeat(2, 1fr); }
  .tip-card { grid-template-columns: 8.5rem 1fr; }
  .tip-card .thumb { aspect-ratio: 9 / 16; max-height: none; }
  .tip-detail { grid-template-columns: 1fr 22rem; align-items: start; }
  .tip-detail.no-media { grid-template-columns: 1fr; }
  .ebook-layout, .promo, .chapter-hero .inner, .hero { grid-template-columns: 1.15fr 0.85fr; }
  .hero { padding-top: 3rem; }
}

@media (min-width: 900px) {
  .grid-3, .tips-grid { grid-template-columns: repeat(3, 1fr); }
  .chapters-grid { grid-template-columns: repeat(3, 1fr); }
  .mascot-strip { grid-template-columns: repeat(14, 1fr); }
  .tip-card { grid-template-columns: 1fr; }
  .tip-card .thumb { aspect-ratio: 9 / 12; max-height: 18rem; }
}

@media (max-width: 799px) {
  .logo { font-size: 1.12rem; }
  .nav-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  nav#site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 1.15rem 1rem;
    gap: 0.2rem;
  }
  nav#site-nav.open { display: flex; }
  nav#site-nav a:not(.btn) { padding: 0.55rem 0; }
  nav#site-nav a.btn {
    padding: 0.7rem 22px;
    margin-top: 0.35rem;
    align-self: stretch;
    white-space: nowrap;
  }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .mascot-strip { grid-template-columns: repeat(4, 1fr); }
}


/* ---- Book-style tip page ---- */
.book-tip {
  background: var(--bg);
}
.book-tip .chapter-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.book-inner {
  padding: 1.6rem 1.15rem 3rem;
  max-width: 54rem;
}
.book-mast {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.6rem;
}
.book-mast .badge {
  margin-bottom: 0.7rem;
}
.book-mast h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 0.75rem;
}
.the-tip { margin: 0; font-size: 1.05rem; }
.tip-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.3rem;
}
.book-mascot {
  margin: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 16rem;
  justify-self: end;
}
.book-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.book-mast:has(.tip-thumb) { align-items: start; }
.book-mascot.tip-thumb {
  aspect-ratio: 9 / 16;
  background: #0b3d3a;
}
.book-mascot.tip-thumb img,
.book-mascot.tip-thumb .yt-facade {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-position: center top;
}
.book-mascot.tip-thumb .yt-facade { border-radius: 0; }

.ebook-teaser {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.85rem 1rem;
  align-items: center;
  background: var(--teaser-bg);
  border: 2px solid var(--teaser-border);
  border-radius: 1rem;
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  margin: 0 0 1.5rem;
}
.ebook-teaser .teaser-cover {
  display: block;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(6, 53, 63, 0.16);
  line-height: 0;
}
.ebook-teaser .teaser-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.ebook-teaser p { margin: 0 0 0.4rem; }
.ebook-teaser p:last-child { margin-bottom: 0; }
.ebook-teaser { color: var(--teaser-text); }
.ebook-teaser a { color: var(--link); }
.ebook-teaser .teaser-price { color: var(--teaser-muted); font-size: 0.92rem; }

.book-section { margin: 0 0 1.4rem; }
.book-section h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 0.55rem;
}
.book-section.why p { margin: 0 0 0.8rem; }
.book-section.why p:last-child { margin-bottom: 0; }
.prompt-card {
  background: var(--prompt-bg);
  border: 1px solid var(--prompt-edge);
  border-left: 5px solid var(--teal);
  border-radius: 0 0.7rem 0.7rem 0;
  padding: 0.95rem 1.05rem 1rem 1.1rem;
}
.prompt-card pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--plate);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.prompt-card .placeholder {
  font-weight: 500;
  color: var(--plate);
  background: #ffe3b3;
  border-radius: 0.2rem;
  padding: 0 0.12em;
}
.book-section.better ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.book-section.better li {
  position: relative;
  margin: 0 0 0.45rem;
  padding: 0 0 0 1.15rem;
}
.book-section.better li:last-child { margin-bottom: 0; }
.book-section.better li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--orange);
  border-radius: 50%;
}
.book-section.human {
  background: var(--human-bg);
  border: 1px solid var(--human-edge);
  border-radius: 0.8rem;
  padding: 0.95rem 1.1rem 1rem;
}
.book-section.human h2 { color: var(--human-heading); }
.book-section.human p { margin: 0 0 0.6rem; color: var(--human-text); }
.book-section.human p:last-child { margin-bottom: 0; }
.book-media {
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
.book-media .yt-facade,
.book-media .yt-wrap { max-width: 16rem; }
.tip-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem 1rem;
  align-items: start;
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-weight: 650;
}
.tip-pager > :first-child { justify-self: start; }
.tip-pager .mid { justify-self: center; text-align: center; font-weight: 500; }
.tip-pager > :last-child { justify-self: end; text-align: right; }
@media (max-width: 799px) {
  .tip-pager { grid-template-columns: 1fr; }
  .tip-pager > :last-child { justify-self: start; text-align: left; }
}
.chapter-tip-list .tip-card { scroll-margin-top: calc(var(--header-h) + 2.6rem); }

@media (min-width: 800px) {
  .book-mast { grid-template-columns: 1fr 16rem; }
  .book-media { grid-template-columns: 16rem 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter-card, .mascot-strip a { transition: none; }
}
