/* ==========================================================================
   1. FONDID (@font-face) - WOFF2 Formaat
   ========================================================================== */

@font-face {
    font-family: 'Denim INK';
    src: url('../fonts/DenimINK-TRIAL-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denim INK';
    src: url('../fonts/DenimINK-TRIAL-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denim INK';
    src: url('../fonts/DenimINK-TRIAL-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denim INK';
    src: url('../fonts/DenimINK-TRIAL-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denim INK';
    src: url('../fonts/DenimINK-TRIAL-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denim INK';
    src: url('../fonts/DenimINK-TRIAL-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. GLOBAALSED MUUTUJAD (CSS Variables)
   ========================================================================== */

:root {
    /* Värvipalett (vajab Karli brändi täpseid HEX koode) */
    --color-bg: #000000;
    --color-text: #FFFFFF;
    --color-primary: #D4AF37; /* Näiteks kuldne/oranž */
    
    /* Tüpograafia skaala (Vedel tüpograafia clamp abil) */
    --font-main: 'Denim INK', sans-serif;
    
    /* Tekstisuurused, mis skaleeruvad automaatselt mobiilist desktopini */
    --text-sm: clamp(0.875rem, 0.8vw + 0.5rem, 1rem);
    --text-base: clamp(1rem, 1vw + 0.5rem, 1.125rem);
    --text-lg: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem);
    
    /* Pealkirjade suurused */
    --heading-1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --heading-2: clamp(2rem, 4vw + 1rem, 3.5rem);
}

/* ==========================================================================
   3. BAAS-STILISTIKA (Reset & Base)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 400; /* Regular */
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pealkirjade baas */
h1, h2, h3 {
    font-weight: 700; /* Bold */
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--heading-1);
    font-weight: 900; /* Heavy */
}

h2 {
    font-size: var(--heading-2);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text);
}