:root {
    --forest: #293d2e;
    --forest-deep: #1e3025;
    --fern: #4c6246;
    --sage: #a3ad91;
    --moss: #7a8667;
    --cream: #f3eedf;
    --paper: #faf7ee;
    --ink: #293d2e;
    --gold: #a58a53;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 300px;
    scroll-behavior: smooth;
    background: var(--forest-deep);
}

body {
    min-width: 300px;
    margin: 0;
    color: var(--cream);
    background: var(--forest-deep);
    font-family: var(--serif);
    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: var(--cream);
    background: var(--fern);
}

a {
    color: inherit;
}

button {
    font: inherit;
}

img {
    display: block;
    width: 100%;
}

.skipLink {
    position: fixed;
    z-index: 200;
    top: 14px;
    left: 50%;
    padding: 11px 16px;
    color: var(--forest-deep);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    transform: translate(-50%, -180%);
    transition: transform 180ms ease;
}

.skipLink:focus {
    transform: translate(-50%, 0);
}

.siteHeader {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 60px);
}

.monogram {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--cream);
    font-size: 1.05rem;
    text-decoration: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.monogram span:nth-child(2) {
    color: #d9c79e;
    font-size: 0.7rem;
    font-style: italic;
}

.languageSwitcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(5, 24, 15, 0.56);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.languageButton {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 5px 11px 5px 7px;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.languageButton:hover,
.languageButton:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.languageButton.isSelected {
    color: var(--forest-deep);
    background: var(--cream);
}

.flag {
    font-size: 1.1rem;
    line-height: 1;
}

.languageCode {
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}

.invitationScene {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: clamp(90px, 10vw, 126px) 18px clamp(74px, 7vw, 96px);
    overflow: hidden;
    isolation: isolate;
    background-image: var(--hero-image);
    background-position: 62% center;
    background-size: cover;
}

.sceneShade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(30, 48, 37, 0.42), rgba(42, 53, 34, 0.16) 45%, rgba(30, 48, 37, 0.66)),
        linear-gradient(90deg, rgba(52, 60, 35, 0.16), transparent 70%);
}

.invitationScene::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.24;
    pointer-events: none;
    background-image: repeating-radial-gradient(circle at 10% 20%, transparent 0, rgba(255, 255, 255, 0.5) 0.5px, transparent 0.8px, transparent 5px);
    background-size: 8px 8px;
    mix-blend-mode: soft-light;
}

.envelopeStage,
.invitationCard {
    grid-area: 1 / 1;
}

.envelopeStage {
    display: none;
}

.js .envelopeStage {
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(760px, 96vw);
    text-align: center;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
}

.envelopeImage {
    width: min(680px, 92vw);
    filter: drop-shadow(0 32px 45px rgba(0, 0, 0, 0.46));
}

.openingStatus {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--sans);
    font-size: clamp(0.68rem, 1.4vw, 0.84rem);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.74);
}

.openingLine {
    position: relative;
    width: min(260px, 60vw);
    height: 1px;
    margin-top: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.24);
}

.openingLine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--cream);
    transform: translateX(-100%);
    animation: openingLine 3s linear forwards;
}

.invitationCard {
    position: relative;
    z-index: 2;
    width: min(720px, 94vw);
    padding: clamp(32px, 4vw, 48px) clamp(28px, 7vw, 88px) clamp(28px, 3.5vw, 42px);
    overflow: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 16%, rgba(63, 91, 57, 0.055) 0 1px, transparent 1.8px),
        radial-gradient(circle at 77% 61%, rgba(102, 76, 42, 0.055) 0 1px, transparent 1.7px),
        linear-gradient(135deg, #fcf9ef, #f3ecda);
    background-size: 13px 13px, 17px 17px, auto;
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.46), inset 0 0 0 8px rgba(255, 255, 255, 0.24);
    text-align: center;
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.invitationCard::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(165, 138, 83, 0.32);
    pointer-events: none;
}

