/* Wedding Bells - A Free Design by Bryant Smith (bryantsmith.com)
   An elegant two-colour page for a wedding or special day.
   Every colour, font and space used on the page is gathered here.
   Look for the section headings below to find what you want to change. */


/* ---- COLOURS: change these two lines to restyle the whole page */

body {
    /* The only two colours you really need: an ivory paper and a dusty rose. */
    --paper: #f7f3ee;
    --rose: #9a5c62;
    --rose-deep: #7c464b;

    /* Supporting neutrals and hairlines, built around the two colours above. */
    --ink: #322e2a;
    --ink-soft: #5b544d;
    --muted: #6f655c;
    --line: #e6ddd3;
    --card: #fffdfb;
}


/* ---- RESET: start from a clean, predictable box model ---- */

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


/* ---- BODY: the warm ivory room the page sits in ---- */

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 56px 16px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}


/* ---- PAGE: the centred sheet of content (a little narrower than most) ---- */

#page {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(50, 46, 42, 0.04), 0 18px 48px rgba(50, 46, 42, 0.07);
    margin: 0 auto;
    max-width: 760px;
    padding: 72px 64px 56px 64px;
    text-align: center;
}


/* ---- MASTHEAD: names, date and place at the very top ---- */

#masthead {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.kicker {
    color: var(--rose);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 26px;
    text-transform: uppercase;
}

#masthead h1 {
    color: var(--ink);
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    font-size: 58px;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 1.1;
}

#masthead .name {
    display: inline-block;
}

#masthead .amp {
    color: var(--rose);
    font-style: italic;
    padding: 0 10px;
}

#masthead .date {
    color: var(--ink-soft);
    font-style: italic;
    font-size: 18px;
    margin-top: 22px;
}

#masthead .place {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 10px;
    text-transform: uppercase;
}


/* ---- MENU: a row of quiet text links under the names ---- */

#menu {
    border-bottom: 1px solid var(--line);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 22px 0;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 1px solid transparent;
    color: var(--ink-soft);
    display: inline-block;
    margin: 4px 11px;
    padding-bottom: 2px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: var(--rose);
    color: var(--rose);
}


/* ---- SECTIONS: generous space between each part of the story ---- */

#content section {
    margin-top: 72px;
}

#content section:first-child {
    margin-top: 64px;
}


/* ---- HEADINGS: small, spaced and set in the display serif ---- */

#content h2 {
    color: var(--ink);
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 0.5px;
    line-height: 1.2;
}


/* ---- DIVIDER: a hairline rule with a small diamond in the centre ---- */

.divider {
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
    height: 1px;
    margin: 26px auto 34px auto;
    max-width: 300px;
    position: relative;
}

.divider::after {
    background: var(--card);
    border: 1px solid var(--rose);
    content: "";
    height: 8px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
}


/* ---- TEXT: centred measure, comfortable for reading ---- */

#content p {
    margin: 0 auto 20px auto;
    max-width: 620px;
}

.lead {
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1.7;
}

#content a,
#content a:visited {
    border-bottom: 1px solid rgba(154, 92, 98, 0.4);
    color: var(--rose-deep);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

#content a:hover,
#content a:focus {
    border-bottom-color: var(--rose-deep);
    color: var(--ink);
}


/* ---- QUOTE: a calm, centred italic aside ---- */

blockquote {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 21px;
    font-style: italic;
    line-height: 1.6;
    margin: 40px auto 0 auto;
    max-width: 560px;
    padding: 26px 0;
}

blockquote p {
    margin: 0;
}


/* ---- SCHEDULE: a timed list of the day's events ---- */

.schedule {
    list-style: none;
    margin: 12px auto 0 auto;
    max-width: 560px;
    text-align: left;
}

.schedule li {
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: 120px 1fr;
    padding: 18px 4px;
    transition: background 0.2s ease;
}

.schedule li:last-child {
    border-bottom: none;
}

.schedule li:hover {
    background: #fbf6f6;
}

.schedule .time {
    color: var(--rose);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.schedule .event strong {
    color: var(--ink);
    display: block;
    font-size: 19px;
    font-weight: normal;
}

.schedule .event em {
    color: var(--muted);
    display: block;
    font-size: 15px;
    font-style: normal;
    letter-spacing: 0.3px;
}


/* ---- RSVP CARD: a soft rose panel with a graceful button ---- */

.card {
    background: #fbf6f6;
    border: 1px solid var(--line);
    padding: 52px 48px;
}

.card h2 {
    margin-bottom: 22px;
}

.button {
    border: 1px solid var(--rose);
    color: var(--rose-deep);
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 14px;
    padding: 14px 28px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.button:visited {
    color: var(--rose-deep);
}

.button:hover,
.button:focus {
    background: var(--rose);
    color: #ffffff;
}


/* ---- TIPS: a small, unfussy list inside the template notes ---- */

.tips {
    color: var(--ink-soft);
    list-style: none;
    margin: 0 auto;
    max-width: 560px;
    text-align: left;
}

.tips li {
    border-bottom: 1px solid var(--line);
    padding: 12px 0 12px 26px;
    position: relative;
}

.tips li::before {
    color: var(--rose);
    content: "\2014";
    left: 0;
    position: absolute;
}

.tips li:last-child {
    border-bottom: none;
}


/* ---- CONTACT: a short, warm sign-off before the footer ---- */

.contact p {
    color: var(--ink-soft);
    line-height: 1.9;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 72px;
    padding-top: 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: var(--muted);
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    color: var(--rose);
}


/* ---- SMALL SCREENS: soften type and padding on phones ---- */

@media (max-width: 640px) {
    body {
        padding: 24px 12px;
    }

    #page {
        padding: 44px 26px 36px 26px;
    }

    #masthead h1 {
        font-size: 38px;
    }

    #masthead .amp {
        padding: 0 6px;
    }

    #content h2 {
        font-size: 25px;
    }

    .lead {
        font-size: 18px;
    }

    blockquote {
        font-size: 18px;
    }

    .card {
        padding: 36px 24px;
    }

    .schedule li {
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .schedule .time {
        margin-bottom: 2px;
    }
}


/* ---- PRINT: a clean ivory sheet without shadows or navigation ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        border: none;
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    #menu {
        display: none;
    }

    .card {
        background: #f7f3ee;
    }
}
