/* css/reset.css */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-gray-300);
    background-color: var(--surface-bg);
    min-height: 100%;
    overflow-x: hidden;
}

/* Remove default list styles */
ul, ol { list-style: none; }

/* Images */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Form elements inherit fonts */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-600);
}

/* Selection */
::selection {
    background-color: var(--color-primary-500);
    color: white;
}

/* Placeholder */
::placeholder {
    color: var(--color-gray-500);
    opacity: 1;
}
