/* Game Notes - A Free Design by Bryant Smith (bryantsmith.com)
   A dark-slate gaming journal.
   Every colour, space and font on the page is gathered here.
   Look for the section headings below to find what you want to change. */


/* ---- PALETTE (change these few colours to restyle the page) ----
   background  #0d121b   page       #141b26
   panel       #101720   card       #1b2433
   border      #263245   text       #e7ecf3
   muted       #9aa6b8   accent-one #f2b23e   accent-two #58d3c4  */


/* ---- RESET: start from a clean slate ---- */

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


/* ---- BODY: the dark slate the page rests on ---- */

body {
    background-color: #0d121b;
    background-image:
        radial-gradient(circle at 15% 0%, rgba(242, 178, 62, 0.06), transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(88, 211, 196, 0.06), transparent 38%),
        linear-gradient(180deg, #101725 0%, #0b0f17 100%);
    background-attachment: fixed;
    color: #e7ecf3;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 36px 16px 0 16px;
}


/* ---- PAGE: the single panel that holds everything ---- */

#page {
    background: #141b26;
    border: 1px solid #263245;
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
    margin: 0 auto;
    max-width: 940px;
    overflow: hidden;
}


/* ---- HERO: the gradient title band at the top ---- */

#masthead {
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 178, 62, 0.18), transparent 52%),
        radial-gradient(circle at 88% 18%, rgba(88, 211, 196, 0.16), transparent 48%),
        linear-gradient(155deg, #1c2739 0%, #131a26 100%);
    border-bottom: 1px solid #263245;
    padding: 44px 46px 0 46px;
    position: relative;
}

/* a faint grid, like graph paper for a game map */
#masthead::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 30px 30px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.eyebrow {
    color: #58d3c4;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 14px;
    position: relative;
    text-transform: uppercase;
}

#masthead h1 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 52px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    position: relative;
}

#masthead h1::after {
    background: linear-gradient(90deg, #f2b23e, #58d3c4);
    border-radius: 2px;
    content: "";
    display: block;
    height: 4px;
    margin-top: 18px;
    width: 72px;
}

.tagline {
    color: #9aa6b8;
    font-size: 15px;
    margin-top: 18px;
    max-width: 46ch;
    position: relative;
}


/* ---- MENU: the row of navigation links ---- */

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin-top: 30px;
    padding-bottom: 26px;
    position: relative;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #c3cddb;
    font-size: 12px;
    letter-spacing: 2px;
    padding-bottom: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover {
    border-bottom-color: #f2b23e;
    color: #f2b23e;
}

#menu a:focus-visible {
    border-bottom-color: #58d3c4;
    color: #58d3c4;
    outline: 2px solid #58d3c4;
    outline-offset: 4px;
}


/* ---- LAYOUT: the side rail and the main column ---- */

#layout {
    display: flex;
    flex-wrap: wrap;
}


/* ---- RAIL: the narrow column on the left ---- */

#rail {
    background: #101720;
    border-right: 1px solid #263245;
    flex: 0 0 264px;
    padding: 42px 30px 48px 30px;
}

.rail-card {
    background: #1b2433;
    border: 1px solid #2c3a4f;
    border-left: 3px solid #f2b23e;
    border-radius: 10px;
    padding: 18px 18px 20px 18px;
}

