/* ====================================
   CSS Reset & Normalization
   ==================================== */

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

/* Root */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    overflow-x: hidden;
}

/* Typography reset */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

p {
    margin: 0;
    padding: 0;
}

/* List reset */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Link reset */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* Button reset */
button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    color: inherit;
}

/* Form elements */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
}

/* Image reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Table reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove default focus outline */
:focus {
    outline: none;
}

/* Custom focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: var(--color-black-primary);
}

::-moz-selection {
    background-color: var(--color-accent);
    color: var(--color-black-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-primary);
}
