/* ==========================================
   GLOBAL TYPOGRAPHY SYSTEM
   Treasure Pelo Industries
========================================== */

/* ==========================================
   BASE TYPOGRAPHY
========================================== */

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--color-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   HEADINGS
========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    color: var(--color-heading);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--font-size-4xl);
    line-height: 1.08;
}

h2 {
    font-size: var(--font-size-3xl);
    line-height: 1.12;
}

h3 {
    font-size: var(--font-size-2xl);
    line-height: 1.2;
}

h4 {
    font-size: var(--font-size-xl);
    line-height: 1.28;
}

h5 {
    font-size: var(--font-size-lg);
    line-height: 1.35;
}

h6 {
    font-size: var(--font-size-base);
    line-height: 1.45;
    letter-spacing: 0;
}

/* ==========================================
   BODY TEXT
========================================== */

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

small {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

strong,
b {
    font-weight: var(--font-weight-semibold);
}

em,
i {
    font-style: italic;
}

/* ==========================================
   LINKS
========================================== */

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary);
    text-decoration: none;
}

/* ==========================================
   LISTS
========================================== */

ul,
ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.45rem;
    line-height: var(--line-height-base);
}

/* ==========================================
   REUSABLE TEXT UTILITIES
========================================== */

.text-xs {
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

.text-sm {
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.text-base {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.text-md {
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.text-lg {
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.text-xl {
    font-size: var(--font-size-xl);
    line-height: 1.45;
}

.text-lead {
    font-size: var(--font-size-md);
    line-height: 1.75;
    color: var(--color-text-muted);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-white {
    color: var(--color-white);
}

.text-gold {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-semibold {
    font-weight: var(--font-weight-semibold);
}

.text-bold {
    font-weight: var(--font-weight-bold);
}

/* ==========================================
   DISPLAY AND SECTION TYPOGRAPHY
========================================== */

.display-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: var(--font-weight-extra-bold);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-copy {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-muted);
}

.eyebrow-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.eyebrow-text::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.meta-text {
    font-size: var(--font-size-xs);
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.compact-copy {
    font-size: var(--font-size-sm);
    line-height: 1.65;
}

/* ==========================================
   DARK SECTION TYPOGRAPHY
========================================== */

.section-dark,
.dark-section {
    color: rgba(255, 255, 255, 0.78);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section h5,
.dark-section h6 {
    color: var(--color-white);
}

.section-dark .section-copy,
.dark-section .section-copy {
    color: rgba(255, 255, 255, 0.72);
}

/* ==========================================
   RESPONSIVE TYPOGRAPHY
========================================== */

@media (max-width: 991.98px) {
    .display-title {
        letter-spacing: -0.035em;
    }

    .section-heading {
        letter-spacing: -0.025em;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.95rem;
    }

    h1 {
        line-height: 1.12;
    }

    h2 {
        line-height: 1.16;
    }

    h3,
    h4 {
        line-height: 1.28;
    }

    p {
        margin-bottom: 0.95rem;
    }

    .display-title {
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .section-heading {
        line-height: 1.16;
    }

    .text-lead {
        font-size: var(--font-size-base);
        line-height: var(--line-height-base);
    }

    .eyebrow-text {
        font-size: 0.7rem;
        gap: 8px;
    }

    .eyebrow-text::before {
        width: 26px;
    }
}

@media (max-width: 480px) {
    .display-title {
        line-height: 1.1;
    }

    .section-heading {
        line-height: 1.18;
    }
}