/* ============================================================
   STORYLAND CLASSICS — Books, Teacher Guides & Featured Book
   Loaded after style.css.
   ============================================================ */

/* ── BOOK SHELF CARDS ── */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 2rem;
}
.book-tile {
  background: var(--cream);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.book-tile:hover { border-color: var(--gold); }
.book-tile-cover {
  display: block;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.25rem;
  box-shadow: 0 14px 30px -14px rgba(44,34,24,0.55);
}
.book-tile-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.book-tile h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
}
.book-tile .book-sub {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin: 0.2rem 0 1rem;
}
.book-tile-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.book-tile-links .btn { text-align: center; }
.book-tile-links .text-link { align-self: center; margin-top: 0.35rem; }
.btn-soon { cursor: default; }
.btn-soon:hover { background: transparent; color: var(--gold); }

.shelf-note {
  margin-top: 3rem;
  text-align: center;
  font-style: italic;
  color: var(--ink-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── TEACHER GUIDES ── */
.guide-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 4rem;
}
.guide-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.guide-intro p { color: var(--ink-soft); line-height: 1.85; margin-bottom: 1.1rem; font-size: 1.05rem; }
.guide-uses { list-style: none; }
.guide-uses li {
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  background: var(--cream);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.guide-uses li::before { content: '✦'; position: absolute; left: 1rem; top: 1.05rem; color: var(--gold); font-size: 0.85rem; }
.guide-uses b { color: var(--ink); font-family: var(--font-serif); font-size: 1.05rem; }

.guide-set {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  background: var(--cream);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.guide-set-cover img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; box-shadow: 0 14px 30px -14px rgba(44,34,24,0.55); }
.guide-set-cover a.text-link { display: inline-block; margin-top: 1rem; }
.guide-set h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}
.guide-set .book-sub { font-style: italic; color: var(--ink-muted); margin-bottom: 1.5rem; }
.guide-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.guide-option {
  background: var(--parchment);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.guide-option.featured { border-color: var(--gold); }
.guide-option h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.guide-option .guide-meta { font-style: italic; color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 0.85rem; }
.guide-option ul { list-style: none; margin-bottom: 1.25rem; }
.guide-option li { position: relative; padding-left: 1.4rem; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 0.35rem; }
.guide-option li::before { content: '✦'; position: absolute; left: 0; top: 0.1rem; color: var(--gold); font-size: 0.7rem; }
.guide-option .btn { margin-top: auto; text-align: center; }
.guide-option .opt-note { font-size: 0.82rem; font-style: italic; color: var(--ink-muted); text-align: center; margin-top: 0.5rem; }

/* ── POEMS PAGE: "With picture books" strip ── */
.companion-strip { margin-bottom: 4rem; }
.companion-strip .section-header { margin-bottom: 2rem; }
.companion-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.75rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.companion-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.companion-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 2px; }
.companion-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; font-style: italic; color: var(--ink); line-height: 1.2; }
.companion-card .book-sub { font-style: italic; color: var(--ink-muted); margin-bottom: 0.6rem; }
.companion-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.companion-tags span {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-pale);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}
.companion-divider { text-align: center; margin: 0 0 2.5rem; }
.companion-divider h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}

/* ── HOMEPAGE: from the bookshelf ── */
.bookshelf-feature {
  background: var(--cream);
  padding: 5rem 0;
  border-top: 1px solid var(--parchment-deep);
}
.bookshelf-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
}
.bookshelf-inner img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; box-shadow: 0 18px 40px -16px rgba(44,34,24,0.6); }
.bookshelf-text .section-eyebrow { text-align: left; }
.bookshelf-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.bookshelf-text p { color: var(--ink-soft); line-height: 1.85; font-size: 1.05rem; margin-bottom: 1.25rem; }
.bookshelf-text .hero-cta { justify-content: flex-start; margin-top: 1.5rem; }

/* ── FOCUS ── */
.book-tile a:focus-visible, .guide-option a:focus-visible, .companion-card:focus-visible, .bookshelf-feature a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .guide-intro { grid-template-columns: 1fr; gap: 2rem; }
  .guide-set { grid-template-columns: 1fr; }
  .guide-set-cover { max-width: 240px; }
  .bookshelf-inner { grid-template-columns: 1fr; gap: 2rem; }
  .bookshelf-inner img { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .guide-options { grid-template-columns: 1fr; }
  .companion-card { grid-template-columns: 96px 1fr; gap: 1rem; }
  .companion-card img { width: 96px; height: 96px; }
  .companion-card .btn { grid-column: 1 / -1; text-align: center; }
  .bookshelf-feature { padding: 3rem 0; }
  .bookshelf-text, .bookshelf-text .section-eyebrow { text-align: center; }
  .bookshelf-text .hero-cta { justify-content: center; flex-direction: column; align-items: center; }
}

/* ── GUIDE SHELF (members) ── */
.shelf-help {
  max-width: 640px;
  margin: 3.5rem auto 0;
  background: var(--cream);
  border: 1px solid var(--parchment-deep);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.shelf-help p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 0.75rem; }
.shelf-help p:last-child { margin-bottom: 0; }
.shelf-help b { color: var(--ink); }
.shelf-help a { color: var(--gold); border-bottom: 1px solid var(--gold-pale); }

.affiliate-note { font-size: 0.8rem; opacity: 0.75; margin-top: 0.75rem; font-style: italic; }
