/*
 * Site color palette.
 * Every color the site's pages use is defined here once and referenced by name,
 * so changing a value below updates it everywhere.
 */
:root {
    /* Books: blue (light to dark) */
    --blue-light: #BFD8FF;
    --blue: #1F06FF;
    --blue-dark: #1100AB;

    /* Books: red (light to dark) */
    --red-light: #FFD7D7;
    --red: #FC5000;
    --red-dark: #BE0003;

    /* Text printed on book spines */
    --book-text: #FFFFFF;

    /* Shelf */
    --shelf-top: #400000;
    --shelf-front: #2E0303;

    /* Page text and lines */
    --text: #212529;
    --text-body: #333333;
    --text-soft: #444444;
    --text-muted: #6C757D;
    --rule: #DEE2E6;
}

/*
 * Book color themes. Each book uses one palette, light to dark:
 * top face = light, front cover = main, side (spine edge) = dark.
 * Give a book's <g> the class "book book--blue" or "book book--red".
 */
.book--blue { --book-top: var(--blue-light); --book-front: var(--blue); --book-side: var(--blue-dark); }
.book--red  { --book-top: var(--red-light);  --book-front: var(--red);  --book-side: var(--red-dark); }

.book-top   { fill: var(--book-top); }
.book-front { fill: var(--book-front); }
.book-side  { fill: var(--book-side); }
.book-text  { fill: var(--book-text); }

.shelf-top   { fill: var(--shelf-top); }
.shelf-front { fill: var(--shelf-front); }
