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

:root {
    --cream: #f8f4ee;
    --warm: #ede6d9;
    --sand: #d4c5ae;
    --bark: #8c7355;
    --deep: #3a2e22;
    --sage: #7a8c72;
    --blush: #c8a090;
    --text: #3a2e22;
    --muted: #9e8e7a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Decorative top border ── */
.top-stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--sage) 0%, var(--sand) 40%, var(--blush) 70%, var(--bark) 100%);
}

/* ── Header ── */
header {
    text-align: center;
    padding: 3rem 2rem 0;
    background: var(--cream);
    position: relative;
}

.monogram {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--bark);
    margin-bottom: 0.6rem;
}

.couple-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    color: var(--deep);
    letter-spacing: -0.01em;
    animation: riseIn 1s ease both;
}

.ampersand {
    color: var(--blush);
}

.date-line {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.8rem;
    margin-bottom: 2.5rem;
    animation: riseIn 1s 0.2s ease both;
}

/* ── Decorative divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin: 0.5rem 0;
}
.divider-line { flex: 1; max-width: 80px; height: 1px; background: var(--sand); }
.divider-leaf { color: var(--sage); font-size: 0.85rem; }

/* ── Nav tabs ── */
nav {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid var(--sand);
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.9rem 1.6rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
    position: relative;
    bottom: -1px;
}

.tab-btn:hover { color: var(--bark); }

.tab-btn.active {
    color: var(--deep);
    border-bottom-color: var(--bark);
}

/* ── Main content ── */
main {
    flex: 1;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page { display: none; }
.page.active {
    display: block;
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ── */
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    font-style: italic;
    color: var(--deep);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--bark);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bark);
    margin-bottom: 0.6rem;
}

p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #5c4f3d;
    margin-bottom: 1.2rem;
}

ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #5c4f3d;
    margin-bottom: 1.2rem;
}
ul li::before {
    content: '✦';
    color: #c9a96e;
    margin-right: 10px;
    font-size: 12px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.6rem;
}

/* ── Home page ── */
.hero-text {
    text-align: center;
    padding: 1rem 0 3rem;
}

.hero-text h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.hero-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--muted);
    margin: 2rem auto;
    max-width: 42ch;
    line-height: 1.7;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5px;
    background: var(--sand);
    border: 1.5px solid var(--sand);
    margin-top: 3rem;
}

.event-card {
    background: var(--cream);
    padding: 2rem 1.5rem;
    text-align: center;
}

.event-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.event-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.event-card p { font-size: 0.82rem; margin: 0; color: var(--muted); }

/* ── Our Story ── */
.story-block {
    display: grid;
    grid-template-columns: 3px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.story-line { background: var(--sand); border-radius: 2px; }

.story-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--blush);
    display: block;
    margin-bottom: 0.2rem;
}

/* ── Details ── */
.detail-section {
    border-top: 1px solid var(--warm);
    padding-top: 2rem;
    margin-top: 2rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: baseline;
}

.detail-key {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.1rem;
}

.detail-val {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: none;
    border-bottom: 1px solid var(--sage);
    padding-bottom: 1px;
    transition: color 0.2s;
}
.map-link:hover { color: var(--bark); border-color: var(--bark); }

/* ── Travel ── */
.hotel-card {
    border: 1px solid var(--sand);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.hotel-badge {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--sage);
    color: #fff;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.75rem;
}

/* ── RSVP / Contact ── */
.rsvp-form {
    max-width: 520px;
}

.field {
    margin-bottom: 1.2rem;
}

.field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--sand);
    border-radius: 0;
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

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

.field textarea { min-height: 90px; resize: vertical; }

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
}

.radio-option input { width: auto; }

.btn {
    display: inline-block;
    background: var(--deep);
    color: var(--cream);
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

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

.success-msg {
    display: none;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--sage);
    margin-top: 1.5rem;
}

    /* Timeline */
.timeline {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #d4c4b0 8%, #d4c4b0 92%, transparent);
}

.event {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 44px;
    animation: fadeUp 0.6s ease both;
}

.event:nth-child(1) { animation-delay: 0.05s; }
.event:nth-child(2) { animation-delay: 0.12s; }
.event:nth-child(3) { animation-delay: 0.19s; }
.event:nth-child(4) { animation-delay: 0.26s; }
.event:nth-child(5) { animation-delay: 0.33s; }
.event:nth-child(6) { animation-delay: 0.40s; }
.event:nth-child(7) { animation-delay: 0.47s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.icon-circle {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d4c4b0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event:hover .icon-circle {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(201,169,110,0.2);
}

.event-body {
    padding-top: 8px;
}

.event-time {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a96e;
    margin-bottom: 4px;
}

.event-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.2;
    color: #3a2e28;
    margin-bottom: 6px;
}

.event-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #7a6a5a;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--sand);
    text-transform: uppercase;
    border-top: 1px solid var(--warm);
}