:root {
    --color-bg: #fcf7ee;
    --color-bg-alt: #f3ece0;
    --color-text: #3a342c;
    --color-muted: #7a7066;
    --color-sage: #7d896a;
    --color-sage-deep: #4f5e44;
    --color-apricot: #dca482;
    --color-apricot-soft: #efcab3;
    --color-line: #e5dcc9;

    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-script: "Great Vibes", "Cormorant Garamond", cursive;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    --section-pad-y: clamp(4rem, 9vw, 7rem);
    --section-pad-x: clamp(1.5rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(220, 164, 130, 0.10), transparent 60%),
        var(--color-bg);
}

.hero__corner {
    position: absolute;
    width: clamp(180px, 26vw, 360px);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.hero__corner img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}
.hero__corner--tl { top: 0; left: 0; transform-origin: top left; }
.hero__corner--br { bottom: 0; right: 0; transform-origin: bottom right; }

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--color-sage-deep);
    margin-bottom: 2rem;
}

.hero__names {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(4.5rem, 13vw, 9.5rem);
    line-height: 1;
    color: var(--color-sage-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero__name { display: block; }

.hero__connector {
    font-family: var(--font-script);
    font-size: 0.55em;
    color: var(--color-sage-deep);
    line-height: 1;
    margin: -0.15em 0;
}

.hero__date {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.3em;
    color: var(--color-text);
    text-transform: uppercase;
}

.hero__place {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-muted);
    letter-spacing: 0.02em;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.75rem;
    height: 3rem;
    display: flex;
    justify-content: center;
}
.hero__scroll::before {
    content: "";
    width: 1px;
    height: 100%;
    background: var(--color-sage);
    opacity: 0.5;
}
.hero__scroll span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: var(--color-apricot);
    border-radius: 50%;
    animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0% { top: 0; opacity: 1; }
    70% { top: 100%; opacity: 0; }
    100% { top: 0; opacity: 0; }
}

/* ─── Section primitives ────────────────────────────────────────────── */

.section {
    padding: var(--section-pad-y) var(--section-pad-x);
    max-width: 1200px;
    margin: 0 auto;
}

.section__head {
    text-align: center;
    margin-bottom: 4rem;
}

.section__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-sage-deep);
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    color: var(--color-sage-deep);
    line-height: 1.1;
}

.section__divider {
    width: 90px;
    height: auto;
    margin: 1.25rem auto 0;
    display: block;
    mix-blend-mode: multiply;
}
.section__divider--left { margin-left: 0; }

/* ─── Harmonogram ───────────────────────────────────────────────────── */

.section--harmonogram { background: var(--color-bg); }

.timeline {
    list-style: none;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--color-line);
}

.timeline__item {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.25rem 0;
    position: relative;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: calc(5.5rem - 6px);
    top: 1.85rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1.5px solid var(--color-sage);
}

.timeline__item--highlight::before {
    background: var(--color-apricot);
    border-color: var(--color-apricot);
    box-shadow: 0 0 0 6px rgba(220, 164, 130, 0.15);
}

.timeline__time {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-sage-deep);
    text-align: right;
    letter-spacing: 0.05em;
    padding-right: 0.85rem;
}

.timeline__item--highlight .timeline__time { color: var(--color-apricot); }

.timeline__body { padding-left: 1.75rem; }

.timeline__body h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.timeline__body p {
    font-size: 0.95rem;
    color: var(--color-muted);
}

/* ─── Venue ─────────────────────────────────────────────────────────── */

.section--venue {
    background: var(--color-bg-alt);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.venue {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.venue__figure {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 30px 60px -30px rgba(58, 52, 44, 0.25);
}
.venue__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue__copy { max-width: 460px; }

.venue__copy .section__title { text-align: left; }
.venue__copy .section__eyebrow { text-align: left; }

.venue__lead {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--color-text);
}

.venue__address {
    margin-top: 1.25rem;
    color: var(--color-muted);
}

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

.section--rsvp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.rsvp { text-align: left; max-width: 460px; }
.rsvp .section__eyebrow { text-align: left; }
.rsvp .section__title { text-align: left; }
.rsvp .section__divider { margin-left: 0; }

.rsvp__lead {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
}

.rsvp__lead strong {
    font-weight: 700;
    color: var(--color-sage-deep);
}

.rsvp__note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.rsvp__figure {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 30px 60px -30px rgba(58, 52, 44, 0.25);
}
.rsvp__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Info ──────────────────────────────────────────────────────────── */

.section--info {
    background: var(--color-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-line);
    border-radius: 2px;
    padding: clamp(1.25rem, 4vw, 3rem);
    text-align: center;
    box-shadow: 0 30px 60px -40px rgba(58, 52, 44, 0.2);
}

.info-card__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--color-sage-deep);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.info-card__lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-apricot);
    margin-bottom: 1.25rem;
}

.info-card p {
    color: var(--color-muted);
    font-size: 0.98rem;
}

/* ─── Button ────────────────────────────────────────────────────────── */

.button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.95rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button--solid {
    background: var(--color-sage-deep);
    color: var(--color-bg);
}
.button--solid:hover {
    background: var(--color-text);
    transform: translateY(-2px);
}

.button--ghost {
    background: transparent;
    color: var(--color-sage-deep);
    border: 1px solid var(--color-sage);
}
.button--ghost:hover {
    background: var(--color-sage-deep);
    color: var(--color-bg);
    transform: translateY(-2px);
}

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

.footer {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-line);
}

.footer__flower {
    width: 110px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    mix-blend-mode: multiply;
}

.footer__names {
    font-family: var(--font-script);
    font-size: 2.75rem;
    color: var(--color-sage-deep);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.footer__date {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-muted);
}

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

@media (max-width: 720px) {
    .venue,
    .section--rsvp {
        grid-template-columns: 1fr;
    }
    .venue__figure,
    .rsvp__figure {
        max-width: 460px;
        margin: 0 auto;
    }
    .timeline::before { left: 4rem; }
    .timeline__item { grid-template-columns: 4rem 1fr; gap: 1rem; }
    .timeline__item::before { left: calc(4rem - 6px); }
    .timeline__time { font-size: 1.3rem; padding-right: 0.6rem; }
    .timeline__body { padding-left: 1.25rem; }
    .timeline__body h3 { font-size: 1.15rem; }
}
