/* ==========================================================================
   Global Variables & Reset
   ========================================================================== */

@font-face {
    font-family: 'HelveticaNeue BlackCond';
    src: url('../assets/fonts/Helvetica Neue 97 Black Condensed.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Monochrome Palette (Inverted) */
    --clr-black: #fcfcfc;
    --clr-white: #050505;
    --clr-grey-dark: #e0e0e0;
    --clr-grey-light: #1a1a1a;

    /* Typography */
    --font-primary: 'HelveticaNeue BlackCond', 'Helvetica Neue Black Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;


    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --space-xl: 10rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-cinematic: 1.2s cubic-bezier(0.2, 0, 0, 1);
}

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

/* Custom Cursor (hidden on touch) */
body {
    background-color: var(--clr-black);
    color: var(--clr-white);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}

p {
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

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

/* Selection */
::selection {
    background: var(--clr-white);
    color: var(--clr-black);
}

/* Utilities */
.stark-headline {
    font-size: clamp(3rem, 10vw, 12rem);
    line-height: 0.9;
}

.outlined-text {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px currentColor;
    color: inherit; /* Ensures currentColor takes from parent */
    transition: -webkit-text-fill-color 0.8s ease, -webkit-text-stroke 0.8s ease;
}

/* Custom Cursor Elements */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-white);
    transition: transform var(--transition-fast);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(5, 5, 5, 0.5);
    /* Semi-transparent black */
    transition: width var(--transition-fast), height var(--transition-fast), background-color var(--transition-fast);
}

.cursor-outline.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(5, 5, 5, 0.1);
    border-color: transparent;
}

.cursor-dot.video-hovering {
    background-color: #fcfcfc;
}

.cursor-outline.video-hovering {
    border-color: rgba(252, 252, 252, 0.8);
    background-color: rgba(252, 252, 252, 0.08);
}

@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}
