/* Melo — hub page styles. Two surfaces share these:
     • /lessons  = the LEARN MAP (manifest-driven ordered course)
     • /practice = the next-lesson hero + game/play grids
   The top header is the SHARED header (melo-header.js). Cream full-bleed, centered ~1080 wrap,
   responsive. melo.css tokens + four-feeling palette only. Fraunces titles · Space Mono eyebrows
   · Inter body. Matches design/melo-hub-mock.html. */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-ui, Inter, sans-serif); background: var(--cream, #FBF2E4); color: var(--ink, #2A1A0E); min-height: 100vh; }

.wrap { max-width: var(--page-w, 1080px); margin: 0 auto; padding: 10px 32px 80px; }
.sec { margin-top: 34px; }
.sec:first-of-type { margin-top: 24px; }
.sec-eyebrow { font-family: var(--font-mono, monospace); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
/* later sections (Practice page: Next lesson → Practice → Play) get breathing room */
.wrap > .sec-eyebrow:not(:first-child) { margin-top: 40px; }

/* ============ LEARN — the current lesson, as the hero (nothing else) ============ */
.hero-card { display: block; background: var(--ink); color: var(--cream); border-radius: 22px; padding: 38px 40px; box-shadow: 0 18px 40px -22px rgba(42,26,14,.55); text-decoration: none; }
.hero-card .eyebrow { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #bcae9d; }
.hero-card h2 { font-family: var(--font-serif, serif); font-weight: 700; font-size: clamp(30px, 5.4vw, 46px); line-height: 1.02; letter-spacing: -.5px; margin: 14px 0 12px; color: var(--cream); }
.hero-card p { font-size: 17px; color: #d9cdbd; max-width: 48ch; line-height: 1.5; }
.herorow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.hero-card .cta { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; border: none; font-family: var(--font-ui, sans-serif); font-weight: 600; font-size: 16px; padding: 13px 26px; border-radius: 40px; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(255,90,31,.7); transition: transform .1s; }
.hero-card .cta:active { transform: translateY(2px); }
.donechip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #bcae9d; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; padding: 7px 14px; }
.donechip b { color: var(--gold); font-weight: 700; }
.hero-sub { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #b6a895; margin-top: 16px; }
.hero-card.empty { background: #fff; color: var(--ink); border: 1.5px dashed var(--line-2, #E6DECF); box-shadow: none; }
.hero-card.empty h2 { color: var(--ink); }
.hero-card.empty p { color: var(--muted); }

/* ============ PRACTICE / PLAY — card grids with gameplay thumbnails ============ */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gcard { background: #fff; border: 1px solid rgba(42,26,14,.06); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px -20px rgba(42,26,14,.4); display: flex; flex-direction: column; transition: transform .15s var(--ease-out, ease), box-shadow .15s; }
.gcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(42,26,14,.5); }
/* the ART SLOT holds a gameplay SVG now; a real screenshot <img class="shot"> can drop in
   the same slot later (set its src + remove [hidden] → it covers and the SVG hides). */
.card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-art .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art .shot:not([hidden]) ~ svg { display: none; }
.gcard-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.gcard-body .eyebrow { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gcard-body h3 { font-family: var(--font-serif, serif); font-weight: 700; font-size: 24px; letter-spacing: -.3px; margin: 6px 0 8px; }
.gcard-body p { font-size: 15px; color: #6d5e4f; line-height: 1.45; margin-bottom: 14px; flex: 1; }
.gcard-body .gcta { font-family: var(--font-ui, sans-serif); font-weight: 600; font-size: 15px; color: var(--orange); }

/* ============ LEARN MAP — the ordered course (/lessons) ============ */
.lv { margin-top: 8px; }
.lv + .lv { margin-top: 44px; }
.lv-eyebrow { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.lv-title { font-family: var(--font-serif, serif); font-weight: 700; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.4px; margin: 6px 0 0; }
.map { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.lrow { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid rgba(42,26,14,.07); border-radius: 16px; padding: 17px 22px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px -24px rgba(42,26,14,.4); transition: transform .12s var(--ease-out, ease), box-shadow .12s, border-color .12s; }
a.lrow:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -22px rgba(42,26,14,.5); }
.lnum { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif, serif); font-weight: 700; font-size: 16px; background: var(--cream); color: var(--muted); border: 1px solid var(--line-2, #E6DECF); }
.lbody { flex: 1; min-width: 0; }
.ltitle { font-family: var(--font-serif, serif); font-weight: 700; font-size: 20px; letter-spacing: -.2px; }
.lout { font-size: 14px; color: #6d5e4f; margin-top: 3px; }
.lcta { flex: none; font-family: var(--font-ui, sans-serif); font-weight: 600; font-size: 14px; color: var(--orange); }
/* open = a built, playable lesson (orange accent) — led with, not buried in a ladder */
.lrow.open { border-color: var(--orange); box-shadow: 0 16px 36px -22px rgba(255,90,31,.55); }
.ldot { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--orange); color: #fff; }
.ldot.done { background: var(--gold); }
.lrow.done .lcta { color: var(--muted); }
/* coming-soon roadmap — quiet, unnumbered, NOT a greyed lock */
.soon-head { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9a8a74; margin: 30px 0 -6px; }
.soon-map { gap: 10px; }
.lrow.soon { background: transparent; border-style: dashed; box-shadow: none; cursor: default; padding-left: 22px; }
.lrow.soon .ltitle { color: var(--muted); font-size: 18px; }
.lrow.soon .lout { color: #9a8a74; }
.lrow.soon .lcta { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9a8a74; }

@media (max-width: 760px) {
  .wrap { padding: 8px 20px 64px; }
  .grid { grid-template-columns: 1fr; }
  .hero-card { padding: 30px 26px; }
  .lrow { padding: 15px 16px; gap: 14px; }
  .lnum { width: 32px; height: 32px; font-size: 14px; }
  .ltitle { font-size: 18px; }
}
