/* ==========================================================================
   Base CSS Resets & Defaults
   ========================================================================== */

/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent text size adjustment after orientation changes in iOS */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* Typography Base Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: var(--weight-regular);
    line-height: 1.2;
    margin-bottom: var(--space-16);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
    margin-bottom: var(--space-24);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-out);
}

a:hover {
    color: var(--color-accent-hover);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Selection color */
::selection {
    background-color: #C0C0C0; /* Prata / Silver */
    color: var(--color-bg-base);
}

/* Scrollbar styling for Webkit */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-surface-hover);
    border-radius: var(--radius-full);
}

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