/* Vantage Point homepage, rebuild 2026-11-07 (shell group).
   Tokens and the shared components (nav, footer, cards, buttons, marks, facade,
   email slot, overview, ledger, game cards) come from /assets/site.css. This file
   holds only what the homepage alone needs: the hero, the generated latest band
   and topic tiles, Scout's notebook and the Try one idea chart. Paper only. */

/* ---------- Hero ---------- */
.vp-front .hero { padding: var(--space-3) 0 var(--space-4); }
.hero-grid { display: grid; gap: var(--space-3); align-items: center; }
.hero-copy { min-width: 0; }
.vp-front .hero-title { font-size: clamp(2.3rem, 1.45rem + 3.7vw, 4.6rem); line-height: 1.03; font-weight: 620; letter-spacing: -.022em; margin: 0 0 var(--space-3); text-wrap: initial; }
.hero-line { display: block; }
.hero-title .vp-mark { padding: 0 .08em; }
.hero-lede { font-size: 1.1875rem; line-height: 1.55; color: var(--white-dim); max-width: 34ch; margin: 0; }
.hero-actions { margin-top: var(--space-3); }
.hero-art { position: relative; width: min(100%, 300px); margin: 0 auto; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art-label { position: absolute; font: 700 1.25rem/1 var(--font-hand); color: var(--gold); white-space: nowrap; }
.hero-art-label-1 { left: 0; top: 64%; }
.hero-art-label-2 { left: 26%; top: -3%; }
@media (max-width: 599.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 118px; gap: 0 var(--space-1); align-items: end; }
  .hero-copy { display: contents; }
  .hero-copy > .vp-kicker { grid-row: 1; grid-column: 1 / -1; }
  .hero-copy > .hero-title { grid-row: 2; grid-column: 1 / -1; }
  .hero-copy > .hero-lede { grid-row: 3; grid-column: 1 / -1; }
  .hero-actions { grid-row: 4; grid-column: 1; flex-direction: column; align-items: flex-start; gap: .25rem; margin-top: var(--space-3); }
  .hero-art { grid-row: 4; grid-column: 2; width: 118px; margin: 0; }
  .hero-art-label { display: none; }
}
@media (min-width: 600px) and (max-width: 899.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 200px; }
  .hero-art { width: 200px; }
  .hero-art-label { display: none; }
}
@media (min-width: 900px) {
  .vp-front .hero { padding: var(--space-4) 0 var(--space-4); }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--space-5); }
  .hero-lede { font-size: 1.3rem; }
  .hero-art { width: min(100%, 400px); margin-right: 0; }
}

/* ---------- Latest band (generated markup from build_videos_band.py) ---------- */
.latest-grid { display: grid; gap: var(--space-2); }
.latest-grid .video-card { display: block; color: var(--ink); text-decoration: none; }
.latest-grid .video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-card); border: var(--line); border-radius: var(--radius); }
.latest-grid > .video-card:first-child .video-thumb { box-shadow: var(--shadow-hard); }
.latest-grid .video-thumb picture, .latest-grid .video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.latest-grid .video-play { position: absolute; right: 10px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 28px; border-radius: 6px; background: var(--bg-card); border: 2px solid var(--ink); }
.latest-grid .video-play svg { width: 20px; height: 20px; fill: var(--gold); }
.latest-grid .video-title { font: 600 1.125rem/1.28 var(--font-display); margin: .6rem 0 .15rem; color: var(--ink); text-wrap: pretty; }
.latest-grid .video-date { font-size: var(--text-sm); color: var(--white-faint); margin: 0; }
.latest-grid > .video-card:first-child .video-title { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.2; }
.latest-grid > .video-card:not(:first-child) { display: grid; grid-template-columns: minmax(118px, 40%) minmax(0, 1fr); column-gap: .9rem; align-items: start; padding-top: var(--space-2); border-top: 1.5px dashed var(--border-hover); }
.latest-grid > .video-card:not(:first-child) .video-thumb { grid-row: 1 / span 2; }
.latest-grid > .video-card:not(:first-child) .video-play { display: none; }
.latest-grid > .video-card:not(:first-child) .video-title { margin-top: 0; font-size: 1.0625rem; }
.latest-grid .video-card:hover .video-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.latest-grid > .video-card:first-child { margin-bottom: var(--space-1); }
@media (min-width: 900px) {
  .latest-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); column-gap: var(--space-4); row-gap: var(--space-2); }
  .latest-grid > .video-card:first-child { grid-row: 1 / span 3; margin: 0; }
  .latest-grid > .video-card:nth-child(2) { border-top: 0; padding-top: 0; }
}
.latest-newest { margin-top: var(--space-4); }
@media (min-width: 900px) { .latest-newest .vp-newest-btn { padding: var(--space-3) var(--space-4); } }

