/* Soft Sage - A Free Design by Bryant Smith (bryantsmith.com)
   A calm, single-column personal page in muted sage greens.

   Every colour on the page is gathered in the palette below, so you can
   change the whole mood from one place. Look for the section headings to
   find the part you want to adjust. */


/* ---- PALETTE: change these hex values to recolour the page ---- */

:root {
    --canvas:    #e6ebde;  /* the soft green surface behind the page  */
    --paper:     #f7f9f4;  /* the page itself                          */
    --sage-tint: #e2e9da;  /* the slim sidebar panel                   */
    --sage-wash: #eef3e9;  /* gentle fills, quote, callout             */
    --sage:      #547049;  /* primary accent: links and rules          */
    --sage-deep: #34452c;  /* headings and strong marks                */
    --ink:       #333d2e;  /* body text                                */
    --ink-soft:  #5f6a56;  /* secondary text and fine print            */
    --line:      #d4ddca;  /* hairline borders                         */
}


/* ---- RESET & BASE: page background and shared settings ---- */

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

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.7;
    padding: 48px 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--sage);
    text-decoration: none;
}

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


/* ---- PAGE: the sheet of paper, centred on the desk ---- */

#page {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 5px solid var(--sage);
    border-radius: 14px;
    max-width: 940px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(52, 69, 44, 0.05),
                0 18px 40px rgba(52, 69, 44, 0.10);
}


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

#masthead {
    background: linear-gradient(180deg, var(--sage-wash) 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: 56px 56px 40px 56px;
}

.kicker {
    color: var(--sage);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.kicker::before {
    background: var(--sage);
    content: "";
    display: inline-block;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    width: 28px;
}

#masthead h1 {
    color: var(--sage-deep);
    font-size: 58px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 18px 0 10px 0;
}

.tagline {
    color: var(--ink-soft);
    font-size: 18px;
    font-style: italic;
}


/* ---- LAYOUT: a narrow sidebar beside a single reading column ---- */

#layout {
    display: grid;
    grid-template-columns: 200px 1fr;
}

#sidebar {
    background: var(--sage-tint);
    border-right: 1px solid var(--line);
    padding: 44px 24px;
}

.sidebar-label {
    color: var(--ink-soft);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#menu {
    margin: 14px 0 34px 0;
}

#menu a {
    border-bottom: 1px solid transparent;
    color: var(--ink);
    display: block;
    font-size: 15px;
    padding: 7px 0 7px 0;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

#menu a::before {
    color: var(--sage);
    content: "\00b7";
    margin-right: 9px;
}

#menu a:hover,
#menu a:focus {
    color: var(--sage-deep);
    padding-left: 6px;
}

.sidebar-note {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.sidebar-note p {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 10px;
}


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

#content {
    max-width: 640px;
    padding: 52px 56px 56px 52px;
}

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

#content a {
    border-bottom: 1px solid var(--line);
    transition: border-color 0.15s ease, color 0.15s ease;
}

#content a:hover {
    border-bottom-color: var(--sage);
    color: var(--sage-deep);
}

.lead {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.6;
}

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


/* ---- HEADINGS: small sage labels above serif content ---- */

h2 {
    color: var(--sage-deep);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 48px 0 16px 0;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
}

h2::after {
    background: var(--line);
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    width: 100%;
}

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

h3 {
    color: var(--sage-deep);
    font-size: 20px;
    font-weight: normal;
}


/* ---- QUOTE: a soft tinted passage with a sage edge ---- */

blockquote {
    background: var(--sage-wash);
    border-left: 3px solid var(--sage);
    border-radius: 0 8px 8px 0;
    color: var(--ink-soft);
    font-size: 20px;
    font-style: italic;
    line-height: 1.55;
    margin: 32px 0;
    padding: 22px 26px;
}

blockquote p {
    margin: 0;
}


/* ---- NOTES: the dated journal entries ---- */

.notes {
    list-style: none;
}

.notes li {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

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

.notes .date {
    color: var(--ink-soft);
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.notes a {
    border-bottom: 1px solid transparent;
    color: var(--ink);
    font-size: 19px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.notes a:hover {
    border-bottom-color: var(--sage);
    color: var(--sage-deep);
}


/* ---- PROJECTS: a marked list of small things ---- */

.projects {
    list-style: none;
}

.projects li {
    margin-bottom: 22px;
    padding-left: 26px;
    position: relative;
}

.projects li::before {
    background: var(--sage-tint);
    border: 2px solid var(--sage);
    border-radius: 50%;
    content: "";
    height: 10px;
    left: 0;
    position: absolute;
    top: 7px;
    width: 10px;
}

.projects h3 {
    margin-bottom: 4px;
}

.projects p {
    color: var(--ink-soft);
    font-size: 16px;
    margin: 0;
}


/* ---- HOW TO USE: a gentle instructional callout ---- */

.howto {
    background: var(--sage-wash);
    border: 1px dashed var(--sage);
    border-radius: 10px;
    margin: 40px 0 8px 0;
    padding: 26px 28px;
}

.howto h3 {
    margin-bottom: 10px;
}

.howto p {
    color: var(--ink-soft);
    font-size: 16px;
    margin: 0;
}

.howto strong {
    color: var(--ink);
}


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

#footer {
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

#footer a:hover {
    color: var(--sage-deep);
}


/* ---- SMALL SCREENS: stack the sidebar above the text ---- */

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

    #masthead {
        padding: 38px 26px 28px 26px;
    }

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

    #layout {
        display: block;
    }

    #sidebar {
        border-bottom: 1px solid var(--line);
        border-right: none;
        padding: 26px;
    }

    #menu {
        margin: 10px 0 22px 0;
    }

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

    #content {
        padding: 34px 26px 38px 26px;
    }

    .lead {
        font-size: 19px;
    }

    .lead::first-letter {
        font-size: 2.7em;
    }
}


/* ---- PRINT: remove the desk and shadows for a clean sheet ---- */

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

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

    #sidebar {
        display: none;
    }

    #content {
        max-width: 100%;
    }
}
