:root {
    --sand: #efe2cd;
    --sand-deep: #c6a978;
    --gold: #dcc28c;
    --ocean: #0f3751;
    --ocean-soft: #1e5167;
    --cream: #f7f0e5;
    --white-soft: rgba(255, 252, 247, 0.82);
    --line: rgba(255, 248, 236, 0.2);
    --text-dark: #153247;
    --text-light: rgba(247, 240, 229, 0.88);
    --panel-dark: rgba(7, 25, 39, 0.7);
    --panel-soft: rgba(244, 234, 217, 0.78);
    --shadow: 0 28px 80px rgba(5, 24, 39, 0.22);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --hero-image: url("https://images.unsplash.com/photo-1664391962122-34e56b77e859?auto=format&fit=crop&fm=webp&w=1280&q=68");
    --break-image-one: url("https://images.unsplash.com/photo-1643892596431-69023d22503b?auto=format&fit=crop&fm=webp&w=1280&q=68");
    --break-image-two: url("https://images.unsplash.com/photo-1679058616742-4ef31525c01c?auto=format&fit=crop&fm=webp&w=1280&q=68");
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top, rgba(255, 214, 134, 0.42), transparent 0 24%),
        linear-gradient(180deg, #eedac0 0%, #e4ceb1 32%, #d5c0a1 56%, #102d41 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    position: relative;
}

.sky-stars {
    position: fixed;
    inset: 0;
    z-index: 12;
    overflow: hidden;
    pointer-events: none;
}

.falling-star {
    position: absolute;
    top: -12vh;
    left: 0;
    width: var(--star-size, 18px);
    height: var(--star-size, 18px);
    opacity: 0;
    animation: star-drift var(--star-duration, 13s) linear infinite;
    animation-delay: var(--star-delay, 0s);
}

.falling-star svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 220, 132, 0.7)) drop-shadow(0 4px 10px rgba(79, 49, 10, 0.28));
}

@keyframes star-drift {
    0% {
        transform: translate3d(0, -12vh, 0) rotate(0deg);
        opacity: 0;
    }

    12% {
        opacity: 0.82;
    }

    88% {
        opacity: 0.52;
    }

    100% {
        transform: translate3d(var(--star-drift, 18vw), 120vh, 0) rotate(280deg);
        opacity: 0;
    }
}

.entrance-screen {
    display: none;
}

.entrance-screen.is-hidden {
    display: none;
}

.entrance-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 33, 48, 0.28), rgba(8, 26, 39, 0.7)),
        var(--hero-image) center center / cover no-repeat;
    filter: saturate(1.05);
}

.entrance-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-width: min(560px, calc(100vw - 32px));
    padding: 36px;
    border: 1px solid rgba(255, 245, 230, 0.22);
    border-radius: var(--radius-xl);
    background: rgba(10, 29, 43, 0.58);
    backdrop-filter: blur(12px);
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.bm-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    mix-blend-mode: normal;
    filter: none;
}

.bm-logo-entrance {
    width: min(190px, 46vw);
    margin: 0 auto 18px;
}

.bm-logo-hero {
    width: min(180px, 24vw);
    margin: 0 auto 24px;
}

.overline,
.panel-label,
.card-tag,
label,
.top-nav a {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.overline {
    color: rgba(247, 240, 229, 0.68);
}

.entrance-card h1,
.hero h1,
h2,
h3 {
    font-family: "Marcellus", serif;
    font-weight: 400;
    line-height: 1.02;
}

.entrance-card h1 {
    margin-top: 10px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    color: var(--cream);
}

.start-btn {
    margin-top: 22px;
    min-width: 180px;
    padding: 16px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4e1ba 0%, #d7b878 100%);
    color: #142f43;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.start-btn span,
.start-btn small {
    display: block;
}

.start-btn span {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.start-btn:hover,
.start-btn:focus-visible,
.button:hover,
.button:focus-visible,
.submit-btn:hover,
.submit-btn:focus-visible {
    transform: translateY(-2px);
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 26px 20px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(11, 33, 50, 0.18), rgba(6, 21, 32, 0.62)),
        var(--hero-image) center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 31, 45, 0.36), rgba(7, 26, 39, 0.76)),
        radial-gradient(circle at center, rgba(255, 210, 130, 0.18), transparent 45%);
}

.top-nav,
.hero-content,
.hero-scroll {
    position: relative;
    z-index: 1;
}

.top-nav {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    justify-content: center;
    gap: 18px;
    border: 1px solid rgba(247, 240, 229, 0.16);
    border-radius: 999px;
    background: rgba(7, 25, 39, 0.36);
    backdrop-filter: blur(8px);
    color: rgba(247, 240, 229, 0.86);
}

.hero-content {
    width: min(960px, 100%);
    margin: auto auto 36px;
    padding-top: 70px;
    text-align: center;
    color: var(--text-light);
}

