/*
 * /preview/start — page-specific styles extracted from v5.2 mockup
 * (design/website/mockups/v5.2/start.html). Orchestrator: append
 * these to server/public/css/site.css so the foundation token system
 * stays the single source of truth.
 *
 * What's NOT here (already in site.css per task brief):
 *   - tokens (--ink-deep, --accent, --text-muted, etc.)
 *   - header/footer/sticky-cta/skip-link/eyebrow base
 *   - page-hero base (the +pageHero mixin renders into existing classes)
 *   - +ctaButton output (.btn-primary + .cursor blink)
 *   - +transcript chrome (.transcript-wrap, .transcript-bar, pre.transcript)
 *   - +worldMap output (.world-map figure)
 *
 * What IS here: the start-only layout (subnav rail/strip/select,
 * page-grid, zone), transcript inline color spans, village grid,
 * gameplay clip + bullets, first-session steps, help cards, and
 * play-now overrides.
 *
 * Color spans for the transcript content (.cmd / .npc / .chan /
 * .system / .prompt / .map / .vnum / .roomname) are scoped to
 * `pre.transcript` so they don't bleed into anything else.
 */

/* ===========================================
   PAGE-SHELL + SUB-NAV (mobile select / tablet strip / desktop rail)
   =========================================== */
.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.subnav__select-wrap {
  position: sticky;
  top: 65px;
  z-index: 30;
  background: var(--ink-deep);
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-border);
}
.subnav__select-label {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.subnav__select {
  width: 100%;
  background: var(--ink-panel);
  color: var(--text);
  border: 1px solid var(--ink-border);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  min-height: 44px;
}

.subnav__strip {
  display: none;
  position: sticky;
  top: 65px;
  z-index: 30;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--ink-border);
  padding: 8px 0;
  overflow-x: auto;
}
.subnav__strip ol {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0 4px;
}
.subnav__strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}
.subnav__strip a:hover { color: var(--text); }
.subnav__strip a[aria-current="location"] {
  color: var(--text);
  background: var(--ink-panel);
}
.subnav__strip a[aria-current="location"] .subnav__num { color: var(--accent); }
.subnav__num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-dim);
}

.page-grid {
  display: block;
  padding: 40px 0 0;
}

@media (min-width: 768px) {
  .subnav__select-wrap { display: none; }
  .subnav__strip { display: block; }
}

@media (min-width: 1024px) {
  .subnav__strip { display: none; }
  .page-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    padding: 48px 0 0;
  }
  .subnav__rail {
    position: sticky;
    top: 96px;
    align-self: start;
    padding-top: 4px;
  }
  .subnav__rail-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 14px;
  }
  .subnav__rail ol { list-style: none; }
  .subnav__rail li { border-left: 1px solid var(--ink-border); }
  .subnav__rail a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 16px;
    margin-left: -1px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 1px solid transparent;
  }
  .subnav__rail a:hover { color: var(--text); }
  .subnav__rail a[aria-current="location"] {
    color: var(--text);
    border-left-color: var(--accent-dim);
  }
  .subnav__rail a[aria-current="location"] .subnav__num { color: var(--accent); }
}
@media (max-width: 1023px) {
  .subnav__rail { display: none; }
}

.main-col { min-width: 0; }

/* ===========================================
   ZONE (each numbered section)
   =========================================== */
.zone {
  padding: 48px 0;
  border-bottom: 1px solid var(--ink-border);
  scroll-margin-top: 120px;
}
.zone:last-of-type { border-bottom: none; }
.zone h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 760px;
}
.zone p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 680px;
}
.zone p:last-of-type { margin-bottom: 0; }

.zone p code,
.zone .disclaimer code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  color: var(--accent);
  background: var(--ink-panel);
  padding: 1px 6px;
  border-radius: 3px;
}

@media (max-width: 767px) {
  .zone { padding: 36px 0; }
  .zone p { font-size: 17px; }
}

/* ===========================================
   ZONE 1: TRANSCRIPT INLINE COLOR SPANS
   The +transcript mixin provides chrome (.transcript-wrap, etc.).
   These are the inline color tokens that show up inside the <pre>.
   =========================================== */
