:root {
    --navy: #0d1b3e;
    --navy-light: #162247;
    --peach: #e8a87c;
    --peach-dark: #c97d4e;
    --sky: #93c6e0;
    --sky-light: #c8dff0;
    --white: #fdfaf6;
    --offwhite: #f5ede3;
    --muted: rgba(253, 250, 246, 0.55);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    /*--font-accent: 'Cormorant Garamond', serif;*/
    --font-accent: 'EB Garamond', serif;

    --radius-sm: 2px;
    --section-py: 6rem;
    --transition: 0.35s ease;
}

/* TEXT COLORS */
.text-sky {
    color: var(--sky);
}

.text-sky-light {
    color: var(--sky-light);
}

.text-navy {
    color: var(--navy);
}

.text-peach {
    color: var(--peach);
}

.text-peach-dark {
    color: var(--peach-dark);
}

.text-white {
    color: var(--white);
}

.text-offwhite {
    color: var(--offwhite);
}

.text-muted {
    color: var(--muted);
}


/* ========================================
   FONT HELPERS
======================================== */

.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

.font-accent {
    font-family: var(--font-accent);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
}

section {
    width: 100%;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-left: 2rem
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

.section-label {
    display: inline-block;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: .875rem;
    line-height: 1.25rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--peach-dark);
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 4rem;
    height: 1px;
    background: var(--peach);
    margin: 1rem auto 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.navbar.scrolled {
    background: rgba(13, 27, 62, 0.92);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--peach);
    letter-spacing: 0.01em;
    line-height: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253, 250, 246, 0.75);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--peach);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 62, 0.97);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(253, 250, 246, 0.8);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--peach);
}

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--peach);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.25rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--peach-dark);
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.25rem;
    text-transform: uppercase;
    border: 1px solid rgba(253, 250, 246, 0.4);
    cursor: pointer;
    border-radius: 2px;
    transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
    border-color: var(--peach);
    color: var(--peach);
}

.btn-outline-dark {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(232, 168, 124, 0.4);
    color: var(--peach-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--peach);
    color: var(--navy);
}

.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    background: #25d366;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}



.music-control {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.25rem;
    background: rgba(13, 27, 62, 0.82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: 9999px;
    transition: padding-right 0.2s ease;
}

.music-control.is-playing:hover,
.music-control.is-playing:focus-within {
    padding-right: 0.6rem;
}

.music-fab {
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.music-fab:hover {
    transform: scale(1.05);
}

.music-volume-slider {
    width: 0;
    opacity: 0;
    pointer-events: none;
    margin-left: 0;
    accent-color: var(--white);
    cursor: pointer;
    transition: width 0.2s ease, opacity 0.2s ease, margin-left 0.2s ease;
}

.music-control.is-playing:hover .music-volume-slider,
.music-control.is-playing:focus-within .music-volume-slider {
    width: 6rem;
    opacity: 1;
    pointer-events: auto;
    margin-left: 0.4rem;
}

.music-icon {
width: 18px;
height: 18px;
color: rgba(253, 250, 246, 0.6);
}

.music-icon.is-hidden {
    display: none;
}

#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 27, 62, 0.82) 0%,
        rgba(13, 27, 62, 0.65) 40%,
        rgba(13, 27, 62, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 48rem;
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-pre {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--peach);
    margin-bottom: 1rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--white);
}

.hero-ampersand {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--peach);
    display: block;
    margin: 0.25rem 0;
}

.hero-date {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sky-light);
    margin: 1.5rem 0 2.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-tile {
    position: relative;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(13, 27, 62, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(253, 250, 246, 0.1);
    overflow: hidden;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--peach);
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(253, 250, 246, 0.55);
    margin-top: 0.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-mouse {
    width: 1.25rem;
    height: 2rem;
    border: 2px solid rgba(253, 250, 246, 0.4);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.35rem;
}

.scroll-dot {
    width: 0.25rem;
    height: 0.5rem;
    background: var(--peach);
    border-radius: 9999px;
    animation: scrollBounce 1.6s infinite;
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(6px);
        opacity: 0.4;
    }
}

#story {
    padding: 6rem 0;
    background: var(--white);
    color: var(--navy);
}

#story .section-label {
    color: var(--peach-dark);
}

.story-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
}

.story-timeline {
    max-width: 64rem;
    margin: 4rem auto 0;
}

.story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.story-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e3ef;
    transform: translateX(-50%);
}

.story-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--peach);
    border: 2px solid var(--navy);
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.story-img {
    overflow: hidden;
    border-radius: 2px;
}

.story-img img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.story-img:hover img {
    transform: scale(1.05);
}

.story-text {
    padding: 1rem;
}

.story-item.reverse .story-img {
    order: 2;
}

.story-item.reverse .story-text {
    order: 1;
    text-align: right;
}

.story-sub {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--peach-dark);
    margin-bottom: 0.5rem;
}

