/* ======================
   CSS RESET & BASE STYLES
   ====================== */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin/padding */
* {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

/* Core body defaults */
body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove built-in form typography */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* ======================
   TYPOGRAPHY
   ====================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-charcoal);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-charcoal-light);
}

a {
    color: var(--color-honey-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-sienna);
}

strong,
b {
    font-weight: var(--font-semibold);
}

small {
    font-size: var(--text-sm);
}

/* ======================
   LISTS
   ====================== */

ul,
ol {
    list-style: none;
}

/* ======================
   FOCUS STYLES
   ====================== */

:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 3px;
}

/* ======================
   SELECTION
   ====================== */

::selection {
    background-color: var(--color-honey);
    color: var(--color-charcoal);
}

/* ======================
   SCROLLBAR (Webkit)
   ====================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-wood-light);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-cream-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-wood);
}

/* ======================
   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;
    }
}