:root {
    --bg: #889c7d;
    --fg: #000000;
    --accent: #dfdfdf;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--fg);
    min-height: 100dvh;
}

.site-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.site-header nav a {
    color: var(--fg);
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
}

.site-header nav a:hover {
    color: var(--accent);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    text-align: center;
    padding: 2rem;
}

h1 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* Home page */
.hero {
    padding: 4rem 1rem 3rem;
    max-width: 48rem;
}

.hero p {
    opacity: 1;
}

.names {
    font-weight: 500;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0;
}

.names .amp {
    padding: 0 0.1em;
}

.tagline {
    font-family: 'Petit Formal Script', cursive;
    font-size: 1.6rem;
    margin: 0.5rem 0 0;
}

.divider {
    width: 4rem;
    height: 1px;
    background: var(--accent);
    margin: 2rem auto;
}

.date {
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.place {
    font-size: 1.6rem;
    margin: 0;
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 62rem;
    padding: 1rem 0 4rem;
}

.card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h2 {
    font-weight: 400;
    font-size: 1.9rem;
    color: var(--accent);
    margin: 0 0 1rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.8rem;
}

.card .link {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--fg);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.card .inline-link {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
}

.card .inline-link:hover,
.card .link:hover {
    color: var(--accent);
}

.coming-soon {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.coming-soon h2 {
    font-family: 'Petit Formal Script', cursive;
    font-weight: 400;
    font-size: 2rem;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

form .error-row {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

form .error {
    margin: 0;
    padding: 0.95rem 1.8rem;
    color: var(--fg);
    background: var(--accent);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

input[type="password"] {
    width: 18rem;
    max-width: 100%;
    padding: 0.8rem 1.1rem;
    font: inherit;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input[type="password"]::placeholder {
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.02em;
}

input[type="password"]:focus {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

button[type="submit"] {
    padding: 0.8rem 1.8rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bg);
    background: var(--fg);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
    opacity: 0.85;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Mobile */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-wrap: break-word;
}

.site-header {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
}

.site-header nav a,
.card .link {
    padding-block: 0.5rem;
    display: inline-block;
}

@media (max-width: 40rem) {
    .site-header {
        padding: 0.75rem max(1rem, env(safe-area-inset-right)) 0.75rem max(1rem, env(safe-area-inset-left));
    }

    .container {
        padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .names {
        font-size: clamp(2rem, 11vw, 3rem);
        letter-spacing: 0.05em;
    }

    .tagline {
        font-size: 1.35rem;
    }

    .divider {
        margin: 1.5rem auto;
    }

    .date,
    .place {
        font-size: 1.2rem;
    }

    .date {
        letter-spacing: 0.1em;
    }

    .details {
        gap: 1rem;
        padding-bottom: 2.5rem;
    }

    .card {
        padding: 1.5rem 1.25rem;
    }

    .card h2 {
        font-size: 1.6rem;
    }

    .coming-soon {
        padding: 0 0 2.5rem;
    }

    .coming-soon h2 {
        font-size: 1.7rem;
    }

    form {
        flex-direction: column;
        align-items: stretch;
    }

    input[type="password"],
    button[type="submit"] {
        width: 100%;
    }

    button[type="submit"] {
        padding-block: 0.95rem;
    }

    form .error {
        padding: 0.8rem 1.25rem;
        text-align: center;
        border-radius: 1.5rem;
    }
}

