/* =========================================================
   RESET & BASE
   ========================================================= */

   

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-main);
    font-family: var(--font-primary);
    color: var(--color-text);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   GLOBAL TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.15;
    margin: 0 0 32px;
}

h1 { font-size: clamp(2.6rem, 4vw, 3.8rem); }
h2 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
    font-size: var(--font-body);
    line-height: var(--line-body);
    margin: 0;
}

p + p {
    margin-top: 24px;
}

/* =========================================================
   LINKS
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
    transition:
        color var(--transition-base),
        opacity var(--transition-base),
        border-color var(--transition-base),
        background-color var(--transition-base);
}

a:hover {
    opacity: 0.85;
}

h1 a, h2 a, h3 a, h4 a {
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover {
    border-bottom-color: currentColor;
}
