:root {
    --bg:          #ffffff;
    --bg-alt:      #eef3fb;     /* pale blue */
    --bg-warm:     #fbf5e1;     /* pale yellow */
    --ink:         #1f3358;     /* deep navy (matches logo) */
    --ink-soft:    #5a6a83;
    --accent:      #c9a85a;     /* gold (matches logo) */
    --accent-soft: #f0e3b0;     /* pastel yellow */
    --rule:        #dde6f1;     /* pale blue line */
    --serif:       "Cormorant Garamond", "Times New Roman", serif;
    --sans:        "Montserrat", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: url('cursor.png') 0 0, auto;
}

a, button, [role="button"], label, input[type="submit"] {
    cursor: url('cursor.png') 0 0, pointer;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.01em; color: var(--ink); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ───── Gate ───── */

.body--gate {
    min-height: 100vh;
    display: flex;
}

.gate {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(238, 243, 251, 0.9), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(251, 245, 225, 0.9), transparent 60%),
        var(--bg);
}

.gate__inner {
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.gate__eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--ink-soft);
    margin: 0 0 2rem;
}

.gate__monogram {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(4rem, 12vw, 7rem);
    margin: 0 0 1.5rem;
    line-height: 1;
    color: var(--ink);
}

.gate__logo {
    display: block;
    margin: 0 auto 1.5rem;
    width: clamp(220px, 60vw, 360px);
    height: auto;
}

.gate__hint {
    color: var(--ink-soft);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.gate__form {
    display: flex;
    gap: 0.5rem;
    margin: 0 auto;
    max-width: 360px;
}

.gate__form input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 1px solid var(--rule);
    background: #fff;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
    border-radius: 0;
    outline: none;
    transition: border-color 0.15s;
}
.gate__form input:focus {
    border-color: var(--accent);
}

.gate__form button {
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.gate__form button:hover {
    background: transparent;
    color: var(--ink);
}

.gate__error {
    min-height: 1.4em;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: #a34;
}

/* ───── Hero ───── */

.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(238, 243, 251, 0.9), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(251, 245, 225, 0.9), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--rule);
}

.hero__inner { max-width: 900px; }

.hero__date {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--ink-soft);
    margin: 0 0 2rem;
}

.hero__logo {
    display: block;
    margin: 0 auto;
    width: clamp(280px, 70vw, 560px);
    height: auto;
}

.hero__title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(3.5rem, 14vw, 9rem);
    line-height: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    color: var(--ink);
}

.hero__title .hero__amp {
    font-style: italic;
    color: var(--accent);
    font-size: 0.7em;
}

.hero__location {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    color: var(--ink-soft);
    margin: 1.5rem 0 3rem;
}

/* ───── Countdown ───── */

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    flex-wrap: wrap;
}

.countdown > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}

.countdown strong {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
}

.countdown span {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.65rem;
    color: var(--ink-soft);
    margin-top: 0.5rem;
}

/* ───── Nav ───── */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rule);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nav a {
    color: var(--ink);
    padding: 0.25rem 0;
}
.nav a:hover {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.nav__signout {
    color: var(--ink-soft) !important;
    font-size: 0.7rem;
}

/* ───── Sections ───── */

.section {
    padding: 5rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section--alt {
    background: var(--bg-alt);
    max-width: none;
    margin: 0;
}

.section--alt > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin: 0 auto 3rem;
    position: relative;
    font-weight: 300;
    display: block;
    width: 100%;
}

.section h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 1rem auto 0;
}

/* ───── Story ───── */

