/* ==========================================================
   Autumn Wedding Theme
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Great+Vibes&family=Lato:wght@300;400&display=swap');

:root {
    /* Autumn palette */
    --burgundy:     #6b1e2e;
    --rust:         #b5542d;
    --burnt-orange: #d4792c;
    --mustard:      #c9a227;
    --olive:        #5e6b3a;
    --bark:         #4a3428;
    --cream:        #f8f1e4;
    --parchment:    #fffaf2;

    --font-script:  'Great Vibes', cursive;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--bark);
    background-color: var(--cream);
    /* Soft warm glow in the corners */
    background-image:
        radial-gradient(circle at top left, rgba(212, 121, 44, 0.25), transparent 45%),
        radial-gradient(circle at bottom right, rgba(107, 30, 46, 0.22), transparent 50%);
    background-attachment: fixed;
    padding: 3rem 1rem;
}

/* ---------- Header ---------- */

.wedding-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wedding-header .names {
    font-family: var(--font-script);
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 400;
    color: var(--burgundy);
    margin: 0;
    line-height: 1.1;
}

.wedding-header .date {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rust);
    margin: 0.75rem 0 0;
}

/* Leaf-style divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 320px;
    color: var(--burnt-orange);
    font-size: 1.4rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--mustard), transparent);
}

/* ---------- Page layout: sidebar | timeline | sidebar ---------- */

.page {
    display: grid;
    grid-template-columns: 380px minmax(0, 680px) 380px;
    grid-template-areas: "left main right";
    justify-content: center;
    align-items: start;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.content     { grid-area: main; }
.side-left   { grid-area: left; }
.side-right  { grid-area: right; }

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---------- Central content card ---------- */

.content {
    background: var(--parchment);
    border: 1px solid rgba(181, 84, 45, 0.25);
    border-top: 6px solid var(--burgundy);
    border-radius: 6px;
    padding: 2.5rem 2.5rem 3rem;
    box-shadow: 0 12px 40px rgba(74, 52, 40, 0.15);
}

.content h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2.2rem;
    text-align: center;
    color: var(--burgundy);
    margin: 0 0 0.25rem;
}

.content .intro {
    text-align: center;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--olive);
    margin: 0 0 2rem;
}

/* ---------- Side info boxes ---------- */

.info-box {
    background: var(--parchment);
    border: 1px solid rgba(181, 84, 45, 0.25);
    border-left: 4px solid var(--rust);
    border-radius: 6px;
    padding: 1.4rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(74, 52, 40, 0.1);
}

/* Alternate accent colours so the boxes don't all look identical */
.info-box.accent-mustard { border-left-color: var(--mustard); }
.info-box.accent-olive   { border-left-color: var(--olive); }
.info-box.accent-burgundy{ border-left-color: var(--burgundy); }

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--burgundy);
    margin: 0 0 0.6rem;
    line-height: 1.2;
}

.info-box .icon {
    font-size: 1.2rem;
    line-height: 1;
}

.info-box p {
    font-size: 0.95rem;
    margin: 0 0 0.6rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    font-size: 0.95rem;
    margin: 0 0 0.6rem;
    padding-left: 1.1rem;
}

.info-box li::marker {
    color: var(--rust);
}

.info-box a {
    color: var(--rust);
    text-decoration-color: rgba(181, 84, 45, 0.4);
    text-underline-offset: 3px;
}

.info-box a:hover {
    color: var(--burgundy);
}

/* ---------- Timings timeline ---------- */

.timings {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Vertical line down the middle */
.timings::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 110px;
    width: 2px;
    background: linear-gradient(var(--burnt-orange), var(--burgundy));
    opacity: 0.5;
}

.timings li {
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 40px;
    position: relative;
    padding: 0.9rem 0;
}

/* Dot on the line for each event */
.timings li::before {
    content: "";
    position: absolute;
    left: 104px;
    top: 1.35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--parchment);
    border: 3px solid var(--rust);
}

.timings .time {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--rust);
    text-align: right;
}

.timings .event {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--bark);
    margin: 0;
}

.timings .details {
    font-size: 0.95rem;
    color: #6e5a4c;
    margin: 0.2rem 0 0;
}

/* ---------- Footer ---------- */

.wedding-footer {
    text-align: center;
    margin-top: 2.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--olive);
}

/* ---------- Gift details button & pop-up ---------- */

.details-btn {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--parchment);
    background: var(--burgundy);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
    margin-top: 0.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.details-btn:hover {
    background: var(--rust);
}

.modal {
    width: min(420px, 90vw);
    background: var(--parchment);
    color: var(--bark);
    border: none;
    border-top: 6px solid var(--burgundy);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(74, 52, 40, 0.35);
    text-align: center;
}

.modal::backdrop {
    background: rgba(74, 52, 40, 0.55);
}

.modal h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--burgundy);
    margin: 0 0 0.5rem;
}

.bank-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    text-align: left;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border-radius: 4px;
}

.bank-details dt {
    font-weight: 400;
    color: var(--rust);
}

.bank-details dd {
    margin: 0;
    font-family: monospace;
    font-size: 1.05rem;
}


/* ---------- Tablet: timeline on top, boxes in two columns below ---------- */

@media (max-width: 1150px) {
    .page {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "main main"
            "left right";
        max-width: 760px;
    }
}

/* ---------- Mobile: everything stacked ---------- */

@media (max-width: 560px) {
    body {
        padding: 2rem 0.75rem;
    }

    .page {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "left"
            "right";
        gap: 1.5rem;
    }

    .content {
        padding: 2rem 1.25rem 2.25rem;
    }

    .timings::before {
        left: 7px;
    }

    .timings li {
        grid-template-columns: 1fr;
        padding-left: 2rem;
    }

    .timings li::before {
        left: 0;
        top: 1.1rem;
    }

    .timings .time {
        text-align: left;
        font-size: 1.1rem;
    }
}