:root {
    --forest: #26372f;
    --cream: #f5f0e7;
    --paper: #fffdf8;
    --clay: #2f0410;
    --ink: #25302a;
    --muted: #6e746f
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Montserrat, sans-serif;
    font-weight: 300;
    line-height: 1.7
}

body.no-scroll {
    overflow: hidden
}

a {
    color: inherit
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3,
.monogram {
    font-family: Italiana, Georgia, serif;
    font-weight: 400
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.05;
    margin-bottom: 1rem
}

.kicker,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .72rem;
    font-weight: 600
}

.button {
    display: inline-flex;
    padding: .85rem 1.4rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .7rem;
    font-weight: 600
}

.button-outline {
    border: 1px solid
}

.button.is-disabled {
    opacity: .55;
    cursor: not-allowed
}

.hero {
    min-height: 100svh;
    position: relative;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(90deg, rgba(15, 26, 21, .75), rgba(15, 26, 21, .28)), url('../js/assets/images/bg1.webp') center 35%/cover no-repeat
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 26, 21, .45), transparent 40%);
    pointer-events: none
}

.nav {
    position: absolute;
    z-index: 3;
    top: 0;
    width: 100%;
    padding: 1.2rem clamp(1.2rem, 5vw, 4.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.monogram {
    text-decoration: none;
    font-size: 1.5rem
}

.monogram span {
    color: #dfc497
}

.nav-links {
    display: flex;
    gap: 2rem
}

.nav-links a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .68rem;
    font-weight: 500
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    text-transform: uppercase;
    letter-spacing: .12em
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 7rem 1.25rem 3rem
}

.hero h1 {
    font-size: clamp(4rem, 11vw, 8.5rem);
    line-height: .85;
    margin: .7rem 0 1.4rem;
    text-shadow: 0 3px 22px #0004
}

.hero h1 span {
    color: #dfc497;
    font-size: .7em
}

.hero-copy {
    font: 400 clamp(1.15rem, 2vw, 1.55rem) Italiana, serif
}

.date-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 2.2rem auto
}

.date-lockup strong {
    font-size: 1.1rem;
    letter-spacing: .13em;
    padding: 0 1.2rem;
    border-inline: 1px solid #ffffff88
}

.date-lockup span {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .65rem
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .16em;
    font-size: .65rem;
    margin-top: 2rem
}

.scroll-cue span {
    font-size: 1.2rem;
    animation: float 1.8s infinite
}

.music-button {
    position: fixed;
    z-index: 20;
    right: 1rem;
    bottom: 1rem;
    border: 1px solid #ffffff88;
    border-radius: 999px;
    background: var(--forest);
    color: white;
    padding: .7rem 1rem;
    display: flex;
    gap: .55rem;
    box-shadow: 0 8px 25px #0003;
    font: 600 .65rem Montserrat, sans-serif;
    text-transform: uppercase;
    letter-spacing: .1em
}

.music-button[aria-pressed="true"] .music-icon {
    animation: pulse 1.2s infinite
}

.countdown-section,
.timeline-section,
.gallery-section {
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem)
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem
}

.section-heading .kicker,
.venue-card .kicker,
.closing-section .kicker {
    color: var(--clay)
}

.dress-card .kicker {
    color: #fff
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 170px));
    justify-content: center
}

.countdown div {
    text-align: center;
    padding: 1.2rem;
    border-right: 1px solid #cfc7ba
}

.countdown div:last-child {
    border: 0
}

.countdown strong {
    display: block;
    font: 400 clamp(2.2rem, 6vw, 4.7rem) Italiana, serif;
    line-height: 1
}

.countdown span {
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: .62rem
}

.venue-section {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    min-height: 720px;
    background: var(--paper)
}

.venue-photo {
    min-height: 550px;
    background: url('../js/assets/images/venue.webp') center/cover no-repeat
}

.venue-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(3rem, 8vw, 8rem)
}

.venue-name {
    font: 400 1.5rem Italiana, serif;
    margin: .8rem 0
}

.venue-address {
    color: var(--muted);
    max-width: 430px
}

.venue-time {
    font-weight: 500;
    margin: 1rem 0 2rem
}

.timeline {
    max-width: 820px;
    margin: auto
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 34px 1fr;
    min-height: 135px
}

.timeline-item time {
    text-align: right;
    padding-top: .2rem;
    font-weight: 600
}

