﻿:root {
    --bg: #0a0506;
    --bg-elevated: #14080a;
    --text: #e8e0d8;
    --text-muted: #c4b6aa;
    --accent: #d4af37;
    --sage: #4d0011;
    --script: #e8c9a8;
    --button: #600b0b;
    --button-hover: #8b0000;
    --ink: #f5f0ea;
    --line: #5a3038;
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --script-font: "Great Vibes", cursive;
    --sans: "Raleway", "Segoe UI", sans-serif;
    
    /* LiteLight customization */
    --lite-light-bg: rgba(10, 5, 6, 0.95);
    --lite-light-close-color: #d4af37;
}

/*
 * Шрифты лежат у нас (wwwroot/fonts), а не на Google Fonts: без чужих доменов и render-blocking CSS.
 * Файлы вариативные, поэтому один файл покрывает диапазон весов. Подмножества — только кириллица и латиница.
 */
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Great Vibes";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/great-vibes-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Great Vibes";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/great-vibes-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/raleway-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/raleway-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.invite {
    background: linear-gradient(180deg, rgba(10, 5, 6, 0.82) 0%, rgba(10, 5, 6, 0.94) 40%, rgba(10, 5, 6, 0.98) 100%);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    overflow: hidden;
}

/*
 * Ткань под градиентом — отдельный fixed-слой вместо background-attachment: fixed:
 * тот на Android перерисовывается на каждом кадре скролла, а слой просто композитится.
 * z-index: -1 кладёт слой под фон .invite (он не позиционирован), но над фоном body.
 * Высота 100vh (а не inset: 0), чтобы cover не пересчитывался при скрытии адресной строки.
 */
.invite::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    background: url("../images/bg-fabric.webp") center / cover no-repeat;
    pointer-events: none;
}

.invite img {
    max-width: 100%;
    height: auto;
}

.section {
    position: relative;
    padding: 56px 24px;
}

.section-inner {
    width: min(640px, 100%);
    margin: 0 auto;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s ease, transform 0.85s ease;
    animation: reveal-fallback 0.01s linear 4s forwards;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
}

/* invite.js запустил IntersectionObserver: страховка ниже не нужна, секции проявляются при скролле. */
.reveal-ready .reveal {
    animation: none;
}

/* Если invite.js не загрузился — секции не остаются невидимыми. */
@keyframes reveal-fallback {
    to {
        opacity: 1;
        transform: none;
    }
}

.script-title,
.serif-title,
.eyebrow,
.subhead,
.body-copy,
.timeline-time,
.countdown-label {
    margin: 0;
}

.script-title {
    font-family: var(--script-font);
    font-weight: 400;
    font-size: clamp(42px, 11vw, 78px);
    line-height: 1.15;
    color: var(--script);
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

/* Градиентный текст только при поддержке clip — иначе transparent даёт «пропавшие» заголовки. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .script-title {
        background: linear-gradient(180deg, #f6e3c6 10%, #d9b46a 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.serif-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(28px, 7vw, 46px);
    line-height: 1.15;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.eyebrow {
    font-size: 22px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.subhead {
    margin-top: 28px;
    font-size: 15px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.body-copy {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text);
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 112px;
    position: relative;
    isolation: isolate;
}

/* Фото колец: растворяется в фоне страницы к нижнему краю. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(10, 5, 6, 0.15) 0%, rgba(10, 5, 6, 0.72) 100%),
        linear-gradient(180deg, rgba(10, 5, 6, 0.55) 0%, rgba(10, 5, 6, 0.2) 45%, rgba(10, 5, 6, 0.9) 100%),
        url("../images/couple-1.webp") center 55% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    animation: hero-drift 24s ease-in-out infinite alternate;
}

/* Тонкая золотая рамка поверх фото. */
.hero::before {
    content: "";
    position: absolute;
    inset: 16px 16px 40px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    pointer-events: none;
}

.hero-copy {
    width: min(560px, 100%);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-copy > * {
    animation: hero-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.3s; }
.hero-copy > :nth-child(4) { animation-delay: 0.5s; }

.hero .eyebrow {
    font-size: clamp(14px, 3.4vw, 18px);
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    font-weight: 500;
}

.hero-names {
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 11vw, 76px);
    line-height: 1.02;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5f0ea;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7);
}

.hero-name {
    padding-left: 0.12em;
}

.hero-amp {
    font-family: var(--script-font);
    font-size: 0.9em;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent);
    padding: 0.04em 0;
}

.hero-date {
    margin: 30px 0 0;
    max-width: 100%;
    font-family: var(--script-font);
    font-size: clamp(30px, 8vw, 54px);
    line-height: 1.05;
    color: var(--script);
    overflow-wrap: anywhere;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.hero-chevron {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--accent);
    text-decoration: none;
    animation: chevron-bob 2.2s ease-in-out infinite;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-drift {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
}

@keyframes chevron-bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50% { transform: translate(-50%, 7px); opacity: 1; }
}