.js .invitationCard {
    pointer-events: none;
    opacity: 0;
    transform: translateY(24px) rotate(0.8deg) scale(0.96);
    transition: opacity 1200ms ease 420ms, transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) 420ms;
}

.js body.invitationRevealed .envelopeStage {
    pointer-events: none;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-14px) scale(1.035);
}

.js body.invitationRevealed .invitationCard {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.dateDay {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.invitationCard h1 {
    margin: 0;
    color: var(--fern);
    font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

html[lang="es"] .invitationCard h1 {
    font-size: clamp(2.4rem, 7.6vw, 5.75rem);
}

.coupleNames {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 28px);
    margin: 18px 0 22px;
    color: var(--forest);
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.coupleNames i {
    color: var(--gold);
    font-size: 0.6em;
    font-weight: 400;
}

.dateLockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.3vw, 1.42rem);
}

.dateDay {
    padding-right: 14px;
    border-right: 1px solid rgba(23, 49, 37, 0.34);
    color: #5b765f;
    font-size: 0.57em;
    font-weight: 700;
}

.dateLockup time {
    letter-spacing: 0.02em;
}

.cardRule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(22px, 3vw, 32px) 0;
    color: var(--gold);
}

.cardRule::before,
.cardRule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(23, 49, 37, 0.2);
}

.venueAddress {
    margin: 0;
    font-style: normal;
}

.venueAddress a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.venueAddress strong {
    color: #214b34;
    font-size: clamp(1.06rem, 2.1vw, 1.4rem);
    font-weight: 400;
    transition: color 180ms ease;
}

.venueAddress span {
    color: #5e6a62;
    font-family: var(--sans);
    font-size: clamp(0.68rem, 1.3vw, 0.78rem);
    line-height: 1.5;
}

.venueAddress a:hover strong,
.venueAddress a:focus-visible strong {
    color: #4f765a;
}

.venueAddress a:focus-visible {
    outline: 1px solid rgba(33, 75, 52, 0.56);
    outline-offset: 7px;
}

.invitationEyebrow,
.sectionEyebrow {
    margin: 0 0 22px;
    color: var(--fern);
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.6;
    text-transform: uppercase;
}

.invitationIntro {
    max-width: 360px;
    margin: 22px auto 0;
    color: #56644f;
    font-size: 0.94rem;
    line-height: 1.6;
}

.dressCode {
    max-width: 360px;
    margin: 20px auto 0;
    font-family: var(--sans);
}

