/* The Dreamers' Land — prototype styles
   Tokens from live brand only (navy / gold / paper). Yavin body lock. */

:root {
  --navy: #07395b;
  --navy-deep: #0E3862;
  --ink: #0B2233;
  --gold: #faaf40;
  --gold-hover: #e6ac3d;
  --gold-alt: #f8b045;
  --paper: #ffffff;
  --tint: rgba(7, 57, 91, 0.06);
  --tint-strong: rgba(7, 57, 91, 0.10);
  --muted: #4a5d6a;
  --border: rgba(7, 57, 91, 0.14);
  --text: 1.25rem;
  --text-lh: 1.6;
  --wrap: 82%;
  --wrap-max: 1240px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(11, 34, 51, 0.10);
  --header-h: 112px;
  --proto-h: 44px;
  --font-ui: "Poppins", system-ui, sans-serif;
  --font-display: "IBM Plex Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text);
  line-height: var(--text-lh);
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--proto-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
.wrap {
  width: var(--wrap);
  max-width: var(--wrap-max);
  margin-inline: auto;
}
.wrap-full {
  width: min(96%, 1400px);
  margin-inline: auto;
}

/* Prototype banner offset handled via body padding; banner is inline-styled */

/* Header */
.site-header {
  position: sticky;
  top: var(--proto-h);
  z-index: 900;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(11, 34, 51, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.9rem 0;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img {
  /* Arched badge mark (~2.1:1) — height drives size; keep aspect */
  height: 72px;
  width: auto;
  max-width: min(220px, 48vw);
  object-fit: contain;
  display: block;
}
@media (max-width: 980px) {
  .logo-link img {
    height: 60px;
    max-width: min(180px, 46vw);
  }
}
@media (max-width: 640px) {
  .logo-link img {
    height: 52px;
    max-width: min(160px, 58vw);
  }
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.25rem;
}
.nav-toggle[aria-expanded="true"] { background: var(--tint); }
.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 9% 1.25rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--tint);
  color: var(--navy);
}
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 700;
  text-align: center;
  margin-top: 0.35rem;
}
.site-nav .nav-cta:hover { background: var(--gold-hover); }
.site-nav .nav-ghost {
  border: 1.5px solid var(--navy);
  color: var(--navy) !important;
  text-align: center;
}
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav-dropdown > button:hover { background: var(--tint); }
.nav-dropdown .submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.85rem;
  display: none;
}
.nav-dropdown.is-open .submenu { display: block; }
.submenu a { font-size: 0.95rem; font-weight: 400; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
  }
  .site-nav a,
  .nav-dropdown > button {
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }
  .site-nav .nav-cta,
  .site-nav .nav-ghost {
    margin-top: 0;
    padding: 0.5rem 0.95rem;
  }
  .nav-dropdown .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.4rem;
    display: none;
  }
  .nav-dropdown:hover .submenu,
  .nav-dropdown:focus-within .submenu,
  .nav-dropdown.is-open .submenu {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn-navy {
  background: var(--navy);
  color: var(--paper);
}
.btn-navy:hover { background: var(--ink); color: var(--paper); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--tint); color: var(--navy); }
.btn-outline-light {
  background: transparent;
  border-color: var(--gold);
  color: var(--paper);
}
.btn-outline-light:hover { background: rgba(250,175,64,.15); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Sections / rooms */
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-tint { background: var(--tint); }
.section-navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
}
.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy p { color: var(--paper); }
.section-navy .muted { color: rgba(255,255,255,.78); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-navy .eyebrow { color: var(--gold); }
.lede { font-size: 1.2rem; max-width: 46rem; }
.muted { color: var(--muted); }
.kicker { font-weight: 600; color: var(--navy); }

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(250,175,64,.18), transparent 50%),
    linear-gradient(165deg, #07395b 0%, #0E3862 55%, #0B2233 100%);
  color: var(--paper);
}
.hero h1 { color: var(--paper); margin-bottom: 0.5em; }
.hero .lede { color: rgba(255,255,255,.9); }
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
@media (min-width: 700px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card img.icon {
  /* Collection marks are wide wordmarks — never force a square box */
  display: block;
  width: min(100%, 280px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.15rem;
}
.card img.icon.collection-mark {
  width: min(100%, 300px);
  max-height: 96px;
}
/* Soft pad behind collection marks so wordmarks read clearly */
.card .collection-mark-wrap {
  display: flex;
  align-items: center;
  min-height: 96px;
  margin: -0.25rem 0 1rem;
  padding: 0.85rem 0.5rem 0.85rem 0;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { flex: 1; }
.card .card-link {
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}
.card .card-link:hover { color: var(--gold-hover); }
.feature-card {
  text-align: center;
  padding: 1.35rem 1rem;
}
.feature-card .feat-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.series-card {
  padding: 0;
  overflow: hidden;
}
.series-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--tint);
}
.series-card .series-body { padding: 1.1rem 1.2rem 1.35rem; }
.series-card .series-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
/* Home spotlight: all 13 series, slightly tighter cards */
.series-card--tight .series-body {
  padding: 0.85rem 0.95rem 1.05rem;
}
.series-card--tight h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 0.35rem;
}
.series-card--tight .series-sub {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.series-card--tight .series-body > p:not(.series-sub) {
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-card--tight img {
  aspect-ratio: 16/10;
}
.series-card--tight .card-link {
  margin-top: 0.65rem;
  font-size: 0.95rem;
}
@media (min-width: 800px) {
  .card-grid.cols-4.series-spotlight { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .card-grid.cols-4.series-spotlight { grid-template-columns: repeat(4, 1fr); }
}
.series-cta-row .btn { font-size: 1rem; }

/* Proof band */
.proof-band {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) {
  .proof-band { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .proof-band { grid-template-columns: repeat(6, 1fr); }
}
.proof-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(250,175,64,.35);
  border-radius: 10px;
  padding: 1rem 0.85rem;
  text-align: center;
}
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.proof-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
}
.proof-cred {
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(250,175,64,.28);
  display: grid;
  gap: 0.55rem;
}
.proof-cred p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
}
.proof-cred strong { color: var(--gold); font-weight: 700; }
.proof-cred a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.proof-cred a:hover { color: #fff; }

/* Classroom */
.classroom-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .classroom-grid { grid-template-columns: 220px 1fr; }
}
.classroom-logo {
  max-width: 200px;
  margin-inline: auto;
}
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.bullet-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.bullet-list li:last-child { border-bottom: 0; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.2rem;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
}
.bullet-list strong { display: block; color: var(--navy); margin-bottom: 0.2rem; }

/* Forms */
.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 1.05rem;
  background: var(--paper);
  color: var(--ink);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.form-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.form-grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Team */
.team-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
@media (min-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  background: var(--paper);
}
.team-card strong { display: block; color: var(--navy); }
.team-card span { font-size: 0.95rem; color: var(--muted); }

/* Library filters stub */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.chip:hover, .chip.is-active {
  background: var(--navy);
  color: var(--paper);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.88);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { font-size: 1rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.95rem;
  color: rgba(255,255,255,.65);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Brand page extras */
.swatch-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.swatch {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.swatch-color { height: 96px; }
.swatch-meta { padding: 0.75rem 0.9rem; background: var(--paper); font-size: 0.9rem; }
.swatch-meta code { font-size: 0.85rem; }
.logo-panel {
  border-radius: 12px;
  padding: 2rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.logo-panel img { max-height: 72px; width: auto; }
.logo-panel.dark { background: var(--navy); }
.logo-panel.ink { background: var(--ink); }
.logo-panel.light { background: var(--paper); }
.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.token-table th,
.token-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.token-table th { background: var(--tint); color: var(--navy); }
.font-sample-display {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.font-sample-body {
  font-family: var(--font-ui);
  font-size: var(--text);
  line-height: var(--text-lh);
}

/* Page hero compact */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}
.page-hero.navy {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--paper);
  border-bottom: 0;
}
.page-hero.navy h1 { color: var(--paper); }

/* Auth */
.auth-shell {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.auth-shell .btn { width: 100%; margin-bottom: 0.75rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Misc */
.note-box {
  background: var(--tint);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  margin: 1.25rem 0;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}


/* Educator step cards */
.step-card {
  border-top: 4px solid var(--gold);
}
.step-card h3 { margin-bottom: 0.5em; }
.filter-bar .chip { cursor: pointer; }

.site-footer img {
  height: 40px;
  width: auto;
  max-width: 220px;
}

/* Book shelf (132 covers) */
.book-shelf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.85rem;
}
@media (min-width: 600px) {
  .book-shelf { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .book-shelf { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .book-shelf { grid-template-columns: repeat(6, 1fr); }
}
.book-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 34, 51, 0.12);
}
.book-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--tint);
  display: block;
}
.book-card .book-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.65rem 0.7rem 0.15rem;
  color: var(--navy);
}
.book-card .book-series {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0 0.7rem 0.75rem;
  line-height: 1.3;
}
.filter-bar .chip {
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}
.filter-bar button.chip {
  appearance: none;
  -webkit-appearance: none;
}
.series-card[hidden],
.book-card[hidden] {
  display: none !important;
}


.site-footer img[src*="dreamers-land-mark"],
.site-footer img[alt*="Dreamers"] {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