pre.transcript .cmd { color: var(--accent); }
pre.transcript .npc { color: var(--parchment); }
pre.transcript .chan { color: var(--good); }
pre.transcript .system { color: var(--text-dim); }
pre.transcript .prompt { color: var(--text-dim); }
pre.transcript .map { color: var(--parchment-dim); }
pre.transcript .vnum { color: var(--text-dim); }
pre.transcript .roomname { color: var(--text); font-weight: 500; }

/* ===========================================
   ZONE 2: VILLAGE GRID + ACCENT FIGURE + DISCLAIMER
   =========================================== */
.villages-block {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .villages-block { grid-template-columns: 1fr 220px; gap: 28px; align-items: start; }
}

.villages-eyebrow {
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.villages-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 22px !important;
}

/* .villages / .village / .village__head / .village__glyph / .village__name
 * / .village__desc / .village.v-* moved to site.css so the +villageCard
 * mixin is properly self-contained; the start page and the world page
 * both inherit. See site.css "Village picker" block. */

.village-accent {
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  background: var(--ink-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.village-accent img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.94);
}
.village-accent figcaption {
  padding: 12px 14px 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.45;
}
.village-accent figcaption strong {
  display: block;
  color: var(--parchment);
  font-weight: 500;
  margin-bottom: 2px;
}

.disclaimer {
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 760px;
}

/* ===========================================
   ZONE 3: GAMEPLAY CLIP + BULLETS
   =========================================== */
.clip {
  margin-top: 28px;
  position: relative;
  background: var(--ink-panel);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.clip__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-deep);
  border: 1px solid var(--accent-dim);
  color: var(--text);
  padding: 14px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
}
.clip__btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.clip__btn svg { color: var(--accent); }
.clip__caption {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.feel-bullets {
  margin-top: 28px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .feel-bullets { grid-template-columns: repeat(3, 1fr); }
}
.feel-bullets li {
  border-top: 1px solid var(--ink-border);
  padding-top: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.feel-bullets strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 15px;
}

/* ===========================================
   ZONE 4: FIRST SESSION STEPS
   =========================================== */
.steps {
  margin-top: 28px;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink-border);
}
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.step-marker::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.step-tick {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.steps h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.steps p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: none;
}
.steps code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  background: var(--ink-panel);
  padding: 1px 6px;
  border-radius: 3px;
}
@media (max-width: 767px) {
  .steps li { grid-template-columns: 44px 1fr; gap: 12px; }
  .step-marker::before { font-size: 26px; }
  .step-tick { width: 12px; height: 12px; }
  .steps h3 { font-size: 21px; }
  .steps p { font-size: 16px; }
}

/* ===========================================
   ZONE 5: HELP CARDS
   =========================================== */
.help-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .help-grid { grid-template-columns: repeat(3, 1fr); }
}
.help-card {
  background: var(--ink-panel);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.help-card p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.help-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  background: var(--ink-deep);
  padding: 1px 5px;
  border-radius: 3px;
}
.help-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.help-card__link:hover { color: var(--accent-hover); }
.help-card__icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}
.help-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  display: inline-block;
}

/* ===========================================
   ZONE 6: PLAY-NOW (CTA section overrides)
   .play-now__cta is replaced by +ctaButton output (.btn-primary +
   .cursor) — already styled in site.css.
   =========================================== */
.play-now { text-align: left; }
.play-now h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}
.play-now .subhead {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 640px;
}
.play-now .subhead code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--parchment);
  background: var(--ink-panel);
  padding: 2px 6px;
  border-radius: 3px;
}
.play-now__a11y {
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===========================================
   WORLD-MAP figcaption when used inside a zone — v5.2 has slightly
   different sizing than the home-page version. If site.css already
   handles this, drop these rules.
   =========================================== */
.zone .world-map {
  margin: 32px 0 8px;
  background: var(--ink-panel);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 14px;
  overflow: hidden;
}
.zone .world-map img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  filter: saturate(0.94) contrast(1.02);
}
.zone .world-map figcaption {
  margin-top: 14px;
  padding: 0 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  letter-spacing: 0.01em;
}
@media (min-width: 1024px) {
  .zone .world-map { max-width: 900px; }
}
