/* Watch List - A Free Design by Bryant Smith (bryantsmith.com)
   A warm, light page with a dark side rail and a quiet list of things to watch.
   Every colour, space and corner used on the page is gathered here.
   Follow the comment headings to find the part you want to change. */


/* ---- COLOUR PALETTE -------------------------------------------------
   Page cream  : #f4efe7   (the background)
   Panel cream : #fffdf9   (the category cards)
   Warm line   : #e7ded0   (thin borders)
   Ink         : #2a2530   (headings and body text)
   Muted ink   : #6b6472   (secondary text such as notes)
   Plum rail   : #2c2338   (the dark side rail)
   Rail line   : #3d3350   (dividers inside the rail)
   Rail text   : #d8d0dd   (words on the plum)
   Coral       : #c8492f   (the main accent)
   Teal        : #2f7066   (the second accent, for "up next")
   -------------------------------------------------------------------- */


/* ---- RESET & BODY: the warm page behind everything ---- */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4efe7;
    background-image: radial-gradient(circle at 18% -8%, rgba(200, 73, 47, 0.07), transparent 55%);
    background-repeat: no-repeat;
    color: #2a2530;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.7;
    padding: 44px 20px 0 20px;
}

a {
    color: #c8492f;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:focus-visible {
    outline: 2px solid #c8492f;
    outline-offset: 3px;
}


/* ---- LAYOUT: a dark rail on the left, the lists on the right ---- */

#layout {
    display: flex;
    align-items: flex-start;
    gap: 34px;
    margin: 0 auto;
    max-width: 960px;
}


/* ---- RAIL: the sticky plum panel with the title and index ---- */

#rail {
    background: linear-gradient(160deg, #332846, #241c30);
    border: 1px solid #3d3350;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(44, 35, 56, 0.22);
    color: #d8d0dd;
    flex: 0 0 258px;
    padding: 30px 26px 28px 26px;
    position: sticky;
    top: 44px;
}

.brand__mark {
    border: 2px solid #e06a4f;
    border-radius: 5px;
    display: block;
    height: 30px;
    margin-bottom: 20px;
    position: relative;
    width: 46px;
}

/* The little play triangle inside the "screen". */
.brand__mark::before {
    border-bottom: 6px solid transparent;
    border-left: 10px solid #e06a4f;
    border-top: 6px solid transparent;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-40%, -50%);
}

/* The two feet of the stand under the "screen". */
.brand__mark::after {
    background: #e06a4f;
    bottom: -8px;
    content: "";
    height: 2px;
    left: 18px;
    position: absolute;
    width: 10px;
}

.brand h1 {
    color: #f6f1f8;
    font-size: 33px;
    font-weight: normal;
    letter-spacing: -0.4px;
    line-height: 1.1;
}

.brand__tag {
    color: #b3a8bd;
    font-size: 15px;
    font-style: italic;
    line-height: 1.55;
    margin-top: 10px;
}


/* ---- MENU: the vertical list of category links ---- */

#menu {
    border-top: 1px solid #3d3350;
    margin-top: 24px;
    padding-top: 20px;
}

.menu__label,
.key__label {
    color: #8f83a0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 1px solid #3d3350;
    color: #d8d0dd;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    padding: 9px 0;
}

#menu a:last-child {
    border-bottom: none;
}

/* A small coral dash that slides in when you hover a link. */
#menu a::before {
    background: #e06a4f;
    content: "";
    display: inline-block;
    height: 1px;
    margin-right: 0;
    transition: margin 0.18s ease, width 0.18s ease;
    vertical-align: middle;
    width: 0;
}

#menu a:hover,
#menu a:focus {
    color: #f0a08f;
}

#menu a:hover::before,
#menu a:focus::before {
    margin-right: 9px;
    width: 14px;
}


/* ---- KEY: the little legend of status labels ---- */

.key {
    border-top: 1px solid #3d3350;
    margin-top: 22px;
    padding-top: 20px;
}

.key ul {
    list-style: none;
}

.key li {
    align-items: center;
    color: #b3a8bd;
    display: flex;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    gap: 9px;
    padding: 4px 0;
}

.dot {
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    width: 8px;
}

