/* ==========================================================
   reset.css — Minimal, modern CSS reset
   Ensures consistent behavior across all browsers.
   Based on Josh Comeau's Custom CSS Reset + additions.
   ========================================================== */

/* Global box-sizing set to border-box */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins and paddings */
* {
    margin: 0;
    padding: 0;
}

/* Smooth scrolling (only when no reduced motion) */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Body base settings */
body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Make images and media responsive */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

/* Textarea only vertically resizable */
textarea {
    resize: vertical;
}

/* Headings and paragraphs: text wrapping */
h1, h2, h3, h4, h5, h6,
p {
    overflow-wrap: break-word;
}

/* Lists without default bullets when used as navigation */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Links without default underline (styled in base.css) */
a {
    text-decoration: none;
    color: inherit;
}

/* Buttons without browser default styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Tables: border-collapse for consistent rendering */
table {
    border-collapse: collapse;
}

/* Remove focus ring on mouse clicks, keep for keyboard (see base.css :focus-visible) */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion: disable animations */
@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;
    }
}