.story-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.story-body {
    font-size: 0.975rem;
    line-height: 1.8;
    color: #5a5580;
}

#events {
    padding: 6rem 0;
    background: var(--navy);
}

.events-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 3.5rem auto 3rem;
}

.event-card {
    background: rgba(22, 34, 71, 0.5);
    border: 1px solid rgba(232, 168, 124, 0.15);
    border-radius: 2px;
    text-align: center;
    backdrop-filter: blur(4px);
    overflow: hidden;
    padding: 0;
}

.event-card .event-emoji,
.event-card .event-title,
.event-card .event-details {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.event-card .event-emoji {
    padding-top: 2.5rem;
    font-size:2.25rem;
    line-height: 2.5rem;
}

.event-card .event-details {
    padding-bottom: 2rem;
}

.event-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--peach);
    margin-bottom: 1.5rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.event-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(253, 250, 246, 0.65);
}

.event-detail i {
    color: var(--sky);
    width: 1rem;
    height: 1rem;
}

.event-note {
    font-size: 0.9rem;
    color: rgba(253, 250, 246, 0.4);
    margin-top: 0.5rem;
}

.event-map {
    margin-top: 0;
    line-height: 0;
}

.event-map iframe {
    width: 100%;
    height: 200px;
    display: block;
    border: 0;
    border-radius: 0;
}

.colour-code {
    text-align: center;
    margin-bottom: 2.5rem;
}

.colour-code-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
}

.colour-chips {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.colour-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(232, 168, 124, 0.3);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(253, 250, 246, 0.75);
}

.colour-chip-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 9999px;
    flex: 0 0 auto;
    border: 1px solid rgba(253, 250, 246, 0.35);
}

.colour-chip--navy .colour-chip-swatch {
    background: var(--navy);
}

.colour-chip--sky .colour-chip-swatch {
    background: var(--sky);
}

.colour-chip--peach .colour-chip-swatch {
    background: var(--peach);
}

.colour-chip--white .colour-chip-swatch {
    background: var(--white);
}

.events-reception {
    text-align: center;
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: rgba(253, 250, 246, 0.5);
    margin-top: 1.5rem;
}

#gallery {
    padding: 6rem 0;
    background: var(--white);
    color: var(--navy);
}

.gallery-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 3rem;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 326 / 408.828;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-cta {
    text-align: center;
    margin-top: 2.5rem;
}

#moments {
    padding: 6rem 0;
    background: var(--white);
    color: var(--navy);
    border-top: 1px solid #e8e5f0;
}

.moments-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
}

.moments-sub {
    text-align: center;
    font-size: 1rem;
    color: #7e7a9a;
    max-width: 32rem;
    margin: 0.75rem auto 2.5rem;
    line-height: 1.7;
}

.moments-upload {
    text-align: center;
    margin-bottom: 3rem;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.moment-card {
    background: #f7f5fd;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.moment-media {
    position: relative;
}

.moment-media img,
.moment-media video {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.moment-card:hover .moment-media img,
.moment-card:hover .moment-media video {
    transform: scale(1.05);
}

.moment-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.35rem 0.7rem;
    background: rgba(13, 27, 62, 0.9);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
}

.moment-info {
    padding: 0.75rem;
}

.moment-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moment-like {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #7e7a9a;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: color 0.3s;
}

.moment-like:hover {
    color: var(--peach-dark);
}

.moment-caption {
    font-size: 0.78rem;
    color: #726d8d;
    line-height: 1.6;
    margin-top: 0.35rem;
}

.moment-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #7e7a9a;
    padding: 2rem 1rem;
    border: 1px dashed rgba(201, 125, 78, 0.25);
    border-radius: 2px;
    background: #faf8ff;
}

.moment-empty p + p {
    margin-top: 0.5rem;
}

.moments-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(13, 27, 62, 0.78);
    backdrop-filter: blur(8px);
}

.moments-modal-card {
    width: min(100%, 42rem);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    background: var(--white);
    color: var(--navy);
    border-radius: 6px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
}

.moments-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.moments-modal-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--peach-dark);
    margin-bottom: 0.35rem;
}

.moments-modal-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    color: var(--navy);
}

.moments-modal-close {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.moments-modal-copy {
    margin-top: 0.75rem;
    color: #6d6785;
    line-height: 1.7;
}

.moments-form {
    margin-top: 1.5rem;
}

.moments-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.moments-full {
    grid-column: 1 / -1;
}

.moments-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.moments-label span {
    font-weight: 400;
    color: #7e7a9a;
}

.moments-input,
.moments-file {
    background: #fbf9ff;
    border-color: rgba(13, 27, 62, 0.12);
    color: var(--navy);
}

.moments-input::placeholder {
    color: rgba(13, 27, 62, 0.35);
}

.moments-input:focus,
.moments-file:focus {
    border-color: var(--peach-dark);
    box-shadow: none;
}

.moment-hint,
.moment-file-name,
.moment-status-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #7a7493;
    line-height: 1.6;
}