.story {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.story p + p { margin-top: 1.5rem; }

.story-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.story-grid .story {
    max-width: none;
    margin: 0;
    text-align: left;
}

.story-marquee {
    height: 540px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.story-marquee__track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: story-scroll 60s linear infinite;
    will-change: transform;
}

.story-marquee__track img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

@keyframes story-scroll {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .story-marquee__track { animation: none; }
}

@media (max-width: 720px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .story-grid .story { text-align: center; }
    .story-marquee {
        height: 420px;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ───── Details ───── */

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.details article {
    padding: 2rem 1rem;
}

.details__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 6px 24px rgba(31, 51, 88, 0.12);
}

.details__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    font-weight: 500;
}

.details__time {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-size: 1.15rem;
    margin: 0 0 1rem;
}

.details p { margin: 0.25rem 0; }

.details-blocks {
    display: grid;
    gap: 5rem;
}

.details-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.details-block:nth-child(even) > .details-block__text { order: 2; }

.details-block__text {
    text-align: left;
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.details-block__text p { margin: 0; }

.details-block__time {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-size: 1.5rem;
    margin: 0 0 0.5rem !important;
    line-height: 1.2;
}

.details-block__venue {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 500;
    margin: 0 !important;
    line-height: 1.2;
}

.details-block__address {
    font-family: var(--sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-soft);
    margin: 0.5rem 0 1.25rem !important;
}

.details-block__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    box-shadow: 0 6px 24px rgba(31, 51, 88, 0.08);
}

@media (max-width: 720px) {
    .details-blocks { gap: 3rem; }
    .details-block {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .details-block:nth-child(even) > .details-block__text { order: unset; }
    .details-block__text { text-align: center; }
}

/* ───── Schedule ───── */

.schedule {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
}

.schedule li {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
}

.schedule li:last-child { border-bottom: 0; }

.schedule__time {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    flex: 0 0 7.5rem;
    font-size: 1.65rem;
    line-height: 1.2;
}

.schedule__event {
    flex: 1;
    font-size: 1rem;
}

/* ───── Travel ───── */

.travel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.travel article {
    padding: 1.5rem;
    background: var(--bg-warm);
    border: 1px solid var(--rule);
    border-radius: 4px;
    text-align: center;
}

.travel__icon {
    color: var(--accent);
    margin: 0 auto 0.75rem;
    width: 40px;
    height: 40px;
}

.travel__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.travel h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem;
    font-weight: 500;
}

.travel p { margin: 0.5rem 0; color: var(--ink-soft); }

/* ───── RSVP ───── */

#rsvp { text-align: center; max-width: 640px; }
.rsvp__lead { font-family: var(--serif); font-size: 1.4rem; color: var(--ink-soft); }
.rsvp__note { font-style: italic; color: var(--ink-soft); margin-top: 2rem; font-size: 0.95rem; }

.rsvp-form {
    max-width: 560px;
    margin: 2.5rem auto 0;
    text-align: left;
    display: grid;
    gap: 1.25rem;
}

.rsvp-form .field { display: grid; gap: 0.4rem; }

.rsvp-form > .field > label,
.rsvp-form .group-label {
    font-family: var(--sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"],
.rsvp-form textarea,
.rsvp-form select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--rule);
    background: var(--bg-warm);
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s;
}
.rsvp-form input:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus { border-color: var(--accent); }

.rsvp-form textarea { min-height: 96px; resize: vertical; }

.rsvp-form .radio-group {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    padding-top: 0.25rem;
}
.rsvp-form .radio-group label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink);
}

.rsvp-form .row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 600px) {
    .rsvp-form .row { grid-template-columns: 1fr; }
}

.rsvp-form button {
    justify-self: center;
    margin-top: 0.5rem;
    padding: 0.85rem 2.25rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    cursor: url('cursor.png') 0 0, pointer;
    transition: background 0.15s, color 0.15s;
}
.rsvp-form button:hover {
    background: transparent;
    color: var(--ink);
}

/* ───── Gift list ───── */

#gift-list { text-align: center; }
.gift-card {
    margin: 2rem auto 0;
    max-width: 560px;
    padding: 2.5rem 2rem;
    background: var(--bg-warm);
    border: 1px solid var(--rule);
    border-radius: 6px;
}
.gift-card h3 {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
}
.gift-card p { color: var(--ink-soft); margin: 0.5rem 0 1.75rem; }
.gift-card .gift-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.8rem;
    transition: background 0.15s, color 0.15s;
}
.gift-card .gift-button:hover {
    background: var(--ink); color: #fff; text-decoration: none;
}

/* ───── FAQ ───── */

.faq { max-width: 700px; margin: 0 auto; }
.faq dt {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    margin-top: 2rem;
    font-weight: 500;
}
.faq dt:first-child { margin-top: 0; }
.faq dd {
    margin: 0.5rem 0 0;
    color: var(--ink-soft);
}

/* ───── Footer ───── */

.footer {
    text-align: center;
    padding: 7rem 1.5rem;
    border-top: 1px solid var(--rule);
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink);
    font-size: 1.2rem;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
        url('footer-photo.jpg');
    background-size: cover;
    background-position: center;
}
.footer a { font-size: 0.75rem; font-style: normal; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }

/* ───── Responsive ───── */

@media (max-width: 600px) {
    .gate__form { flex-direction: column; }
    .nav { gap: 1rem; font-size: 0.7rem; letter-spacing: 0.15em; }
    .nav__signout { margin-left: 0; }
    .section { padding: 3.5rem 1.25rem; }
    .schedule__time { flex: 0 0 6.5rem; font-size: 1.45rem; }
}
