/* ==========================================================================
   Base Styles - Stellar Creations x3
   @font-face declarations, CSS reset, and base typography.
   Depends on: tokens.css (loaded before this file)
   ========================================================================== */

/* ==========================================================================
   @font-face - Self-hosted Poppins WOFF2
   Source: @fontsource/poppins v5.2.7
   Subsets: latin, latin-ext (for Spanish/bilingual support)
   The url() paths here MUST match the preload hrefs in head.html exactly.
   ========================================================================== */

/* Poppins Regular (400) - Latin Extended */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins Regular (400) - Latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
        U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins SemiBold (600) - Latin Extended */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins SemiBold (600) - Latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
        U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins Bold (700) - Latin Extended */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins Bold (700) - Latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
        U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   CSS Reset - Based on Josh Comeau's Modern CSS Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    line-height: 1.6;
    font-family: var(--sc-font-family);
    font-size: var(--sc-font-size-base);
    color: var(--sc-color-text);
    background-color: var(--sc-color-bg);
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* ==========================================================================
   Base Typography - sc- prefixed classes
   ========================================================================== */

.sc-h1 {
    font-size: var(--sc-font-size-3xl);
    font-weight: var(--sc-font-weight-bold);
    line-height: 1.2;
}

.sc-h2 {
    font-size: var(--sc-font-size-2xl);
    font-weight: var(--sc-font-weight-bold);
    line-height: 1.3;
}

.sc-h3 {
    font-size: var(--sc-font-size-xl);
    font-weight: var(--sc-font-weight-semibold);
    line-height: 1.3;
}

.sc-h4 {
    font-size: var(--sc-font-size-lg);
    font-weight: var(--sc-font-weight-semibold);
    line-height: 1.4;
}

.sc-p {
    line-height: 1.6;
}

.sc-link {
    color: var(--sc-color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--sc-transition-fast);
}

.sc-link:hover {
    color: var(--sc-color-secondary);
}

.sc-link:focus-visible {
    outline: 2px solid var(--sc-color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}