.rail-label {
    color: #f2b23e;
    font-size: 10px;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rail-title {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
    line-height: 1.25;
}

.rail-meta {
    color: #9aa6b8;
    font-size: 12px;
    margin-top: 6px;
}

/* a simple CSS progress bar */
.progress {
    background: #0c121b;
    border-radius: 99px;
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
}

.progress span {
    background: linear-gradient(90deg, #f2b23e, #58d3c4);
    border-radius: 99px;
    display: block;
    height: 100%;
}

.rail-note {
    color: #7f8b9e;
    font-size: 11px;
    margin-top: 8px;
}

.rail-heading {
    color: #58d3c4;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 30px 0 12px 0;
    text-transform: uppercase;
}

.stats {
    list-style: none;
}

.stats li {
    border-bottom: 1px solid #1e2836;
    color: #9aa6b8;
    font-size: 12px;
    padding: 9px 0;
}

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

.stats strong {
    color: #ffffff;
    float: right;
    font-size: 13px;
}

.rail-text {
    color: #9aa6b8;
    font-size: 12px;
    line-height: 1.65;
}


/* ---- CONTENT: the main reading column ---- */

#content {
    flex: 1 1 420px;
    min-width: 0;
    padding: 44px 46px 56px 46px;
}

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

.lead {
    color: #d7dee9;
    font-size: 18px;
    line-height: 1.7;
}

.note {
    background: #18222f;
    border: 1px solid #2c3a4f;
    border-radius: 10px;
    color: #b6c0cf;
    font-size: 13px;
    margin: 26px 0 8px 0;
    padding: 18px 20px;
}

.note strong {
    color: #f2b23e;
}

.section-intro {
    color: #9aa6b8;
    font-size: 14px;
}


/* ---- HEADINGS: the section labels with a short accent dash ---- */

h2 {
    border-bottom: 1px solid #263245;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 46px 0 16px 0;
    padding-bottom: 12px;
    text-transform: uppercase;
}

h2::before {
    background: #f2b23e;
    content: "";
    display: inline-block;
    height: 3px;
    margin-right: 10px;
    vertical-align: middle;
    width: 20px;
}


/* ---- GAME LISTS: the rows of current and finished games ---- */

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

.game-list li {
    align-items: baseline;
    border-bottom: 1px solid #1e2836;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 14px 2px;
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.game-list li:hover {
    background: #172030;
    padding-left: 12px;
}

.game-name {
    color: #eef2f8;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
}

.game-meta {
    color: #8b97a9;
    flex: 1 1 auto;
    font-size: 12px;
}

.tag {
    background: #1f2c3d;
    border-radius: 99px;
    color: #9aa6b8;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 3px 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tag-live {
    background: rgba(88, 211, 196, 0.14);
    color: #58d3c4;
}

.tag-score {
    background: rgba(242, 178, 62, 0.14);
    color: #f2b23e;
    font-weight: bold;
}

/* a check mark for the finished games */
.game-list-done .game-name::before {
    color: #58d3c4;
    content: "\2713";
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin-right: 10px;
}


/* ---- QUOTES: the remembered moments ---- */

blockquote {
    border-left: 3px solid #58d3c4;
    margin: 22px 0;
    padding: 2px 0 2px 22px;
}

blockquote p {
    color: #cfd8e4;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.65;
    margin: 0;
}

blockquote cite {
    color: #7f8b9e;
    display: block;
    font-size: 11px;
    font-style: normal;
    letter-spacing: 1.5px;
    margin-top: 10px;
    text-transform: uppercase;
}


/* ---- TABLE: the display-only ratings scoreboard ---- */

.table-wrap {
    border: 1px solid #2c3a4f;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

table {
    border-collapse: collapse;
    width: 100%;
}

caption {
    color: #7f8b9e;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 14px 16px;
    text-align: left;
    text-transform: uppercase;
}

thead th {
    background: #1b2433;
    border-bottom: 1px solid #2c3a4f;
    color: #58d3c4;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 12px 16px;
    text-align: left;
    text-transform: uppercase;
}

tbody th {
    color: #eef2f8;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 15px;
    font-weight: normal;
    text-align: left;
}

tbody td {
    color: #9aa6b8;
    font-size: 13px;
}

tbody th,
tbody td {
    border-bottom: 1px solid #1e2836;
    padding: 13px 16px;
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background: #172030;
}

tbody tr:hover {
    background: #1d2837;
}

.num {
    color: #f2b23e;
    font-weight: bold;
    text-align: right;
}


/* ---- LINKS: text links inside the content ---- */

#content a,
#content a:visited {
    border-bottom: 1px solid #3d5a5a;
    color: #58d3c4;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#content a:hover {
    border-bottom-color: #f2b23e;
    color: #f2b23e;
}


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

#footer {
    border-top: 1px solid #263245;
    background: #101720;
    color: #7f8b9e;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 22px 20px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #9aa6b8;
    text-decoration: none;
}

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


/* ---- SMALL SCREENS: stack the rail above the notes ---- */

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

    #page {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

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

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

    #layout {
        display: block;
    }

    #rail {
        border-right: none;
        border-bottom: 1px solid #263245;
        padding: 30px 24px 34px 24px;
    }

    #content {
        padding: 32px 24px 44px 24px;
    }

    .lead {
        font-size: 16px;
    }

    h2 {
        margin-top: 36px;
    }

    .game-meta {
        flex-basis: 100%;
    }

    .table-wrap {
        border-radius: 8px;
    }

    caption,
    thead th,
    tbody th,
    tbody td {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* ---- PRINT: a plain, ink-friendly copy ---- */

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

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

    #masthead {
        background: #ffffff;
        border-bottom: 1px solid #cccccc;
        padding-bottom: 12px;
    }

    #masthead::before,
    #menu,
    .rail-card,
    .progress {
        display: none;
    }

    #rail {
        background: #ffffff;
        border-right: none;
    }

    #masthead h1,
    h2,
    .rail-title,
    .game-name,
    tbody th {
        color: #111111;
    }

    .tag,
    .num,
    .eyebrow,
    .rail-heading,
    tbody td,
    .game-meta,
    .section-intro,
    .lead,
    blockquote p,
    blockquote cite,
    .rail-text,
    .stats li,
    #masthead .tagline {
        color: #444444;
    }
}
