/* Film Noir - A Free Design by Bryant Smith (bryantsmith.com)
   A high-contrast black-and-white scene lit by venetian blinds.
   Every colour and measurement lives in this one file. Change the six
   values below and the whole mood of the page changes with them. */


/* ---- COLOURS: change these first ---- */

:root {
    --room:   #060606;   /* the dark room behind everything        */
    --rail:   #0b0b0b;   /* the black case-file rail on the left   */
    --paper:  #efece4;   /* the pale sheet the story is typed on   */
    --tint:   #e4e0d5;   /* a slightly darker paper for panels     */
    --ink:    #0c0c0c;   /* near-black text                        */
    --muted:  #57534a;   /* quiet grey for labels and small print  */
    --line:   #c9c3b6;   /* hairlines and table rules              */
    --rail-text: #e9e5db;
    --rail-muted: #a39e92;
}


/* ---- RESET: remove the browser's default spacing ---- */

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


/* ---- BODY: the dark room. The wall carries a faint blind pattern,
        fixed in place so it never scrolls away. ---- */

body {
    background-color: var(--room);
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(102deg, #0d0d0d 0px, #0d0d0d 18px, #050505 18px, #050505 46px);
    background-attachment: fixed;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 56px 20px;
}


/* ---- VENETIAN BLINDS: a fixed overlay of light and shadow stripes
        drawn with repeating-linear-gradient. It sits above the page and
        ignores the mouse, so links underneath still work. ---- */

body::after {
    background:
        /* fogged vignette: darkens the edges of the frame */
        radial-gradient(ellipse at 50% 6%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.66) 100%),
        /* the bright slit of light between each slat */
        repeating-linear-gradient(102deg,
            rgba(255, 255, 255, 0.08) 0px,
            rgba(255, 255, 255, 0.08) 3px,
            rgba(255, 255, 255, 0) 3px,
            rgba(255, 255, 255, 0) 66px),
        /* the wide soft shadow of each slat */
        repeating-linear-gradient(102deg,
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0.22) 8px,
            rgba(0, 0, 0, 0.22) 30px,
            rgba(0, 0, 0, 0) 40px,
            rgba(0, 0, 0, 0) 66px);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 50;
}


/* ---- PAGE: the case folder. Two columns side by side:
        #casefile (dark rail) and #content (pale paper). ---- */

#page {
    background: var(--paper);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 40px 70px -24px rgba(0, 0, 0, 0.95);
    display: flex;
    margin: 0 auto;
    max-width: 920px;
    outline: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    position: relative;
    z-index: 1;
}


/* ---- CASE FILE RAIL: the dark left-hand spine ---- */

#casefile {
    background: var(--rail);
    color: var(--rail-text);
    flex: 0 0 236px;
    overflow: hidden;
    overflow-wrap: break-word;
    padding: 44px 26px 40px 26px;
    position: relative;
}

/* a huge, almost-invisible case number down the spine */
#casefile::after {
    bottom: 30px;
    color: rgba(255, 255, 255, 0.06);
    content: "0219";
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 120px;
    font-weight: bold;
    left: 6px;
    letter-spacing: 0.08em;
    line-height: 1;
    position: absolute;
    writing-mode: vertical-rl;
}

.rail-number {
    border: 1px solid var(--rail-muted);
    color: var(--rail-text);
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    letter-spacing: 0.34em;
    padding: 5px 8px 5px 12px;
}

.rail-title {
    border-bottom: 1px solid #2c2c2c;
    color: var(--rail-text);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.28em;
    margin: 26px 0 20px 0;
    padding-bottom: 12px;
    text-transform: uppercase;
}


/* ---- META: the case facts under the rail title ---- */

.meta {
    border-bottom: 1px solid #2c2c2c;
    padding-bottom: 20px;
}

.meta dt {
    color: var(--rail-muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-top: 16px;
    text-transform: uppercase;
}

.meta dt:first-child {
    margin-top: 0;
}

.meta dd {
    color: var(--rail-text);
    font-size: 16px;
    line-height: 1.4;
    margin-top: 2px;
}


/* ---- MENU: vertical navigation down the rail ---- */

#menu {
    margin-top: 22px;
}

#menu a,
#menu a:visited {
    border-bottom: 1px solid #202020;
    color: var(--rail-text);
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    padding: 12px 0 12px 20px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

/* the small square marker before each link */
#menu a::before {
    background: var(--rail-muted);
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    top: 17px;
    width: 6px;
}

#menu a:hover,
#menu a:focus {
    color: #ffffff;
    padding-left: 28px;
}

#menu a:hover::before,
#menu a:focus::before {
    background: #ffffff;
}


/* ---- STAMP: the rubber stamp at the foot of the rail ---- */

.stamp {
    border: 3px double #6f6a60;
    color: #b7b2a7;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.3em;
    margin-top: 34px;
    padding: 8px 10px 8px 16px;
    text-transform: uppercase;
    transform: rotate(-7deg);
}


/* ---- CONTENT: the pale paper column on the right ---- */

#content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    padding: 50px 56px 34px 56px;
    text-align: left;
}


/* ---- MASTHEAD: the title block that opens the file ---- */

#masthead {
    border-bottom: 6px solid var(--ink);
    margin-bottom: 34px;
    padding-bottom: 26px;
}

.kicker {
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.24em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

#masthead h1 {
    color: var(--ink);
    font-size: 76px;
    font-weight: normal;
    letter-spacing: -0.02em;
    line-height: 0.92;
    text-transform: uppercase;
}

