@font-face {
    font-family: "Yesteryear";
    src: url("/assets/Yesteryear-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BonaNovaSC";
    src: url("/assets/Bona_Nova_SC/BonaNovaSC-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BonaNovaSC";
    src: url("/assets/Bona_Nova_SC/BonaNovaSC-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BonaNovaSC";
    src: url("/assets/Bona_Nova_SC/BonaNovaSC-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

html,
body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
    overscroll-behavior: none;
}

body {
    background-color: #F8F4E8;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    font-family: "BonaNovaSC", "Garamond", "Times New Roman", serif;
    color: #2E2A24;
}

.app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    text-align: center;
    box-sizing: border-box;
    padding: 24px;
    border-radius: 18px;
    background: #F8F4E8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 2px rgba(46, 42, 36, 0.06);
    font-weight: 700;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 720px) {
    .app-content {
        width: max-content;
        max-width: 92vw;
    }
}

.app-content > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-footer {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 400;
    font-family: "Garamond", "Times New Roman", serif;
}

.nav-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav-link {
    position: relative;
    font-size: 1.5rem;
    text-decoration: none;
    color: #2E2A24;
    letter-spacing: 0.04em;
    padding: 6px 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    transition: font-weight 200ms ease-in-out;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover::after,
    .nav-link:focus-visible::after {
        transform: translateX(-50%) scaleX(1);
    }

    .nav-link:hover,
    .nav-link:focus-visible {
        font-weight: 700;
        font-variation-settings: "wght" 700;
    }
}

@media (hover: none) and (pointer: coarse) {
    .nav-link::after {
        transition: transform 250ms ease-out;
    }

    .nav-link.is-tapping::after,
    .nav-link:active::after {
        transform: translateX(-50%) scaleX(1);
    }

    .nav-link.is-tapping,
    .nav-link:active {
        font-weight: 700;
        font-variation-settings: "wght" 700;
    }
}

.nav-back {
    width: 44px;
    height: 44px;
    padding: 0;
}

.nav-back::after {
    width: 26px;
}

.nav-back-icon {
    width: 28px;
    height: 28px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 18px;
    text-align: center;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    padding: 0 8px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.travel-content {
    font-family: "Garamond", "Times New Roman", serif;
    font-weight: 400;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.travel-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(46, 42, 36, 0.2);
}

.travel-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.travel-header {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}


.page-title {
    font-size: 2.25rem;
    margin: 0;
}

.page-body {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* RSVP form */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(560px, 90vw);
    text-align: left;
    font-family: "Garamond", "Times New Roman", serif;
    font-weight: 400;
}

.rsvp-required-note {
    margin: 0;
    font-size: 0.95rem;
    color: #a14132;
}

.rsvp-required {
    color: #a14132;
}

.rsvp-field {
    border: 1px solid rgba(46, 42, 36, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 2px rgba(46, 42, 36, 0.04);
}

.rsvp-label {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}


.rsvp-input {
    border: none;
    border-bottom: 1px solid rgba(46, 42, 36, 0.45);
    background: transparent;
    padding: 6px 2px;
    font-size: 1rem;
    font-family: "Garamond", "Times New Roman", serif;
    color: #2E2A24;
    width: 100%;
}

.rsvp-input::placeholder {
    color: rgba(46, 42, 36, 0.6);
}

.rsvp-number {
    width: 120px;
    margin-top: 8px;
}

.rsvp-input:focus {
    outline: none;
    border-color: #2E2A24;
}

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

.rsvp-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.rsvp-toggle {
    position: relative;
    cursor: pointer;
}

.rsvp-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rsvp-toggle-box {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(46, 42, 36, 0.6);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.rsvp-toggle-box::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #2E2A24;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 150ms ease, transform 150ms ease;
}

.rsvp-toggle-input:checked + .rsvp-toggle-box {
    border-color: #2E2A24;
    box-shadow: 0 0 0 2px rgba(46, 42, 36, 0.15);
}

.rsvp-toggle-input:checked + .rsvp-toggle-box::after {
    opacity: 1;
    transform: scale(1);
}

.rsvp-toggle-input:focus-visible + .rsvp-toggle-box {
    box-shadow: 0 0 0 3px rgba(46, 42, 36, 0.25);
}

.rsvp-help {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(46, 42, 36, 0.7);
}


.rsvp-submit {
    align-self: flex-start;
    border: 1px solid rgba(46, 42, 36, 0.35);
    background: #F8F4E8;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 1rem;
    font-family: "BonaNovaSC", "Garamond", "Times New Roman", serif;
    letter-spacing: 0.04em;
    color: #2E2A24;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.rsvp-submit:hover,
.rsvp-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(46, 42, 36, 0.15);
}

.rsvp-response {
    font-family: "Garamond", "Times New Roman", serif;
    font-weight: 400;
}

@media (max-width: 520px) {
    .rsvp-options {
        flex-direction: column;
        gap: 8px;
    }

    .rsvp-submit {
        width: 100%;
        text-align: center;
    }
}

/* Event schedule styles */
.event-schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.event-schedule table {
    width: 100%;
    border-collapse: collapse;
}

.event-schedule td {
    padding: 4px 8px;
    white-space: nowrap;
}

.event-schedule td:first-child {
    text-align: left;
}

.event-schedule td:nth-child(2) {
    text-align: center;
    font-weight: 400;
    font-style: normal;
}

.event-schedule td:last-child {
    text-align: right;
    font-family: "Garamond", "Times New Roman", serif;
    font-weight: 400;
}

.ext-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 12px;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-family: "Garamond", "Times New Roman", serif;
    font-weight: 400;
    font-size: 1.25rem;
}

.ext-link:link {
    color: #0066cc;
}

.ext-link:visited {
    color: #800080;
}




.site-header {
    position: absolute;
    top: 1vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.site-title {
    position: relative;
    padding: 10px 24px;
    font-size: 2.6rem;
    letter-spacing: 0.06em;
    font-family: "Yesteryear", "Garamond", "Times New Roman", serif;
    color: #2E2A24;
    white-space: nowrap;
    z-index: -1;
}

.glass-title {
    background: #F8F4E8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 2px rgba(46, 42, 36, 0.06);
    border-radius: 999px;
}

.site-subtitle {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -8px;
    padding: 6px 16px;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    font-family: "BonaNovaSC", "Garamond", "Times New Roman", serif;
    color: #2E2A24;
    white-space: nowrap;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ── Flower sprite foreground (bottom) ── */
/* z-index is set inline: 2 for top/bottom, 1 for sides */
.flower-foreground {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    pointer-events: none;
    overflow: visible;
}

/* Top edge: pinned to top, flowers flipped upside-down so bases face the top edge */
.flower-foreground-top {
    bottom: auto;
    top: 0;
    transform: scaleY(-1);
}

.flower-sprite {
    position: absolute;
    bottom: 0;
    height: auto;
    max-height: 17.5vh;
    pointer-events: auto;
    transform-origin: bottom center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0.5px 0 0 rgba(255, 255, 255, 0.5))
            drop-shadow(-0.5px 0 0 rgba(255, 255, 255, 0.5))
            drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.5))
            drop-shadow(0 -0.5px 0 rgba(255, 255, 255, 0.5));
    cursor: pointer;
    transform: translateX(-50%);
}

.flower-sprite.flower-flipped {
    transform: translateX(-50%) scaleX(-1);
}

/* Desktop: CSS :hover only */
@media (hover: hover) and (pointer: fine) {
    .flower-sprite:hover {
        transform: translateX(-50%) scale(1.2) translateY(-8px);
    }

    .flower-sprite.flower-flipped:hover {
        transform: translateX(-50%) scaleX(-1) scale(1.2) translateY(-8px);
    }
}

/* Mobile: JS .is-hovering only */
@media (hover: none) and (pointer: coarse) {
    .flower-sprite.is-hovering {
        transform: translateX(-50%) scale(1.2) translateY(-8px);
    }

    .flower-sprite.flower-flipped.is-hovering {
        transform: translateX(-50%) scaleX(-1) scale(1.2) translateY(-8px);
    }
}

/* ── Flower sprite sidebar (left / right edges) ── */
.flower-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 30vw;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Right sidebar: anchored to right edge, flipped so flower bases face outward */
.flower-sidebar-right {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.flower-side-sprite {
    position: absolute;
    left: 0;
    width: auto;
    max-width: 17.5vw;
    pointer-events: auto;
    transform-origin: left center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0.5px 0 0 rgba(255, 255, 255, 0.5))
            drop-shadow(-0.5px 0 0 rgba(255, 255, 255, 0.5))
            drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.5))
            drop-shadow(0 -0.5px 0 rgba(255, 255, 255, 0.5));
    cursor: pointer;
    /* rotate 90deg so the flower grows horizontally from the edge inward */
    transform: translateY(-50%) rotate(90deg);
}

.flower-side-sprite.flower-flipped {
    transform: translateY(-50%) rotate(90deg) scaleX(-1);
}

/* Desktop: CSS :hover only */
@media (hover: hover) and (pointer: fine) {
    .flower-side-sprite:hover {
        transform: translateY(-50%) rotate(90deg) scale(1.2) translateY(-8px);
    }

    .flower-side-sprite.flower-flipped:hover {
        transform: translateY(-50%) rotate(90deg) scaleX(-1) scale(1.2) translateY(-8px);
    }
}

/* Mobile: JS .is-hovering only */
@media (hover: none) and (pointer: coarse) {
    .flower-side-sprite.is-hovering {
        transform: translateY(-50%) rotate(90deg) scale(1.2) translateY(-8px);
    }

    .flower-side-sprite.flower-flipped.is-hovering {
        transform: translateY(-50%) rotate(90deg) scaleX(-1) scale(1.2) translateY(-8px);
    }
}
