:root {
  --ink: #f5f5f2;
  --muted: #bdbbb5;
  --black: #050505;
  --panel: #111111;
  --panel-2: #1c1c1c;
  --stop: #e42310;
  --stop-dark: #941100;
  --cyan: #55d5e8;
  --gold: #f6c85f;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(85, 213, 232, 0.14), transparent 26rem),
    radial-gradient(circle at 18% 38%, rgba(228, 35, 16, 0.22), transparent 24rem),
    #050505;
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--stop);
  color: white;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  font-size: 0.78rem;
  text-shadow: 2px 2px 0 var(--stop-dark);
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 31rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  min-height: calc(100svh - 5.3rem);
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 5vw, 5rem) clamp(1.5rem, 3vw, 2.25rem);
}

.hero-copy {
  max-width: 50rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

.parent-preview .eyebrow {
  color: var(--gold);
}

.reader-hero .eyebrow {
  color: var(--gold);
}

.author-hero .eyebrow {
  color: var(--gold);
}

.parents-hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 22ch;
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 8vw, 6.2rem);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 0.06em 0.06em 0 #202020, 0.1em 0.1em 0 rgba(228, 35, 16, 0.58);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

.lede,
.section-copy > p,
.download-copy p,
.download-card p,
.contact-copy > p,
.contact-form p,
.reader-fallback p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lede {
  max-width: 39rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(255, 255, 255, 0.16);
}

.button.primary {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--stop);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.button.wide {
  width: 100%;
}

.download-card .button + .button {
  margin-top: 0.8rem;
}

.cover-stage {
  position: relative;
  isolation: isolate;
}

.cover-stage::before,
.cover-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.cover-stage::before {
  inset: 11% -8% -5% 12%;
  background: var(--stop);
  filter: blur(28px);
  opacity: 0.45;
}

.cover-stage::after {
  inset: 16% 8% 5% -6%;
  border: 1px solid rgba(85, 213, 232, 0.36);
}