.case-number {
    background: var(--ink);
    color: var(--paper);
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 0.3em;
    margin-top: 20px;
    padding: 6px 12px 6px 16px;
    text-transform: uppercase;
}

.tagline {
    color: var(--muted);
    font-size: 17px;
    font-style: italic;
    margin-top: 16px;
    max-width: 54ch;
}


/* ---- TEXT: paragraphs, links and headings in the dossier ---- */

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

#dossier a,
#dossier a:visited {
    border-bottom: 1px solid #9a9488;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

#dossier a:hover,
#dossier a:focus {
    background: var(--ink);
    color: var(--paper);
}

.lead {
    color: #222222;
    font-size: 21px;
    line-height: 1.6;
}

/* the oversized first letter of the opening paragraph */
.lead::first-letter {
    color: var(--ink);
    float: left;
    font-size: 3.6em;
    font-weight: bold;
    line-height: 0.78;
    padding: 6px 12px 0 0;
}

h2 {
    align-items: baseline;
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
    display: flex;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    justify-content: space-between;
    letter-spacing: 0.26em;
    margin: 46px 0 20px 0;
    padding-bottom: 10px;
    text-transform: uppercase;
}

/* the small "Exhibit" tag that floats to the right of each heading */
.exhibit {
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ---- QUOTE: the confession, marked with a heavy black bar ---- */

blockquote {
    border-left: 8px solid var(--ink);
    margin: 30px 0;
    padding: 6px 0 6px 26px;
}

blockquote p {
    color: #2b2b2b;
    font-size: 21px;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}


/* ---- ENTRIES: the list of persons of interest. Hovering a row
        inverts it to black-on-white, the noir way. ---- */

.entries {
    list-style: none;
    margin: 8px 0 4px 0;
}

.entries li {
    border-bottom: 1px solid var(--line);
    padding: 16px 14px;
    transition: background 0.15s ease;
}

.entries li:first-child {
    border-top: 1px solid var(--line);
}

.entries li:hover {
    background: var(--ink);
}

.entries .time {
    color: var(--muted);
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    width: 74px;
}

.entries a,
.entries a:visited {
    font-size: 19px;
    font-weight: bold;
}

.entries .role {
    color: var(--muted);
    font-style: italic;
}

.entries li:hover a,
.entries li:hover .time,
.entries li:hover .role {
    color: var(--paper);
}


/* ---- LOG: the evidence table ---- */

.log {
    border-collapse: collapse;
    margin: 8px 0 4px 0;
    table-layout: fixed;
    width: 100%;
}

.log th {
    background: var(--ink);
    color: var(--paper);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 12px 14px;
    text-align: left;
    text-transform: uppercase;
}

.log th:nth-child(1) {
    width: 30%;
}

.log th:nth-child(2) {
    width: 48%;
}

.log th:nth-child(3) {
    width: 22%;
}

.log td {
    border-bottom: 1px solid var(--line);
    overflow-wrap: break-word;
    padding: 13px 14px;
    vertical-align: top;
}

.log td:first-child {
    font-weight: bold;
}

.log td:last-child {
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    text-transform: uppercase;
}


/* ---- NOTE: the "how to use this template" panel, lifted off the
        page by a hard black shadow ---- */

.note {
    background: var(--tint);
    border: 2px solid var(--ink);
    box-shadow: 9px 9px 0 var(--ink);
    margin: 6px 0 30px 0;
    padding: 24px 26px 6px 26px;
}

.note strong {
    font-weight: bold;
}

.note code {
    background: var(--ink);
    color: var(--paper);
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    padding: 1px 6px;
}


/* ---- LESSONS: the short closing checklist ---- */

.lessons {
    list-style: none;
}

.lessons li {
    border-bottom: 1px solid var(--line);
    padding: 14px 0 14px 30px;
    position: relative;
}

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

.lessons li::before {
    background: var(--ink);
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: 21px;
    width: 8px;
}


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

#footer {
    border-top: 2px solid var(--ink);
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: var(--muted);
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    color: var(--ink);
}


/* ---- KEYBOARD FOCUS: never hide it ---- */

a:focus {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

#casefile a:focus {
    outline-color: #ffffff;
}


/* ---- TABLET: stack the rail above the paper ---- */

@media (max-width: 760px) {
    #page {
        display: block;
    }

    #casefile {
        flex-basis: auto;
        padding: 34px 28px 30px 28px;
    }

    #casefile::after {
        display: none;
    }

    .meta {
        border-bottom: none;
    }

    #menu a {
        border-bottom: none;
        display: inline-block;
        padding: 8px 18px 8px 16px;
    }

    #content {
        padding: 38px 30px 30px 30px;
    }
}


/* ---- PHONES: tighter spacing and smaller type ---- */

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

    #page {
        box-shadow: none;
        outline: none;
    }

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

    .lead {
        font-size: 18px;
    }

    h2 {
        font-size: 12px;
        letter-spacing: 0.18em;
    }

    .exhibit {
        display: none;
    }

    .entries .time {
        display: block;
        margin-bottom: 4px;
        width: auto;
    }

    .entries a {
        font-size: 17px;
    }

    .log th,
    .log td {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ---- PRINT: a clean white report, with the theatrics switched off ---- */

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

    body::after {
        display: none;
    }

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

    #casefile {
        background: #ffffff;
        border-right: 2px solid #000000;
        color: #000000;
    }

    #menu {
        display: none;
    }
}
