/* Forest Paper - A Free Design by Bryant Smith (bryantsmith.com)

   A nature-themed notes page: deep green headings, beige paper sections,
   and a slim index rail down the left side.

   Every colour used on the page is gathered in the :root block below, so
   you can try a new palette in one place. Look for the section headings
   (like ---- LAYOUT ----) to find what you want to change. */


/* ---- COLOURS ---- */

:root {
    --forest: #1f4d3a;        /* deep green headings        */
    --forest-deep: #163a2b;   /* the index rail             */
    --forest-soft: #2c6047;   /* rail hover                 */
    --moss: #6f8f5e;          /* soft green accent          */
    --moss-dark: #3d6b3d;     /* links on paper             */
    --leaf: #cfe3b4;          /* light green on dark        */
    --paper: #fdfaf2;         /* the page itself            */
    --beige: #f2ecda;         /* the beige paper sections   */
    --beige-deep: #e8dfc6;    /* section borders            */
    --ink: #2b2b26;           /* body text                  */
    --muted: #62665a;         /* secondary text             */
}


/* ---- RESET + BODY: the dark forest the page rests in ---- */

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

body {
    background: #17241c;
    background: radial-gradient(circle at 50% -20%, #344f3d 0%, #17241c 70%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: "Segoe UI", Verdana, Arial, Helvetica, sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
    padding: 48px 16px;
}


/* ---- PAGE: the warm sheet of paper ---- */

#page {
    background: var(--paper);
    border-top: 5px solid var(--moss);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 22px 50px rgba(0, 0, 0, 0.35);
    margin: 0 auto;
    max-width: 960px;
    padding: 52px 56px 44px 56px;
}


/* ---- MASTHEAD: the title and tagline at the top ---- */

#masthead {
    border-bottom: 2px solid var(--beige-deep);
    padding-bottom: 26px;
}

.kicker {
    color: var(--moss-dark);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    color: var(--forest);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 46px;
    font-weight: normal;
    letter-spacing: -0.6px;
    line-height: 1.1;
    margin-top: 8px;
}

/* A row of little green "trees" drawn from gradient bars.
   Purely decorative, so it is hidden from screen readers in the CSS only. */
#masthead .tagline {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.4px;
    margin-top: 10px;
}


/* ---- LAYOUT: slim index rail on the left, content on the right ---- */

#layout {
    align-items: flex-start;
    display: flex;
    gap: 40px;
    padding-top: 40px;
}


/* ---- INDEX: the slim deep-green rail ---- */

#index {
    background: var(--forest-deep);
    border-radius: 4px;
    flex: 0 0 208px;
    padding: 24px 20px 22px 20px;
    position: sticky;
    top: 24px;
}

.index-label {
    color: var(--leaf);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2.4px;
    margin-bottom: 12px;
    opacity: 0.85;
    text-transform: uppercase;
}

#index-list a,
#index-list a:visited {
    border-bottom: 1px solid rgba(207, 227, 180, 0.16);
    color: #eef3e6;
    display: block;
    font-size: 13.5px;
    padding: 9px 0;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

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

#index-list .num {
    color: var(--leaf);
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.5px;
    opacity: 0.7;
    width: 26px;
}

#index-list a:hover {
    color: var(--leaf);
    padding-left: 5px;
}

.index-note {
    border-top: 1px solid rgba(207, 227, 180, 0.16);
    margin-top: 18px;
    padding-top: 18px;
}

.index-note p:not(.index-label) {
    color: #cdd9c2;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
}


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

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

.lead {
    color: #3a3c34;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.lead::first-letter {
    color: var(--forest);
    float: left;
    font-size: 3.2em;
    line-height: 0.82;
    padding: 4px 10px 0 0;
}


/* ---- PAPER SECTIONS: the beige sheets under green headings ---- */

.paper {
    background: var(--beige);
    border: 1px solid var(--beige-deep);
    border-left: 4px solid var(--moss);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(43, 43, 38, 0.05);
    margin-bottom: 24px;
    padding: 28px 30px 30px 30px;
}

.paper h2 {
    color: var(--forest);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 23px;
    font-weight: normal;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 14px;
    padding-bottom: 10px;
    position: relative;
}

