/* Comprehensive CSS Reset for New Project (2025) */

/* Apply border-box to all elements for consistent sizing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default list styles */
ol, ul, li {
    list-style: none;
}

/* Normalize typography */
html {
    /* Set base font size to 100% for easier rem/em scaling (typically 16px) */
    font-size: 100%;
    /* Improve text rendering */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Enable smooth scrolling */
    scroll-behavior: smooth;
    /* Respect reduced motion for accessibility */
    @media (prefers-reduced-motion: reduce) {
        scroll-behavior: auto;
    }
}

/* Set default font and line height for body */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1;
    /* Prevent horizontal overflow */
    overflow-x: hidden;
    /* Support dark/light mode */
    color-scheme: light dark;
    
}

/* Remove default styles for headings */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    
}

/* Normalize links */
a {
    color: inherit;
    text-decoration: none;
}

/* Remove default styles for buttons */
button, input[type="button"], input[type="submit"], input[type="reset"] {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Normalize form elements */
input, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Remove default focus outlines while preserving accessibility */
:focus {
    outline: none;
}

/* Ensure focus states are accessible */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Normalize images */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove default table styles */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Normalize table cells */
th, td {
    text-align: left;
    vertical-align: top;
}

/* Remove default styles for quotes */
blockquote, q {
    quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
    content: '';
}

/* Normalize HR */
hr {
    border: none;
    height: 1px;
    background: currentColor;
}

/* Remove default styles for preformatted text */
pre, code, kbd, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Normalize form-specific elements */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
}

/* Remove default styles for progress and meter */
progress, meter {
    display: inline-block;
    vertical-align: baseline;
}

/* Normalize details and summary */
details {
    display: block;
}

summary {
    display: list-item;
    cursor: pointer;
}

/* Remove default styles for menu */
menu {
    display: block;
}

/* Normalize embedded content */
iframe {
    border: none;
}

/* Ensure hidden elements are truly hidden */
[hidden] {
    display: none !important;
}

/* Normalize disabled elements */
[disabled] {
    cursor: not-allowed;
}

/* Remove default styles for dialog */
dialog {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

/* Ensure consistent font rendering */
b, strong {
    font-weight: inherit;
}

i, em {
    font-style: inherit;
}

/* Normalize sub/sup scripts */
sub, sup {
    font-size: smaller;
    line-height: normal;
    vertical-align: baseline;
}

/* Prevent text selection where not needed */
::selection {
    background: #b3d4fc;
    color: #000;
    text-shadow: none;
}

/* Remove default figure margins */
figure {
    margin: 0;
}

/* Normalize main element */
main {
    display: block;
}

/* Ensure consistent touch behavior */
html {
    touch-action: manipulation;
}

/* Remove default animation for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

a {
    opacity: 1; 
    transition: opacity 0.22s ease-in-out; 
}

a:hover {
    opacity: 0.75;
}