/*
 * ViceWire 6 typography system
 *
 * The Forecast Desk is the reference: a restrained condensed face for true
 * mastheads, Geist for editorial and community reading, and Geist Mono for
 * compact evidence, status, and navigation labels. This versioned public file
 * is intentionally loaded outside the build bundle so returning browsers get
 * each typography revision immediately.
 */

:root {
  --vw-type-page: clamp(52px, 6.2vw, 78px);
  --vw-type-section: clamp(40px, 4.6vw, 58px);
  --vw-type-entity: clamp(30px, 3.6vw, 48px);
  --vw-type-lead: clamp(28px, 2.8vw, 38px);
  --vw-type-card: clamp(23px, 2vw, 28px);
  --vw-type-small-heading: 18px;
  --vw-type-body: clamp(15px, 1vw, 16px);
  --vw-type-meta: 9px;
}

body {
  font-family: var(--font-geist-sans), sans-serif;
  font-synthesis: none;
}

body :where(h1, .type-page-title) {
  font-family: var(--font-gta-light), sans-serif;
  font-size: var(--vw-type-page);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.025em;
}

body :where(h2, .type-section-title) {
  font-family: var(--font-gta-light), sans-serif;
  font-size: var(--vw-type-section);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

body :where(h3, h4, h5, h6, .type-card-title) {
  font-family: var(--font-geist-sans), sans-serif;
  font-size: var(--vw-type-card);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body :where(p, li, blockquote, figcaption, .type-body-copy) {
  font-size: var(--vw-type-body);
  line-height: 1.58;
  text-wrap: pretty;
}

body :where(h1, h2, h3, h4, h5, h6) {
  text-wrap: balance;
}

/* Replace the former universal 900-weight heading ceiling. */
body h1 {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-page) !important;
  font-weight: 600 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.025em !important;
}

body h2 {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-section) !important;
  font-weight: 600 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.025em !important;
}

/* Page mastheads: one confident scale across every editorial portal. */
body :is(
  .hero h1,
  .destination-portal-atlas .map-intro h1,
  .destination-hero-copy h1,
  .character-page-hero h1,
  .franchise-hero-copy h1,
  .forecast-hero-copy h1
) {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-page) !important;
  font-weight: 600 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.025em !important;
  font-synthesis: none !important;
}

/* Section mastheads: large enough to orient, never large enough to shout. */
body :is(
  .featured-head h2,
  .latest .section-heading h2,
  .character-gateway-copy h2,
  .dossier-hero h2,
  .destination-portal-guide .locations-head h2,
  .destination-portal-method h2,
  .destination-page .destination-brief h2,
  .destination-page .destination-evidence h2,
  .destination-page .destination-rumors h2,
  .destination-page .destination-unknowns h2,
  .destination-page .destination-source h2,
  .characters-intro h2,
  .character-duo-file > header h2,
  .franchise-page .aff-file > header h2,
  .franchise-page .jersey-vault > header h2,
  .franchise-page .franchise-timeline h2,
  .franchise-page .real-sports-bridge h2,
  .franchise-page .franchise-sources h2,
  .franchise-page .continuity-key h2,
  .forecast-board-heading h2,
  .forecast-method h2,
  .forecast-record h2
) {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-section) !important;
  font-weight: 600 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.025em !important;
  font-synthesis: none !important;
}

/* Selected places, people, teams, and forecasts sit between page and card. */
body :is(
  .destination-portal-atlas .region-title h2,
  .character-portrait h3,
  .team-file > h3,
  .forecast-lead-grid h3
) {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-entity) !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em !important;
  font-synthesis: none !important;
}

