/* Word List - A Free Design by Bryant Smith (bryantsmith.com)
   A glossary page built from a definition list and a two-column grid.
   The colours, spacing and type all live here. Look for the section
   headings below to find the part you want to change. */


/* ---- BODY: the warm desk the page rests on ---- */

body {
    background: #e9e2d4;
    background-image: linear-gradient(180deg, #f1ece1 0%, #e5ddcc 100%);
    color: #33302b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 48px 16px;
    text-align: center;
}

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


/* ---- PAGE: the sheet of paper itself ---- */

#page {
    background: #fffdf8;
    border-top: 6px solid #9a3324;
    margin: 0 auto;
    max-width: 860px;
    text-align: left;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 44px rgba(60, 45, 25, 0.14);
}


/* ---- MASTHEAD: title, tagline and the row of links ---- */

#masthead {
    background: #fbf6ec;
    border-bottom: 3px double #ded4c0;
    padding: 56px 72px 34px 72px;
}

.kicker {
    color: #9a3324;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    color: #241f1a;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 56px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-top: 12px;
}

.tagline {
    color: #7a7368;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    font-style: italic;
    margin-top: 12px;
}

#menu {
    border-top: 1px solid #e7ddc9;
    margin-top: 28px;
    padding-top: 20px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #6b6459;
    font-size: 12px;
    letter-spacing: 2px;
    margin-right: 26px;
    padding-bottom: 3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #9a3324;
    color: #9a3324;
}

a:focus-visible {
    outline: 2px solid #9a3324;
    outline-offset: 2px;
}


/* ---- CONTENT: the lead line and the note box ---- */

#content {
    padding: 48px 72px 8px 72px;
}

.lead {
    color: #4a443c;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.note {
    background: #faf3e6;
    border-left: 4px solid #bd9a5f;
    border-radius: 0 4px 4px 0;
    margin: 32px 0 8px 0;
    padding: 22px 26px;
}

.note h3 {
    color: #8a6418;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    margin-bottom: 8px;
}

.note p {
    color: #5c554a;
    font-size: 15px;
    line-height: 1.7;
}

.note strong {
    color: #33302b;
}


/* ---- GROUPS: the big letter-range headings (A - C, and so on) ---- */

.group {
    align-items: center;
    color: #241f1a;
    display: flex;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: normal;
    gap: 16px;
    letter-spacing: 1px;
    margin: 52px 0 6px 0;
}

.group::before {
    background: #9a3324;
    content: "";
    height: 9px;
    transform: rotate(45deg);
    width: 9px;
}

.group::after {
    background: #e7ddc9;
    content: "";
    flex: 1;
    height: 1px;
}


/* ---- GLOSSARY: a definition list shown as two tidy columns ---- */

.entry {
    align-items: baseline;
    border-left: 3px solid transparent;
    border-top: 1px solid #ece4d5;
    column-gap: 36px;
    display: grid;
    grid-template-columns: 190px 1fr;
    padding: 18px 16px 18px 16px;
    transition: background-color 0.18s ease, border-left-color 0.18s ease;
}

.entry:first-child {
    border-top-color: transparent;
}

.entry:hover {
    background: #faf4e9;
    border-left-color: #9a3324;
}

dt {
    color: #8f2f22;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.35;
}

dd {
    color: #565049;
    font-size: 15.5px;
    line-height: 1.7;
}

dd strong {
    color: #33302b;
    font-weight: 600;
}


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

#footer {
    border-top: 3px double #ded4c0;
    color: #9a9488;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 56px;
    padding: 22px 72px 40px 72px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #7a7468;
    text-decoration: none;
}

#footer a:hover {
    color: #9a3324;
}


/* ---- SMALL SCREENS: stack the columns and tighten the padding ---- */

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

    #masthead {
        padding: 40px 26px 26px 26px;
    }

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

    #content {
        padding: 34px 26px 4px 26px;
    }

    .lead {
        font-size: 18px;
    }

    .entry {
        column-gap: 0;
        grid-template-columns: 1fr;
        padding: 16px 12px 16px 14px;
        row-gap: 4px;
    }

    dt {
        font-size: 17px;
    }

    dd {
        font-size: 15px;
    }

    #footer {
        padding: 20px 26px 32px 26px;
    }
}


/* ---- PRINT: a clean sheet with no navigation ---- */

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

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

    #menu {
        display: none;
    }

    .entry:hover {
        background: transparent;
        border-left-color: transparent;
    }
}
