/* Homepage-only typography refinement. Shared public and app surfaces keep
 * their existing type systems; every selector in this file is body-scoped. */

.city-page {
  --home-body-size: clamp(1.0625rem, 1.15vw, 1.125rem);
  --home-body-leading: 1.45;
  --home-body-measure: 62ch;
  --home-small-body-size: 1rem;
  --home-label-size: 0.75rem;
  --city-font-display: "Space Grotesk", "Avenir Next", Avenir, system-ui, sans-serif;
  --city-font-body: "Manrope", "Avenir Next", Avenir, system-ui, -apple-system, sans-serif;
  font-family: var(--city-font-body);
  font-kerning: normal;
}

/* Keep the homepage wordmark typographic: Vault carries the name while Proof
 * resolves at a quieter weight. */
.city-page .vp-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--city-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.city-page .vp-brand__proof {
  font-weight: 400;
}

/* The opening journey uses one display face. Uppercase roles receive the
 * tracking they need instead of relying on loose leading or extra families. */
.city-page .earth-chapter h1,
.city-page .earth-chapter h2,
.city-page .earth-risk-telemetry__cell dt {
  font-family: var(--city-font-display);
  font-synthesis: none;
}

.city-page .earth-chapter--hero h1 {
  max-width: 15ch;
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.02;
}

.city-page .earth-chapter h2 {
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1;
}

.city-page .earth-risk-telemetry__cell dt {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

/* Reading roles share one measured, calm rhythm. */
.city-page .earth-chapter__hero-subtitle,
.city-page .earth-chapter__copy > p:not([class]),
.city-page .city-section-heading > p:last-child,
.city-page .city-mcp__copy > p,
.city-page .city-closing__copy > p {
  max-width: var(--home-body-measure);
  font-family: var(--city-font-body);
  font-size: var(--home-body-size);
  font-weight: 400;
  line-height: var(--home-body-leading);
}

.city-page .earth-chapter--hero .earth-chapter__hero-subtitle {
  max-width: 58ch;
}

.city-page .city-ledger__row div p,
.city-page .city-step p,
.city-page .city-mcp__boundary,
.city-page .city-mcp__note {
  font-size: var(--home-small-body-size);
  line-height: 1.45;
}

.city-page .city-explainer__copy h2,
.city-page .city-section-heading h2,
.city-page .city-mcp__copy h2,
.city-page .city-closing__copy h2 {
  font-family: var(--city-font-display);
  line-height: 1;
}

.city-page .city-explainer__inner {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(32px, 4vw, 48px);
}

.city-page .city-explainer__copy {
  width: 100%;
  text-align: center;
}

.city-page .city-explainer__copy h2 {
  max-width: none;
  font-size: clamp(2.2rem, 3.75vw, 3.375rem);
  white-space: nowrap;
}

.city-page .city-explainer__copy > h2 + p {
  margin-inline: auto;
  text-align: center;
}

.city-page .city-explainer__media {
  width: min(100%, 960px);
}

/* The post-scroll proof is intentionally text-led. The former illustrative
 * plates are retired, leaving the evidence rows and closing action in a
 * simpler reading sequence. */
.city-page .city-proof__intro {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(46px, 5vw, 68px);
}

.city-page .city-proof__intro .city-section-heading {
  max-width: 760px;
}

.city-page .city-proof .city-section-heading h2,
.city-page .city-closing__copy h2 {
  font-size: clamp(2.2rem, 3.75vw, 3.375rem);
  line-height: 1;
}

.city-page .city-proof__intro .city-section-heading > p:last-child {
  max-width: 62ch;
  margin-top: 18px;
  font-family: var(--city-font-body);
  font-size: var(--home-body-size);
  line-height: var(--home-body-leading);
}

.city-page .city-closing__inner {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.city-page .city-closing__copy {
  max-width: 760px;
}

.city-page .city-closing__copy > p {
  margin-inline: auto;
}

.city-page .city-closing__actions {
  justify-content: center;
}

/* Center only the major post-scroll statements. Operational row and step
 * headings stay left aligned for fast scanning. */
.city-page .city-proof__intro .city-section-heading,
.city-page .city-steps > .city-steps__inner > .city-section-heading {
  margin-inline: auto;
}

.city-page .city-steps > .city-steps__inner > .city-section-heading {
  display: block;
  width: 100%;
}

.city-page .city-proof__intro .city-section-heading h2,
.city-page .city-steps > .city-steps__inner > .city-section-heading h2,
.city-page .city-mcp__copy h2 {
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

.city-page .city-proof__intro .city-section-heading > p:last-child,
.city-page .city-mcp__copy > h2 + p {
  margin-inline: auto;
  text-align: center;
}

/* Metadata stays compact without falling below the reliable UI reading floor. */
.city-page .earth-journey__rail a,
.city-page .earth-journey__rail a span,
.city-page .earth-journey__rail a strong,
.city-page .earth-risk-telemetry,
.city-page .earth-risk-telemetry__source,
.city-page .earth-risk-telemetry__qualifier,
.city-page .city-ledger__state,
.city-page .city-mcp__assurance dt,
.city-page .city-mcp__scope,
.city-page .city-mcp__tool-index {
  font-size: var(--home-label-size);
  line-height: 1.35;
}

.city-page .earth-journey__rail a strong,
.city-page .city-ledger__state,
.city-page .city-mcp__assurance dt {
  letter-spacing: 0.08em;
}

.city-page .city-receipt dd,
.city-page .city-mcp__assurance dd,
.city-page .city-mcp__scope,
.city-page .city-mcp__contract,
.city-page code {
  font-variant-numeric: tabular-nums lining-nums;
}

@media (max-width: 820px) {
  .city-page .vp-brand {
    min-height: 40px;
    font-size: 1.18rem;
  }

  .city-page .earth-chapter--hero h1,
  .city-page .earth-chapter h2 {
    letter-spacing: 0.045em;
  }
}

@media (max-width: 560px) {
  .city-page {
    --home-body-size: 1rem;
    --home-body-leading: 1.48;
    --home-body-measure: 36ch;
  }

  .city-page .earth-chapter--hero h1 {
    letter-spacing: 0.035em;
  }

  .city-page .city-explainer__copy h2 {
    max-width: 22ch;
    margin-inline: auto;
    font-size: clamp(1.1rem, 5.1vw, 1.3rem);
    white-space: normal;
  }
}
