/* =================================================================
   BASE STYLES
   Reset and typography foundation
   ================================================================= */

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

/* Document */
html {
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    font-variation-settings: var(--font-settings);
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--text-primary);
    background-color: var(--bg-page);
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

p {
    line-height: var(--line-height-normal);
}

strong,
b {
    font-weight: var(--font-weight-bold);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: var(--font-weight-regular);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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