body :is(
  .source-sweep-copy h3,
  .dossier-update h3,
  .relationship-file > h3,
  .character-network > header h3,
  .benefit-ledger h3,
  .franchise-deep-file > header > h3
) {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: var(--vw-type-lead) !important;
  font-weight: 750 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

body :is(
  .intel-panel-copy > h3,
  .story h3,
  .featured-card h3,
  .region-grid h3,
  .profile-copy > h3,
  .release-facts h3,
  .edition-grid h3,
  .location-grid h3,
  .destination-proof-grid h3,
  .observation-grid h3,
  .destination-theory h3,
  .aff-jersey-card h3
) {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: var(--vw-type-card) !important;
  font-weight: 750 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

body :is(
  .source-sweep-card h3,
  .detail-index h3,
  .destination-place-ledger h3,
  .aff-fact-rail h3,
  .forecast-method li h3,
  .profile-copy h4,
  .relationship-file h4,
  .character-network h4,
  .rumor-heading h4,
  .rumor-cards h5,
  .franchise-deep-grid h4
) {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: var(--vw-type-small-heading) !important;
  font-weight: 720 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
}

/* Evidence, article, and portal copy follows the Forecast Desk reading voice. */
body :is(
  .hero-deck,
  .featured-head > p:last-child,
  .story p,
  .source-sweep-copy p,
  .source-sweep-card p,
  .forecast-page p,
  .destination-portal-method > header > p,
  .destination-page p,
  .characters-page p,
  .franchise-page p
) {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-weight: 450 !important;
  text-wrap: pretty !important;
}

body :is(
  .story-meta,
  .featured-meta,
  .open-file,
  .featured-card button > p,
  .featured-card a > p,
  .forecast-call-label
) {
  font-family: var(--font-geist-mono), monospace !important;
  font-variant-numeric: tabular-nums;
}

/* Featured Files: keep the already-approved hierarchy in the shared layer. */
.featured-head h2 {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-section) !important;
  font-weight: 600 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.025em !important;
}

.featured-head > p:last-child {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: 16px !important;
  font-weight: 450 !important;
  line-height: 1.58 !important;
  text-wrap: pretty !important;
}

.featured-card > button,
.featured-card > a {
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.featured-image > span {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: clamp(58px, 4.8vw, 68px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 2px 2px 0 var(--ink) !important;
}

.featured-image > b {
  padding: 10px 12px !important;
  font-family: var(--font-geist-mono), monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.035em !important;
}

.featured-meta {
  gap: 12px !important;
  margin: 16px 0 13px !important;
  font-family: var(--font-geist-mono), monospace !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.035em !important;
  font-variant-numeric: tabular-nums !important;
}

.featured-meta > span {
  font-weight: 780 !important;
}

.featured-meta > small {
  color: var(--muted) !important;
  font: inherit !important;
  font-weight: 650 !important;
}

.featured-card h3 {
  max-width: 100% !important;
  margin: 0 !important;
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: var(--vw-type-card) !important;
  font-weight: 750 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
  text-wrap: balance !important;
}

.featured-card button > p,
.featured-card a > p {
  display: inline-flex !important;
  width: max-content !important;
  min-height: 44px !important;
  align-items: center !important;
  align-self: flex-start !important;
  margin: auto 0 0 !important;
  padding: 18px 0 5px !important;
  border-bottom: 1px solid currentColor !important;
  font-family: var(--font-geist-mono), monospace !important;
  font-size: 10px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em !important;
}

/* Community mastheads use the same restraint; dynamic titles use Geist. */
body :is(
  .community-page .community-hero-copy h1,
  .community-page .community-reputation-header h1,
  .community-page .settings-hero h1,
  .drawing-hero h1,
  .passkey-guide-hero h1
) {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-page) !important;
  font-weight: 600 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.025em !important;
  font-synthesis: none !important;
}

.community-page .community-channel-masthead h1 {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: clamp(44px, 5vw, 64px) !important;
  font-weight: 600 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.02em !important;
}

.community-page .topic-hero h1 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(36px, 4vw, 52px) !important;
  font-weight: 750 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

.drawing-public-copy h1 {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-section) !important;
  font-weight: 600 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.025em !important;
}

body :is(
  .community-page .community-rail-heading h2,
  .passkey-guide-page .passkey-security h2,
  .passkey-guide-page .passkey-guide-section h2,
  .drawing-section-head h2
) {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-section) !important;
  font-weight: 600 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.025em !important;
  white-space: normal !important;
  text-wrap: balance !important;
}

body :is(
  .passkey-guide-page .passkey-guide-support h2,
  .passkey-guide-page .passkey-guide-cta h2,
  .community-page .reply-desk-heading h2,
  .community-page .community-wide-recent h2
) {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 600 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.02em !important;
}

body :is(
  .community-page .community-panel > h2,
  .community-page .settings-card header h2
) {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(28px, 3.5vw, 40px) !important;
  font-weight: 750 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

.community-page .settings-card header h2 {
  font-size: clamp(28px, 2.7vw, 36px) !important;
  line-height: 1.06 !important;
}

body :is(
  .community-page .community-channel-missing h2,
  .community-page .topic-missing h1,
  .community-page .settings-signed-out h1,
  .drawing-load-error h1
) {
  font-family: var(--font-gta-light), sans-serif !important;
  font-size: var(--vw-type-section) !important;
  font-weight: 600 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.025em !important;
}

/* Dense forum and member UI: legible, compact, and sentence-case. */
.community-board-group-head h3 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

.community-board-heading > b {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: 19px !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
}

.community-page .community-topic h3 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(20px, 1.8vw, 22px) !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

.community-page .community-recent-post h3 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(18px, 1.5vw, 20px) !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
}

