/* Definition Deck - 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 the
   heading (e.g. "DECK CARDS") to find what you want to change.   */


/* ---- BODY: the sand-tinted desk behind the page ---- */

body {
    background: #e7ddc9;
    background: linear-gradient(#ece2cf, #e2d5bc);
    color: #3a423f;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 48px 16px;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
}

a {
    transition: color 0.15s ease, background-color 0.15s ease,
                border-color 0.15s ease;
}


/* ---- PAGE: the tall card the whole design sits on ---- */

#page {
    background: #fcf9f2;
    border: 1px solid #eadfc9;
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(90, 74, 43, 0.06),
                0 20px 45px rgba(90, 74, 43, 0.14);
    margin: 0 auto;
    max-width: 860px;
    padding: 64px 72px 48px 72px;
    text-align: left;
}


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

#masthead {
    border-bottom: 3px double #e0d3b8;
    margin-bottom: 40px;
    padding-bottom: 26px;
}

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

#masthead h1 {
    color: #2f5468;
    font-size: 52px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 14px 0 0 0;
}

.tagline {
    color: #7c7f76;
    font-size: 18px;
    font-style: italic;
    margin-top: 14px;
}


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

#menu {
    margin-top: 26px;
}

#menu a,
#menu a:visited {
    border: 1px solid transparent;
    border-radius: 4px;
    color: #5c6663;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin: 0 6px 8px 0;
    padding: 7px 12px;
    text-decoration: none;
    text-transform: uppercase;
}

#menu a:hover,
#menu a:focus {
    background: #f2ead8;
    border-color: #dccfae;
    color: #2f5468;
}


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

#content p {
    margin-bottom: 20px;
}

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

#content a:hover {
    border-bottom-color: #2f5468;
    color: #2f5468;
}

.lead {
    color: #4a5652;
    font-size: 21px;
    line-height: 1.65;
}

h2 {
    color: #2f5468;
    font-size: 15px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 52px 0 16px 0;
    padding-bottom: 10px;
    text-transform: uppercase;
}

h2::after {
    background: #4f7c93;
    content: "";
    display: block;
    height: 3px;
    margin-top: 10px;
    width: 40px;
}

.section-note {
    color: #7c7f76;
    font-size: 16px;
    margin-bottom: 26px;
}

code {
    background: #f1e9d7;
    border: 1px solid #e3d7bd;
    border-radius: 3px;
    color: #2f5468;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86em;
    padding: 1px 5px;
}


/* ---- DECK CARDS: the stacked term-and-definition list ---- */

.deck {
    background: #f6efe0;
    border: 1px solid #e4d8bd;
    border-radius: 12px;
    padding: 22px;
}

.card {
    background: #fcf9f2;
    border: 1px solid #e6dcc6;
    border-left: 6px solid #4f7c93;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(90, 74, 43, 0.05),
                0 8px 18px rgba(90, 74, 43, 0.08);
    padding: 22px 26px 24px 26px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card + .card {
    margin-top: 18px;
}

.card:hover {
    box-shadow: 0 2px 0 rgba(90, 74, 43, 0.06),
                0 14px 30px rgba(90, 74, 43, 0.14);
    transform: translateY(-3px);
}

.card dt {
    align-items: center;
    color: #2f5468;
    display: flex;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
}

.card .num {
    background: #4f7c93;
    border-radius: 50%;
    color: #f7f1e4;
    flex: 0 0 auto;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    height: 32px;
    letter-spacing: 0;
    line-height: 32px;
    margin-right: 14px;
    text-align: center;
    width: 32px;
}

.card dd {
    color: #4a5652;
    font-size: 16px;
    margin: 12px 0 0 0;
    padding-left: 46px;
}


/* ---- BOX MODEL: a CSS-only diagram in two columns ---- */

.model-row {
    align-items: stretch;
    display: flex;
    gap: 32px;
}

.boxmodel {
    flex: 1 1 44%;
    min-width: 0;
}

.bm-margin,
.bm-border,
.bm-padding,
.bm-content {
    border-radius: 6px;
    padding: 14px;
    text-align: center;
}

.bm-margin {
    background: #f7f1e4;
    border: 2px dashed #cfba8d;
}

.bm-border {
    background: #e6d8b8;
    border: 3px solid #c9a86a;
}

.bm-padding {
    background: #efe3cb;
    border: 2px solid #d9c69c;
}

.bm-content {
    background: #4f7c93;
    border-radius: 4px;
    color: #f7f1e4;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 17px 10px;
    text-transform: uppercase;
}

.bm-label {
    color: #8a8266;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-align: left;
    text-transform: uppercase;
}

.model-text {
    flex: 1 1 56%;
}

.model-text p {
    font-size: 16px;
}


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

.howto {
    background: #f6efe0;
    border: 1px solid #e4d8bd;
    border-radius: 12px;
    margin-top: 56px;
    padding: 8px 32px 30px 32px;
}

.howto h2 {
    border-top: 3px solid #4f7c93;
    display: inline-block;
    margin-top: 30px;
    padding-top: 14px;
}

.howto h2::after {
    display: none;
}

.howto p {
    font-size: 16px;
}

blockquote {
    border-left: 4px solid #c9a86a;
    color: #6b6f66;
    font-size: 19px;
    font-style: italic;
    margin: 28px 0 6px 0;
    padding: 4px 0 4px 22px;
}

blockquote p {
    margin: 0;
}


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

#footer {
    border-top: 3px double #e0d3b8;
    color: #9a927e;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 56px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover {
    color: #2f5468;
}


/* ---- SMALL SCREENS: stack the columns and relax the spacing ---- */

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

    #page {
        border-radius: 4px;
        padding: 34px 20px 28px 20px;
    }

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

    .tagline {
        font-size: 16px;
    }

    #menu a {
        font-size: 11px;
        letter-spacing: 1px;
        margin-right: 2px;
        padding: 6px 9px;
    }

    .lead {
        font-size: 18px;
    }

    .deck {
        padding: 12px;
    }

    .card {
        border-left-width: 5px;
        padding: 18px 18px 20px 18px;
    }

    .card dt {
        font-size: 18px;
    }

    .card dd {
        padding-left: 0;
    }

    .model-row {
        display: block;
    }

    .model-text {
        margin-top: 24px;
    }

    .howto {
        padding: 4px 20px 24px 20px;
    }
}


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

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

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

    #menu {
        display: none;
    }

    .card,
    .deck,
    .howto {
        box-shadow: none;
    }
}
