:root {
    --ink: #111111;
    --paper: #f4f1ec;
    --muted: #6d6a66;
    --line: #d8d3cb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #fff;
}
.kicker.dark { color: var(--muted); }

/* Cover */
.cover {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}
.cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    filter: grayscale(1) contrast(1.04);
    animation: slowzoom 18s ease-out both;
}
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 62%, rgba(0,0,0,0.72) 100%);
}
.cover-text {
    position: absolute;
    left: 0; right: 0;
    bottom: 13%;
    padding: 0 24px;
    text-align: center;
    animation: rise 1.4s .3s ease-out both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.names {
    margin: 14px 0 10px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-size: clamp(2.9rem, 13vw, 6.5rem);
    line-height: 1;
    letter-spacing: -0.01em;
}
.names .amp { font-style: italic; font-size: 0.7em; margin: 0 0.08em; }
.cover-date {
    margin: 0;
    font-size: clamp(1rem, 4.4vw, 1.35rem);
    letter-spacing: 0.35em;
    font-weight: 400;
}
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 1px;
    height: 46px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.35);
    overflow: hidden;
}
.scroll-cue span {
    position: absolute; left: 0; top: -46px; width: 1px; height: 46px; background: #fff;
    animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { to { top: 46px; } }

/* Details */
.details {
    padding: 90px 24px 70px;
    text-align: center;
}
.big-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 26px 0 46px;
    font-family: 'Bodoni Moda', serif;
}
.bd-day, .bd-month {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 400;
}
.bd-num {
    font-size: clamp(7rem, 38vw, 12rem);
    line-height: 0.95;
    margin: 6px 0 4px;
    font-variant-numeric: lining-nums;
}
.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 420px;
    margin: 0 auto 44px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.facts div { padding: 20px 10px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}
.facts dd {
    margin: 8px 0 0;
    font-family: 'Bodoni Moda', serif;
    font-size: 1.25rem;
}
.facts dd[data-pending] { font-style: italic; color: var(--muted); }
.btn {
    display: inline-block;
    padding: 16px 34px;
    border: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }

/* Photo */
.photo { margin: 0; padding: 0 0 0; }
.photo img {
    width: 100%;
    max-height: 120vh;
    object-fit: cover;
    filter: grayscale(1);
}

/* Countdown */
.countdown { padding: 70px 24px; text-align: center; }
.cd {
    display: flex;
    justify-content: center;
    gap: clamp(22px, 8vw, 60px);
    margin-top: 18px;
}
.cd span {
    display: block;
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}
.cd small {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Footer */
.foot {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 64px 24px 70px;
}
.foot-names {
    margin: 0 0 10px;
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: 2rem;
}
.foot-note {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* Desktop: photo + details side by side, cover stays full-bleed */
@media (min-width: 960px) {
    .cover-img { object-position: 50% 30%; }
    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "details photo" "countdown photo";
        align-items: stretch;
    }
    .details { grid-area: details; padding: 110px 60px 40px; align-self: end; }
    .countdown { grid-area: countdown; padding: 30px 60px 110px; align-self: start; }
    .photo { grid-area: photo; }
    .photo img { height: 100%; max-height: none; min-height: 100vh; position: sticky; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cover-img, .cover-text, .scroll-cue span { animation: none; }
}

/* fixes after review: keep text off their faces */
.cover-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 48%, rgba(0,0,0,0.45) 68%, rgba(0,0,0,0.85) 100%); }
.cover-text { bottom: 9%; }
@media (min-width: 960px) {
    .cover-img { left: 50%; width: 50%; object-position: 50% 35%; }
    .cover-shade { display: none; }
    .cover-text {
        left: 0; right: auto; width: 50%;
        top: 50%; bottom: auto;
        transform: translateY(-50%);
        animation: none;
    }
    .names { font-size: clamp(4rem, 6.4vw, 6.5rem); }
    .scroll-cue { left: 25%; }
}

/* RSVP (27/11: confirmations in Drive + email for every invite) */
:root { --olive: #111; --olive-dark: #000; --olive-light: #d8d3cb; --white: #fff; --cream: #f4f1ec; --text-dark: #111; --text-light: #6d6a66; }
.actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn.solid { background: var(--ink); color: var(--paper); font-family: 'Jost', sans-serif; cursor: pointer; }
.btn.solid:hover { background: #333; }
.rsvp-modal, .rsvp-modal * { font-family: 'Jost', sans-serif; }
.rsvp-modal-title { font-family: 'Bodoni Moda', serif !important; }
/* RSVP modal (same form contract as every Mira site) */
.rsvp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.rsvp-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.rsvp-modal-content {
    background: var(--cream);
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 500px;
    width: 100%;
    position: relative;
    margin: 20px 0;
}

.rsvp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.rsvp-modal-close:hover {
    color: var(--text-dark);
}

.rsvp-modal-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--olive);
    text-align: center;
    margin-bottom: 25px;
}

/* RSVP Form */
.rsvp-form {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(93, 107, 78, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235D6B4E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-color: var(--white);
}

.form-group select option {
    background: var(--white);
    color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 14px 30px;
    background: var(--olive);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background: var(--olive-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.submit-button:active {
    transform: translateY(0);
}

.rsvp-modal-content { box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.form-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 500;
}
.radio-row, .check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-group label.radio-pill,
.form-group label.check-pill,
.check-row label.check-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--cream-dark);
    border-radius: 25px;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dark);
    cursor: pointer;
}
.radio-pill input, .check-pill input { width: auto; padding: 0; accent-color: var(--olive-dark); }
.radio-pill:has(input:checked), .check-pill:has(input:checked) { border-color: var(--olive-dark); background: #F3F6F1; }
body.modal-open { overflow: hidden; }