.community-page .community-profile-card h2 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(22px, 2vw, 26px) !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
}

.community-page .community-passkey-card h2 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(26px, 2vw, 30px) !important;
  font-weight: 750 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
}

body :is(
  .passkey-security-grid h3,
  .passkey-steps h3,
  .passkey-guide-support h3
) {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
}

.drawing-entry-card h2 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(28px, 2.8vw, 34px) !important;
  font-weight: 750 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em !important;
}

.drawing-winners header h3 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: clamp(24px, 2.2vw, 28px) !important;
  font-weight: 750 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
}

.community-page .topic-hero-metrics > strong b,
.site-stat strong {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  font-variant-numeric: tabular-nums;
}

.community-page .community-post > aside h2 {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: var(--post-handle-size, 20px) !important;
  font-weight: 750 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
}

.community-handle-cta strong {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
}

body :is(
  .site-context-nav a,
  .site-toolbar-menu b,
  .site-toolbar-account .community-join-mini::after,
  .site-toolbar-account .community-signout::after
) {
  font-family: var(--font-geist-mono), monospace !important;
}

.site-context-nav a {
  font-size: 9px !important;
}

.site-toolbar-menu b {
  font-size: 8px !important;
}

.site-toolbar-account .community-join-mini::after,
.site-toolbar-account .community-signout::after {
  font-size: 10px !important;
}

.member-role-copy small {
  font-size: max(8px, 0.5rem) !important;
}

.member-role-badge.compact .member-role-copy strong {
  font-family: var(--font-geist-sans), sans-serif !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

@media (max-width: 760px) {
  :root {
    --vw-type-page: clamp(44px, 12vw, 60px);
    --vw-type-section: clamp(36px, 10vw, 46px);
    --vw-type-card: clamp(21px, 6.6vw, 28px);
    --vw-type-body: clamp(15px, 4vw, 16px);
    --vw-type-entity: 32px;
    --vw-type-lead: 30px;
  }

  .featured-image > span {
    font-size: 56px !important;
  }

  .community-page .community-channel-masthead h1 {
    font-size: clamp(40px, 11vw, 48px) !important;
  }

  .community-page .topic-hero h1 {
    font-size: clamp(30px, 9vw, 40px) !important;
  }

  body :is(
    .passkey-guide-page .passkey-guide-support h2,
    .passkey-guide-page .passkey-guide-cta h2,
    .community-page .reply-desk-heading h2
  ) {
    font-size: clamp(32px, 9vw, 36px) !important;
  }

  .community-page .community-wide-recent h2 {
    font-size: 36px !important;
  }

  body :is(
    .community-page .community-panel > h2,
    .community-page .settings-card header h2
  ) {
    font-size: clamp(26px, 7vw, 34px) !important;
  }

  body :is(
    .community-page .community-channel-missing h2,
    .community-page .topic-missing h1,
    .community-page .settings-signed-out h1,
    .drawing-load-error h1,
    .drawing-public-copy h1
  ) {
    font-size: clamp(36px, 10vw, 40px) !important;
  }

  .community-board-group-head h3 {
    font-size: 21px !important;
  }

  .community-board-heading > b {
    font-size: 18px !important;
  }

  .community-page .community-topic h3 {
    font-size: clamp(18px, 5.4vw, 20px) !important;
  }

  .community-page .community-profile-card h2 {
    font-size: clamp(22px, 6vw, 26px) !important;
  }

  .community-page .community-passkey-card h2 {
    font-size: clamp(26px, 7vw, 28px) !important;
  }

  body :is(
    .passkey-security-grid h3,
    .passkey-steps h3,
    .passkey-guide-support h3
  ) {
    font-size: clamp(18px, 5.5vw, 22px) !important;
  }

  .drawing-entry-card h2 {
    font-size: clamp(26px, 7vw, 30px) !important;
  }

  .community-page .topic-hero-metrics > strong b,
  .site-stat strong {
    font-size: 24px !important;
  }

  .site-toolbar-account .community-join-mini::after,
  .site-toolbar-account .community-signout::after {
    font-size: 9px !important;
  }
}

@media (max-width: 380px) {
  :root {
    --vw-type-page: clamp(44px, 13vw, 44px);
  }
}
