/* ==========================================================================
   Short Big Words — shortbigwords.com
   Grounded in the book's exact 4-ink collector's palette:
     Paper:      #FAF6EE / #F3EDE0
     Twilight:   #192338 / #212E4B / #253352
     Primary:    #232220 / #141413
     Pip Blue:   #2F5D8C (tint #E8F0F6)
     Kit Terra:  #B85233 (tint #F8EAE4)
     Firefly:    #F2C14E / Sage #4E7A65
   ========================================================================== */

:root {
  --paper: #FAF6EE;
  --paper-warm: #F3EDE0;
  --paper-card: #FFFDF9;
  --twilight-deep: #172136;
  --twilight: #212E4B;
  --twilight-mid: #2A3B5E;
  --ink: #232220;
  --ink-body: #34312C;
  --ink-muted: #6C655A;
  --pip: #2F5D8C;
  --pip-soft: #E8F0F6;
  --kit: #B85233;
  --kit-soft: #F8EAE4;
  --sage: #4E7A65;
  --gold: #F2C14E;
  --gold-soft: #F6D277;
  --border: rgba(35, 34, 32, 0.11);
  --border-dark: rgba(250, 246, 238, 0.14);

  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Andika', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-label: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 28px rgba(28, 25, 20, 0.07);
  --shadow-book: 0 24px 56px rgba(9, 14, 28, 0.48), 0 6px 16px rgba(9, 14, 28, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-top: 68px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--paper);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button, input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  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: -999px;
  top: 8px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 33, 54, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-label);
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.84);
}

.site-nav a {
  text-decoration: none;
  transition: color 0.16s ease;
}

.site-nav a:hover {
  color: var(--gold-soft);
}

.site-nav .nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.15);
  border: 1px solid rgba(242, 193, 78, 0.45);
  color: var(--gold-soft);
  font-weight: 500;
  white-space: nowrap;
}

.site-nav .nav-cta:hover {
  background: var(--gold);
  color: var(--twilight-deep);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #19243D 0%, #243354 68%, #2E3F65 100%);
  color: var(--paper);
  padding: 64px 0 76px;
  overflow: hidden;
}

.hero-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ff {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 18px 6px rgba(242, 193, 78, 0.45);
  opacity: 0.55;
  animation: fireflyFloat 7s ease-in-out infinite;
}
.ff-1 { top: 18%; left: 10%; animation-delay: 0s; }
.ff-2 { top: 28%; left: 46%; width: 5px; height: 5px; animation-delay: 1.8s; opacity: 0.4; }
.ff-3 { top: 72%; left: 38%; width: 7px; height: 7px; animation-delay: 3.1s; opacity: 0.48; }
.ff-4 { top: 15%; right: 8%; animation-delay: 2.4s; opacity: 0.5; }
.ff-5 { top: 82%; right: 14%; width: 5px; height: 5px; animation-delay: 4.5s; opacity: 0.35; }

@keyframes fireflyFloat {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.32; }
  50% { transform: translateY(-9px) scale(1.18); opacity: 0.72; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.eyebrow-ink {
  color: var(--pip);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.hero-subtitle {
  margin: 12px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  color: rgba(250, 246, 238, 0.82);
}

.hero-lead {
  margin: 0 0 30px;
  max-width: 56ch;
  font-size: 1.06rem;
  line-height: 1.72;
  color: rgba(250, 246, 238, 0.90);
}

.hero-lead strong {
  color: var(--gold-soft);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-meta {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.68);
}

/* Tactile Hardcover Book Object */
.hero-book-wrap {
  display: flex;
  justify-content: center;
}

.book-object {
  position: relative;
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(250, 246, 238, 0.18);
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  background: var(--twilight-deep);
  box-shadow: var(--shadow-book);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.book-object:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 30px 68px rgba(8, 13, 25, 0.56), 0 0 0 1px rgba(242, 193, 78, 0.35);
}

.book-object img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.24) 45%, rgba(255, 255, 255, 0.08) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.book-open-pill {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 33, 54, 0.88);
  border: 1px solid rgba(242, 193, 78, 0.55);
  color: var(--gold-soft);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: background 0.18s ease, color 0.18s ease;
}

