


/* Reset */

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

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow-x: hidden;
    font-family: "Urbanist", Arial, sans-serif;
    color: #eae9e3;
    background-color: #1b1c18;
}

/* Background */

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url("/image/KilvingtonHall-banner.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 9, 7, 0.18) 0%,
        rgba(8, 9, 7, 0.30) 55%,
        rgba(8, 9, 7, 0.42) 100%
    );
}

/* Layout */

.content-wrapper {
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100svh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding:
        max(40px, env(safe-area-inset-top))
        max(40px, env(safe-area-inset-right))
        max(32px, env(safe-area-inset-bottom))
        max(40px, env(safe-area-inset-left));
    animation: content-entrance .9s ease-out;
}

.top-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Accessible hidden heading */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Logo */

.logo {
    display: block;
    width: min(430px, 75vw);
    height: auto;
    margin-bottom: -60px;
}

/* Text */

.tagline {
    font-family: "Urbanist", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #f2f1ec;
}

h2 {
    margin-bottom: 32px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f2f1ec;
}

/* Button */

.email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 17px 34px;
    border: 1px solid rgba(234, 233, 227, 0.85);
    border-radius: 2px;
    font-family: "Urbanist", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #eae9e3;
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.email-button:hover {
    color: #171813;
    background-color: #eae9e3;
    border-color: #eae9e3;
    transform: translateY(-2px);
}

.email-button:focus-visible,
.footer-link:focus-visible {
    outline: 2px solid #eae9e3;
    outline-offset: 5px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.gallery-hidden-link {
    display: none;
}

/* Footer */

footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    font-family: "Urbanist", sans-serif;
    font-size: .9rem;
    color: rgba(255,255,255,.75);
}

footer a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

footer address {
    font-style: normal;
    color: rgba(255,255,255,.65);
}

/* Animation */

@keyframes content-entrance {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .container {
        animation: none;
    }

    .email-button {
        transition: none;
    }
}

/* Tablet */

@media (max-width: 768px) {

    .container {
        align-items: center;
        text-align: center;
        padding:
            max(28px, env(safe-area-inset-top))
            22px
            max(24px, env(safe-area-inset-bottom))
            22px;
    }

    .top-content {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .logo {
        width: min(320px, 78vw);
        margin-bottom: -40px;
    }

    .tagline {
        max-width: 360px;
        margin-inline: auto;
        font-size: .8rem;
        line-height: 1.5;
        letter-spacing: .08em;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    h2 {
        max-width: 90%;
        margin-bottom: 28px;
    }

    .email-button {
        padding: 15px 28px;
    }

    footer {
        justify-content: center;
        text-align: center;
        font-size: .78rem;
        line-height: 1.5;
        gap: 8px;
    }
}


/* Mobile */

@media (max-width: 480px) {

    .container {
        padding:
            max(20px, env(safe-area-inset-top))
            18px
            max(18px, env(safe-area-inset-bottom))
            18px;
    }

    .logo {
        width: min(250px, 82vw);
        margin-bottom: -28px;
    }

    .tagline {
        max-width: 260px;
        font-size: .68rem;
        line-height: 1.45;
        letter-spacing: .07em;
    }

    h2 {
        max-width: 290px;
        font-size: .78rem;
        margin-bottom: 22px;
    }

    .email-button {
        min-width: 120px;
        padding: 13px 22px;
        font-size: .78rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .email-button {
        width: min(220px, 100%);
    }
    
    footer {
        flex-direction: column;
        gap: 4px;
        font-size: .68rem;
        line-height: 1.4;
    }

    footer .separator {
        display: none;
    }
}
