/* Shared reading scale for Halo Rewind's public pages. */
:root { --max: 1440px; }
body { font-size: 1rem; }
.nav a, .footer-nav a, .button, .text-link { font-size: 1rem; }
.brand-label, .footer .brand-label { font-size: .75rem; letter-spacing: .055em; }
.breadcrumb, .breadcrumb a, .footer-bottom p, .footer-credit {
  font-size: .875rem;
  line-height: 1.55;
}
.page-hero p, .command-description, .story-intro-copy p, .story-section-top p,
.story-card p, .story-banner p, .story-bridge-head p, .story-bridge-link p,
.download-resources p, .download-warning, .faq-title p, .faq details p,
.release-band p, .section-heading p, .playlist-panel > p, .stats-explainer p,
.sim-introline p, .sim-panel-head p, .sim-dir-top p, .sim-method p, .sim-note {
  font-size: 1rem;
  line-height: 1.6;
}
.faq summary, .release-band a, .sim-input, .sim-select, .sim-player-item strong {
  font-size: 1rem;
}
.hero-requirement, .hero-command-footer, .release-tag, .playlist-heading,
.playlist-tags li, .roadmap-updated, .roadmap-legend, .roadmap-note, .roadmap-open-note span,
.map-note, .map-info p, .playlist-row p, .playlist-row > span, .resource-status,
.download-meta, .download-card-top p, .story-art-caption span,
.sim-stat span, .sim-stat small, .sim-table th, .sim-table small,
.sim-result-count, .sim-player-item small, .sim-profile-metrics span,
.sim-chart-legend, .sim-ledger-tools label, .sim-pagination, .sim-btn {
  font-size: .875rem;
  letter-spacing: .025em;
}
.sim-table { font-size: .9375rem; }
.sim-btn { min-height: 44px; }
.svc-content { scroll-margin-top: 12px; }

@media (max-width: 600px) {
  .site-header .brand-label { font-size: .6875rem; }
  .nav a, .footer-nav a { font-size: .9375rem; }
  .footer-bottom { overflow-wrap: anywhere; }
}

/* Let desktop sections use the viewport while keeping prose readable. */
@media (min-width: 1100px) {
  html { font-size: clamp(17px, calc(14px + .32vw), 25px); }

  .shell,
  body[data-page="stats"] .page-hero > .shell,
  body[data-page="stats"] .stats-main > .shell {
    width: calc(100% - clamp(56px, 7vw, 200px));
  }

  .site-header .brand img { width: 56px; height: 56px; }
  .site-header .brand-name { font-size: 1.2rem; }

  .rewind-hero { padding-top: clamp(110px, 12vh, 158px); min-height: 0; }

  .hero-command {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 4vw, 112px);
    min-height: clamp(470px, min(34vw, 70vh), 850px);
  }

  .command-copy h1 {
    max-width: none;
    font-size: clamp(76px, min(6.8vw, 14vh), 184px);
    letter-spacing: -.04em;
  }

  .command-copy .button { font-size: 1rem; min-height: 3rem; }
  .command-description,
  .experience-copy > p:not(.eyebrow) {
    max-width: 53ch;
    font-size: 1.075rem;
    line-height: 1.55;
  }

  .holo-system {
    max-width: min(100%, clamp(420px, min(36vw, 72vh), 980px));
    justify-self: center;
  }

  .experience-grid { gap: clamp(42px, 5vw, 130px); }
  .field-image, .field-image > img { height: clamp(460px, 33vw, 860px); }
  .system-features h3 { font-size: 1.05rem; }
  .system-features p { font-size: .95rem; line-height: 1.55; }

  .page-hero h1,
  .story-hero h1,
  .section h2,
  .rewind-experience h2,
  .story-section h2,
  .join-inner h2 {
    font-size: clamp(46px, 3.8vw, 105px);
  }

  .page-hero p, .story-section-top p { max-width: 58ch; }
  .svc-search { grid-template-columns: minmax(0, 1fr) minmax(320px, 36%); }
  .svc-history-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