.cover-stage img {
  width: min(100%, 19rem);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.signal-band div {
  min-height: 8rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: rgba(14, 14, 14, 0.94);
}

.signal-band strong,
.signal-band span {
  display: block;
}

.signal-band strong {
  margin-bottom: 0.45rem;
  color: white;
  font-size: 1.45rem;
}

.signal-band span {
  max-width: 40rem;
  color: var(--muted);
}

.split-section,
.interactive-section,
.reader-hero,
.reader-shell,
.contact-section,
.parents-hero,
.parent-preview {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.interactive-section {
  display: grid;
  grid-template-columns: minmax(20rem, 1.05fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(85, 213, 232, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.interactive-scene {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: var(--shadow);
}

.interactive-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.speech-bubble {
  position: absolute;
  left: 54%;
  top: 56%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  min-height: 2.75rem;
  padding: 0.62rem 0.86rem;
  border: 3px solid #111;
  background: #fffdf3;
  color: #121212;
  font-size: clamp(0.72rem, 1.2vw, 1.05rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
  transform: translate(0, -50%);
  animation: talk-bubble 900ms steps(2, end) infinite;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: -0.68rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  border-left: 3px solid #111;
  border-bottom: 3px solid #111;
  background: #fffdf3;
  transform: translateY(-50%) rotate(45deg);
}

@keyframes talk-bubble {
  0%,
  100% {
    transform: translate(0, -50%) scale(1);
  }

  50% {
    transform: translate(2%, -50%) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .speech-bubble {
    animation: none;
  }
}

.interactive-copy .eyebrow {
  color: var(--gold);
}

.interactive-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.response-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.response-form label {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.response-form textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.62);
  color: var(--ink);
  font: inherit;
  padding: 0.9rem 1rem;
}

.response-form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.response-actions {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.voice-button {
  display: inline-grid;
  place-items: center;
  min-height: 3.4rem;
  width: 3.4rem;
  border: 1px solid rgba(246, 200, 95, 0.65);
  background: rgba(246, 200, 95, 0.12);
  color: var(--gold);
  cursor: pointer;
  padding: 0;
}

.voice-button svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.voice-button:hover,
.voice-button[aria-pressed="true"] {
  background: rgba(246, 200, 95, 0.22);
  color: var(--ink);
}

.voice-button[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(246, 200, 95, 0.18);
}

.voice-button[hidden] {
  display: none;
}

.response-status {
  min-height: 1.6rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.response-feedback {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.3rem;
  padding: 1rem;
  border: 1px solid rgba(246, 200, 95, 0.42);
  background: rgba(246, 200, 95, 0.08);
  box-shadow: 7px 7px 0 rgba(246, 200, 95, 0.12);
}

.response-feedback[hidden] {
  display: none;
}

.response-feedback h3,
.response-feedback p {
  margin: 0;
}

.response-feedback h3 {
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
}

.response-feedback p {
  color: var(--muted);
  line-height: 1.45;
}

.art-panel {
  position: relative;
  overflow: hidden;
  min-height: 32rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.art-panel img {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  object-fit: cover;
}

.chapter-grid {
  display: grid;
  gap: 1rem;
}

.chapter-grid {
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  margin-top: 2rem;
}

.chapter-grid article,
.download-card,
.contact-form,
.reader-fallback {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.055);
}

.chapter-grid article {
  padding: 1.25rem;
}

.chapter-grid span,
.file-size {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chapter-grid p,
.contact-form p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-card {
  padding: 1.25rem;
}

.download-card code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.file-size {
  display: block;
  margin-bottom: 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.footer-social {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--muted);
  transition: color 150ms ease, transform 150ms ease;
}

.footer-social:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.parent-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(228, 35, 16, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.parent-preview h2 {
  margin-bottom: 0.75rem;
}

.parent-preview p:not(.eyebrow) {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.reader-hero,
.author-hero,
.contact-section,
.parents-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.reader-hero h1,
.author-hero h1,
.contact-section h1 {
  max-width: 12ch;
}

.author-hero {
  grid-template-columns: minmax(18rem, 34rem) minmax(0, 1fr);
  align-items: start;
  min-height: calc(100svh - 5.3rem);
}

.author-photo {
  position: relative;
  isolation: isolate;
}

.author-photo::before {
  content: "";
  position: absolute;
  inset: 8% -7% -7% 10%;
  z-index: -1;
  background: var(--stop);
  filter: blur(26px);
  opacity: 0.26;
}

.author-photo img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.author-copy {
  max-width: 47rem;
}

.author-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.parents-hero {
  min-height: calc(100svh - 5.3rem);
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 30rem);
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.parents-hero > * {
  min-width: 0;
}

.parents-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 5.8vw, 4.8rem);
}

.parents-hero .lede {
  max-width: 42rem;
}

.reader-shell {
  padding-top: 0;
}

.pdf-reader {
  display: block;
  width: 100%;
  min-height: min(80rem, 82vh);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reader-fallback {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-section {
  min-height: calc(100svh - 5.3rem);
}

.contact-section.single-column {
  grid-template-columns: minmax(0, 48rem);
}

.contact-form {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  background:
    linear-gradient(135deg, rgba(228, 35, 16, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.07);
  align-self: start;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.form-head {
  padding-bottom: 0.35rem;
}

.form-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.62);
  color: var(--ink);
  font: inherit;
  padding: 0.9rem 1rem;
  min-height: 3.15rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.6rem;
  color: var(--cyan);
  font-weight: 950;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .interactive-section,
  .reader-hero,
  .author-hero,
  .contact-section,
  .parents-hero,
  .parent-preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .cover-stage {
    order: -1;
  }

  .cover-stage img {
    width: min(68vw, 18rem);
  }

  .pdf-reader {
    min-height: 72vh;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .nav a {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .nav [data-mobile-hidden] {
    display: none;
  }

  .brand span:last-child {
    max-width: 13rem;
  }

  .signal-band,
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }

  .hero {
    gap: 1.15rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .cover-stage img {
    width: min(44vw, 10rem);
  }

  .lede {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 1.1rem;
  }

  .button {
    min-height: 2.8rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }

  .response-actions {
    grid-template-columns: 1fr;
  }

  .parents-hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 2.75rem);
  }
}