/* ---------- Topic tiles (generated markup from build_hubs.py) ---------- */
.vp-head-note { color: var(--white-dim); max-width: 40ch; margin: 0; }
.hub-topics { display: grid; gap: 0; border-top: var(--line); }
.hub-topic { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: .85rem; row-gap: .1rem; align-items: baseline; align-content: start; padding: 1rem .35rem; border-bottom: 1.5px dashed var(--border-hover); color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out); }
.hub-topic:hover { background: var(--bg-card-hover); color: var(--ink); }
.hub-topic:hover .hub-topic-name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.hub-index { grid-row: 1 / span 3; font: 700 1.75rem/1 var(--font-hand); color: var(--gold); }
.hub-topic-name { font: 600 1.375rem/1.2 var(--font-display); }
.hub-topic-line { color: var(--white-dim); font-size: 1rem; line-height: 1.45; }
.hub-topic-meta { font: 700 var(--text-sm)/1.4 var(--font-body); color: var(--white-faint); }
.hub-topic-thumbs { display: none; }
@media (min-width: 900px) {
  .hub-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
  .hub-topic { grid-template-columns: 2.75rem minmax(0, 1fr) 176px; padding: 1.2rem .5rem; }
  .hub-topic-thumbs { display: block; position: relative; grid-column: 3; grid-row: 1 / span 3; align-self: center; height: 92px; }
  .hub-topic-thumbs .thumb { position: absolute; top: 6px; width: 120px; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--bg-card); box-shadow: 2px 2px 0 var(--ink); transition: transform var(--dur) var(--ease-out); }
  .hub-topic-thumbs .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .hub-topic-thumbs .thumb:nth-child(1) { left: 0; transform: rotate(-5deg); z-index: 1; }
  .hub-topic-thumbs .thumb:nth-child(2) { left: 28px; top: 14px; transform: rotate(2deg); z-index: 2; }
  .hub-topic-thumbs .thumb:nth-child(3) { left: 54px; top: 2px; transform: rotate(6deg); z-index: 3; }
  .hub-topic:hover .thumb:nth-child(1) { transform: rotate(-8deg) translate(-6px, -2px); }
  .hub-topic:hover .thumb:nth-child(3) { transform: rotate(9deg) translate(6px, -2px); }
}

/* ---------- Tools ---------- */
.tools-note { margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.tools-frameworks { margin: var(--space-3) 0 0; color: var(--white-dim); }

/* ---------- Scout's notebook (quests.js keeps its ids) ---------- */
.scout-notebook { margin-top: var(--space-4); background: var(--bg-card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); }
.scout-notebook > summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; gap: .9rem; align-items: center; padding: .9rem 1rem; cursor: pointer; list-style: none; min-height: 72px; }
.scout-notebook > summary::-webkit-details-marker { display: none; }
.scout-summary-face img { display: block; width: 48px; height: 48px; image-rendering: pixelated; }
.scout-summary-title { display: block; font: 600 1.2rem/1.25 var(--font-display); color: var(--ink); }
.scout-summary-line { display: block; font-size: var(--text-sm); color: var(--white-dim); margin-top: .15rem; }
.scout-summary-icon { position: relative; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; }
.scout-summary-icon::before, .scout-summary-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform var(--dur-fast) var(--ease-out); }
.scout-summary-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.scout-notebook[open] .scout-summary-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.scout-notebook > summary:hover .scout-summary-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }
.quest-layout { display: grid; gap: var(--space-3); padding: 0 1rem 1.25rem; border-top: 1.5px dashed var(--border-hover); padding-top: var(--space-3); margin: 0; }
@media (min-width: 900px) { .quest-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding: var(--space-3) var(--space-3) var(--space-3); } }
.buddy-card { background: var(--bg-deep); border: 1.5px solid var(--border-hover); border-radius: var(--radius); padding: 1rem; }
.buddy-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.buddy-top h3 { margin: 0; }
.level-badge { font: 700 var(--text-sm)/1.2 var(--font-body); color: var(--gold); }
.buddy-stage { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .75rem; margin: .75rem 0; padding: .75rem; background: var(--bg-card); border: 1.5px solid var(--border-hover); border-radius: 4px; }
.trail-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font: 700 1.125rem/1.1 var(--font-hand); color: var(--white-faint); }
.trail-levels li { padding-left: 1.4rem; position: relative; }
.trail-levels li::before { content: ""; position: absolute; left: 0; top: .2rem; width: .8rem; height: .8rem; border: 2px solid var(--border-hover); border-radius: 50%; }
.trail-levels li.reached { color: var(--ink); }
.trail-levels li.reached::before { border-color: var(--ink); background: var(--highlight); }
.scout-sprite img { display: block; width: 88px; height: 88px; image-rendering: pixelated; }
.buddy-stage.celebrate .scout-sprite { animation: scout-hop 600ms var(--ease-out); }
@keyframes scout-hop { 30% { transform: translateY(-14px); } 100% { transform: none; } }
.buddy-speech { font: 700 1.25rem/1.25 var(--font-hand); color: var(--ink); margin: 0 0 .75rem; }
.xp-row { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--white-dim); }
.xp-row strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
#quest-progress { width: 100%; height: 12px; margin: .35rem 0; accent-color: var(--gold); }
.xp-next { font-size: var(--text-sm); color: var(--white-dim); margin: 0 0 .75rem; }
.quest-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .75rem; }
.quest-stats div { display: flex; flex-direction: column; justify-content: space-between; border: 1.5px solid var(--border-hover); border-radius: 4px; padding: .4rem .5rem; background: var(--bg-card); }
.quest-stats dt { font-size: var(--text-xs); color: var(--white-faint); }
.quest-stats dd { margin: 0; font: 600 1.25rem/1.2 var(--font-display); color: var(--ink); }
.quest-small { font-size: var(--text-sm); color: var(--white-faint); margin: .5rem 0 0; }
.quest-log-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.quest-log-top h3 { margin: 0; font-size: 1.2rem; }
.quest-count { font: 700 var(--text-sm)/1.2 var(--font-body); color: var(--gold); }
.quest-item { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; padding: .85rem 0; border-top: 1.5px dashed var(--border-hover); }
.quest-number { font: 700 1.5rem/1 var(--font-hand); color: var(--gold); }
.quest-item.is-complete .quest-number { color: var(--success); }
.quest-item h4 { font: 600 1.1rem/1.25 var(--font-display); margin: 0 0 .2rem; color: var(--ink); }
.quest-item p { margin: 0 0 .3rem; font-size: 1rem; color: var(--white-dim); }
.quest-item .quest-reward { font-size: var(--text-sm); color: var(--white-faint); }
.quest-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.quest-item .quest-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.quest-complete, .quest-reset { min-height: 44px; padding: 0 .9rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--bg-card); font: 700 .9375rem var(--font-body); color: var(--ink); cursor: pointer; }
.quest-complete[aria-pressed="true"] { background: var(--highlight-soft); }
.quest-reset { margin-top: .5rem; background: transparent; }
.quest-live { min-height: 1.4em; margin: .5rem 0 0; font-weight: 700; color: var(--ink); }

