:root {
    --ink: #1c1f1c;
    --ink-soft: #3d443d;
    --mist: #e8eeea;
    --paper: #f3f6f4;
    --sage: #5f735f;
    --sage-deep: #3e5240;
    --champagne: #c2b39a;
    --line: rgba(28, 31, 28, 0.12);
    --font-display: "Fraunces", "Times New Roman", serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --space: clamp(1.25rem, 3vw, 2.5rem);
    --max: 70rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.65;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(95, 115, 95, 0.12), transparent 55%),
        radial-gradient(90% 60% at 0% 40%, rgba(194, 179, 154, 0.16), transparent 50%),
        var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Nav */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), color 0.35s var(--ease);
    color: #f7faf7;
}

.site-nav.is-scrolled {
    background: rgba(243, 246, 244, 0.88);
    backdrop-filter: blur(14px);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.site-nav__brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.site-nav__brand span {
    margin: 0 0.35rem;
    opacity: 0.55;
    font-weight: 400;
}

.site-nav__links {
    display: flex;
    gap: 1.5rem;
}

.site-nav__links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.88;
}

.site-nav__links a:hover {
    opacity: 1;
}

.site-nav__toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.site-nav__toggle span {
    display: block;
    width: 1.25rem;
    height: 1.5px;
    margin: 0.35rem auto;
    background: currentColor;
    transition: transform 0.25s var(--ease);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    color: #f7faf7;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: hero-zoom 18s var(--ease) forwards;
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 24, 18, 0.28) 0%, rgba(18, 24, 18, 0.18) 35%, rgba(18, 24, 18, 0.72) 100%),
        linear-gradient(90deg, rgba(18, 24, 18, 0.35), transparent 45%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 42rem);
    margin: 0 auto 0 clamp(1rem, 6vw, 5rem);
    padding: 0 0 clamp(4.5rem, 10vh, 6.5rem);
    animation: rise 1.1s var(--ease) both;
}

.hero__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.88;
}

.hero__names {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(3.4rem, 11vw, 6.75rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hero__names span {
    display: block;
}

.hero__amp {
    display: block;
    margin: 0.15em 0;
    font-size: 0.42em;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0;
}

.hero__lead {
    margin: 1.35rem 0 1.75rem;
    max-width: 28rem;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.55;
    opacity: 0.92;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2.2rem;
    border: 1px solid rgba(247, 250, 247, 0.45);
    border-radius: 999px;
    display: grid;
    place-items: start center;
    padding-top: 0.4rem;
    text-decoration: none;
}

.hero__scroll span {
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: #f7faf7;
    animation: scroll-dot 1.6s var(--ease) infinite;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--sage-deep);
    color: #f7faf7;
}

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

.hero .btn--primary {
    background: #f7faf7;
    color: var(--ink);
}

.hero .btn--primary:hover {
    background: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: rgba(247, 250, 247, 0.45);
    color: #f7faf7;
}

.btn--ghost:hover {
    border-color: #f7faf7;
}

/* Sections */
.section {
    padding: clamp(4.5rem, 12vw, 8rem) 0;
}

.section__inner {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.section__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--sage);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section__text {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    max-width: 36rem;
}

.section__text--narrow {
    max-width: 28rem;
}

.section__header {
    margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

/* Story */
.story__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.story__figure {
    margin: 0;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 4rem 1.5rem;
    aspect-ratio: 4 / 5;
}

.story__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.timeline__item {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1.25rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.timeline__item time {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--sage-deep);
}

.timeline__item h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
}

.timeline__item p {
    margin: 0;
    color: var(--ink-soft);
}

/* Venue */
.venue {
    background:
        linear-gradient(180deg, rgba(95, 115, 95, 0.08), transparent 40%),
        var(--mist);
}

.venue__layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: end;
}

.venue__copy .btn {
    margin-top: 0.75rem;
}

.venue__note h3 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.venue__note ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.venue__note li {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.venue__note li span {
    display: block;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* RSVP */
.rsvp__layout {
    max-width: 36rem;
}

.rsvp__message {
    margin: 0 0 1.25rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--sage-deep);
    font-weight: 500;
}

.rsvp__form {
    display: grid;
    gap: 1.1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

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

.field label {
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 0.75rem 0;
    font: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-bottom-color: var(--sage);
}

.field textarea {
    resize: vertical;
    min-height: 5.5rem;
}

/* Footer */
.site-footer {
    padding: 3.5rem 1.25rem 4rem;
    text-align: center;
    border-top: 1px solid var(--line);
}

.site-footer__names {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 500;
}

.site-footer__date {
    margin: 0.5rem 0 0;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-zoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}

@keyframes scroll-dot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(0.9rem);
        opacity: 0;
    }
}

@media (max-width: 860px) {
    .site-nav__toggle {
        display: block;
    }

    .site-nav__links {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem;
        background: rgba(243, 246, 244, 0.96);
        border: 1px solid var(--line);
        border-radius: 1rem;
        color: var(--ink);
    }

    .site-nav.is-open .site-nav__links {
        display: flex;
    }

    .site-nav__links a {
        padding: 0.75rem 0.85rem;
    }

    .hero__content {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .story__grid,
    .venue__layout {
        grid-template-columns: 1fr;
    }

    .story__figure {
        order: -1;
        max-height: 26rem;
        border-radius: 1.25rem;
    }

    .timeline__item {
        grid-template-columns: 4.75rem 1fr;
        gap: 0.85rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

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

    .hero__media img,
    .hero__content,
    .hero__scroll span,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
