@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: local(''),
         url('/fonts/dm-sans-v10-latin-regular.woff2') format('woff2'),
         url('/fonts/dm-sans-v10-latin-regular.woff') format('woff');
}
  
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: local(''),
         url('/fonts/dm-sans-v10-latin-500.woff2') format('woff2'),
         url('/fonts/dm-sans-v10-latin-500.woff') format('woff');
}

@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: local(''),
         url('/fonts/dm-serif-display-v9-latin-regular.woff2') format('woff2'),
         url('/fonts/dm-serif-display-v9-latin-regular.woff') format('woff');
}
  
@font-face {
    font-family: 'DM Serif Display';
    font-style: italic;
    font-display: swap;
    font-weight: 400;
    src: local(''),
         url('/fonts/dm-serif-display-v9-latin-italic.woff2') format('woff2'),
         url('/fonts/dm-serif-display-v9-latin-italic.woff') format('woff');
}

:root {
    --off-white: #f9fafb;
    --orange: #bc6f13;
    --orange-hover: #aa6511;
    --paragraph: #4B5563;
}

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

body {
    font-family: 'DM Sans';
}

h1, h2, h3 {
    font-family: 'DM Serif Display';
    color: #111928;
    line-height: 1.2em;
    font-weight: 400;
    margin-bottom: 0.6em;
}

h1 {
    font-size: clamp(2rem, 10vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 9vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 7vw, 2.125rem);
}

p, li, a {
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
    color: var(--paragraph);
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    margin: 0 auto;
    width: 90%;
    max-width: 80rem;
}

button {
    cursor: pointer;
    font-family: 'DM Sans';
}



/* Header */
header {
    background-color: var(--off-white);
    padding: 1.5em 4em 1em 4em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.logo {
    width: 13.375rem;
    transform: translateY(0.2em);
}
header ul {
    display: flex;
    list-style: none;
    gap: 3em;
    transform: translateY(-0.4em);
}
header li a {
    font-size: 1.125rem;
    text-decoration: none;
    color: #111928;
    font-family: 'DM Serif Display';
    font-weight: 400;
}
header li a:hover {
    text-decoration: underline;
}
header button {
    background-color: transparent;
    border-radius: 0;
    border: unset;
    display: none;
}
.header-socials {
    display: none;
}



/* Footer */
footer {
    background-color: var(--off-white);
    padding: 8em 0 2em 0;
    font-weight: 500;
}
footer a {
    text-decoration: none;
}
footer .wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6em;
}
.footer-item {
    flex: 1;
}
footer ul {
    margin: 0;
    list-style: none;
    margin-top: -0.6em;
}
footer li {
    font-size: 1.375rem;
    margin: 0.5em 0;
}
footer a span {
    font-weight: 700;
}
footer a,
footer p {
    display: block;
    font-weight: 500;
}
footer a:hover {
    text-decoration: underline;
}
footer a, footer p {
    font-size: 1.125rem;
}
.footer-location {
    margin-bottom: 2em;
}
.footer-socials {
    display: flex;
    gap: 1em;
}
.footer-gray-text a {
    font-size: 1.125rem;
    color: #6B7280;
}
.footer-mobile {
    display: none;
}



/* Mobile Layout */
@media only screen and (max-width: 50em) {
    header {
        padding: 0.6em 1.5em 0.6em 1.5em;
        margin: 0;
    }
    header button {
        display: block;
    }
    header #menu {
        display: none;
        opacity: 0;
        transition: opacity 0.2s;
        position: absolute;
        top: 4.7em;
        left: 0;
        width: 100%;
        padding: 7em 0;
        background-color: var(--off-white);
        min-height: 110vh;
        z-index: 99;
    }
    header #menu.active {
        opacity: 1;
    }
    header ul {
        display: block;
        text-align: center;
    }
    header li a {
        font-size: min(4rem, 14vw);
        margin: 0.5em 0;
        display: block;
    }
    .header-socials {
        display: flex;
        justify-content: center;
        gap: 2em;
        margin-top: 4em;
    }

    footer {
        padding: 3em 0 2em 0;
    }
    footer a, footer p, footer li {
        color: #111928;
    }
    footer .wrapper {
        display: block;
        margin-bottom: 3em;
    }
    .footer-socials {
        margin-top: 2.5em;
    }
    .footer-item nav {
        border-top: 1px solid #9CA3AF;
        padding-top: 2em;
        margin-top: 2em;
    }
    footer a {
        padding: 0.2em 0;
    }
    .footer-desktop {
        display: none;
    }
    .footer-mobile {
        display: flex;
    }
}

@media only screen and (max-width: 700px) {
    .mobile-logo {
        width: 8em;
        margin-top: 0.2rem;
        height: auto;
    }
}