/* Tea Notes - A Free Design by Bryant Smith (bryantsmith.com)
   ---------------------------------------------------------
   Every colour and measurement on the page is gathered here.
   The file is split into labelled sections, so search for a
   heading (e.g. "TASTING CARDS") to find what you want.      */


/* ---- BODY: the pale green page the journal sits on ---- */

body {
    background: #e4ecd9;
    background: linear-gradient(180deg, #eaf1e0 0%, #dde8d1 100%);
    color: #33403a;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 44px 16px;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
}

a {
    transition: color 0.15s ease, border-color 0.15s ease,
                background-color 0.15s ease, box-shadow 0.2s ease,
                transform 0.2s ease;
}


/* ---- PAGE: the sheet of paper, in a soft green tint ---- */

#page {
    background: #f7faf0;
    border: 1px solid #d3e0c4;
    border-radius: 10px;
    box-shadow: 0 2px 0 rgba(60, 84, 52, 0.05),
                0 22px 48px rgba(60, 84, 52, 0.16);
    margin: 0 auto;
    max-width: 940px;
    overflow: hidden;
    text-align: left;
}


/* ---- MASTHEAD: kicker, title, tagline and menu ---- */

#masthead {
    background: linear-gradient(180deg, #eef5e5 0%, #f7faf0 100%);
    border-bottom: 1px solid #dbe6cd;
    padding: 54px 48px 40px 48px;
    text-align: center;
}

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

#masthead h1 {
    color: #2f4a35;
    font-size: 56px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 16px 0 0 0;
}

.tagline {
    color: #5c6b58;
    font-size: 18px;
    font-style: italic;
    margin: 14px auto 0 auto;
    max-width: 46ch;
}

#masthead::after {
    background: #b07d3a;
    border-radius: 2px;
    content: "";
    display: block;
    height: 3px;
    margin: 30px auto 0 auto;
    width: 60px;
}


/* ---- MENU: the row of navigation links ---- */

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

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #4a5c46;
    display: inline-block;
    margin: 0 8px 8px 8px;
    padding: 6px 2px;
    text-decoration: none;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #b07d3a;
    color: #2f4a35;
    outline: none;
}


/* ---- TEXT: the reading column, links and section headings ---- */

#content {
    padding: 44px 64px 8px 64px;
}

#content p {
    margin-bottom: 20px;
    max-width: 72ch;
}

#content a,
#content a:visited {
    border-bottom: 1px solid #b3c9a4;
    color: #3c5f43;
    text-decoration: none;
}

#content a:hover,
#content a:focus {
    border-bottom-color: #b07d3a;
    color: #2f4a35;
}

.lead {
    color: #3d4a40;
    font-size: 21px;
    line-height: 1.7;
}

code {
    background: #eaf1de;
    border: 1px solid #d9e4c8;
    border-radius: 3px;
    color: #3c5f43;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85em;
    padding: 1px 5px;
}

.section {
    margin-top: 52px;
}

.section-title {
    color: #2f4a35;
    font-size: 27px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-title::before {
    background: #7ba06f;
    border-radius: 0 100% 0 100%;
    content: "";
    display: inline-block;
    height: 11px;
    margin-right: 13px;
    transform: rotate(-45deg);
    vertical-align: 2px;
    width: 11px;
}

.section-note {
    color: #5c6b58;
    font-size: 16px;
    margin-bottom: 28px;
}


/* ---- JOURNAL: the entries flow into two masonry columns ---- */

.journal {
    column-count: 2;
    column-gap: 24px;
}


/* ---- TASTING CARDS: a small note built from a definition list ---- */

.tasting {
    background: #fcfef8;
    border: 1px solid #dbe6cd;
    border-top: 3px solid #7ba06f;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(60, 84, 52, 0.04),
                0 10px 22px rgba(60, 84, 52, 0.07);
    break-inside: avoid;
    display: inline-block;
    margin: 0 0 24px 0;
    padding: 22px 24px 20px 24px;
    width: 100%;
}

.tasting:hover {
    border-top-color: #b07d3a;
    box-shadow: 0 2px 0 rgba(60, 84, 52, 0.05),
                0 16px 30px rgba(60, 84, 52, 0.14);
    transform: translateY(-3px);
}

.tasting .meta {
    color: #6f8f6a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

.tasting h3 {
    color: #2f4a35;
    font-size: 23px;
    font-weight: normal;
    line-height: 1.2;
    margin: 0;
}

.facts {
    border-top: 1px dashed #dbe6cd;
    display: grid;
    gap: 8px 14px;
    grid-template-columns: 68px 1fr;
    margin-top: 15px;
    padding-top: 15px;
}

.facts dt {
    color: #6f8f6a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding-top: 3px;
    text-transform: uppercase;
}

.facts dd {
    color: #33403a;
    font-size: 15.5px;
    margin: 0;
}


/* ---- METHOD: a short note beside the field list ---- */

.method {
    align-items: start;
    border-top: 1px solid #dbe6cd;
    display: grid;
    gap: 40px;
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 40px;
}

.method-text p {
    color: #3d4a40;
}

.terms {
    display: grid;
    gap: 6px 16px;
    grid-template-columns: 84px 1fr;
    margin-top: 6px;
}

.terms dt {
    color: #2f4a35;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding-top: 4px;
    text-transform: uppercase;
}

.terms dd {
    color: #4a5c46;
    font-size: 16px;
    margin: 0;
}

blockquote {
    background: #eef5e5;
    border-left: 4px solid #b07d3a;
    border-radius: 0 8px 8px 0;
    color: #4a5c46;
    font-size: 19px;
    font-style: italic;
    line-height: 1.6;
    padding: 22px 26px;
}

blockquote p {
    margin: 0;
}


/* ---- HOW TO USE: the friendly instruction block ---- */

.howto {
    background: #eef5e5;
    border: 1px solid #d9e4c8;
    border-radius: 10px;
    padding: 34px 36px 30px 36px;
}

.howto .section-title {
    margin-bottom: 16px;
}

.howto p {
    color: #3d4a40;
    font-size: 16px;
}

.howto p:last-child {
    margin-bottom: 0;
}


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

#footer {
    border-top: 1px solid #dbe6cd;
    color: #7d8c78;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 52px;
    padding: 24px 64px 34px 64px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #6f8f6a;
    text-decoration: none;
}

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


/* ---- SMALL SCREENS: one column, tighter padding ---- */

@media (max-width: 640px) {
    body {
        padding: 18px 10px;
    }

    #page {
        border-radius: 8px;
    }

    #masthead {
        padding: 38px 24px 30px 24px;
    }

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

    .tagline {
        font-size: 16px;
    }

    #menu a {
        font-size: 11px;
        letter-spacing: 1px;
        margin: 0 4px 8px 4px;
    }

    #content {
        padding: 32px 24px 4px 24px;
    }

    .lead {
        font-size: 18px;
    }

    .journal {
        column-count: 1;
    }

    .method {
        display: block;
    }

    blockquote {
        margin-top: 26px;
    }

    .howto {
        padding: 26px 22px 24px 22px;
    }

    #footer {
        padding: 22px 24px 30px 24px;
    }
}


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

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

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

    #menu {
        display: none;
    }

    .tasting,
    #page {
        box-shadow: none;
    }

    .tasting {
        break-inside: avoid;
    }
}
