*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}
:root{
    --averia-serif-libre: "Averia Serif Libre", serif;
    --accent-01: #f0e7d0;
    --background-01: #faf7f2;
    --font-cooper-black: "cooper-black-std", serif;
    --font-geist: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-newsreader: "Newsreader", Georgia, "Times New Roman", serif;
    --font-instrument-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-instrument-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-source-serif-4: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-libre-franklin: "Libre Franklin", sans-serif;
    --font-acumin-pro: "acumin-pro", sans-serif;
    --font-adobe-caslon: "adobe-caslon-pro", serif;
    --font-libre-caslon-text: "Libre Caslon Text", serif;
    --font-cormorant-garamond: "Cormorant Garamond", serif;
}

/* MOBILE FIRST - DEFAULT STYLES */
body {
    background-color: var(--background-01);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    gap: 1.5rem;
    overflow-y: auto;
}

header {
    font-family: var(--averia-serif-libre);
    text-align: center;
    padding: .25rem 0 .25rem .25rem;
    margin: 2.5rem auto 1.5rem auto;
    letter-spacing: 5px;
    text-transform: uppercase;
}

main {
    flex: 0 1 auto;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

main img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100% - 1.25rem);
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
}

main p {
    font-style: italic;
    font-weight: 300;
    font-family: var(--font-cormorant-garamond);
    padding: .25rem 0 0 .5rem;
    font-size: 1.125rem;
    line-height: 1.25rem;
    align-self: start;
    overflow-wrap: break-word;
    word-break: break-word;
}

footer {
    text-align: center;
    font-family: var(--font-acumin-pro);
    font-size: .75rem;
    margin: 1.5rem auto 2.5rem auto;
}

.made-in {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    font-family: var(--averia-serif-libre);
    margin-bottom: .5rem;
}

.contact {
    text-align: center;
    font-family: var(--font-acumin-pro);
    font-weight: 400;
}

@media (max-width: 1023px) and (max-height: 720px) {
    body {
        justify-content: flex-start;
        /* gap: 0.75rem; */
        /* padding-block: 1rem; */
    }
}

@media (max-width: 1023px) and (min-height: 721px) {
    body {
        display: grid;
        grid-template-rows: auto auto auto;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
        place-content: center;
    }

    main {
        min-height: 0;
        max-height: none;
    }
}

@media (min-width: 1024px) {
    body {
        background: linear-gradient(to right, var(--background-01) 50%, #ffffff 50%);
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        width: 100vw;
        height: 100vh;
        gap: 0;
    }

    header {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        margin: 0 auto;
    }

    main {
        grid-column: 2;
        grid-row: 1 / 3;
        justify-self: center;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        padding: 12vw;
        max-height: 100vh;
        width: fit-content;
        margin: 0;
    }

    main img {
        width: auto;
        max-width: 100%;
        aspect-ratio: 4 / 5;
    }

    main p {
        text-align: left;
        width: auto;
        max-width: none;
    }

    footer {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        margin: 0 auto 2.5rem auto;
    }

    .made-in {
        width: fit-content;
        margin: 0 auto .5rem auto;
    }

    .contact {
        width: fit-content;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) and (max-height: 540px) {
    main {
        min-height: 540px;
    }
}