/* MARTE-D / V10.4 TYPOGRAPHY REFINEMENT
   SpaceX-inspired editorial restraint, with an original softer font system.
   This file is loaded last so future engineering modules can retain their layout. */

:root{
  --head:'Manrope','Segoe UI',Arial,sans-serif;
  --body:'Manrope','Segoe UI',Arial,sans-serif;
  --mono:'Manrope','Segoe UI',Arial,sans-serif;
  --technical:'IBM Plex Mono',Consolas,monospace;
}

html{font-synthesis:none}
body{
  font-family:var(--body);
  font-optical-sizing:auto;
  font-weight:400;
  letter-spacing:.002em;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

/* Softened geometric headings, keeping the cinematic hierarchy. */
h1,h2,h3,h4,
.v5-hero h1,.v8-hero h1,.v9-hero h1,.v10-hero h1,
.v8-section h2,.v9-section h2,.v10-heading h2{
  font-family:var(--head);
  letter-spacing:-.039em;
  font-weight:700;
}
h1,h2{line-height:1.08}
h3,h4{letter-spacing:-.026em;line-height:1.25}
.hero-title{
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(60px,6.1vw,105px);
  letter-spacing:-.057em;
  line-height:1.005;
}
.hero-title .grad span{display:inline}
.page-hero h1,.v8-hero h1,.v9-hero h1,.v10-hero h1{
  font-weight:700;
  letter-spacing:-.046em;
  line-height:1.06;
}
.v8-feature-inner h2,.v8-command-ribbon h2,
.v8-section h2,.v9-section h2,.v10-heading h2,
.v10-home-inner h2,.v9-ribbon h2,.v8-panel h3,.v9-panel h3,.v10-panel h3{
  font-weight:700;
  letter-spacing:-.036em;
}

/* SpaceX-like restrained, widely tracked navigation and interface labels. */
.nav-links a:not(.btn),.mobile-panel a,.nav-more summary,
.header-cta,.btn,.btn-outline,.btn-primary,
.v5-mainnav a,.footer-top b,
.v7-btn,.v7-link,.v7-context-link,.v8-btn,.v8-file-label,
.v9-button,.v9-action-link,.v9-mini-btn,
.v10-actions button,.v10-form>button,.v10-source-links a,.v10-mini-button,
.v10-home-links a{
  font-family:var(--body);
  font-weight:700;
  letter-spacing:.055em;
}
.nav-links a:not(.btn),.nav-more summary{letter-spacing:.075em}
button,input,select,textarea{font-family:var(--body)}

/* More comfortable running text while maintaining existing panel structure. */
.lead,.page-hero p,.v8-hero p,.v9-hero p,.v10-hero p,
.v8-panel p,.v9-panel p,.v10-panel p,
.v8-launch-link p,.v9-ribbon p,.v10-home-inner p,
.v8-launch-item small,.v9-empty,.v10-fine,.v10-science-note{
  font-family:var(--body);
  letter-spacing:.004em;
}

/* Move dense diagnostic strings back onto a technical mono font.
   General labels deliberately use Manrope to avoid a boxy old-console look. */
.mono,code,pre,kbd,samp,.v9-api-path,.v9-source-values strong,
.v8-status,.v9-state,.v10-message{
  font-family:var(--technical);
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
}
.v8-status,.v10-message{font-family:var(--technical)!important}

/* No overflow caused by the rounded glyph widths on small screens. */
@media(max-width:760px){
  .hero-title{letter-spacing:-.052em;line-height:1.025}
  .page-hero h1,.v8-hero h1,.v9-hero h1,.v10-hero h1{letter-spacing:-.041em}
  .nav-links a:not(.btn){letter-spacing:.045em}
}
@media(max-width:390px){
  .hero-title{font-size:clamp(52px,13.5vw,74px)}
  .v8-hero h1,.v9-hero h1,.v10-hero h1{overflow-wrap:break-word}
}
