/* Reading Queue - A Free Design by Bryant Smith (bryantsmith.com)
   Every colour, border and space on the page is gathered here.
   Follow the section headings below to find what you want to change. */


/* ---- PALETTE: change these seven values to re-colour the whole page ---- */

:root {
    --paper: #f1ece0;       /* the warm desk behind everything    */
    --surface: #fffdf8;     /* the page itself                    */
    --ink: #211e1a;         /* headings and body text             */
    --muted: #6e685e;       /* small print and annotations        */
    --line: #e3dccd;        /* hairlines and dividers             */
    --rust: #9a3b1b;        /* the accent: "read next"            */
    --teal: #2f6a61;        /* the second accent: "up later"      */
}


/* ---- BODY: a warm paper background with faint ruled lines ---- */

body {
    background-color: var(--paper);
    background-image: repeating-linear-gradient(
        180deg,
        rgba(154, 59, 27, 0.035) 0,
        rgba(154, 59, 27, 0.035) 1px,
        transparent 1px,
        transparent 28px
    );
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 48px 20px;
}

* {
    margin: 0;
    padding: 0;
}


/* ---- PAGE: the sheet everything sits on ---- */

#page {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 22px 48px rgba(46, 38, 26, 0.12);
    margin: 0 auto;
    max-width: 960px;
    overflow: hidden;
}


/* ---- MASTHEAD: the dark band and its row of book spines ---- */

#masthead {
    background: linear-gradient(135deg, #26221c, #3c3328);
    color: #f6f0e2;
    padding: 48px 52px 0 52px;
}

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

#masthead h1 {
    font-size: 52px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-top: 10px;
}

.tagline {
    color: #cfc5b0;
    font-size: 18px;
    font-style: italic;
    margin-top: 12px;
}


/* ---- MENU: the row of links in the masthead ---- */

#menu {
    border-top: 1px solid rgba(246, 240, 226, 0.18);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 34px;
    padding: 18px 0 22px 0;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #e6ddca;
    margin-right: 26px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #c98a3a;
    color: #ffffff;
}

/* the coloured spines along the bottom edge of the masthead */
#masthead::after {
    background: repeating-linear-gradient(
        90deg,
        var(--rust) 0, var(--rust) 14px,
        #c98a3a 14px, #c98a3a 22px,
        var(--teal) 22px, var(--teal) 36px,
        #7d766a 36px, #7d766a 42px
    );
    content: "";
    display: block;
    height: 9px;
}


/* ---- INTRO: the lead paragraph and the how-to note ---- */

#intro {
    padding: 46px 52px 0 52px;
}

.lead {
    color: #322d26;
    font-size: 21px;
    line-height: 1.65;
    max-width: 44em;
}

.howto {
    background: #f7f1e4;
    border-left: 3px solid #c98a3a;
    border-radius: 0 3px 3px 0;
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.75;
    margin-top: 28px;
    max-width: 60em;
    padding: 16px 20px;
}

.howto strong {
    color: #4a4237;
}

code {
    background: #ece3d0;
    border-radius: 3px;
    color: #8a3418;
    font-size: 12px;
    padding: 1px 5px;
}


/* ---- QUEUE: the three columns, one per reading stage ---- */

#queue {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
    padding: 48px 52px 8px 52px;
}

.column-head {
    align-items: baseline;
    border-top: 4px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
}

.column--next .column-head {
    border-top-color: var(--rust);
}

.column--later .column-head {
    border-top-color: var(--teal);
}

.column--maybe .column-head {
    border-top-color: #c98a3a;
}

.column-head h2 {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: -0.2px;
}

.count {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ---- BOOKS: the compact annotated list in each column ---- */

.books {
    list-style: none;
    margin-top: 6px;
}

.books li {
    border-bottom: 1px solid var(--line);
    padding: 16px 0 16px 18px;
    position: relative;
    transition: background-color 0.15s ease;
}

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

/* the little coloured spine marking each entry */
.books li::before {
    background: var(--line);
    border-radius: 1px;
    content: "";
    height: 22px;
    left: 0;
    position: absolute;
    top: 20px;
    width: 4px;
}

.column--next .books li::before {
    background: var(--rust);
}

.column--later .books li::before {
    background: var(--teal);
}

.column--maybe .books li::before {
    background: #c98a3a;
}

.books h3 {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.35;
}

.books a,
.books a:visited {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.books a:hover,
.books a:focus {
    color: var(--rust);
    text-decoration: underline;
}

.byline {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.4px;
    margin-top: 5px;
    text-transform: uppercase;
}

.note {
    color: #5c564c;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
}


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

#footer {
    border-top: 1px solid var(--line);
    color: #9a9384;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 44px;
    padding: 22px 52px 26px 52px;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover,
#footer a:focus {
    color: var(--rust);
    text-decoration: underline;
}


/* ---- SMALL SCREENS: stack the columns and shrink the type ---- */

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

    #masthead {
        padding: 34px 26px 0 26px;
    }

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

    .tagline {
        font-size: 16px;
    }

    #menu a {
        display: inline-block;
        margin-bottom: 10px;
        margin-right: 18px;
    }

    #intro {
        padding: 32px 26px 0 26px;
    }

    .lead {
        font-size: 18px;
    }

    #queue {
        gap: 34px;
        grid-template-columns: 1fr;
        padding: 36px 26px 4px 26px;
    }

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


/* ---- PRINT: drop the decorations and keep the lists ---- */

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

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

    #masthead {
        background: #ffffff;
        color: #000000;
        padding: 0 0 8px 0;
    }

    .kicker,
    .tagline,
    #menu,
    #masthead::after {
        display: none;
    }

    #intro,
    #queue,
    #footer {
        padding-left: 0;
        padding-right: 0;
    }
}