/* ---------- Try one idea ---------- */
.idea-grid { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) { .idea-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--space-5); } }
.idea-copy > p { color: var(--white-dim); max-width: 44ch; }
.delay-control { margin: var(--space-3) 0 var(--space-2); padding: 1rem 1.1rem .85rem; background: var(--bg-card); border: var(--line); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink); }
.delay-control label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 700; }
.delay-control output { font: 600 1.5rem/1 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.delay-control input[type=range] { width: 100%; height: 44px; margin: .2rem 0 .3rem; accent-color: var(--gold); cursor: pointer; }
.lesson-result { margin: 0; color: var(--white-dim); }
.lesson-result strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.idea-copy .vp-more { margin-top: var(--space-1); }
.chart-card { margin: 0; padding: var(--space-3); background: var(--bg-card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); }
.chart-label { color: var(--white-dim); font-size: 1rem; }
.chart-total { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); line-height: 1.05; margin: .1rem 0 .4rem; color: var(--ink); }
.growth-chart { display: block; width: 100%; height: auto; overflow: visible; }
.growth-chart text { font: 700 22px var(--font-hand); fill: var(--white-dim); }
.chart-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--text-sm); color: var(--white-dim); margin-top: .5rem; }
.sw { display: inline-block; width: 28px; height: 4px; border-radius: 2px; margin-right: .5rem; vertical-align: middle; }
.sw-now { background: var(--gold); }
.sw-later { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); } /* the chart's dashed "start later" line (C.blue in home-2026.js); was var(--link), which is rust since stage B */

@media (prefers-reduced-motion: reduce) {
  .hub-topic, .hub-topics .thumb, .scout-summary-icon::before, .scout-summary-icon::after { transition: none; }
  .buddy-stage.celebrate .scout-sprite { animation: none; }
}

/* The games strip sits under a "Short games" heading, so the cards drop their "Game" kicker here. */
.vp-front .vp-game-card .vp-card-kicker { display: none; }

/* Stage D: the phone games strip is a compact illustrated list. The full cards live at /play/. */
@media (max-width: 599.98px) {
  .vp-front .vp-games { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vp-front .vp-game-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 3px 12px; padding: 10px; box-shadow: 2px 2px 0 var(--ink); }
  .vp-front .vp-game-card .vp-game-poster { grid-column: 1; grid-row: 1 / span 2; width: 84px; height: 60px; margin: 0; aspect-ratio: auto; }
  .vp-front .vp-game-card .vp-card-title { font-size: 1.125rem; line-height: 1.2; }
  .vp-front .vp-game-card .vp-game-facts { font-size: var(--text-xs); line-height: 1.35; }
  .vp-front .vp-game-card .vp-card-line, .vp-front .vp-game-card .vp-card-go { display: none; }
  .vp-front .vp-ledger-art { display: none; }
  .vp-front .vp-ledger-row--art { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .vp-front .vp-ledger-row--art .vp-ledger-line { grid-column: 2; }
}

/* Compact the tool directory on phones while keeping every tool link. */
@media (max-width: 599.98px) {
  .vp-front .tools-section .vp-ledger-line { display: none; }
}