.book-object:hover .book-open-pill {
  background: var(--gold);
  color: var(--twilight-deep);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--twilight-deep);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-secondary {
  background: rgba(250, 246, 238, 0.09);
  border-color: rgba(250, 246, 238, 0.28);
  color: var(--paper);
}

.btn-secondary:hover {
  background: rgba(250, 246, 238, 0.16);
  border-color: rgba(250, 246, 238, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: rgba(35, 34, 32, 0.25);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--pip);
  color: var(--pip);
  background: var(--pip-soft);
}

.btn-full {
  width: 100%;
}

/* ===== Interactive Reader Theater ===== */
.reader-section {
  background: var(--twilight-deep);
  color: var(--paper);
  padding: 36px 0 48px;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid rgba(35, 34, 32, 0.16);
}

.reader-shell {
  max-width: 1220px;
}

.reader-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.reader-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reader-kicker {
  font-family: var(--font-label);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.reader-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paper);
}

.reader-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.08);
  border: 1px solid var(--border-dark);
}

.mode-btn {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(250, 246, 238, 0.76);
  font-family: var(--font-label);
  font-size: 0.80rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.mode-btn.is-active {
  background: var(--paper);
  color: var(--twilight-deep);
  font-weight: 600;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: rgba(250, 246, 238, 0.06);
  color: rgba(250, 246, 238, 0.88);
  font-family: var(--font-label);
  font-size: 0.80rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tool-btn:hover {
  background: rgba(250, 246, 238, 0.14);
  border-color: rgba(250, 246, 238, 0.30);
}

.tool-btn[aria-expanded="true"] {
  background: rgba(242, 193, 78, 0.18);
  border-color: rgba(242, 193, 78, 0.50);
  color: var(--gold-soft);
}

.tool-btn-accent {
  border-color: rgba(242, 193, 78, 0.42);
  color: var(--gold-soft);
}

.tool-btn-accent:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--twilight-deep);
}

.icon-compress { display: none; }
.is-fullscreen .icon-expand { display: none; }
.is-fullscreen .icon-compress { display: inline; }

/* Stage */
.reader-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 460px;
  padding: 20px 6px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 45%, #233252 0%, #141D30 100%);
  border: 1px solid rgba(250, 246, 238, 0.08);
  user-select: none;
  -webkit-user-select: none;
}

.reader-stage:focus {
  outline: none;
}

.reader-stage:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.book-frame {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #232C42;
  box-shadow: 0 22px 54px rgba(5, 9, 19, 0.58), 0 0 0 1px rgba(250, 246, 238, 0.10);
  transition: width 0.22s ease, opacity 0.14s ease;
}

.book-frame.is-spread {
  width: min(100%, 1040px);
  aspect-ratio: 2 / 1;
}

.book-frame.is-square {
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
}

.book-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.book-frame.is-loading img {
  opacity: 0.72;
}

.book-gutter {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(16, 18, 24, 0.09) 46%, rgba(16, 18, 24, 0.16) 50%, rgba(16, 18, 24, 0.07) 54%, transparent 100%);
  pointer-events: none;
}

.book-frame.is-spread .book-gutter {
  display: block;
}

.click-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
}

.click-zone-prev {
  left: 0;
  width: 34%;
  cursor: w-resize;
}

.click-zone-next {
  right: 0;
  width: 66%;
  cursor: e-resize;
}

.stage-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 238, 0.18);
  background: rgba(23, 33, 54, 0.72);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease, transform 0.14s ease;
}

.stage-nav:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--twilight-deep);
}

.stage-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Bottom Scrubber Bar */
.reader-bottombar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.bottom-nav-mobile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bar-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: rgba(250, 246, 238, 0.07);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: 0.80rem;
  cursor: pointer;
}

.bar-btn:hover:not(:disabled) {
  background: rgba(250, 246, 238, 0.16);
}

.bar-btn:disabled {
  opacity: 0.30;
  cursor: default;
}