.hero h1 {
    margin-top: 12px;
    font-size: clamp(4rem, 10vw, 7.8rem);
}

.hero-text {
    width: min(640px, 100%);
    margin: 18px auto 0;
    font-size: 1.04rem;
    line-height: 1.9;
    color: rgba(247, 240, 229, 0.8);
}

.hero-meta,
.venue-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 28px;
}

.hero-meta span,
.venue-pills span {
    padding: 11px 16px;
    border: 1px solid rgba(247, 240, 229, 0.16);
    border-radius: 999px;
    background: rgba(7, 25, 39, 0.36);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.music-panel {
    width: min(360px, 100%);
    margin: 18px auto 0;
}

.audio-player {
    display: block;
    width: 100%;
    min-height: 48px;
    border-radius: 18px;
    opacity: 0.96;
}

.button,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.button-primary,
.submit-btn {
    background: linear-gradient(135deg, #f0dbb1 0%, #d5b06e 100%);
    color: #122d43;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.button-secondary {
    background: rgba(255, 249, 236, 0.12);
    color: var(--cream);
    border: 1px solid rgba(255, 249, 236, 0.18);
}

.button-secondary.is-active {
    background: rgba(255, 249, 236, 0.2);
}

main {
    background: linear-gradient(180deg, #e8d9c2 0%, #d8c5a7 35%, #183549 100%);
}

.story-section,
.program-section,
.venue-section,
.rsvp-section,
.site-footer {
    position: relative;
    z-index: 1;
}

.story-section,
.program-section,
.venue-section,
.rsvp-section {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.story-section {
    padding: 90px 0 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    gap: 34px;
    align-items: start;
}

.section-copy h2,
.section-heading h2,
.venue-copy h2 {
    margin-top: 12px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    color: #112d41;
}

.section-copy p,
.program-card p,
.venue-copy p {
    margin-top: 16px;
    font-size: 1.02rem;
    line-height: 1.95;
    color: rgba(17, 45, 65, 0.86);
}

.countdown-panel {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 248, 236, 0.56);
    box-shadow: 0 18px 40px rgba(17, 45, 65, 0.08);
}

.panel-label {
    color: rgba(17, 45, 65, 0.56);
}

.panel-date {
    margin-top: 12px;
    font-family: "Marcellus", serif;
    font-size: 2.4rem;
    color: #112d41;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.time-box {
    padding: 18px 14px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.72);
    text-align: center;
}

.time-box span {
    display: block;
    font-family: "Marcellus", serif;
    font-size: 2rem;
    color: #143247;
}

.time-box p {
    margin-top: 5px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(17, 45, 65, 0.58);
}

.image-break {
    width: 100%;
    min-height: 72vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.image-break-one {
    background-image:
        linear-gradient(180deg, rgba(10, 28, 40, 0.18), rgba(10, 28, 40, 0.28)),
        var(--break-image-one);
}

.image-break-two {
    background-image:
        linear-gradient(180deg, rgba(10, 28, 40, 0.26), rgba(10, 28, 40, 0.46)),
        var(--break-image-two);
}

.program-section {
    padding: 90px 0;
}

.program-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.program-card {
    padding: 30px 0 8px;
    border-top: 1px solid rgba(17, 45, 65, 0.18);
}

.card-tag {
    color: rgba(17, 45, 65, 0.58);
}

.program-card h3 {
    margin-top: 12px;
    font-size: 2rem;
    color: #112d41;
}

.subtle-line {
    font-style: italic;
    color: rgba(17, 45, 65, 0.6);
}

.venue-section {
    padding: 90px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(8, 27, 40, 0.78);
    box-shadow: var(--shadow);
}

.venue-visual {
    min-height: 620px;
    background:
        linear-gradient(180deg, rgba(7, 26, 39, 0.1), rgba(7, 26, 39, 0.38)),
        var(--break-image-two) center center / cover no-repeat;
}

.venue-copy {
    padding: 58px 48px;
    color: var(--text-light);
    background:
        linear-gradient(180deg, rgba(12, 39, 57, 0.92), rgba(9, 31, 47, 0.94));
}

.venue-copy h2,
.venue-copy p {
    color: var(--cream);
}

.venue-copy .overline,
.site-footer p,
.site-footer a {
    color: rgba(247, 240, 229, 0.7);
}

.venue-pills {
    justify-content: flex-start;
    margin: 22px 0 10px;
}

.venue-pills span {
    background: rgba(255, 248, 236, 0.08);
}

.venue-copy .button-primary {
    margin-top: 18px;
}

.rsvp-section {
    padding: 100px 0 90px;
}

.section-heading.centered {
    text-align: center;
}

.rsvp-shell {
    width: min(920px, 100%);
    margin: 34px auto 0;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 248, 236, 0.78);
    box-shadow: 0 20px 60px rgba(10, 28, 40, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .falling-star {
        display: none;
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 9px;
    color: rgba(17, 45, 65, 0.72);
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(17, 45, 65, 0.12);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.85);
    color: #122d43;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(25, 82, 106, 0.36);
    box-shadow: 0 0 0 4px rgba(25, 82, 106, 0.08);
}

.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-options input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    padding: 12px 18px;
    border: 1px solid rgba(17, 45, 65, 0.12);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

input[id="present"]:checked + .oui {
    background: rgba(18, 90, 80, 0.12);
    border-color: rgba(18, 90, 80, 0.24);
    color: #125a50;
}

input[id="absent"]:checked + .non {
    background: rgba(186, 86, 66, 0.12);
    border-color: rgba(186, 86, 66, 0.24);
    color: #a14c3c;
}

.submit-btn {
    width: 100%;
    margin-top: 8px;
}

.form-feedback {
    min-height: 1.4em;
    margin-top: 16px;
    font-size: 0.92rem;
    color: rgba(17, 45, 65, 0.74);
}

.form-feedback.is-success {
    color: #13584d;
}

.site-footer {
    padding: 0 16px 28px;
    background: #183549;
}

.site-footer p {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid rgba(247, 240, 229, 0.14);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.countdown-finished {
    grid-column: 1 / -1;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.78);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .story-section,
    .program-grid,
    .venue-section,
    .form-row {
        grid-template-columns: 1fr;
    }

    .venue-visual {
        min-height: 340px;
    }

    .venue-copy {
        padding: 38px 28px;
    }
}

@media (max-width: 720px) {
    .top-nav {
        width: 100%;
        gap: 8px 10px;
        padding: 10px 14px;
        flex-wrap: wrap;
        border-radius: 24px;
    }

    .hero {
        min-height: auto;
        min-height: 100svh;
        min-height: 100dvh;
        padding: 18px 14px 36px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
        line-height: 0.96;
    }

    .section-copy h2,
    .section-heading h2,
    .venue-copy h2 {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }

    .entrance-card {
        padding: 24px 20px;
        width: min(100%, calc(100vw - 24px));
    }

    .hero-content {
        margin: auto auto 12px;
        padding-top: 34px;
    }

    .bm-logo-hero {
        width: min(150px, 42vw);
        margin-bottom: 18px;
    }

    .bm-logo-entrance {
        width: min(170px, 48vw);
        margin-bottom: 18px;
    }

    .hero-meta {
        margin-top: 18px;
        gap: 8px;
    }

    .hero-meta span {
        padding: 9px 12px;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .hero-actions {
        margin-top: 18px;
        flex-direction: column;
        gap: 10px;
    }

    .music-panel {
        width: 100%;
        margin-top: 14px;
    }

    .button,
    .submit-btn {
        width: 100%;
    }

    .story-section,
    .program-section,
    .venue-section,
    .rsvp-section {
        width: min(var(--max-width), calc(100% - 20px));
    }

    .story-section,
    .program-section,
    .rsvp-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .story-section {
        gap: 22px;
    }

    .section-copy p,
    .program-card p,
    .venue-copy p {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .countdown-panel,
    .rsvp-shell {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .panel-date {
        font-size: 2rem;
    }

    .time-box {
        padding: 16px 10px;
    }

    .time-box span {
        font-size: 1.7rem;
    }

    .image-break {
        min-height: 38vh;
    }

    .program-grid {
        margin-top: 20px;
        gap: 18px;
    }

    .program-card {
        padding-top: 20px;
    }

    .program-card h3 {
        font-size: 1.5rem;
    }

    .venue-section {
        padding: 0;
        border-radius: 26px;
    }

    .venue-visual {
        min-height: 240px;
    }

    .venue-copy {
        padding: 28px 18px;
    }

    .venue-pills {
        margin: 18px 0 0;
        gap: 8px;
    }

    .venue-pills span {
        padding: 9px 12px;
        font-size: 0.7rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .radio-options {
        flex-direction: column;
    }

    .radio-label {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        font-size: 0.72rem;
    }

    input[type="text"],
    input[type="number"],
    textarea {
        padding: 13px 14px;
        border-radius: 16px;
        font-size: 16px;
    }

    textarea {
        min-height: 130px;
    }

    .submit-btn {
        min-height: 52px;
    }

    .site-footer {
        padding: 0 12px 22px;
    }

    .site-footer p {
        padding: 18px 0;
        font-size: 0.64rem;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 420px) {
    .top-nav {
        justify-content: space-between;
    }

    .top-nav a,
    label,
    .overline,
    .panel-label,
    .card-tag {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .hero-content {
        padding-top: 24px;
    }

    .hero-meta span {
        width: 100%;
        justify-content: center;
    }

    .countdown-grid {
        gap: 10px;
    }

    .rsvp-shell,
    .countdown-panel,
    .entrance-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bm-logo-entrance {
        width: min(190px, 60vw);
    }

    .bm-logo-hero {
        width: min(150px, 52vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