.dot--watching { background: #e06a4f; }
.dot--next     { background: #4f9d90; }
.dot--later    { background: #8f83a0; }
.dot--watched  { background: #d8d0dd; }


/* ---- MAIN: the reading column on the right ---- */

#main {
    flex: 1 1 auto;
    min-width: 0;
}


/* ---- INTRO: the welcome and the how-to note ---- */

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

.lead {
    color: #2a2530;
    font-size: 25px;
    line-height: 1.5;
    margin-top: 12px;
}

.note {
    background: #fbf1e8;
    border-left: 3px solid #c8492f;
    border-radius: 0 8px 8px 0;
    color: #5c5560;
    font-size: 15px;
    line-height: 1.65;
    margin-top: 24px;
    padding: 16px 20px;
}

.note strong {
    color: #2a2530;
}


/* ---- CATEGORY BLOCKS: one cream card per shelf ---- */

.block {
    background: #fffdf9;
    border: 1px solid #e7ded0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(42, 37, 48, 0.04);
    margin-top: 34px;
    padding: 4px 28px 14px 28px;
}

.block__head {
    align-items: baseline;
    border-bottom: 2px solid #2a2530;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 20px 0 12px 0;
}

/* A small coral square before every category name. */
.block__head h2 {
    color: #2a2530;
    font-size: 25px;
    font-weight: normal;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.block__head h2::before {
    background: #c8492f;
    content: "";
    display: inline-block;
    height: 12px;
    margin-right: 12px;
    transform: translateY(-1px);
    width: 12px;
}

.block__count {
    color: #9a929f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ---- WATCHLIST: the numbered list of items ---- */

.watchlist {
    counter-reset: item;
    list-style: none;
}

.watch {
    align-items: start;
    border-bottom: 1px solid #efe7da;
    column-gap: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    padding: 20px 0;
}

.watch:last-child {
    border-bottom: none;
}

/* The row number, drawn by CSS from a counter. */
.watch::before {
    color: #c8492f;
    content: counter(item, decimal-leading-zero);
    counter-increment: item;
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
    padding-top: 3px;
}

.watch__title {
    font-size: 20px;
    font-weight: normal;
    line-height: 1.3;
}

.watch__meta {
    color: #9a929f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10.5px;
    letter-spacing: 1.2px;
    margin: 5px 0 7px 0;
    text-transform: uppercase;
}

.watch__note {
    color: #6b6472;
    font-size: 15px;
    line-height: 1.6;
    max-width: 52ch;
}


/* ---- STATUS LABELS: the little pills with a coloured dot ---- */

.status {
    border: 1px solid #e0d8ca;
    border-radius: 999px;
    color: #6b6472;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.2px;
    padding: 5px 12px 5px 24px;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
}

/* The dot inside every pill, made from a pseudo-element. */
.status::before {
    background: currentColor;
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
}

.status--watching {
    background: #fbeae5;
    border-color: #f0b8a8;
    color: #b13f27;
}

.status--next {
    background: #e8f3f0;
    border-color: #a9d2ca;
    color: #276157;
}

.status--later {
    background: #f2eff4;
    border-color: #ddd6e2;
    color: #6b6472;
}

.status--watched {
    background: #2a2530;
    border-color: #2a2530;
    color: #f4efe7;
}


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

#footer {
    border-top: 1px solid #e7ded0;
    color: #9a929f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 56px auto 0 auto;
    max-width: 960px;
    padding: 20px 0;
    text-align: center;
    text-transform: uppercase;
}

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

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


/* ---- TABLET: bring the rail above the lists ---- */

@media (max-width: 860px) {
    #layout {
        flex-direction: column;
        gap: 28px;
    }

    #rail {
        flex: 0 0 auto;
        position: static;
        width: 100%;
    }

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

    .lead {
        font-size: 22px;
    }
}


/* ---- PHONES: tighten the padding and stack the labels ---- */

@media (max-width: 640px) {
    body {
        font-size: 16px;
        padding: 20px 14px 0 14px;
    }

    #rail {
        padding: 24px 20px 22px 20px;
    }

    .brand h1 {
        font-size: 28px;
    }

    .block {
        padding: 2px 18px 10px 18px;
    }

    .block__head h2 {
        font-size: 21px;
    }

    .lead {
        font-size: 19px;
    }

    /* Put the status label under the note instead of beside it. */
    .watch {
        grid-template-columns: auto 1fr;
        row-gap: 10px;
    }

    .status {
        grid-column: 2;
        justify-self: start;
    }

    .watch__note {
        max-width: none;
    }
}


/* ---- PRINT: a plain black-and-white list on paper ---- */

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

    #rail {
        display: none;
    }

    .block {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    #footer {
        margin-top: 30px;
    }
}
