@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Italiana&family=Libre+Caslon+Display:ital@0;1&display=swap');


/* ==============================
   COLOURS
   ============================== */

:root {
    --cream: #f3f0e8;
    --olive-dark: #6D705D;
    --charcoal: #272922;
}


/* ==============================
   RESET
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--charcoal);

    font-family: "DM Sans", sans-serif;
    font-weight: 300;

    overflow-x: hidden;

    opacity: 0;
    transition: opacity 0.55s ease;
}

body.page-loaded {
    opacity: 1;
}

body.page-leaving {
    opacity: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* ==============================
   HEADER
   ============================== */

.header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    padding: 34px 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 3000;
}

.brand {
    max-width: 290px;
    font-family: "Italiana", serif;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: -35px;
    margin-top: -15px;
}

.brand img {
    width: 140px;
    height: auto;
    display: block;
}


/* ==============================
   MENU BUTTON
   ============================== */

.menu-button {
    position: relative;
    z-index: 3001;

    width: 58px;
    height: 40px;

    padding: 0;
    border: 0;

    background: transparent;
    cursor: pointer;
}

.menu-button span {
    position: absolute;
    left: 0;

    width: 58px;
    height: 1px;

    background: var(--charcoal);

    transform-origin: center;

    transition:
        top 0.55s cubic-bezier(.16, 1, .3, 1),
        transform 0.55s cubic-bezier(.16, 1, .3, 1);
}

.menu-button span:first-child {
    top: 14px;
}

.menu-button span:last-child {
    top: 25px;
}

body.menu-open .menu-button span:first-child {
    top: 20px;
    transform: rotate(45deg);
}

body.menu-open .menu-button span:last-child {
    top: 20px;
    transform: rotate(-45deg);
}


/* ==============================
   FULL SCREEN MENU
   ============================== */

.menu {
    position: fixed;
    inset: 0;

    background: #faf9f5;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 2000;

    transition:
        opacity 0.65s ease,
        visibility 0s linear 0.65s;
}

.menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        opacity 0.65s ease,
        visibility 0s;
}

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;
    text-align: center;
}

.menu-links a {
    font-family: "Libre Caslon Display", serif;
    font-style: italic;
    font-weight: 400;

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;

    transition: opacity 0.3s ease;
}

.menu-links a:hover {
    opacity: 0.5;
}


/* ==============================
   CONTACT
   ============================== */

.contact-page {
    min-height: 78vh;

    width: min(72vw, 1000px);
    margin: 0 auto;

    padding: 180px 0 120px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* INTRO */

.contact-intro {
    max-width: 520px;

    margin-bottom: 80px;
}

.contact-intro p {
    margin: 0;

    font-size: 13px;
    font-weight: 300;
    line-height: 1.75;

    letter-spacing: 0.01em;
}


/* CONTACT DETAILS */

.contact-details {
    display: flex;
    flex-direction: column;

    gap: 32px;
}

.contact-item {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.contact-item p {
    font-size: 9px;
    font-weight: 400;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    opacity: 0.6;
}

.contact-item a {
    width: fit-content;

    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;

    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.5;
}


/* ==============================
   FOOTER
   ============================== */

.footer {
    padding: 65px 5vw;

    background: var(--olive-dark);
    color: var(--cream);

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    gap: 40px;
    align-items: end;

    font-size: 12px;
    line-height: 1.7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer > p:last-child {
    text-align: right;
}


/* ==============================
   OPENING ANIMATION
   ============================== */

.contact-intro {
    opacity: 0;
    transform: translateY(10px);

    animation: contactReveal 0.9s ease 0.1s forwards;
}

.contact-details {
    opacity: 0;
    transform: translateY(10px);

    animation: contactReveal 0.9s ease 0.2s forwards;
}

.footer {
    opacity: 0;

    animation: softReveal 0.8s ease 0.3s forwards;
}

@keyframes contactReveal {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softReveal {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 750px) {

    .header {
        padding: 27px 6vw;
    }

   .brand {
    display: block;
    width: 110px;
    max-width: 130px;
    margin-left: 0;
    margin-top: 0;
}

.brand img {
    width: 100%;
    height: auto;
    display: block;
}

    .menu-button {
        width: 44px;
    }

    .menu-button span {
        width: 44px;
    }

    .menu-links a {
        font-size: 40px;
    }


    .contact-page {
        width: 88%;
        min-height: 75vh;

        padding: 150px 0 90px;
    }

    .contact-intro {
        max-width: 100%;
        margin-bottom: 60px;
    }

    .contact-intro p {
        font-size: 11px;
        line-height: 1.7;
    }

    .contact-details {
        gap: 28px;
    }

    .contact-item p {
        font-size: 8px;
    }

    .contact-item a {
        font-size: 11px;
    }


    .footer {
        padding: 60px 6vw;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 28px;
    }

    .footer > p:last-child {
        text-align: left;
    }
}


/* ==============================
   REDUCED MOTION
   ============================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .contact-intro,
    .contact-details,
    .footer {
        animation: none;
        opacity: 1;
        transform: none;
    }
}