/* Simple Rates - A Free Design by Bryant Smith (bryantsmith.com)
   A black-and-cream rate card for a small club or hobby service.
   Every colour, border and spacing value on the page is gathered here.
   Look for the section headings below to find what you want to change. */


/* ---- BODY: the dark desk the cream card rests on ---- */

body {
    background: #17150f;
    color: #2a261e;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    padding: 48px 16px;
}

* {
    margin: 0;
    padding: 0;
}

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


/* ---- PAGE: the cream sheet in the middle ---- */

#page {
    background: #fbf6ea;
    border: 1px solid #2a261e;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.45);
    margin: 0 auto;
    max-width: 880px;
    overflow: hidden;
    text-align: left;
}


/* ---- MASTHEAD: the black band with the title and menu ---- */

#masthead {
    background: #17150f;
    border-bottom: 3px double #a9791f;
    color: #f3ecda;
    padding: 48px 64px 36px 64px;
}

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

#masthead h1 {
    color: #fbf6ea;
    font-size: 46px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-top: 14px;
}

#masthead .tagline {
    color: #b9ae97;
    font-size: 15px;
    font-style: italic;
    margin-top: 10px;
}


/* ---- MENU: the row of links under the title ---- */

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

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #d8cfb9;
    margin-right: 24px;
    padding-bottom: 4px;
    text-decoration: none;
}

#menu a:hover {
    border-bottom: 2px solid #a9791f;
    color: #e7bd63;
}


/* ---- TEXT: the lead paragraph and small meta line ---- */

#content {
    padding: 56px 64px 56px 64px;
}

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

.lead {
    color: #3a3428;
    font-size: 20px;
    line-height: 1.65;
    max-width: 62ch;
}

.lead::first-letter {
    color: #a9791f;
    float: left;
    font-size: 3.4em;
    line-height: 0.82;
    padding: 4px 10px 0 0;
}

.meta {
    border-top: 1px solid #e2d8c0;
    color: #7d7463;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 28px;
    padding-top: 14px;
    text-transform: uppercase;
}


/* ---- GROUP HEADINGS: the numbered section titles ---- */

.rate-group {
    margin-top: 56px;
}

.rate-group h2 {
    color: #17150f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2.5px;
    padding-bottom: 12px;
    text-transform: uppercase;
}

.rate-group h2 .num {
    color: #a9791f;
    margin-right: 10px;
}


/* ---- RATES: the display-only price tables ---- */

.rates {
    border-collapse: collapse;
    border-top: 2px solid #17150f;
    width: 100%;
}

.rates th {
    border-bottom: 1px solid #17150f;
    color: #8a8170;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 2px;
    padding: 10px 0;
    text-align: left;
    text-transform: uppercase;
}

.rates td {
    border-bottom: 1px solid #e4dac2;
    padding: 18px 0;
    vertical-align: top;
}

.rates tbody tr:last-child td {
    border-bottom: none;
}

.rates tbody tr:hover {
    background: #f2ead6;
}

.rates .item {
    color: #17150f;
    display: block;
    font-size: 19px;
    line-height: 1.35;
}

.rates .detail {
    color: #7d7463;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    margin-top: 4px;
    max-width: 52ch;
}

.rates .amount-col {
    padding-left: 24px;
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.rates .amount {
    color: #17150f;
    display: block;
    font-size: 21px;
    line-height: 1.2;
}

.rates .unit {
    color: #8a8170;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: uppercase;
}


/* ---- NOTES: the small box of caveats ---- */

.notes {
    background: #f1e8d2;
    border: 1px solid #ded1b2;
    border-left: 5px solid #a9791f;
    margin-top: 56px;
    padding: 30px 34px;
}

.notes-title {
    color: #17150f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.notes ul {
    list-style: none;
}

.notes li {
    color: #4a4335;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.notes li:last-child {
    margin-bottom: 0;
}

.notes li::before {
    color: #a9791f;
    content: "\2014";
    left: 0;
    position: absolute;
}


/* ---- HOW TO USE: a friendly note for beginners ---- */

.howto {
    border: 1px dashed #c9bda2;
    border-radius: 3px;
    margin-top: 40px;
    padding: 26px 30px;
}

.howto h2 {
    color: #17150f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.howto p {
    color: #5d5648;
    font-size: 15px;
    margin: 0;
}

.howto code {
    background: #efe5cf;
    border-radius: 2px;
    color: #17150f;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    padding: 1px 5px;
}


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

#footer {
    border-top: 3px double #a9791f;
    color: #8a8170;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 24px 64px;
    text-transform: uppercase;
}

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

#footer a:hover {
    color: #a9791f;
}


/* ---- SMALL SCREENS: pull in the padding on phones ---- */

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

    #masthead {
        padding: 36px 24px 28px 24px;
    }

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

    #menu a,
    #menu a:visited {
        display: inline-block;
        margin: 0 16px 10px 0;
    }

    #content {
        padding: 36px 24px 40px 24px;
    }

    .lead {
        font-size: 18px;
    }

    .rates td {
        padding: 16px 0;
    }

    .rates .item {
        font-size: 17px;
    }

    .rates .amount-col {
        padding-left: 14px;
    }

    .rates .amount {
        font-size: 18px;
    }

    .rate-group {
        margin-top: 44px;
    }

    .notes {
        padding: 24px 22px;
    }

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


/* ---- PRINT: a clean sheet with the menu removed ---- */

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

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

    #masthead {
        background: #ffffff;
        border-bottom: 2px solid #000000;
        color: #000000;
    }

    #masthead h1,
    #masthead .eyebrow,
    #masthead .tagline {
        color: #000000;
    }

    #menu,
    .howto {
        display: none;
    }
}
