/* Modern CSS Reset and Normalize */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html {
    /* scroll-behavior: smooth; */
    /* Removed - causes trackpad scroll bounce issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Remove default anchor styles */
a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Form element defaults */
input,
textarea {
    outline: none;
    border: none;
}

input:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--color-primary, #ff8a00);
    outline-offset: 2px;
}

/* Ensure focus is visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary, #ff8a00);
    outline-offset: 2px;
}

/* Hide focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Better text selection */
::selection {
    background-color: var(--color-primary, #ff8a00);
    color: var(--color-white, #ffffff);
}

::-moz-selection {
    background-color: var(--color-primary, #ff8a00);
    color: var(--color-white, #ffffff);
}