.reader-counter {
  min-width: 58px;
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.84rem;
  color: rgba(250, 246, 238, 0.82);
  font-variant-numeric: tabular-nums;
}

.scrubber-wrap {
  display: flex;
  align-items: center;
}

#readerScrubber {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
  height: 6px;
}

.reader-hint {
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: rgba(250, 246, 238, 0.56);
  white-space: nowrap;
}

.reader-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(250, 246, 238, 0.22);
  background: rgba(250, 246, 238, 0.07);
  font-family: inherit;
  font-size: 0.74rem;
  color: rgba(250, 246, 238, 0.84);
}

/* Thumbnail Strip */
.thumb-drawer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.thumb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 193, 78, 0.45) transparent;
}

.thumb-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: rgba(250, 246, 238, 0.04);
  color: rgba(250, 246, 238, 0.72);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.thumb-item:hover {
  background: rgba(250, 246, 238, 0.10);
  color: var(--paper);
}

.thumb-item.is-active {
  border-color: var(--gold);
  background: rgba(242, 193, 78, 0.12);
  color: var(--gold-soft);
}

.thumb-item img {
  height: 70px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.thumb-item span {
  font-family: var(--font-label);
  font-size: 0.70rem;
  white-space: nowrap;
}

/* Fullscreen / Theater Mode */
.reader-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  max-width: none;
  padding: 18px 24px 20px;
  background: #101727;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.reader-shell.is-fullscreen .reader-stage {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
}

.reader-shell.is-fullscreen .book-frame.is-spread {
  width: auto;
  max-width: calc(100vw - 150px);
  max-height: calc(100vh - 170px);
}

.reader-shell.is-fullscreen .book-frame.is-square {
  width: auto;
  max-width: calc(100vw - 150px);
  max-height: calc(100vh - 170px);
}

/* ===== Shared Editorial Sections ===== */
.section {
  padding: 84px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-header-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 14px 0 0;
  font-size: 1.04rem;
  color: var(--ink-muted);
}

/* ===== Mission Section ===== */
.mission-section {
  background: var(--paper);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 52px;
}

.mission-prose p {
  margin: 0 0 18px;
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--ink-body);
}

.mission-prose .drop-lead {
  font-size: 1.16rem;
  color: var(--ink);
}

.grammar-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.grammar-kicker {
  margin: 0 0 20px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

.grammar-demo {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.demo-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.demo-bubble {
  align-self: flex-start;
  position: relative;
  padding: 10px 18px;
  border-radius: 18px;
  background: #FDFBF7;
  border: 2.3px solid var(--pip);
  font-size: 1.04rem;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(35, 34, 32, 0.06);
}

.demo-cloud {
  align-self: flex-start;
  position: relative;
  width: 225px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-cloud-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.demo-cloud-text {
  position: relative;
  z-index: 2;
  font-size: 0.96rem;
  color: var(--kit);
  font-weight: 700;
  margin-top: -2px;
}

.demo-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.demo-note strong {
  color: var(--ink);
}

.grammar-foot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--ink-body);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pillar-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--paper-card);
  border: 1px solid var(--border);
}

.pillar-num {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--kit);
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.pillar-card code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--paper-warm);
  font-size: 0.88em;
  color: var(--ink);
}

/* ===== Five Words Interactive Circuit ===== */
.words-section {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.seed-box {
  max-width: 820px;
  margin: 0 auto 38px;
  padding: 32px 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--twilight);
  color: var(--paper);
  text-align: center;
  box-shadow: 0 14px 36px rgba(23, 33, 54, 0.16);
}

.seed-sentence {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.22rem, 2.3vw, 1.56rem);
  line-height: 1.75;
}

.word-pill {
  display: inline-block;
  padding: 1px 11px 3px;
  margin: 0 1px;
  border-radius: 999px;
  border: 1.5px solid rgba(242, 193, 78, 0.45);
  background: rgba(242, 193, 78, 0.13);
  color: var(--gold-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.word-pill:hover,
.word-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--twilight-deep);
}

