/* Soft Peach - A Free Design by Bryant Smith (bryantsmith.com)
   A pastel journal built from varied-height cards in a masonry flow.
   Every colour and space used on the page is gathered here; look for the
   section headings below to find the part you want to change. */


/* ---- BODY: the soft peach desk everything rests on ---- */

body {
    background: #fdf2ea;
    color: #514942;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.7;
    padding: 48px 20px;
    text-align: center;
}

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


/* ---- PAGE: the centred wrapper, a little narrower than the screen ---- */

#page {
    margin: 0 auto;
    max-width: 940px;
    text-align: left;
}


/* ---- MASTHEAD: journal title and the row of links ---- */

#masthead {
    margin-bottom: 40px;
    text-align: center;
}

.kicker {
    color: #b04e22;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    color: #2f2a26;
    font-size: 54px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-top: 12px;
}

.tagline {
    color: #6f655d;
    font-size: 18px;
    font-style: italic;
    margin-top: 8px;
}


/* ---- MENU: the navigation links under the tagline ---- */

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 28px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #4a423c;
    display: inline-block;
    margin: 0 11px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom: 2px solid #e79b71;
    color: #b04e22;
    outline: none;
}


/* ---- LEAD: the single wide sentence above the cards ---- */

.lead {
    color: #6f655d;
    font-size: 20px;
    line-height: 1.65;
    margin: 0 auto 40px auto;
    max-width: 680px;
    text-align: center;
}

.lead strong {
    color: #b04e22;
}


/* ---- MASONRY: two balanced columns of varied-height cards -------------
   CSS columns give us the staggered masonry flow. `column-count` splits
   the cards into two columns and `break-inside: avoid` stops a card being
   sliced in half across the gap. ------------------------------------------------- */

.masonry {
    column-count: 2;
    column-gap: 28px;
    column-fill: balance;
}


/* ---- CARD: each white entry note ---- */

.card {
    background: #ffffff;
    border: 1px solid #f6e3d7;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(120, 74, 48, 0.04),
                0 12px 26px rgba(120, 74, 48, 0.07);
    break-inside: avoid;
    display: inline-block;
    margin: 0 0 28px 0;
    padding: 26px 28px 28px 28px;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.card:hover {
    box-shadow: 0 1px 2px rgba(120, 74, 48, 0.05),
                0 18px 34px rgba(120, 74, 48, 0.12);
    transform: translateY(-3px);
}

/* the one tinted card, to vary the rhythm of the colour as well as the size */
.card--peach {
    background: #fbe1cf;
    border-color: #f3c7a8;
}


/* ---- DATE: the peach pill label at the top of every card ---- */

.date {
    background: #fbe3d3;
    border-radius: 999px;
    color: #9a4419;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding: 6px 13px;
    text-transform: uppercase;
}

.card--peach .date {
    background: #ffffff;
    color: #b04e22;
}


/* ---- CARD TEXT: headings, paragraphs and links ---- */

.card h2 {
    color: #2f2a26;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 10px;
}

.card p {
    color: #514942;
    font-size: 16px;
}

.card p + p {
    margin-top: 12px;
}

.card strong {
    color: #b04e22;
}

.card a,
.card a:visited {
    color: #b04e22;
    text-decoration: underline;
    text-decoration-color: #e7b394;
    text-underline-offset: 3px;
}

.card a:hover,
.card a:focus {
    color: #7d3314;
    text-decoration-color: #7d3314;
}


/* ---- QUOTE: the soft-peach bar inside a card ---- */

.card blockquote {
    border-left: 3px solid #e79b71;
    color: #6f655d;
    font-size: 17px;
    font-style: italic;
    margin-top: 16px;
    padding-left: 16px;
}

.card blockquote p {
    color: #6f655d;
    margin: 0;
}


/* ---- TAGS: small rounded labels, made with inline-block list items ---- */

.tags {
    list-style: none;
    margin-top: 14px;
}

.tags li {
    background: #fdf2ea;
    border: 1px solid #f3d3bd;
    border-radius: 999px;
    color: #9a4419;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 0 6px 8px 0;
    padding: 5px 12px;
    text-transform: uppercase;
}

.card--peach .tags li {
    background: #ffffff;
    border-color: #f0c3a3;
}


/* ---- SWATCHES: a tiny palette, each dot drawn with ::before ---- */

.swatches {
    list-style: none;
    margin-top: 14px;
}

.swatches li {
    color: #6f655d;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 5px 0;
    text-transform: uppercase;
}

.swatches li::before {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 13px;
    margin-right: 10px;
    vertical-align: -2px;
    width: 13px;
}

.swatch-peach::before {
    background: #f0a578;
}

.swatch-cream::before {
    background: #fdf2ea;
}

.swatch-clay::before {
    background: #b04e22;
}

.swatch-ink::before {
    background: #2f2a26;
}


/* ---- JOYS: a plain list with a peach marker ---- */

.joys {
    list-style: none;
    margin-top: 12px;
}

.joys li {
    border-bottom: 1px solid #f6e9df;
    padding: 8px 0 8px 22px;
    position: relative;
}

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

.joys li::before {
    color: #e79b71;
    content: "\2726";
    left: 0;
    position: absolute;
}


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

#footer {
    border-top: 2px solid #f0dccd;
    color: #9a8f85;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 36px;
    padding-top: 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #8a7f75;
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    color: #b04e22;
}


/* ---- SMALL SCREENS: one column, tighter spacing on phones ---- */

@media (max-width: 640px) {
    body {
        padding: 28px 14px;
    }

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

    .lead {
        font-size: 18px;
        margin-bottom: 28px;
    }

    .masonry {
        column-count: 1;
    }

    .card {
        margin-bottom: 18px;
        padding: 22px 20px 24px 20px;
    }

    .card:hover {
        transform: none;
    }
}


/* ---- PRINT: drop the desk colour and shadows for a clean sheet ---- */

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

    .card {
        box-shadow: none;
        break-inside: avoid;
    }

    #menu {
        display: none;
    }
}
