/* ==========================================================================
   CSS Reset
   ========================================================================== */

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-variant-ligatures: common-ligatures;
    font-family: var(--font-system);
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

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

input,
button,
textarea,
select {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

*:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    box-sizing: border-box !important;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
    /* Font Families */
    --font-system: ui-sans-serif, "Inter", sans-serif;
    --font-ui: var(--font-system);
    --font-serif: "Libre Baskerville", Georgia, serif;
    --font-mono: "Courier New", Courier, monospace;

    /* Typography Scale */
    --text-size-22: 1.375rem;
    --text-size-20: 1.25rem;
    --text-size-18: 1.125rem;
    --text-size-16: 1rem;
    --text-size-14: 0.875rem;
    --text-size-13: 0.8125rem;
    --text-size-12: 0.75rem;
    --text-size-10: 0.625rem;
}

/* ==========================================================================
   Base HTML Styles
   ========================================================================== */

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

ul,
ol {
    list-style: none;
}
