/* VARS */

:root {
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-20: 1.25rem;
    --fs-30: 1.875rem;

    --c-black: #000000;
    --c-white: #ffffff;
    --c-accent: #63B766;

}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font: inherit;
}

html {
    color-scheme: dark light;
    accent-color: var(--c-accent);
}

body {
    min-height: 100svh;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p, li {
    max-width: 75ch;
    text-wrap: pretty;
}


/* STYLES */

body {
    font-size: 16px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
}

a {
    color: var(--c-black);

    &:hover, &:focus-visible {
        text-decoration: none;
    }
}

h1 {
    font-size: var(--fs-30);
    font-weight: 500;
    margin-block: 1.875rem;
}

h2 {
    font-size: var(--fs-20);
    font-weight: 700;
    margin-top: 2.125em;
}

p, address {
    font-size: var(--fs-16);
    line-height: 165%;
    font-weight: 300;
    margin-top: 1.25em;

    & a {
        text-decoration: none;
    }
}

.container {
    display: block;
    padding: 26px 15px;
    margin-inline: auto;

    @media screen and (min-width: 520px) {
        max-width: 480px;
        padding: 36px 24px;
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__brand {
    font-size: var(--fs-20);
    font-weight: 500;
}

.header__nav {

    & ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        align-items: center;
        gap: 18px;
    }

    & a {
        font-size: var(--fs-14);
        font-weight: 700;    
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--_grid-columns), 1fr);
    gap: 24px;
    margin-top: 1.25em;

    & p, address {
        margin-top: 0;
    }
}

.map {
    aspect-ratio: 1.225;
    overflow: hidden;
    width: 100%;
    margin-top: 1.25em;
}

.button {
    margin-top: 1.25em;
    border: 0;
    display: flex;
    max-width: fit-content;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-14);
    background: var(--_bgColor);
    color: var(--_textColor);
    padding: 16px 26px;
    transition: all 0.3s ease;

    &:hover, &:focus-visible {
        background: hsl(from var(--_bgColor) h s calc(l * 0.8));
    }
}
.button--primary {
    --_bgColor: var(--c-accent);
    --_textColor: var(--c-white);
}


/* DARK MODE */

@media (prefers-color-scheme: dark) {
    a {
        color: var(--c-white);
    }
}