.dressCode h2 {
    margin: 0 0 7px;
    color: var(--fern);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dressCode p {
    margin: 0;
    color: #5e6a62;
    font-size: 0.76rem;
    line-height: 1.6;
}

.invitedGroupName {
    margin: 22px 0 0;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.rsvpButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 24px;
    border: 1px solid var(--forest);
    border-radius: 2px;
    color: var(--paper);
    background: var(--forest);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.rsvpButton:hover {
    background: var(--fern);
}

.rsvpButton:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.invitationCard .rsvpButton {
    margin-top: 18px;
}

.rsvpSection {
    padding: clamp(56px, 7vw, 100px) 20px;
    color: var(--ink);
    background: #eae5d8;
    scroll-margin-top: 20px;
}

.rsvpPanel {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid rgba(165, 138, 83, 0.4);
    background: var(--paper);
}

.rsvpPanel > .sectionEyebrow,
.rsvpPanel > h2,
.rsvpIntro {
    text-align: center;
}

.rsvpPanel h2 {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.rsvpIntro {
    margin: 0 auto 28px;
    color: #626858;
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.7;
}

.personalMessage {
    margin: 28px 0;
    padding: 20px;
    border-left: 2px solid var(--gold);
    background: #efecdf;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.guestRsvpRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #ddd7c8;
}

.guestRsvpRow > label {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.rsvpForm select,
.rsvpForm textarea,
.rsvpForm input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #a6ad9c;
    border-radius: 2px;
    color: var(--ink);
    background: #fffdf8;
    font-family: var(--sans);
    font-size: 1rem;
}

.rsvpComments {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.6;
}

.rsvpForm textarea {
    resize: vertical;
    line-height: 1.6;
}

.legacyResponseNotice {
    grid-column: 1 / -1;
    margin: 0;
    color: #745d25;
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.6;
}

.checkboxLabel {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkboxLabel input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--forest);
}

.plusOneSection {
    margin: 8px 0 28px;
    padding: 20px 0;
    border-top: 1px solid #ddd7c8;
    border-bottom: 1px solid #ddd7c8;
}

.plusOneFields {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    font-family: var(--sans);
    font-size: 0.85rem;
}

.photoSection {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #ddd7c8;
    scroll-margin-top: 24px;
}

.photoSection h3 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 400;
}

.photoSection > p,
.photoForm,
.uploadedPhotos {
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.7;
}

.photoForm {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.photoUploadLayout {
    --photo-upload-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: var(--photo-upload-height);
    gap: 28px;
    align-items: stretch;
}

.photoPicker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    min-height: 0;
    padding: 30px 20px;
    border: 2px dashed #a3ad91;
    border-radius: 12px;
    background: #f4f5ed;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.photoPicker:hover,
.photoPicker.hasSelection,
.photoPicker.isDragging {
    border-color: var(--forest);
    background: #eef1e4;
}

.photoPicker:focus-within {
    outline: 2px solid var(--forest);
    outline-offset: 4px;
}

.photoPicker input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photoPicker:has(input:disabled) {
    opacity: 0.6;
}

.photoPicker input:disabled {
    cursor: wait;
}

.photoPickerIcon {
    color: var(--fern);
}

.photoPickerIcon svg {
    display: block;
    width: 52px;
    height: 52px;
}

.photoPickerBrowse {
    min-width: 145px;
    padding: 9px 24px;
    border-radius: 24px;
    color: var(--paper);
    background: var(--forest);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.photoPickerHint {
    color: #66715d;
    font-size: 0.8rem;
    text-align: center;
}

.selectedPhotos {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding-top: 4px;
    overflow: hidden;
}

.selectedPhotos h4 {
    flex-shrink: 0;
    margin: 0 0 6px;
    color: var(--forest);
    font-size: 0.95rem;
    font-weight: 600;
}

.photoSelectionSummary {
    flex-shrink: 0;
    margin: 0 0 12px;
    color: #66715d;
    font-size: 0.75rem;
}

.selectedPhotoList {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0 6px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    list-style: none;
}

.selectedPhotoList::-webkit-scrollbar {
    width: 10px;
}

.selectedPhotoList::-webkit-scrollbar-track {
    border-radius: 6px;
    background: #e1e5d9;
}

.selectedPhotoList::-webkit-scrollbar-thumb {
    border: 2px solid #e1e5d9;
    border-radius: 6px;
    background: var(--fern);
}

@supports not selector(::-webkit-scrollbar) {
    .selectedPhotoList {
        scrollbar-width: thin;
        scrollbar-color: var(--fern) #e1e5d9;
    }
}

.selectedPhotoRow {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-bottom: 1px solid #e1e3d7;
}

.selectedPhotoIcon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--fern);
}

.selectedPhotoName {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px 0;
    border: 0;
    color: var(--forest);
    background: transparent;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #a3ad91;
    text-underline-offset: 3px;
}

.selectedPhotoName:hover {
    text-decoration-color: var(--forest);
}

.selectedPhotoName:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: -2px;
}

.photoPreviewOpen {
    overflow: hidden;
}

.photoPreview {
    width: min(900px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid #b9c2ab;
    border-radius: 12px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.photoPreview::backdrop {
    background: rgba(20, 34, 25, 0.78);
}

.photoPreviewHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #dde1d3;
    font-family: var(--sans);
}

.photoPreviewHeader h4 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photoPreviewClose {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 0 6px 8px;
    border: 0;
    color: var(--forest);
    background: transparent;
    font-size: 0.75rem;
    cursor: pointer;
}

.photoPreviewClose svg {
    width: 22px;
    height: 22px;
}

.photoPreviewClose:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 3px;
}