.moment-error {
    display: block;
    margin-top: 0.45rem;
    color: #c94b4b;
    font-size: 0.78rem;
}

.moment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.moments-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: var(--navy);
    border: 1px solid rgba(13, 27, 62, 0.14);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.moments-secondary-btn:hover {
    background: rgba(13, 27, 62, 0.04);
    border-color: rgba(13, 27, 62, 0.22);
}

.moments-submit-btn {
    min-width: 11rem;
}

@media (max-width: 767.98px) {
    .moments-modal {
        padding: 1rem;
    }

    .moments-modal-card {
        padding: 1.25rem;
    }

    .moments-modal-grid {
        grid-template-columns: 1fr;
    }

    .moment-form-actions {
        flex-direction: column-reverse;
    }

    .moment-form-actions > * {
        width: 100%;
    }
}

#rsvp {
    padding: 6rem 0;
    background: var(--navy);
}

.rsvp-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.rsvp-form-wrap {
    max-width: 32rem;
    margin: 3.5rem auto 0;
}

.rsvp-success {
    max-width: 32rem;
    margin: 0 auto 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(147, 198, 224, 0.3);
    border-radius: 2px;
    background: rgba(147, 198, 224, 0.12);
    color: var(--white);
    text-align: center;
    line-height: 1.6;
}

.text-error {
    display: block;
    margin-top: 0.45rem;
    color: #f2a6a6;
    font-size: 0.78rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(22, 34, 71, 0.5);
    border: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s;
}

.form-control::placeholder {
    color: rgba(253, 250, 246, 0.35);
}

.form-control:focus {
    border-color: var(--peach);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

textarea.form-control {
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem 2rem;
    background: var(--peach);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--peach-dark);
}

.rsvp-contacts {
    margin-top: 4rem;
    text-align: center;
}

.rsvp-contacts p {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: rgba(253, 250, 246, 0.55);
    margin-bottom: 1rem;
}

.contacts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(253, 250, 246, 0.65);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--peach);
}

footer {
    padding: 3rem 0;
    background: var(--navy);
    border-top: 1px solid rgba(232, 168, 124, 0.1);
    text-align: center;
}

.footer-hashtag {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-style: italic;
    color: var(--peach);
    margin-bottom: 0.5rem;
}

.footer-credit {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(253, 250, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .moments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    #home {
        min-height: 100svh;
        align-items: flex-start;
        padding: 6.5rem 0 8rem;
    }

    .hero-content {
        width: 100%;
        max-width: 26rem;
        padding: 0 1rem;
    }

    .hero-pre {
        font-size: 0.95rem;
        line-height: 1.3;
        letter-spacing: 0.22em;
        margin-bottom: 0.75rem;
    }

    .hero-name {
        font-size: clamp(3rem, 15vw, 4.25rem);
        line-height: 1;
    }

    .hero-ampersand {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin: 0.15rem 0;
    }

    .hero-date {
        max-width: 21rem;
        margin: 1.1rem auto 1.6rem;
        font-size: 0.92rem;
        line-height: 1.45;
        letter-spacing: 0.14em;
    }

    .countdown {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 1rem;
        max-width: 18rem;
        margin: 0 auto 1.75rem;
    }

    .countdown-tile {
        width: 4.5rem;
        height: 4.5rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .hero-ctas {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline {
        width: min(100%, 18rem);
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    .story-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-item::before,
    .story-item::after {
        display: none;
    }

    .story-item.reverse .story-img,
    .story-item.reverse .story-text {
        order: unset;
        text-align: left;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item {
        width: 100%;
        aspect-ratio: 326 / 408.828;
    }
}

@media (max-width: 480px) {
    #home {
        padding: 6rem 0 7.5rem;
    }

    .hero-content {
        max-width: 22rem;
    }

    .hero-pre {
        font-size: 0.8rem;
        letter-spacing: 0.18em;
    }

    .hero-name {
        font-size: clamp(2.5rem, 16vw, 3.5rem);
    }

    .hero-date {
        max-width: 18rem;
        font-size: 0.82rem;
        letter-spacing: 0.1em;
    }

    .countdown {
        max-width: 15rem;
        gap: 0.75rem;
    }

    .countdown-tile {
        width: 4rem;
        height: 4rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .moments-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-list {
        flex-direction: column;
        align-items: center;
    }

    .music-control {
        left: 1rem;
        bottom: 1rem;
    }

    .music-control.is-playing:hover .music-volume-slider,
    .music-control.is-playing:focus-within .music-volume-slider {
        width: 4.5rem;
    }

    .footer-credit {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
}

/* WIDTH */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.w-9 {
    width: 2.25rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

/* HEIGHT */
.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-7 {
    height: 1.75rem;
}

.h-8 {
    height: 2rem;
}

.h-9 {
    height: 2.25rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.h-16 {
    height: 4rem;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}
