@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lora:wght@400;500;600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

h3,
h4,
p {
    text-align: center;
    color: #a46f44;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    margin: 0;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
}

h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    margin-top: 0;
}

h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin: 2rem 0 0 0;
}

p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    overflow-wrap: break-word;
}

body {
    margin: 0;
    background-color: #f8f0e5;
    font-family: 'Lora', Georgia, serif;
}

.parallax-container {
    perspective: 5px;
    height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: none;
}

.layer {
    position: absolute;
    top: -15vh;
    right: 0;
    bottom: 0;
    left: 0;
}

.parallax-front {
    transform: translateZ(0);
}

.parallax-back {
    transform: translateZ(-1px) scale(1.2);
    background-size: cover;
    background-position: center;
}

.parallax-group {
    position: relative;
    transform-style: preserve-3d;
    height: 140vw;
    margin-bottom: 40vw;
}

.center-tile {
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: fit-content;
    background-color: #f8f0e5;
    top: 120vw;
    padding: 10vw 10vw 10vw 10vw;
}


#navbar {
    position: absolute;
    left: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 3;
    width: 100vw;
    padding: 1vw 2vw 0 2vw;
}

#navbar a {
    font-family: 'Playfair Display', Georgia, serif;
    color: #a46f44;
    font-size: 2rem;
    text-decoration: none;
    padding: 0 2vw 0 2vw;
    position: relative;
    transition: color 0.3s ease;
}

#navbar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #a46f44;
    transition: width 0.3s ease, left 0.3s ease;
}

#navbar a:hover {
    color: #7a5230;
}

#navbar a:hover::after {
    width: 60%;
    left: 20%;
}

#links {
    mask-image: radial-gradient(ellipse 20% 60% at center, black 215%, transparent 225%);
    background-color: #f8f0e588;
    padding: 0 4vw 0 4vw;
}

.center-tile h2 {
    color: aliceblue;
    text-align: center;
}

/* ── Footer ── */
#foot {
    background-color: #f8f0e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    border-top: 1px solid #d4b896;
    top: 30vh;
}

.foot-socials {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.foot-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #a46f44;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.foot-socials a:hover {
    background-color: #7a5230;
    transform: scale(1.12);
}

.foot-socials a svg {
    width: 24px;
    height: 24px;
    fill: #f8f0e5;
}

.foot-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.85rem;
    color: #a46f44;
    margin-top: 1rem;
    opacity: 0.7;
}


@media (min-aspect-ratio: 16/12) {

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2.5rem;
    }

    h4 {
        font-size: 1.75rem;
    }

    p {
        font-size: 2rem;
    }

    .parallax-group {
        height: 150vh;
        margin-bottom: 80vh;
    }

    .layer {
        top: -15vw;
    }

    .main-content {
        top: 145vh;
        padding: 10vh 10vw 10vh 10vw;
        height: fit-content;
    }

    .parallax-back {
        background-position: inherit;
    }

    #logo-tile {
        top: 5vh;
    }

    #links {
        mask-image: radial-gradient(ellipse 20% 60% at center, black 205%, transparent 215%);
    }


    #navbar a {
        font-size: 2.5rem;
    }

}


.first {
    top: 0;
    margin: 0;
}

/* Mobile styles */
@media (max-width: 600px) {
    #navbar a {
        font-size: 1.2rem;
        padding: 0 1.5vw;
    }

    #foot {
        top: 15vh;
    }
}