/* A short moss-green rule marks the start of each heading. */
.paper h2::after {
    background: var(--moss);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 46px;
}

.paper p {
    margin-bottom: 14px;
}

.paper p:last-child {
    margin-bottom: 0;
}

.paper a,
.paper a:visited {
    border-bottom: 1px solid rgba(61, 107, 61, 0.35);
    color: var(--moss-dark);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.paper a:hover {
    border-bottom-color: var(--forest);
    color: var(--forest);
}

.paper strong {
    color: var(--forest);
}


/* ---- QUOTE: an indented line of green ---- */

blockquote {
    border-left: 3px solid var(--moss);
    color: var(--muted);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.6;
    margin: 20px 0 4px 0;
    padding: 2px 0 2px 20px;
}

blockquote p {
    margin: 0;
}


/* ---- NOTES: the plain bullet list ---- */

.notes {
    list-style: none;
}

.notes li {
    color: #3f4239;
    padding: 7px 0 7px 24px;
    position: relative;
}

/* A small green leaf-ish tick marks each reminder. */
.notes li::before {
    background: var(--moss);
    border-radius: 50% 50% 50% 0;
    content: "";
    height: 8px;
    left: 3px;
    position: absolute;
    top: 15px;
    transform: rotate(-45deg);
    width: 8px;
}


/* ---- JOURNAL: the dated entry list ---- */

.journal {
    list-style: none;
    margin-top: 4px;
}

.journal li {
    border-bottom: 1px solid var(--beige-deep);
    padding: 12px 0;
}

.journal li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.journal .date {
    color: var(--muted);
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    padding-top: 3px;
    text-transform: uppercase;
    width: 132px;
}

.journal a {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
}


/* ---- STEPS: the numbered instructions ---- */

.steps {
    margin: 4px 0 18px 0;
    padding-left: 0;
    counter-reset: step;
    list-style: none;
}

.steps li {
    color: #3f4239;
    counter-increment: step;
    margin-bottom: 10px;
    padding-left: 36px;
    position: relative;
}

.steps li::before {
    background: var(--forest);
    border-radius: 50%;
    color: #ffffff;
    content: counter(step);
    font-size: 11px;
    font-weight: bold;
    height: 22px;
    left: 0;
    line-height: 22px;
    position: absolute;
    text-align: center;
    top: 2px;
    width: 22px;
}

code {
    background: #e7e0cb;
    border-radius: 3px;
    color: var(--forest);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 13.5px;
    padding: 1px 6px;
}


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

#footer {
    border-top: 2px solid var(--beige-deep);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 48px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover {
    color: var(--moss-dark);
    text-decoration: underline;
}


/* ---- FOCUS: a clear outline for keyboard users ---- */

a:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--moss);
    outline-offset: 3px;
}


/* ---- NARROW DESKTOP: tighten the gap and the rail ---- */

@media (max-width: 860px) {
    #page {
        padding: 44px 38px 38px 38px;
    }

    #layout {
        gap: 28px;
    }

    #index {
        flex-basis: 178px;
    }
}


/* ---- SMALL SCREENS: stack the index above the sections ---- */

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

    #page {
        padding: 34px 22px 28px 22px;
    }

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

    #layout {
        display: block;
        padding-top: 30px;
    }

    #index {
        margin-bottom: 34px;
        position: static;
    }

    #index-list a {
        display: inline-block;
        margin-right: 16px;
    }

    #index-list .num {
        width: auto;
        margin-right: 5px;
    }

    .lead {
        font-size: 17px;
    }

    .paper {
        padding: 24px 22px 24px 22px;
    }

    .paper h2 {
        font-size: 20px;
    }

    .journal .date {
        display: block;
        margin-bottom: 3px;
        padding-top: 0;
        width: auto;
    }
}


/* ---- PRINT: drop the forest and the index for a clean sheet ---- */

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

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

    #index {
        display: none;
    }

    #layout {
        display: block;
        padding-top: 24px;
    }

    .paper {
        background: none;
        border: none;
        border-left: 2px solid #999999;
        box-shadow: none;
        padding: 0 0 0 16px;
        page-break-inside: avoid;
    }

    a {
        color: #000000;
    }
}
