/* ================================================================
   FILE: assets/css/core/typography.css
   PURPOSE: Modern SaaS Typography System (Outfit + Inter)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem; /* 15px standard SaaS body */
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings with Outfit */
h1, h2, h3, h4, h5, h6,
.page-title,
.section-title,
.font-heading {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(1.85rem, 3.2vw + 0.5rem, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.4rem, 2.2vw + 0.3rem, 2rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.15rem, 1.5vw + 0.2rem, 1.45rem);
    font-weight: 700;
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
}

h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Page Title & Section Title Helpers */
.page-title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw + 0.2rem, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Subtext & Monospace */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-sm {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.35;
}

.text-mono,
code,
pre,
.hash-id {
    font-family: var(--font-mono);
    font-size: 0.85em;
}