.photoPreviewBody {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 16px;
}

.photoPreviewBody img {
    width: 100%;
    max-height: calc(100dvh - 145px);
    object-fit: contain;
}

.photoPreviewBody p {
    max-width: 420px;
    margin: 20px;
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.removePhotoButton {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 36px;
    height: 44px;
    padding: 8px;
    border: 0;
    color: #866746;
    background: transparent;
    cursor: pointer;
}

.removePhotoButton svg {
    width: 18px;
    height: 18px;
}

.removePhotoButton:hover {
    color: #823e31;
}

.removePhotoButton:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: -4px;
}

.removePhotoButton:disabled,
.photoForm .rsvpButton:disabled {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 600px) {
    .photoUploadLayout {
        --photo-upload-height: 220px;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

.photoForm .rsvpButton {
    justify-self: start;
}

.photoUploadStatus {
    margin: 0;
    color: #626858;
    font-size: 0.78rem;
}

.uploadedPhotos {
    margin-top: 20px;
}

.uploadedPhotos summary {
    cursor: pointer;
}

.uploadedPhotoGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.uploadedPhotoGrid img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #eeeee2;
}

.formNotice {
    padding: 15px 18px;
    border: 1px solid;
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.6;
}

.formSuccess {
    border-color: #9daa92;
    color: #29492c;
    background: #eef3e8;
}

.formError {
    border-color: #be9280;
    color: #763e2e;
    background: #fbefe7;
}

html[lang="ja"] .invitationCard h1 {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 4.4vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

html[lang="ja"] .coupleNames {
    letter-spacing: -0.04em;
}

.cardBotanical {
    position: absolute;
    width: 150px;
    height: 160px;
    opacity: 0.18;
}

.cardBotanical::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 1px;
    height: 166px;
    background: var(--fern);
    transform: rotate(31deg);
    transform-origin: center;
}

.cardBotanical span {
    position: absolute;
    width: 46px;
    height: 22px;
    border: 1px solid var(--fern);
    border-radius: 100% 0 100% 0;
}

.cardBotanical span:nth-child(1) {
    top: 28px;
    left: 61px;
    transform: rotate(25deg);
}

.cardBotanical span:nth-child(2) {
    top: 58px;
    left: 31px;
    transform: rotate(200deg);
}

.cardBotanical span:nth-child(3) {
    top: 89px;
    left: 70px;
    transform: rotate(19deg);
}

.cardBotanical span:nth-child(4) {
    top: 119px;
    left: 42px;
    transform: rotate(205deg);
}

.cardBotanicalTop {
    top: -35px;
    right: -25px;
    transform: rotate(-14deg);
}

.cardBotanicalBottom {
    bottom: -36px;
    left: -32px;
    transform: rotate(165deg);
}

.scrollPrompt {
    position: absolute;
    z-index: 5;
    bottom: 20px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.22em;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 500ms ease 1700ms, transform 500ms ease 1700ms;
}

.invitationRevealed .scrollPrompt {
    opacity: 1;
    transform: translate(-50%, 0);
}

.scrollArrow {
    font-size: 0.95rem;
    animation: scrollArrow 1.8s ease-in-out infinite;
}

.celebrationSection {
    padding: clamp(64px, 8vw, 110px) 24px;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 15% 50%, rgba(163, 173, 145, 0.16), transparent 55%),
        var(--paper);
}

.celebrationLayout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
    max-width: 1040px;
    margin: 0 auto;
}

.coupleSticker {
    width: 100%;
    height: auto;
}

.celebrationContent {
    min-width: 0;
    text-align: center;
}

.celebrationDate {
    margin: 0 0 20px;
    color: var(--fern);
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.countdown {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(165, 138, 83, 0.35);
}

.countdownUnits {
    display: flex;
    justify-content: center;
    margin: 0;
}

.countdownUnit {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column-reverse;
    gap: 12px;
    min-width: 0;
}

.countdownUnit + .countdownUnit::before {
    content: ":";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--gold);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1;
    transform: translateX(-50%);
}

