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

:root {
    --bg: #f5f1eb;
    --bg-soft: #ebe4d8;
    --ink: #2a2520;
    --ink-soft: #5a4f43;
    --accent: #8a7355;
    --accent-soft: #b8a585;
    --line: #c9bca6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--bg);
    color: var(--ink);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    color: var(--accent);
    margin: 2rem 0;
}

.ornament .line {
    width: 60px;
    height: 1px;
    background: var(--line);
}

.ornament .symbol {
    font-size: 1rem;
    letter-spacing: 0.4em;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
    background:
        radial-gradient(ellipse at top, rgba(184, 165, 133, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(138, 115, 85, 0.1) 0%, transparent 60%),
        var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 2rem;
    border: 1px solid var(--line);
    pointer-events: none;
}

.hero-overline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.3s forwards;
}

.hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 12vw, 7.5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--ink);
    opacity: 0;
    animation: fadeUp 1.4s ease 0.6s forwards;
}

.hero-names .amp {
    display: block;
    font-style: italic;
    font-size: 0.55em;
    color: var(--accent);
    margin: 0.4rem 0;
    font-family: 'Cormorant Garamond', serif;
}

.hero-date {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeUp 1.4s ease 0.9s forwards;
}

.hero-date .day,
.hero-date .year {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--ink-soft);
}

.hero-date .month {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.2rem;
}

.hero-subtitle {
    margin-top: 2.5rem;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 32rem;
    opacity: 0;
    animation: fadeUp 1.4s ease 1.2s forwards;
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    animation: fadeIn 1.5s ease 1.8s forwards, bounce 2.5s ease infinite 3s;
}

.scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: var(--accent);
    margin: 0.8rem auto 0;
}

/* Sections */
section {
    padding: 6rem 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--ink);
    margin: 2rem 0;
}

.invitation-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--ink-soft);
    max-width: 38rem;
    margin: 0 auto;
}

.invitation-text strong {
    font-weight: 500;
    color: var(--ink);
    font-style: italic;
}

/* Details cards */
.details {
    background: var(--bg-soft);
    position: relative;
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.details::before,
.details::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4rem;
    background: var(--line);
}

.details::before { top: 0; }
.details::after { bottom: 0; }

.details-inner {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-block {
    padding: 3rem 2rem;
    position: relative;
}

.detail-block:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--line);
}

.detail-icon {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: lowercase;
    margin-bottom: 1.2rem;
}

.detail-primary {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.detail-secondary {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

a.detail-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.detail-link .detail-primary,
a.detail-link .detail-secondary {
    transition: color 0.3s ease;
}

a.detail-link:hover .detail-primary,
a.detail-link:hover .detail-secondary {
    color: var(--accent);
}

/* Note section */
.note {
    padding: 6rem 1.5rem;
    text-align: center;
}

.note-card {
    max-width: 36rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    border: 1px solid var(--line);
    position: relative;
}

.note-card::before,
.note-card::after {
    content: '❦';
    position: absolute;
    color: var(--accent);
    background: var(--bg);
    padding: 0 1rem;
    font-size: 1rem;
}

.note-card::before {
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
}

.note-card::after {
    bottom: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
}

.note-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-soft);
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    background: var(--bg-soft);
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.footer-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    padding: 3rem 0rem;
}

/* Responsive */
@media (max-width: 640px) {
    .hero::before {
        inset: 1rem;
    }

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

    .detail-block:first-child::after {
        display: none;
    }

    .detail-block:first-child {
        border-bottom: 1px solid var(--line);
    }

    .hero-date {
        gap: 1.2rem;
    }

    .hero-date .day,
    .hero-date .year {
        font-size: 0.85rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .details {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}
