/* Cool Mint - A Free Design by Bryant Smith (bryantsmith.com)
   A light two-column portfolio in pale mint and deep green.
   Each part of the page is labelled below so you can find it fast. */


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

:root {
    --bg:         #f4fbf7;   /* soft page background       */
    --panel:      #e1f3ea;   /* pale mint panels           */
    --panel-line: #c6e5d5;   /* mint border around panels  */
    --accent:     #2f8f6b;   /* fresh green accent         */
    --deep:       #0f4a38;   /* dark green headings        */
    --link:       #14604a;   /* accessible green link      */
    --ink:        #2c4a40;   /* body text                  */
    --ink-soft:   #476b5c;   /* muted text                 */
}


/* ---- BODY: the pale green wash behind everything ---- */

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 15% 0%, #e6f6ee 0%, rgba(230, 246, 238, 0) 45%);
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 40px 16px;
    text-align: center;
}

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

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


/* ---- PAGE: the centred column that holds the layout ---- */

#page {
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}


/* ---- MASTHEAD: the title, tagline and navigation ---- */

#masthead {
    border-bottom: 2px solid var(--panel-line);
    margin-bottom: 32px;
    padding-bottom: 24px;
}

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

#masthead h1::before {
    background: var(--accent);
    border-radius: 3px;
    content: "";
    display: block;
    height: 6px;
    margin-bottom: 20px;
    width: 44px;
}

#masthead .tagline {
    color: var(--ink-soft);
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 10px;
    text-transform: uppercase;
}


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

#menu {
    margin-top: 24px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: var(--link);
    font-size: 12px;
    letter-spacing: 2px;
    margin-right: 24px;
    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: var(--accent);
    color: var(--deep);
}


/* ---- LEAD: the larger opening paragraph ---- */

.lead {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 68ch;
}


/* ---- MAIN: the two-column grid that holds the panels ---- */

#main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wide {
    grid-column: 1 / -1;   /* a panel that spans both columns */
}


/* ---- PANELS: the pale mint boxes ---- */

.panel {
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 14px;
    padding: 28px 28px 30px 28px;
    box-shadow: 0 1px 2px rgba(15, 74, 56, 0.05);
    transition: box-shadow 0.2s ease;
}

.panel:hover {
    box-shadow: 0 6px 18px rgba(15, 74, 56, 0.10);
}

.panel h2 {
    color: var(--deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 14px;
}

.panel h2::before {
    background: var(--accent);
    border-radius: 2px;
    content: "";
    display: inline-block;
    height: 18px;
    margin-right: 10px;
    vertical-align: -2px;
    width: 4px;
}

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

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

.panel-intro {
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.panel a,
.panel a:visited {
    border-bottom: 1px solid rgba(47, 143, 107, 0.4);
    color: var(--link);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- FACTS: the small bulleted lists ---- */

.facts {
    list-style: none;
}

.facts li {
    padding: 6px 0;
}

.facts li::before {
    background: var(--accent);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 6px;
    margin-right: 10px;
    vertical-align: middle;
    width: 6px;
}


/* ---- PROJECTS: the simple two-column list of work ---- */

.projects {
    display: grid;
    gap: 0 40px;
    grid-template-columns: 1fr 1fr;
    list-style: none;
}

.projects li {
    border-bottom: 1px solid var(--panel-line);
    padding: 14px 0;
}

.projects li a {
    border-bottom: none;
    color: var(--deep);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.4;
}

.projects li a::before {
    color: var(--accent);
    content: "\2014";
    margin-right: 10px;
}

.projects li a:hover {
    color: var(--link);
}

.projects li span {
    color: var(--ink-soft);
    display: block;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-top: 4px;
    padding-left: 26px;
}


/* ---- ENTRIES: the dated journal list ---- */

.entries {
    list-style: none;
}

.entries li {
    border-bottom: 1px solid var(--panel-line);
    padding: 12px 0;
}

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

.entries .date {
    color: var(--ink-soft);
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 88px;
}

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


/* ---- HOW TO: the white panel with a thicker left border ---- */

.howto {
    background: #ffffff;
    border-left: 5px solid var(--accent);
}


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

#footer {
    border-top: 2px solid var(--panel-line);
    color: var(--ink-soft);
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 48px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover {
    border-bottom: 1px solid var(--deep);
    color: var(--deep);
}


/* ---- SMALL SCREENS: stack the columns on phones ---- */

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

    #main {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .wide {
        grid-column: auto;
    }

    .panel {
        border-radius: 12px;
        padding: 22px 20px;
    }

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

    .lead {
        font-size: 18px;
    }

    .projects {
        gap: 0;
        grid-template-columns: 1fr;
    }

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


/* ---- PRINT: drop the tints and shadows for a clean sheet ---- */

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

    #menu {
        display: none;
    }

    .panel,
    .howto {
        background: #ffffff;
        border: 1px solid #cccccc;
        box-shadow: none;
    }

    #footer {
        color: #777777;
    }
}