.seed-jump {
  margin-top: 18px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.10);
  color: rgba(250, 246, 238, 0.84);
  font-family: var(--font-label);
  font-size: 0.80rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.seed-jump:hover {
  background: rgba(250, 246, 238, 0.18);
  color: var(--gold-soft);
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.word-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: var(--paper-card);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.word-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 93, 140, 0.42);
}

.word-card.is-active {
  border-color: var(--kit);
  box-shadow: 0 10px 26px rgba(184, 82, 51, 0.12);
}

.word-card-top {
  margin-bottom: 10px;
}

.word-term {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
}

.word-card.is-active .word-term {
  color: var(--kit);
}

.word-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--pip);
  letter-spacing: 0.04em;
}

.word-def {
  margin: 0 0 16px;
  flex: 1 1 auto;
  font-size: 0.90rem;
  line-height: 1.58;
  color: var(--ink-muted);
}

.word-jump {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-label);
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--pip);
  cursor: pointer;
}

.word-jump:hover {
  color: var(--kit);
  text-decoration: underline;
}

/* ===== Downloads & Read-Aloud ===== */
.downloads-section {
  background: var(--paper);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.download-card-featured {
  background: var(--twilight);
  border-color: rgba(242, 193, 78, 0.35);
  color: var(--paper);
}

.download-badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.18);
  color: var(--gold-soft);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.download-badge-subtle {
  background: var(--pip-soft);
  color: var(--pip);
}

.download-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: inherit;
}

.download-desc {
  margin: 0 0 16px;
  flex: 1 1 auto;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.download-card-featured .download-desc {
  color: rgba(250, 246, 238, 0.84);
}

.download-desc code {
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(127, 127, 127, 0.14);
}

.download-specs {
  margin: 0 0 18px;
  font-family: var(--font-label);
  font-size: 0.80rem;
  color: var(--ink-muted);
}

.download-card-featured .download-specs {
  color: rgba(242, 193, 78, 0.88);
}

.readaloud-box {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
  border: 1px solid var(--border);
}

.readaloud-head h3 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--ink);
}

.readaloud-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.readaloud-tips h4 {
  margin: 0 0 6px;
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.readaloud-tips p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-muted);
}

/* ===== Series Roadmap ===== */
.series-section {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.series-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.72);
  border: 1px dashed rgba(35, 34, 32, 0.22);
}

.series-card-live {
  background: var(--paper-card);
  border: 1.5px solid var(--pip);
  box-shadow: var(--shadow-soft);
}

.series-status {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.series-card-live .series-status {
  color: var(--sage);
}

.series-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.series-words {
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--kit);
}

.series-blurb {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.90rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.series-link {
  margin-top: 14px;
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pip);
  text-decoration: none;
}

.series-link:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--twilight-deep);
  color: rgba(250, 246, 238, 0.78);
  padding: 46px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: var(--paper);
}

.footer-credit {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: rgba(250, 246, 238, 0.70);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: rgba(250, 246, 238, 0.62);
}

.footer-links a {
  color: var(--gold-soft);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .words-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 42px 0 54px;
  }
  .hero-grid,
  .mission-grid,
  .pillars-grid,
  .downloads-grid,
  .readaloud-tips {
    grid-template-columns: 1fr;
  }
  .hero-book-wrap {
    order: -1;
  }
  .book-object {
    width: min(76vw, 310px);
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .reader-hint {
    display: none;
  }
  .reader-bottombar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bottom-nav-mobile {
    justify-content: space-between;
    width: 100%;
  }
  .stage-nav {
    display: none;
  }
  .reader-stage {
    min-height: 0;
    padding: 12px 8px;
  }
  .words-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 58px 0;
  }
  .words-grid,
  .series-grid {
    grid-template-columns: 1fr;
  }
  .reader-topbar {
    gap: 10px;
  }
  .tool-label {
    display: none;
  }
  .seed-box {
    padding: 24px 18px 20px;
  }
  .readaloud-box {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ff { animation: none; }
  .book-object, .btn, .word-card, .book-frame { transition: none; }
}
