:root {
  --paper: #f8f9f6;
  --ink: #283e43;
  --quiet: #627277;
  --line: #d9dfd9;
  --accent: #9c4c35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 Arial, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; }
::selection { background: #e3c8ba; }

.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; z-index: 20; padding: 12px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.header {
  width: min(1440px, calc(100% - 96px)); height: 88px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: Freigeist, "Century Gothic", "Avenir Next", Arial, sans-serif;
  font-size: 31px; font-weight: 600; line-height: 1; letter-spacing: -1.2px; white-space: nowrap;
}
.header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 18px; border: 1px solid #a9b3af; border-radius: 30px; }
.nav-cta:hover { background: #edf0ec; }

.hero { padding-top: 42px; text-align: center; }
.hero h1 {
  max-width: 1100px; margin: 0 auto 22px; font-size: clamp(48px, 6.1vw, 88px);
  font-weight: 650; letter-spacing: -.075em; line-height: .94; text-wrap: balance;
}
.hero h1 span, .closing h2 span { color: var(--accent); }
.hero-lead { max-width: 540px; margin: 0 auto; font-size: 20px; line-height: 1.5; }
.age-note { margin: 12px auto 0; color: var(--quiet); font-size: 14px; }
.actions { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 32px 20px 0; }
.hero-draft-note { margin: 8px auto 0; color: var(--quiet); font-size: 12px; line-height: 1.5; }
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 28px; background: var(--ink); color: #fff; font-size: 15px;
}
.button:hover { background: #3b565c; }
.link { display: inline-block; padding-block: 10px; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link:hover { color: var(--accent); }

/* The reading scene expands as the visitor moves down the page. */
.scene-track { margin-top: 32px; }
.scene-stage { position: relative; width: 100%; }
.photo-frame { width: min(1160px, calc(100% - 96px)); aspect-ratio: 1.5; margin: 0 auto; overflow: hidden; border-radius: 14px; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.scene-caption, .scene-stage::after { display: none; }
.motion-button {
  position: absolute; right: max(24px, calc((100vw - 1160px) / 2 + 18px)); bottom: 22px; z-index: 3;
  min-height: 44px; padding: 9px 16px; border: 0; border-radius: 24px;
  background: #fffefaed; color: var(--ink); font-size: 13px;
}
.image-note { margin: 10px 48px 0; color: var(--quiet); font-size: 12px; line-height: 1.5; text-align: right; }
.has-motion .scene-track { height: 114svh; position: relative; }
.has-motion .scene-stage { position: sticky; top: 0; height: 82svh; overflow: hidden; isolation: isolate; }
.has-motion .photo-frame {
  position: absolute; top: var(--photo-top, 3svh); left: 50%; width: var(--photo-width, min(1160px, calc(100% - 96px)));
  height: var(--photo-height, auto); aspect-ratio: auto; margin: 0; transform: translateX(-50%);
  will-change: width, height, border-radius;
}
.has-motion .scene-stage::after {
  display: block; content: ""; position: absolute; inset: 42% 0 0; z-index: 1;
  background: linear-gradient(transparent, #21181180); opacity: var(--shade, 0); pointer-events: none;
}
.has-motion .scene-caption {
  display: block; position: absolute; left: max(48px, calc((100vw - 1160px) / 2)); bottom: 56px; z-index: 2;
  margin: 0; color: #fff; font-size: clamp(30px, 4vw, 58px); font-weight: 600; line-height: 1.1;
  letter-spacing: -.045em; text-align: left; text-shadow: 0 2px 24px #2e221d55; opacity: 0;
}
.has-motion .motion-button { top: auto; bottom: 20px; right: max(24px, calc((100vw - 1160px) / 2 + 18px)); }

.book-section { padding: 104px 0 82px; }
.book-intro, .founder-layout, .faq-section { display: grid; align-items: start; }
.book-intro { grid-template-columns: .9fr 1.1fr; gap: 72px; }
.book-copy { padding-top: 30px; }
.book-copy p:not(.section-kicker) { max-width: 480px; margin-bottom: 20px; color: #53676c; font-size: 17px; line-height: 1.72; }
.book-copy strong { color: var(--ink); font-weight: 600; }
.section-kicker { margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .045em; }
h2 { margin-bottom: 22px; font-size: clamp(38px, 4.25vw, 58px); line-height: 1.08; letter-spacing: -.055em; }
.book-viewer-wrap { min-width: 0; }
.model-note { margin: 4px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.5; text-align: center; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.specs div { display: flex; flex-direction: column; gap: 7px; }
.specs strong { font-size: 18px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; }
.specs span { color: var(--quiet); font-size: 14px; line-height: 1.5; }

.story-example { padding: 82px 0; background: #f0f2ee; }
.story-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 76px; align-items: center; }
.story-copy p:not(.section-kicker) { max-width: 410px; color: #53676c; font-size: 16px; line-height: 1.72; }
.page-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.page-spread figure { margin: 0; }
.page-spread img { display: block; width: 100%; height: auto; }
.page-spread figcaption { margin-top: 8px; color: var(--quiet); font-size: 12px; }

.how { padding: 88px 0 92px; border-bottom: 1px solid var(--line); }
.how > h2 { max-width: 650px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 44px; }
.step-number { color: var(--accent); font-size: 17px; }
.steps h3 { max-width: 280px; margin: 15px 0 12px; font-size: 22px; letter-spacing: -.035em; line-height: 1.25; }
.steps p { margin: 0; color: #53676c; font-size: 15px; line-height: 1.72; }
.timing { margin: 28px 0 0; color: var(--quiet); font-size: 14px; line-height: 1.6; }

.founder { padding: 76px 0; background: #ebeeea; }
.founder-layout { grid-template-columns: .78fr 1fr; gap: 112px; }
.founder h2 { max-width: 440px; }
.founder p:not(.section-kicker) { margin-bottom: 20px; color: #53676c; font-size: 16px; line-height: 1.72; }
.founder .signature { margin: 26px 0 0; color: var(--ink); font-weight: 600; }
.faq-section { grid-template-columns: .78fr 1.22fr; gap: 88px; padding: 86px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 32px 18px 0; font-size: 16px; line-height: 1.5; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 16px; right: 0; content: "+"; font-size: 21px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: #53676c; font-size: 15px; line-height: 1.75; }
.closing { padding: 64px 0 86px; border-top: 1px solid var(--line); text-align: center; }
.closing h2 { margin-bottom: 18px; font-size: clamp(44px, 6vw, 82px); line-height: 1.02; }
.closing h2 span { color: var(--accent); }
.closing > p { margin-bottom: 24px; color: var(--quiet); font-size: 16px; }
.closing-actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.closing .draft-microcopy { margin: 10px 0 0; color: var(--quiet); font-size: 12px; }
footer { padding: 30px 0 24px; border-top: 1px solid var(--line); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top { padding-bottom: 24px; }
.footer-top .wordmark { font-size: 28px; }
.footer-bottom { padding-top: 18px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.sal-link { flex-basis: 100%; width: fit-content; }
.sal-link img { display: block; max-width: 100%; }

@media (min-width: 651px) and (max-height: 700px) {
  .header { height: 64px; }
  .hero { padding-top: 20px; }
  .hero h1 { margin-bottom: 8px; font-size: clamp(48px, 6.1vw, 88px); }
  .hero-lead { font-size: 18px; line-height: 1.4; }
  .age-note { margin-top: 4px; }
  .actions { margin-top: 16px; }
  .hero-draft-note { margin-top: 4px; }
  .scene-track { margin-top: 14px; }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 64px); }
  .header { width: calc(100% - 64px); }
  .header nav { gap: 18px; }
  .book-intro, .founder-layout, .faq-section { gap: 42px; }
  .story-layout { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .steps { gap: 28px; }
  .specs { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .photo-frame { width: calc(100% - 64px); }
  .has-motion .photo-frame { width: var(--photo-width, calc(100% - 64px)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 40px); }
  .header { width: calc(100% - 36px); height: 72px; gap: 10px; }
  .wordmark { font-size: 27px; letter-spacing: -1.5px; }
  .header nav { gap: 0; }
  .header nav > a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }
  .hero { padding-top: 35px; }
  .hero h1 { margin-bottom: 18px; padding-inline: 12px; font-size: clamp(29px, 8.2vw, 52px); letter-spacing: -.06em; line-height: 1.08; }
  .hero-lead { padding: 0 14px; font-size: 17px; }
  .age-note { margin-top: 9px; padding-inline: 16px; font-size: 13px; }
  .actions { flex-wrap: wrap; gap: 8px 24px; margin: 24px 12px 0; }
  .hero-draft-note { margin-top: 7px; font-size: 12px; }
  .button { min-height: 48px; padding: 11px 19px; font-size: 15px; }
  .scene-track { margin-top: 28px; }
  .photo-frame { width: calc(100% - 40px); border-radius: 10px; }
  .photo-frame img { object-position: 40% 50%; }
  .has-motion .scene-track { height: 114svh; }
  .has-motion .scene-stage { height: 82svh; }
  .has-motion .photo-frame { width: var(--photo-width, calc(100% - 40px)); }
  .has-motion .photo-frame img { object-position: 40% 50%; }
  .has-motion .scene-caption { left: 22px; bottom: 76px; font-size: 34px; }
  .has-motion .motion-button { right: 16px; bottom: 16px; font-size: 12px; }
  .image-note { margin: 9px 20px 0; font-size: 12px; text-align: left; }
  .book-section { padding: 64px 0 54px; }
  .book-intro, .founder-layout, .faq-section { grid-template-columns: 1fr; gap: 18px; }
  .book-copy { padding-top: 0; }
  .section-kicker { margin-bottom: 10px; font-size: 12px; }
  h2 { margin-bottom: 14px; font-size: 38px; }
  .book-copy p:not(.section-kicker) { margin-bottom: 14px; font-size: 16px; line-height: 1.68; }
  .specs { gap: 22px 18px; margin-top: 30px; padding-top: 20px; }
  .specs strong { font-size: 17px; }
  .specs span { font-size: 13px; }
  .story-example { padding: 54px 0; }
  .story-layout { grid-template-columns: 1fr; gap: 16px; }
  .story-copy p:not(.section-kicker) { font-size: 15px; }
  .page-spread { gap: 12px; }
  .how { padding: 54px 0 58px; }
  .steps { grid-template-columns: 1fr; gap: 25px; margin-top: 28px; }
  .steps article { display: grid; grid-template-columns: 30px 1fr; column-gap: 11px; }
  .step-number { grid-row: 1 / 3; }
  .steps h3 { margin: 0 0 7px; font-size: 21px; }
  .steps p { font-size: 15px; }
  .timing { margin-top: 24px; font-size: 13px; }
  .founder { padding: 50px 0; }
  .founder h2 { font-size: 38px; }
  .founder p:not(.section-kicker) { margin-bottom: 15px; font-size: 15px; line-height: 1.68; }
  .faq-section { gap: 22px; padding: 54px 0; }
  .faq summary { padding-block: 17px; font-size: 16px; }
  .faq details p { font-size: 15px; }
  .closing { padding: 50px 0 62px; }
  .closing h2 { font-size: 47px; }
  .closing > p { font-size: 15px; }
  .closing-actions { gap: 8px 20px; }
  .closing .draft-microcopy { font-size: 12px; }
  .footer-top { flex-wrap: wrap; gap: 12px; }
  .footer-top .wordmark { font-size: 27px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-bottom nav { gap: 14px 18px; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 25px; }
  .nav-cta { padding-inline: 9px; font-size: 11px; }
  .hero h1 { font-size: 29px; }
  .actions { gap: 8px 12px; }
  .actions .button { padding-inline: 15px; font-size: 14px; }
  h2, .founder h2 { font-size: 34px; }
  .specs strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .has-motion .scene-track { height: auto; }
  .has-motion .scene-stage { position: relative; height: auto; overflow: visible; }
  .has-motion .photo-frame { position: relative; top: auto; left: auto; width: min(1160px, calc(100% - 96px)); height: auto; aspect-ratio: 1.5; margin: 0 auto; transform: none !important; will-change: auto; }
  .has-motion .scene-stage::after, .has-motion .scene-caption, .motion-button { display: none !important; }
}

/* Original littletales wordmark artwork. */
.wordmark:has(.wordmark-logo) { display: inline-flex; align-items: center; flex-shrink: 0; }
.wordmark-logo { display: block; width: 132px; height: auto; }
