/* ==========================================
   reset.css - CSS Reset & Base Styles
   ========================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #faf8f3;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
}

body.dark-mode {
    background-color: #1a1a1a;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
}

/* Dark mode body background */
body.dark-mode {
    background-color: #1a1a1a;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

/* Remove default fieldset styles */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Reset figure margins */
figure {
    margin: 0;
}

/* Prevent text selection on UI elements */
button,
[role="button"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Remove default quotes on q element */
q::before,
q::after {
    content: '';
}

/* Remove default table spacing */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset hr element */
hr {
    border: none;
    height: 1px;
    background: currentColor;
}

/* Ensure full height for root elements */
html, body {
    height: 100%;
}

/* Focus outline for accessibility */
:focus-visible {
    outline: 2px solid #c41230;
    outline-offset: 2px;
}

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