/* ==============================================
   BASE STYLES — Reset, Typography, Globals
   ============================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    background: var(--bg-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    height: auto;
}

/* ---- Links ---- */
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:focus-visible {
    outline: 2px solid var(--clr-gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

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

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
}

/* ---- Selection ---- */
::selection {
    background: var(--clr-gold);
    color: var(--text-light);
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
}

/* ---- Utility: Screen Reader Only ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--clr-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-gold);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--clr-primary) var(--bg-dark);
}
