/* Pinyon & Crimson Pro */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Pinyon+Script&display=swap');

:root {
    --gold: #D4AF37;
    --gold-deep: #7A5F17;
    --gold-dark: #5C480F;
    --blush: #F9D5D3;
    --olive: #6B705C;
    --charcoal: #4A4E4D;
    --cream: #FFFDFA;
    --cream-deep: #FBF4E9;

    --font-main: "Crimson Pro", serif;
    --font-script: "Pinyon Script", cursive;
    --font-body: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;

    --radius-pill: 999px;
    --shadow-card: 0 30px 60px -25px rgba(90, 70, 20, 0.35);
    --shadow-soft: 0 10px 25px -10px rgba(90, 70, 20, 0.25);
    --transition: 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition: 0ms;
    }

    * {
        scroll-behavior: auto !important;
    }
}

::selection {
    color: var(--cream);
    background: var(--gold-deep);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background:
        radial-gradient(circle at 12% 8%, rgba(217, 195, 138, 0.28), transparent 45%),
        radial-gradient(circle at 88% 92%, rgba(249, 213, 211, 0.35), transparent 50%),
        url(../images/body-bg.webp), var(--cream-deep);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    height: 100vh;
    overflow: hidden;

}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* =========== Welcome / Celebration section =========== */

.welcome-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: 36px 6vh;
}

.welcome-card {
    width: 100%;
    max-width: 820px;
    background: var(--cream);
    box-shadow: var(--shadow-card);
    padding: 40px;
    text-align: center;
    position: relative;
    border: 2px solid var(--gold);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* monogram crest, built in CSS since no logo asset was supplied yet */
.monogram {
    width: 180px;
    border-radius: 20px;
    overflow: hidden;
}

.monogram img {
    width: 100%;
    height: auto;
}

.welcome-eyebrow {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.welcome-title {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 3rem;
    color: var(--gold-deep);
}

.welcome-subtext {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0;
}

/* action row: compact icon+label links on tablet/desktop */
.welcome-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blush);
    border: none;
    border-radius: 50px;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    text-decoration: none;
    transition: color var(--transition);
}

.action-link i,
.action-link svg {
    font-size: 1.2rem;
    color: var(--gold-deep);
}

.action-link:hover,
.action-link:focus-visible {
    color: var(--gold-deep);
}

.action-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 6px;
}

/* full pill buttons, used on small screens (see res.css) */
.action-pill {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, var(--gold-deep), var(--gold-dark));
    color: var(--cream);
    border: none;
    border-radius: var(--radius-pill);
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.action-pill i,
.action-pill svg {
    font-size: 1.1rem;
}

.action-pill:active {
    transform: scale(0.98);
}

.action-pill:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: -4px;
}

.welcome-divider {
    width: 64px;
    height: 3px;
    border-radius: 50px;
    background: var(--gold);
    opacity: 0.5;
}

.welcome-tagline {
    font-family: var(--font-script);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--gold-deep);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
}

/* ===========
   Shared modal shell
   =========== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(74, 78, 77, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition);
    z-index: 1000;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    background: var(--cream);
    border-radius: 22px;
    width: 100%;
    box-shadow: var(--shadow-card);
    transform: translateY(16px) scale(0.98);
    transition: transform var(--transition);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.is-open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 12px;
    border-bottom: 1px solid rgba(107, 112, 92, 0.12);
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--charcoal);
    line-height: 1.4;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--olive);
    padding: 4px;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--cream-deep);
    color: var(--gold-deep);
}

/* ---- Special message modal ---- */

.message-modal {
    width: fit-content;
    max-width: 98vw;
    width: 850px;
}

.message-body {
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.video-frame {
    position: relative;
    height: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream);
    /* box-shadow: var(--shadow-soft); */
}

.video-frame video {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: var(--cream);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 253, 250, 0.92);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-deep);
    font-size: 1.4rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.video-play-btn:hover,
.video-play-btn:focus-visible {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--cream);
}

.video-play-btn .icon-pause {
    display: none;
}

/* once playing, shrink the overlay to a small pause control tucked in the
   top-right corner — kept clear of the bottom controls bar at any aspect ratio */
.video-play-btn.is-playing {
    top: 12px;
    left: auto;
    bottom: auto;
    right: 12px;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    background: rgba(74, 78, 77, 0.55);
    color: var(--cream);
}

.video-play-btn.is-playing:hover,
.video-play-btn.is-playing:focus-visible {
    transform: scale(1.06);
    background: rgba(74, 78, 77, 0.7);
}

.video-play-btn.is-playing .icon-play {
    display: none;
}

.video-play-btn.is-playing .icon-pause {
    display: inline;
}

/* overlay control bar: seek + time, docked to the bottom of the video frame */
.video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 12px;
    background: linear-gradient(to top, rgba(20, 18, 10, 0.65), rgba(20, 18, 10, 0));
    pointer-events: none;
}

.video-controls .audio-progress,
.video-controls .audio-time {
    pointer-events: auto;
}

.audio-progress-wrap {
    width: 100%;
}

.audio-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: var(--radius-pill);
    background: linear-gradient(to right,
            var(--gold) 0%,
            var(--gold) var(--range-progress, 0%),
            rgba(255, 255, 255, 0.35) var(--range-progress, 0%),
            rgba(255, 255, 255, 0.35) 100%);
    cursor: pointer;
}

.audio-progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: var(--radius-pill);
    background: transparent;
}

.audio-progress::-moz-range-track {
    height: 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.35);
}

.audio-progress::-moz-range-progress {
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--gold);
}

.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--cream);
    box-shadow: var(--shadow-soft);
    margin-top: -5px;
    cursor: pointer;
}

.audio-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--cream);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.audio-time {
    font-size: 0.75rem;
    color: var(--cream);
    opacity: 0.9;
    margin-top: 6px;
    letter-spacing: 0.02em;
    text-align: right;
}

.message-footer {
    padding: 14px 24px 26px;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.15rem;
    color: var(--gold-deep);
    border-top: 1px solid rgba(107, 112, 92, 0.12);
    flex-shrink: 0;
}