/* ============================================================
   STORYLAND CLASSICS — Poem & Book Pages
   Loaded after style.css. Uses the same tokens, fonts and ornaments.
   ============================================================ */

/* ── HERO ── */
.poem-hero {
  position: relative;
  background: var(--night);
  background-image:
    linear-gradient(to bottom, rgba(26,20,16,0.55), rgba(26,20,16,0.92)),
    url('../nologo.png');
  background-size: cover;
  background-position: center;
  padding: 3rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--gold);
}

.breadcrumb {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(245,239,226,0.5);
  margin-bottom: 2rem;
}
.breadcrumb a { color: rgba(245,239,226,0.7); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: var(--gold); margin: 0 0.5rem; }

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

.poem-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.08;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 40px rgba(184,135,42,0.5), 0 2px 12px rgba(0,0,0,0.9);
}

.poem-hero .hero-ornament { margin: 0.75rem 0 1rem; }

.poem-byline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: rgba(255,248,225,0.92);
  margin-bottom: 1rem;
}

.poem-intro {
  font-style: italic;
  color: rgba(245,239,226,0.68);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ── VIDEO ── */
.poem-video { padding: 4rem 0 4.5rem; background: var(--cream); border-bottom: 1px solid var(--parchment-deep); }
.poem-video .trailer-frame { scroll-margin-top: 90px; }
.video-caption {
  text-align: center;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}
.video-caption a { color: var(--gold); border-bottom: 1px solid var(--gold-pale); }
.video-caption a:hover { border-color: var(--gold); }

/* ── POEM + BOOK LAYOUT ── */
.poem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 4rem;
  align-items: start;
}

.poem-text-col .section-eyebrow { margin-bottom: 0.5rem; }
.poem-text-col h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.poem-source {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.poem {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.3vw, 1.4rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-soft);
}
.stanza { margin-bottom: 2.5rem; }
.stanza span { display: block; }
.stanza .in { padding-left: 1.6em; }

/* Refrain steps down the page like the rocking shoe */
.stanza .r {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.stanza .r1 { padding-left: 5em; margin-top: 0.4em; }
.stanza .r2 { padding-left: 6.5em; }
.stanza .r3 { padding-left: 8em; }


/* ── BOOK CARD ── */
.book-card {
  position: sticky;
  top: 90px;
  background: var(--night);
  border: 1px solid rgba(184,135,42,0.45);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  scroll-margin-top: 90px;
}
.book-card .section-eyebrow { color: var(--gold-light); font-size: 0.78rem; }
.book-cover {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 16px 36px -14px rgba(0,0,0,0.8);
}
.book-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.book-card p {
  color: rgba(245,239,226,0.68);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.book-card .btn { width: 100%; }
.book-card .btn + .btn { margin-top: 0.6rem; }
.book-soon { cursor: default; color: var(--gold-light); }
.book-soon:hover { background: transparent; color: var(--gold-light); }
.book-disclosure {
  font-size: 0.78rem !important;
  font-style: italic;
  color: rgba(245,239,226,0.38) !important;
  margin: 1rem 0 0 !important;
}

/* ── ABOUT / DISCUSSION ── */
.poem-notes {
  background: var(--cream);
  padding: 5rem 0;
  border-top: 1px solid var(--parchment-deep);
}
.poem-notes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.poem-notes h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.poem-notes p {
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.talk-card {
  background: var(--parchment);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  padding: 2rem;
}
.talk-list {
  list-style: none;
  margin: 0;
}
.talk-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.talk-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ── MORE POEMS ── */
.more-poems { padding: 5rem 0; background: var(--parchment); }
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.more-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.more-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.more-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.more-card p { color: var(--ink-muted); font-size: 0.95rem; font-style: italic; }

/* ── FOCUS ── */
.poem-page a:focus-visible,
.poem-page button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .poem-layout { grid-template-columns: 1fr; gap: 3rem; }
  .book-card {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 2rem;
    text-align: left;
    align-items: center;
  }
  .book-cover { grid-row: span 5; margin: 0; }
  .poem-notes-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .more-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .poem-hero { padding: 2rem 1.25rem 3rem; }
  .poem-hero .hero-cta { flex-direction: column; align-items: center; gap: 0.75rem; }
  .poem-hero .hero-cta .btn { width: 100%; max-width: 280px; text-align: center; }
  .poem-video, .poem-notes, .more-poems { padding: 3rem 0; }
  .book-card { display: block; text-align: center; }
  .book-cover { margin: 0 auto 1.5rem; }
  .stanza .in { padding-left: 1em; }
  .stanza .r1 { padding-left: 2.5em; }
  .stanza .r2 { padding-left: 3.75em; }
  .stanza .r3 { padding-left: 5em; }
  .more-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .more-card, .more-card:hover { transition: none; transform: none; }
}

/* ── TEACHER GUIDE TEASER ── */
.guide-card .talk-list { margin-bottom: 1.75rem; }
.guide-card .btn { width: 100%; text-align: center; }
.guide-note {
  font-size: 0.85rem !important;
  font-style: italic;
  color: var(--ink-muted) !important;
  text-align: center;
  margin: 0.75rem 0 0 !important;
}
#library-card { scroll-margin-top: 80px; }
.guide-note a { color: var(--gold); border-bottom: 1px solid var(--gold-pale); }

/* ── WATCH PAGES (generated) ── */
.watch-frame { background: var(--night); }
.watch-frame--vertical { aspect-ratio: 9 / 16; max-width: 360px; }

/* Pages without a picture book: one centered reading column */
.poem-layout--solo { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }

.story-summary p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.story-summary p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.4em;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  color: var(--gold);
}
.story-moral {
  margin-top: 2.25rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--parchment-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--ink);
  text-align: center;
}
.story-moral-label {
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.stanza .ch { padding-left: 1.6em; font-style: italic; color: var(--gold); }
.text-note { font-style: italic; color: var(--ink-muted); }
@media (max-width: 680px) { .stanza .ch { padding-left: 1em; } }

