:root {
    --sage: #687b52;
    --deep-sage: #3f5538;
    --cream: #fffdf4;
    --paper: #fff8e8;
    --champagne: #f4e9d0;
    --blush: #f8d8d6;
    --coral: #d98b65;
    --orange: #e8a66f;
    --ink: #34402d;
    --muted: #69705f;
    --line: #dfcfaf;
    --shadow: 0 24px 80px rgba(63, 85, 56, .13);
    --serif: "Cormorant Garamond", Georgia, serif;
    --script: "Great Vibes", cursive;
    --sans: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(248, 216, 214, .55), transparent 32rem),
        linear-gradient(180deg, #fffdf4 0%, #fbf4df 100%);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

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

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

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 12px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid rgba(223, 207, 175, .75);
    background: rgba(255, 253, 244, .86);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-size: 24px;
    color: var(--deep-sage);
}

.brand img {
    width: 72px;
    /*height: 72px;*/
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}

.main-nav a,
.menu-button {
    border: 0;
    background: transparent;
    color: #56604b;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--coral);
}

.nav-rsvp {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.menu-button {
    display: none;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.section-pad {
    padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 54px);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: 3rem;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: rgba(248, 216, 214, .55);
    filter: blur(18px);
    z-index: -1;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.hero-image-wrap {
    position: relative;
    border: 1px solid rgba(223, 207, 175, .75);
    border-radius: 36px;
    padding: 12px;
    background: rgba(255, 248, 232, .7);
    box-shadow: var(--shadow);
        align-self: stretch;
    margin-top: 0;
}

.hero-image-wrap img {
    width: 100%;
    /*height: min(72vh, 760px); */
    max-height: 900px;
    height:100%;
    overflow: hidden;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 28px;
}

.hero-card,
.invite-paper,
.timeline-card,
.note-card,
.detail-card,
.rsvp-shell {
    position: relative;
    border: 1px solid var(--line);
    background: rgba(255, 253, 244, .92);
    box-shadow: var(--shadow);
        align-self: stretch;
    margin-top: 0;
}

.hero-card::after,
.invite-paper::after,
.timeline-card::after,
.note-card::after,
.detail-card::after,
.rsvp-shell::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(223, 207, 175, .6);
    border-radius: inherit;
    pointer-events: none;
}

.hero-card {
    border-radius: 34px;
    padding: clamp(34px, 5vw, 58px);
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--sage);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1;
}

h1 {
    font-size: clamp(72px, 10vw, 132px);
    color: var(--deep-sage);
}

.hero-card 
.hero-card .hero-names {
    font-family: var(--script);
    font-size: clamp(78px, 12vw, 150px);
    font-weight: 400;
    line-height: .92;
    letter-spacing: .01em;
    color: var(--deep-sage);
    text-transform: none;
}

h1 span {
    display: inline;
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.subhead {
    margin: 20px auto 24px;
    max-width: 360px;
    color: var(--muted);
    font-size: 18px;
}

.date-line,
.invite-date {
    margin: 26px auto 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    color: var(--deep-sage);
    font-family: var(--serif);
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: .08em;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: var(--deep-sage);
    color: white;
    box-shadow: 0 14px 30px rgba(63, 85, 56, .22);
}

.button.secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .42);
    color: var(--deep-sage);
}

.intro-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}
.details-grid,
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.note-card {
    grid-column: span 2;
    min-height: 320px;
    padding: 42px;
    border-radius: 32px;
}

.note-card h2,
.section-heading h2,
.detail-card h2,
.rsvp-form h2 {
    color: var(--deep-sage);
    font-size: clamp(42px, 5vw, 74px);
}

.note-card p:last-child,
.section-heading p,
.detail-card p,
.rsvp-form p,
.fine-print {
    color: var(--muted);
}

.portrait-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(63, 85, 56, .13);
}

.portrait-card.tall {
    grid-row: span 2;
}

.portrait-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.portrait-card div {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 24px;
    background: rgba(255, 253, 244, .82);
    backdrop-filter: blur(10px);
}

.portrait-card p {
    margin: 0;
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1;
}

.portrait-card span,
.hotel-card span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading.left {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 1180px;
}

.invitation-section {
    background: linear-gradient(180deg, rgba(244, 233, 208, .55), rgba(255, 253, 244, .4));
}

.invite-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

.invite-paper {
    border-radius: 34px;
    padding: clamp(34px, 6vw, 68px);
    text-align: center;
}

.invite-monogram {
    width: 138px;
    height: 138px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin: 0 auto 28px;
    mix-blend-mode: multiply;
}

.invite-paper h2 {
    color: var(--deep-sage);
    font-size: clamp(66px, 10vw, 112px);
}

.invite-paper p:not(.eyebrow) {
    max-width: 520px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 18px;
}

.event-stack {
    display: grid;
    gap: 18px;
}

.event-stack article,
.story-step,
.hotel-card {
    border: 1px solid rgba(223, 207, 175, .85);
    border-radius: 28px;
    background: rgba(255, 255, 255, .48);
    padding: 28px;
}

