/* ==========================================================
   SKY'S HOME - BASE & TOKENS (styles/home/base.css)
   ========================================================== */

/* 1. Fontes Oficiais WOFF2 */

@font-face {
    font-family: 'Cardinal Classic';
    src: url('../../assets/fonts/CardinalClassicMidWeb-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cardinal Classic';
    src: url('../../assets/fonts/CardinalClassicMidWeb-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cardinal Classic';
    src: url('../../assets/fonts/CardinalClassicMidWeb-MediumItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Tight';
    src: url('../../assets/fonts/InterTight-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../../assets/fonts/Oswald-VariableFont_wght.woff2') format('woff2');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

/* 2. Variáveis Globais */

:root {
    --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Cardinal Classic', Georgia, "Times New Roman", serif;
    --font-condensed: 'Oswald', 'Arial Narrow', sans-serif;
    --font-serif: 'Hedvig Letters Serif', Georgia, serif;
    --font-heading: 'Hedvig Letters Serif', 'Cormorant Garamond', Georgia, serif;
    --font-modern: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

    --bg-dark: #0a0e17;
    --bg-white: #FAFAF9;
    --text-white: #FAFAF9;
    --text-dark: #12161f;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-muted-dark: #585d68;

    --wd_orange: #e45b34;
    --wd_deep-blue: #0b1528;

    --gutter-x: clamp(1.2rem, 2.5vw, 2.4rem);
    --container-max: 154rem;
    --container-pad: clamp(1.6rem, 3.5vw, 4.8rem);
    --grid-columns: 12;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 3. Reset */

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

html {
    font-size: 62.5%; /* 1rem = 10px */
    background-color: var(--bg-dark);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--bg-dark);
    color: var(--text-white);
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* 4. Sistema de Layout e Grid */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.container-large {
    width: 100%;
    max-width: 180rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* 5. Linhas de Grid Verticais de Fundo (Assinatura do White Desert) */

.grid-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.grid-lines__line {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    height: 100vh;
}

.grid-lines__line:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Containers */

html {
    scroll-behavior: smooth;
}

#smooth-wrapper {
    position: relative;
    width: 100%;
}

#smooth-content {
    width: 100%;
    overflow: visible;
}