.timeline-dot {
    position: relative
}

.timeline-dot:before {
    content: "";
    position: absolute;
    top: .55rem;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid var(--clay);
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--cream)
}

.timeline-dot:after {
    content: "";
    position: absolute;
    top: 1.4rem;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #cfc7ba
}

.timeline-item:last-child .timeline-dot:after {
    display: none
}

.timeline-item h3 {
    font-size: 1.65rem;
    margin: 0
}

.timeline-item p {
    color: var(--muted)
}

.dress-section {
    padding: clamp(5rem, 10vw, 9rem) 1.25rem;
    background: linear-gradient(#1e2f27e0, #1e2f27e0), url('../js/assets/images/bg1.webp') center/cover fixed;
    color: white
}

.dress-card {
    max-width: 680px;
    text-align: center;
    margin: auto;
    padding: clamp(2.5rem, 6vw, 5rem);
    border: 1px solid #ffffff59;
    background: #1d2b2480;
    backdrop-filter: blur(8px)
}

.dress-icon {
    font-size: 2rem;
    color: #dfc497
}

.dress-card p {
    max-width: 510px;
    margin-inline: auto
}

.dress-card small {
    display: block;
    color: #dedbd3
}

.palette {
    display: flex;
    justify-content: center;
    gap: .65rem;
    margin: 2rem 0 1rem
}

.dress-card .palette-note {
    margin: 1.75rem auto -.75rem;
    color: #dfc497;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase
}

.palette span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--swatch);
    border: 1px solid #ffffff99
}

.gallery {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem
}

.gallery-item {
    border: 0;
    padding: 0;
    overflow: hidden;
    background: #ddd;
    cursor: zoom-in
}

.gallery-tall {
    grid-row: span 2
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s
}

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

.gallery-detail img {
    object-position: center 70%
}

.closing-section {
    text-align: center;
    padding: clamp(6rem, 12vw, 11rem) 1.25rem;
    background: var(--paper)
}

.closing-section div {
    max-width: 780px;
    margin: auto
}

.closing-section p:last-child {
    font: 400 1.7rem Italiana, serif;
    color: var(--clay)
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem clamp(1.25rem, 6vw, 6rem);
    background: var(--forest);
    color: white;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase
}

footer p {
    margin: 0
}

footer a {
    text-decoration: none
}

.lightbox {
    width: min(92vw, 1000px);
    height: min(88vh, 800px);
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible
}

.lightbox::backdrop {
    background: #0a100dee
}

.lightbox img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.lightbox button {
    position: absolute;
    right: 0;
    top: -2.5rem;
    color: white;
    background: none;
    border: 0;
    font-size: 2rem
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s, transform .8s
}

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

@keyframes float {
    50% {
        transform: translateY(7px)
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.25)
    }
}

@media(max-width:760px) {
    .hero {
        background-image: linear-gradient(0deg, #0f1a15bf, #0f1a1538), url('../js/assets/images/bg2.webp')
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 1rem;
        display: none;
        flex-direction: column;
        gap: 0;
        background: #1c2b23f5;
        padding: .8rem
    }

    .nav-links.is-open {
        display: flex
    }

    .nav-links a {
        padding: .7rem 1rem
    }

    .nav-toggle {
        display: block
    }

    .hero h1 {
        font-size: clamp(3.8rem, 19vw, 6rem)
    }

    .date-lockup {
        gap: .65rem
    }

    .date-lockup strong {
        padding: 0 .65rem;
        font-size: .85rem
    }

    .date-lockup span {
        font-size: .55rem
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
        max-width: 430px;
        margin: auto
    }

    .countdown div:nth-child(2) {
        border-right: 0
    }

    .countdown div:nth-child(-n+2) {
        border-bottom: 1px solid #cfc7ba
    }

    .venue-section {
        grid-template-columns: 1fr
    }

    .venue-photo {
        min-height: 60vh
    }

    .venue-card {
        padding: 4rem 1.5rem
    }

    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px
    }

    .gallery-tall {
        grid-row: auto
    }

    .dress-section {
        background-attachment: scroll
    }

    footer {
        gap: 1rem
    }

    .music-button #musicLabel {
        display: none
    }

    .music-button {
        padding: .75rem
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none
    }

    .scroll-cue span,
    .music-button[aria-pressed="true"] .music-icon {
        animation: none
    }

    .gallery-item img {
        transition: none
    }
}
