/* Learning Log - A Free Design by Bryant Smith (bryantsmith.com)
   A right-sidebar progress journal built from plain HTML and CSS only.

   The palette is deliberately small:
     indigo  #5b4bc4   amber  #c8862b
     deep    #2b2647   deep   #8a6a22
     ink     #221d33   muted  #726c86
     page    #f3f1f6   card   #ffffff

   Look for the section headings below to find what you want to change. */


/* ---- RESET: remove default gaps and count borders in every width ---- */

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


/* ---- BODY: the soft tinted desk the page rests on ---- */

body {
    background: #f3f1f6;
    background-image: radial-gradient(circle at 50% 0, #ece7f7 0, #f3f1f6 55%);
    color: #4b4660;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

a {
    color: #5b4bc4;
}

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


/* ---- MASTHEAD: the full-width indigo banner across the top ---- */

#masthead {
    background-color: #2b2647;
    background-image:
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 2px,
            transparent 2px,
            transparent 8px),
        linear-gradient(135deg, #2a2444 0%, #3a3166 55%, #4a3d79 100%);
    border-bottom: 4px solid #5b4bc4;
    color: #f6f4ff;
}

.masthead-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 920px;
    padding: 46px 28px 34px 28px;
}

#masthead h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 46px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
}

.tagline {
    color: #c3bce4;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-top: 10px;
    text-transform: uppercase;
}

.streak {
    background: rgba(216, 160, 64, 0.16);
    border: 1px solid rgba(216, 160, 64, 0.55);
    border-radius: 999px;
    color: #e8b866;
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 16px;
    padding: 5px 12px;
    text-transform: uppercase;
}


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

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 12px;
    letter-spacing: 1.5px;
    padding-bottom: 6px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #cfc9ec;
    padding-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- PAGE: the centered content column under the banner ---- */

#page {
    margin: 0 auto;
    max-width: 920px;
    padding: 48px 28px 12px 28px;
}

.lead {
    color: #37324d;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* ---- CALLOUT: the dashed "how to use this template" note ---- */

.howto {
    background: #fbf6ea;
    border: 1px dashed #dcc79a;
    border-left: 4px solid #c8862b;
    border-radius: 6px;
    color: #6b5a3a;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 44px;
    padding: 16px 20px;
}

.howto strong {
    color: #8a6a22;
}


/* ---- COLUMNS: journal floats left, tracker floats right ---- */

#columns::after {
    clear: both;
    content: "";
    display: table;
}

#journal {
    float: left;
    width: 62%;
}

#skills {
    float: right;
    position: sticky;
    top: 24px;
    width: 33%;
}


/* ---- SECTION HEADINGS: small caps with a short indigo underline ---- */

h2 {
    border-bottom: 2px solid #e7e3ee;
    color: #221d33;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    position: relative;
    text-transform: uppercase;
}

h2::after {
    background: #5b4bc4;
    bottom: -2px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 46px;
}


/* ---- JOURNAL ENTRIES: a date in the margin, notes on the right ---- */

.entry {
    border-bottom: 1px solid #eae6f1;
    display: flex;
    gap: 20px;
    padding: 22px 0;
}

.entry:first-of-type {
    padding-top: 4px;
}

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

.entry-date {
    border-top: 3px solid #5b4bc4;
    color: #726c86;
    flex: 0 0 68px;
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    padding-top: 8px;
    text-transform: uppercase;
    transition: border-color 0.15s ease;
}

.entry-date .mon {
    white-space: nowrap;
}

.entry-date .day {
    color: #221d33;
    display: block;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 28px;
    letter-spacing: 0;
    line-height: 1.1;
}

.entry:hover .entry-date {
    border-top-color: #c8862b;
}

.entry-body {
    flex: 1 1 auto;
}

.entry h3 {
    color: #221d33;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 8px;
}

.entry p {
    margin-bottom: 12px;
}

#journal a,
#journal a:visited {
    border-bottom: 1px solid #c9c1ef;
    color: #5b4bc4;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#journal a:hover {
    border-bottom-color: #2f2670;
    color: #2f2670;
}


/* ---- TOPIC PILLS: small rounded labels for what was studied ---- */

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.topics li {
    background: #efeafb;
    border-radius: 999px;
    color: #5b4bc4;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 10px;
    text-transform: uppercase;
}


/* ---- SKILL TRACKER: the white panel in the right column ---- */

#skills {
    background: #ffffff;
    border: 1px solid #e7e3ee;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(34, 29, 51, 0.04),
                0 18px 40px rgba(34, 29, 51, 0.06);
    padding: 24px 22px 26px 22px;
}

#skills h2 {
    font-size: 11px;
    margin-bottom: 6px;
}

.panel-note {
    color: #726c86;
    font-size: 12px;
    margin-bottom: 22px;
}


/* ---- PROGRESS BARS: a grey track with a coloured fill ---- */

.skill {
    margin-bottom: 16px;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.skill-name {
    color: #37324d;
    font-size: 12px;
    font-weight: bold;
}

.skill-pct {
    color: #726c86;
    font-size: 11px;
}

.bar {
    background: #ebe7f2;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.bar-fill {
    background: linear-gradient(90deg, #5b4bc4, #8a7cf0);
    border-radius: 999px;
    display: block;
    height: 100%;
}


/* ---- SIDEBAR SUB-HEADINGS AND STATS ---- */

#skills h3 {
    color: #221d33;
    font-size: 11px;
    letter-spacing: 2px;
    margin: 26px 0 12px 0;
    text-transform: uppercase;
}

.stats {
    list-style: none;
}

.stats li {
    align-items: baseline;
    border-bottom: 1px dashed #eae6f1;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

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

.stats .label {
    color: #726c86;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stats .value {
    color: #221d33;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    line-height: 1;
}

.tags {
    margin-top: 4px;
}


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

#footer {
    border-top: 1px solid #e2ddec;
    color: #7a748f;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 52px;
    padding: 24px 0 28px 0;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover {
    color: #5b4bc4;
}


/* ---- SMALL SCREENS: stack the columns and tighten the spacing ---- */

@media (max-width: 640px) {
    .masthead-inner {
        padding: 32px 20px 26px 20px;
    }

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

    #menu {
        gap: 16px;
    }

    #page {
        padding: 32px 20px 8px 20px;
    }

    .lead {
        font-size: 18px;
    }

    #journal,
    #skills {
        float: none;
        position: static;
        width: 100%;
    }

    #skills {
        margin-top: 36px;
    }

    .entry {
        display: block;
    }

    .entry-date {
        align-items: baseline;
        border-left: 3px solid #5b4bc4;
        border-top: none;
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
        padding: 0 0 0 10px;
    }

    .entry-date .day {
        display: inline;
        font-size: 16px;
    }
}


/* ---- PRINT: a clean sheet with no banner or shadows ---- */

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

    #masthead {
        background: #ffffff;
        border-bottom: 2px solid #000000;
        color: #000000;
    }

    #masthead h1,
    .tagline {
        color: #000000;
    }

    #menu,
    .streak {
        display: none;
    }

    #page {
        max-width: 100%;
        padding: 16px 0;
    }

    #journal,
    #skills {
        float: none;
        position: static;
        width: 100%;
    }

    #skills {
        border: 1px solid #999999;
        box-shadow: none;
        margin-top: 24px;
    }
}