/* Разделитель: линия — ромб — линия */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px auto 0;
    color: var(--accent);
}

.ornament-line {
    width: clamp(44px, 14vw, 84px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75));
}

.ornament-line:last-child {
    transform: scaleX(-1);
}

.ornament-mark {
    flex: none;
}

.hero-chevron:focus-visible,
.pill:focus-visible,
.rsvp input:focus-visible,
.rsvp textarea:focus-visible,
.rsvp select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.intro {
    text-align: center;
    padding-top: 24px;
}

.month-label {
    margin-top: 36px;
}

.calendar-section {
    text-align: center;
}

.calendar-heading {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.calendar-heading-script {
    font-size: clamp(48px, 12vw, 86px);
    line-height: 1.25;
    padding-top: 0.12em;
}

.calendar-heading-sub {
    font-size: clamp(16px, 3.6vw, 22px);
    letter-spacing: 0.22em;
}

.calendar-banner {
    display: inline-block;
    margin: 28px auto 0;
    padding: 14px 28px;
    background: #f5f0ea;
    color: #2b000a;
    font-family: var(--serif);
    font-size: clamp(16px, 3.8vw, 22px);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    clip-path: polygon(
        1% 8%, 3% 0%, 12% 6%, 22% 1%, 34% 7%, 48% 0%, 62% 6%, 74% 1%, 86% 7%, 96% 0%, 99% 10%,
        100% 28%, 98% 48%, 100% 68%, 98% 88%, 99% 100%,
        88% 94%, 76% 100%, 64% 93%, 50% 100%, 36% 94%, 24% 100%, 12% 93%, 2% 100%, 0% 86%,
        2% 68%, 0% 48%, 2% 28%
    );
}

.calendar {
    width: min(380px, 100%);
    margin: 32px auto 0;
    padding: 22px 18px 20px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(77, 0, 17, 0.28), rgba(20, 8, 10, 0.6));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.calendar-weekdays {
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35em 0.2em;
}

.calendar-weekdays span {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-transform: none;
}

.calendar-day {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    font-size: clamp(15px, 3.4vw, 18px);
    color: var(--text);
    line-height: 1;
}

.calendar-day.is-empty {
    visibility: hidden;
}

.calendar-day.is-wedding {
    position: relative;
    z-index: 1;
    color: #2b000a;
    font-weight: 600;
}

.calendar-day.is-wedding::before {
    content: "";
    position: absolute;
    inset: 4%;
    z-index: -1;
    background: #f5f0ea;
    border-radius: 28% 36% 32% 40% / 36% 30% 42% 34%;
    transform: rotate(-4deg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.lead {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(21px, 5.2vw, 26px);
    line-height: 1.5;
}

.couple-frame {
    position: relative;
    z-index: 0;
    width: min(280px, 70%);
    margin: 40px auto 0;
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(20, 8, 10, 0.55);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

/* Смещённая золотая рамка за фото */
.couple-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transform: translate(12px, 12px);
}

.couple-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.venue,
.timeline-section,
.dress,
.wishes,
.nokids,
.organizer,
.countdown-section,
.rsvp,
.closing {
    text-align: center;
}

.venue-photo {
    display: block;
    width: min(605px, 100%);
    margin: 32px auto 0;
    aspect-ratio: 605 / 296;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* Карточка адреса расположена под фото, без перекрытия */
.venue-card {
    position: relative;
    width: min(460px, 88%);
    margin: 24px auto 28px;
    padding: 22px 24px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 18px;
    background: rgba(20, 8, 10, 0.94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.venue-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.venue-address {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

.venue-note {
    font-size: 16px;
    color: var(--text-muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(250px, 100%);
    height: 60px;
    padding: 0 28px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 30px;
    background: linear-gradient(135deg, #7a0f14 0%, var(--button) 55%, #3f0508 100%);
    color: #f5f0ea;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pill:hover:not(:disabled):not([aria-disabled="true"]) {
    background: linear-gradient(135deg, #a01018 0%, var(--button-hover) 55%, #4d0a0e 100%);
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow: 0 10px 28px rgba(139, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.pill:disabled,
.pill[aria-disabled="true"] {
    cursor: default;
    opacity: 0.72;
}

.floral {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.28;
    filter: sepia(0.45) hue-rotate(-22deg) brightness(0.65);
}

.floral-right {
    right: -8px;
    top: 24px;
    width: min(120px, 28vw);
}

.floral-left {
    left: -18px;
    top: 40px;
    width: min(180px, 34vw);
}

.leaf {
    width: 72px;
    height: auto;
}

.timeline {
    position: relative;
    width: min(460px, 100%);
    margin: 36px auto 0;
    padding-left: 84px;
    text-align: left;
    list-style: none;
}

.timeline-item {
    position: relative;
    min-height: 108px;
    padding-bottom: 8px;
}

/* Линия соединяет иконки, не заходя на них */
.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: -56px;
    top: 64px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0.15));
}

.timeline-icon {
    position: absolute;
    left: -84px;
    top: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 0, 17, 0.7), var(--bg-elevated));
    box-shadow: 0 0 0 5px rgba(10, 5, 6, 0.9), 0 6px 18px rgba(0, 0, 0, 0.4);
}

.timeline-time {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.1;
    color: var(--ink);
}

.timeline-title {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.palette {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;
    width: min(430px, 100%);
    margin: 32px auto 0;
}

.swatch {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 234, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dress-grid {
    display: flex;
    justify-content: center;
    width: min(600px, 100%);
    margin: 36px auto 0;
}

.dress-grid img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dress-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.info-card {
    width: min(777px, 100%);
    margin: 0 auto;
    padding: 42px 28px 36px;
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(77, 0, 17, 0.92), rgba(43, 0, 10, 0.96)),
        url("../images/bg-fabric.webp") center / cover;
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    outline: 1px solid rgba(212, 175, 55, 0.18);
    outline-offset: -12px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.info-card .body-copy {
    color: #fff;
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(20px, 5vw, 25px);
    line-height: 1.5;
}

.info-icon {
    color: var(--accent);
}

.nokids svg {
    color: var(--accent);
    margin: 0 auto;
    padding: 12px;
    box-sizing: content-box;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
}

.organizer-name {
    margin-top: 22px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.countdown-label {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(22px, 5.6vw, 34px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

.countdown-fallback {
    margin-top: 28px;
    font-family: var(--script-font);
    font-size: clamp(36px, 8vw, 58px);
    color: var(--script);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(560px, 100%);
    margin: 28px auto 0;
}

.countdown-grid > div {
    padding: 18px 4px 14px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(77, 0, 17, 0.45), rgba(20, 8, 10, 0.85));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.countdown-grid strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(30px, 8vw, 46px);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ink);
}

.countdown-grid span {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.rsvp-form,
.rsvp-success {
    width: min(560px, 100%);
    margin: 28px auto 0;
    padding: 6px 26px 34px;
    text-align: left;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(10, 5, 6, 0.86), rgba(20, 8, 10, 0.94)),
        url("../images/bg-floral.webp") center / cover;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

.rsvp-success {
    padding: 36px 26px;
}

.rsvp-label {
    display: block;
    margin-top: 26px;
    color: var(--accent);
    font-size: 16px;
}

.rsvp-hint {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.rsvp-form fieldset {
    border: 0;
    margin: 8px 0 0;
    padding: 0;
    min-inline-size: 0;
}

.rsvp-form legend {
    padding: 0;
}

.rsvp-form input:not([type="checkbox"]):not([type="radio"]),
.rsvp-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.rsvp-form textarea {
    min-height: 96px;
    resize: vertical;
}

.rsvp-form input:not([type="checkbox"]):not([type="radio"]):focus,
.rsvp-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.choice,
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.choice:hover,
.check:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.choice:has(input:checked),
.check:has(input:checked) {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
}

.choice input,
.check input {
    width: 18px;
    height: 18px;
    accent-color: #8b0000;
}

.rsvp-actions {
    margin-top: 32px;
    text-align: center;
}

.rsvp-success {
    text-align: center;
    font-size: 22px;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-line;
}

.rsvp-error {
    margin-top: 16px;
    text-align: center;
    color: #e8a090;
    white-space: pre-line;
}

.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.closing {
    padding-bottom: 72px;
}

.closing-frame {
    position: relative;
    width: min(754px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.closing img {
    display: block;
    width: 100%;
    aspect-ratio: 754 / 540;
    object-fit: cover;
    object-position: center 35%;
}

.closing-names {
    margin: 0;
    padding: 22px 16px 26px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

@media (min-width: 768px) {
    .section { padding: 72px 40px; }
    .body-copy { font-size: 22px; }
    .hero::before { inset: 24px 24px 48px; }
    .swatch { width: 72px; height: 72px; }
    .floral-right { width: 150px; }
    .floral-left { width: 230px; }
}

@media (max-width: 767px) {
    .hero {
        padding: 72px 28px 112px;
    }

    .invite {
        background-attachment: scroll;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-bg {
        background-position: center, center, 40% 55%;
    }

    .floral-left { display: none; }

    .floral-right {
        width: 72px;
        opacity: 0.25;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .hero-bg,
    .hero-copy > *,
    .hero-chevron {
        animation: none;
    }
}