.event-stack span {
    color: var(--coral);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.event-stack h3,
.story-step h3,
.hotel-card h3 {
    margin-top: 12px;
    color: var(--deep-sage);
    font-size: 34px;
}

.event-stack p,
.story-step p,
.hotel-card p {
    color: var(--muted);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.story-step span {
    font-family: var(--serif);
    color: var(--coral);
    font-size: 44px;
}

.quote-card {
    position: relative;
    max-width: 1180px;
    margin: 34px auto 0;
    overflow: hidden;
    border-radius: 34px;
    min-height: 390px;
}

.quote-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.quote-card blockquote {
    position: absolute;
    right: 34px;
    bottom: 34px;
    left: 34px;
    margin: 0;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 28px;
    background: rgba(255, 253, 244, .78);
    color: var(--deep-sage);
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.05;
    backdrop-filter: blur(8px);
}

.timeline-card {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 34px;
    padding: 28px clamp(24px, 4vw, 48px);
}

.timeline-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(223, 207, 175, .8);
}

.timeline-row:last-child {
    border-bottom: 0;
}

.timeline-row time {
    color: var(--deep-sage);
    font-family: var(--serif);
    font-size: 28px;
}

.timeline-row h3 {
    color: var(--deep-sage);
    font-size: 30px;
}

.timeline-row p {
    margin: 6px 0 0;
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 290px;
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 14px 40px rgba(63, 85, 56, .1);
}

.gallery-grid .wide {
    grid-column: span 2;
}

#home > section:nth-child(even) {
    background: rgba(244, 233, 208, .4);
}

.detail-card {
    grid-column: span 2;
    min-height: 360px;
    border-radius: 32px;
    padding: 42px;
}

.image-card {
    overflow: hidden;
    padding: 0;
}

.image-card::after {
    display: none;
}

.image-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

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

.hotel-card a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--deep-sage);
    font-weight: 700;
}

.fine-print {
    max-width: 1180px;
    margin: 26px auto 0;
    font-size: 14px;
}

.rsvp-shell {
    display: grid;
    grid-template-columns: .95fr 1fr;
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 36px;
}

.rsvp-image img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.rsvp-form {
    position: relative;
    z-index: 1;
    padding: clamp(34px, 5vw, 62px);
}

.rsvp-form label {
    display: block;
    margin-top: 18px;
    color: var(--deep-sage);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .66);
    color: var(--ink);
    font: inherit;
}

.rsvp-form button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    cursor: pointer;
}

.form-message {
    min-height: 24px;
    margin-top: 16px;
    color: var(--deep-sage);
    font-size: 14px;
}

.footer {
    padding: 48px 18px 64px;
    text-align: center;
}

.footer img {
    width: 120px;
    /*height: 76px;*/
    object-fit: cover;
    margin: 0 auto 16px;
    mix-blend-mode: multiply;
}

.footer p {
    margin: 0;
    color: var(--deep-sage);
    font-family: var(--serif);
    font-size: 42px;
}

.footer span {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .menu-button {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        display: none;
        flex-direction: column;
        justify-content: center;
        background: rgba(255, 253, 244, .96);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        font-family: var(--serif);
        font-size: 36px;
        letter-spacing: .04em;
        text-transform: none;
    }

    .hero,
    .invite-grid,
    .rsvp-shell {
        grid-template-columns: 1fr;
    }

    .hero-image-wrap img {
    width: 100%;
    height: min(72vh, 760px);
    object-fit: cover;
    object-position: center 30%;
    border-radius: 28px;
}

    .intro-grid,
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .note-card,
    .detail-card {
        grid-column: span 2;
    }

    .story-grid,
    .hotel-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 230px;
    }

    .rsvp-image img {
        min-height: 420px;
    }
}

@media (max-width: 620px) {
    .site-header {
        min-height: 66px;
    }

    .brand span {
        display: none;
    }

    .section-pad {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 96px;
    }

    .hero-card,
    .invite-paper,
    .note-card,
    .detail-card,
    .timeline-card,
    .rsvp-form {
        padding: 28px;
    }

    .intro-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .note-card,
    .detail-card,
    .portrait-card.tall {
        grid-column: auto;
        grid-row: auto;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gallery-grid {
        gap: 10px;
        grid-auto-rows: 165px;
    }

    .gallery-grid .wide {
        grid-column: span 2;
    }

    .quote-card blockquote {
        right: 16px;
        bottom: 16px;
        left: 16px;
        padding: 22px;
    }
}


@media (max-width: 620px) {
    .hero-card .hero-names {
        font-size: clamp(58px, 18vw, 86px);
    }
}



.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


@media (max-width: 800px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: #fffdf4;
    }

    .menu-button {
        display: block;
        position: relative;
        z-index: 10002;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10001;

        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        min-height: 100vh;
        padding: 60px 24px 40px;

        background: #fffdf4;
        border-bottom: 1px solid #d8c9aa;
        box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        display: block;
        width: 100%;
        max-width: 320px;
        padding: 14px 0;

        text-align: center;
        font-size: 34px;
        line-height: 1.1;
        color: #3f5538;
        text-decoration: none;
        background: transparent;
    }

    .main-nav .nav-rsvp {
        margin-top: 6px;
    }

    body.menu-open {
        overflow: hidden;
    }
}


.registry {
    background: #f4e9d0;
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.registry-card {
    background: #fffdf4;
    border: 1px solid #e6d8bd;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.registry-card h3 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #3F5538;
}

.registry-card p {
    color: #6b705c;
    margin-bottom: 20px;
}

.venmo-handle {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    color: #3F5538;
}

/* Mobile */
@media (max-width: 800px) {
    .registry-grid {
        grid-template-columns: 1fr;
    }
}

.registry-card:hover {
    transform: translateY(-4px);
    transition: 0.25s ease;
}


.info-card {
    background: #fffdf4;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.info-card h3{
    font-size: 40px;
}

form .inputerror,
form .inputerror:focus,
form .inputerror:focus-visible{
    border:2px solid #ff0000;
    outline: none;  
}