@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-mono-latin-ext.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;
}

@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-mono-latin.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;
}

:root {
    --bg-color: hsl(0, 0%, 4%);
    --text-color: hsl(0, 0%, 63.9%);
    --text-hover: hsla(0, 0%, 98%, 0.8);
    --text-heading: hsl(0, 0%, 90%);
    --text-heading-hover: hsla(0, 0%, 90%, 0.5);

    --border: hsl(0 0% 14%);
    --button-bg: hsla(0, 0%, 11%, 0.35);
    
    --card-bg: hsla(0, 0%, 10.2%, 0.35);
    --card-bg-hover: hsla(0, 0%, 14.9%, 0.45);
    --card-border-hover: hsl(0, 0%, 30%);
    --card-logo-icon: hsl(0, 0%, 0%);
    --accent-strong: hsla(0, 0%, 90%, 0.85);
    --nav-bg: transparent;
   
    --text-hero: 2rem;
    --text-large: 1.5rem;
    --text-medium: 1.25rem;
    --text-small: 1rem;
    --text-xs: 0.75rem;
   
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    
    --error-color: hsl(0, 84%, 60%);
    --error-bg: hsla(0, 84%, 60%, 0.1);
    --error-border: hsla(0, 84%, 60%, 0.3);

    --success-color: hsl(160, 84%, 39%);
    --success-bg: hsla(160, 84%, 39%, 0.1);
    --success-border: hsla(160, 84%, 39%, 0.3);

    --info-color: hsl(221, 83%, 60%);
    --info-bg: hsla(221, 83%, 60%, 0.1);
    --info-border: hsla(221, 83%, 60%, 0.3);

    --warning-color: hsl(38, 92%, 50%);
    --warning-bg: hsla(38, 92%, 50%, 0.1);
    --warning-border: hsla(38, 92%, 50%, 0.3);

    --color-valid: #22c55e;
    --color-valid-bg: rgba(34, 197, 94, 0.05);
    --color-invalid: #ef4444;
    --color-invalid-bg: rgba(239, 68, 68, 0.05);


    --radius-sm: .25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;

    
    --gap-xs: .25rem;
    --gap-sm: .5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;
    --gap-2xl: 2.5rem;

    
    --shadow-md: 0 4px 12px hsla(0, 0%, 0%, 0.15);
    --shadow-lg: 0 4px 20px hsla(0, 0%, 0%, 0.5);

    
    --z-behind: -1;
    --z-navbar: 10;
    --z-modal: 50;
    --z-lightbox: 100;
    --z-lightbox-nav: 101;
    --z-lightbox-close: 102;

    --browser-frame: #404040;
    --browser-titlebar: #262626;
    --browser-icon: #A3A3A3;

    --scrollbar-track: transparent;
    --scrollbar-thumb: hsla(0, 0%, 100%, 0.12);
    --scrollbar-thumb-hover: hsla(0, 0%, 100%, 0.25);
}

@media (max-width: 768px) {
    :root {
        --text-hero: 1.5rem;
        --text-large: 1.25rem;
        --text-medium: 1rem;
        --text-small: 0.875rem;
        --text-xs: 0.7rem;
    }
}

.icon {
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-filled {
    fill: currentColor;
    stroke: none;
}

.icon-xs  { width: 14px; height: 14px; }
.icon-sm  { width: 16px; height: 16px; }
.icon-md  { width: 18px; height: 18px; }
.icon-lg  { width: 20px; height: 20px; }
.icon-xl  { width: 24px; height: 24px; }

[data-theme="light"] {
    --bg-color: hsl(0, 0%, 98%);
    --text-color: hsl(0, 0%, 45.1%);
    --text-hover: hsla(0, 0%, 4%, 0.8);
    --text-heading: hsl(0, 0%, 15%);
    --text-heading-hover: hsla(0, 0%, 15%, 0.65);
    --border: hsl(0 0% 89.8%);
    --button-bg: hsla(0, 0%, 89%, 0.15);
    
    --card-bg: hsl(0, 0%, 96%);
    --card-bg-hover: hsl(0, 0%, 94%);
    --card-border-hover: hsl(0, 0%, 90%);
    --card-logo-icon: hsl(0, 0%, 100%);
    --accent-strong: hsla(0, 0%, 45%, 0.2);

    --browser-frame: #d4d4d4;
    --browser-titlebar: #f0f0f0;
    --browser-icon: #737373;

    --scrollbar-track: transparent;
    --scrollbar-thumb: hsla(0, 0%, 0%, 0.15);
    --scrollbar-thumb-hover: hsla(0, 0%, 0%, 0.3);
}