.countdownUnit dt {
    color: var(--fern);
    font-family: var(--sans);
    font-size: clamp(0.55rem, 1vw, 0.65rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.countdownUnit dd {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1;
}

.countdownComplete {
    margin: 24px 0 0;
    color: var(--fern);
    font-style: italic;
    line-height: 1.5;
}

.rsvpLayout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
    padding: clamp(56px, 7vw, 96px) 24px;
    color: var(--ink);
    background: #eae5d8;
    scroll-margin-top: 20px;
}

.rsvpLayout > .celebrationSection {
    width: 100%;
    max-width: 340px;
    justify-self: center;
    padding: 20px 0 0;
    background: none;
}

.rsvpLayout .celebrationLayout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rsvpLayout .coupleSticker {
    width: min(100%, 280px);
}

.rsvpLayout .celebrationContent {
    width: 100%;
}

.rsvpLayout .countdown {
    margin-top: 0;
    padding-top: 20px;
}

.rsvpLayout .countdownUnit {
    gap: 9px;
}

.rsvpLayout .countdownUnit dd {
    font-size: 2rem;
}

.rsvpLayout .countdownUnit + .countdownUnit::before {
    font-size: 1.8rem;
}

.rsvpLayout .countdownUnit dt {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
}

.rsvpLayout > .rsvpSection {
    min-width: 0;
    padding: 0;
    background: none;
}

.rsvpLayout .rsvpPanel {
    max-width: none;
}

@media (min-width: 1240px) {
    .rsvpLayout {
        padding-right: max(24px, calc((100% - 1192px) / 2));
        padding-left: max(24px, calc((100% - 1192px) / 2));
    }
}

@media (max-width: 980px) {
    .rsvpLayout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .rsvpLayout > .celebrationSection {
        max-width: 300px;
        padding: 0;
    }

    .rsvpLayout .coupleSticker {
        width: 220px;
    }

    .rsvpLayout > .rsvpSection {
        width: min(100%, 760px);
        justify-self: center;
    }
}

.siteFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(70px, 8vw, 110px) 20px 34px;
    color: var(--cream);
    background: #071b12;
    text-align: center;
}

.footerNames {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.footerNames span {
    color: var(--gold);
    font-size: 0.64em;
    font-style: italic;
}

.siteFooter > p:nth-child(2) {
    margin: 18px 0 22px;
    color: rgba(244, 239, 226, 0.68);
    font-family: var(--sans);
    font-size: 0.86rem;
}

.footerDate {
    margin: 0 0 42px;
    color: #c7d5b9;
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms ease, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.isVisible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes openingLine {
    to {
        transform: translateX(0);
    }
}

@keyframes scrollArrow {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

@media (max-width: 820px) {
    .siteHeader {
        align-items: flex-start;
    }

    .languageCode {
        display: none;
    }

    .languageButton {
        justify-content: center;
        width: 36px;
        padding: 5px;
    }

    .celebrationLayout {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 40px;
        max-width: 500px;
    }

    .coupleSticker {
        width: min(100%, 300px);
    }

    .celebrationContent {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .guestRsvpRow {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .invitationScene {
        min-height: 100svh;
        padding: 84px 12px 60px;
    }

    .invitationCard {
        min-height: auto;
        padding: 30px 22px 26px;
        box-shadow: 0 28px 65px rgba(0, 0, 0, 0.45), inset 0 0 0 5px rgba(255, 255, 255, 0.24);
    }

    .coupleNames {
        flex-wrap: wrap;
        gap: 3px 10px;
        margin-bottom: 18px;
    }

    .coupleNames i {
        font-size: 0.48em;
    }

    .dateLockup {
        gap: 10px;
    }

    .dateDay {
        padding-right: 10px;
    }

    .cardRule {
        margin: 19px 0;
    }

    .cardBotanical {
        width: 120px;
        opacity: 0.2;
    }
}

@media (max-height: 740px) and (min-width: 561px) {
    .invitationScene {
        min-height: 820px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
