/*
 * Typography — ported from theme/Typography.kt.
 *
 * Three families, self-hosted so nothing depends on Google Fonts at runtime.
 * The URLs are absolute: this stylesheet is served from a per-build /v/<hash>/
 * directory while the fonts are not versioned, so relative paths would resolve
 * into the version tree and 404.
 * The Compose port needed Inter to stand in for the design's Helvetica because
 * Skia on Wasm ships no system fonts; here the real stack is available, but Inter
 * is kept so the two renderings match while both exist.
 *
 * Each style is a class rather than a bare element selector: the markup says
 * which style it wants, the same way a composable passes `typo.heroTitle`.
 * Sizes that track the layout scale use clamp() instead of a computed factor.
 */

@font-face {
    font-family: "Inter";
    src: url("/assets/font/inter_regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/assets/font/inter_bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("/assets/font/instrument_serif_regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/font/jetbrains_mono_regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/font/jetbrains_mono_bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --font-sans: "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Header ------------------------------------------------------------- */
.typo-wordmark {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.typo-nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.06em;
}
.typo-nav-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.2;
}

/* --- Hero --------------------------------------------------------------- */
.typo-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.typo-hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    /* 82px on the 1280px artboard, down to 40px compact — the display sizes
       track the viewport, body copy does not. */
    font-size: clamp(40px, 6.4vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.typo-hero-body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
}

/* --- Products ----------------------------------------------------------- */
.typo-product-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(34px, 2.9vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.typo-product-body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
}
.typo-explore-link {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.2;
}
.typo-badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.typo-media-caption {
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.2;
}

/* --- Sections (waitlist) ------------------------------------------------ */
.typo-section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.typo-section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.typo-section-body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
}
.typo-chip {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.2;
}
.typo-field {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.3;
}
.typo-button {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
.typo-footnote {
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.4;
}

/* --- Contacts ----------------------------------------------------------- */
.typo-contact-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.typo-contact-value {
    font-family: var(--font-sans);
    font-size: 19px;
    line-height: 1.25;
}
.typo-contact-body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Footer ------------------------------------------------------------- */
.typo-footer {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
}

/* Compact artboard (design option 3a) — body copy shrinks a little. */
@media (max-width: 900px) {
    .typo-wordmark { font-size: 12.5px; }
    .typo-hero-body { font-size: 14.5px; line-height: 1.6; }
    .typo-eyebrow { font-size: 10px; }
    .typo-product-body { font-size: 14px; }
    .typo-badge { font-size: 9.5px; }
    .typo-section-label { font-size: 10px; }
    .typo-section-body { font-size: 14px; }
    .typo-chip { font-size: 13px; }
    .typo-contact-value { font-size: 16px; }
    .typo-contact-body { font-size: 13.5px; }
    .typo-footnote,
    .typo-footer { font-size: 10px; }
}
