/* Narrow Bridge - A Free Design by Bryant Smith (bryantsmith.com)
   A slim, centred reading column in cool grey with one orange accent.
   The palette used on the page:
       page ground  #eceef0      the sheet       #ffffff
       ink          #23282d      body text       #5b636b
       muted text   #6b737b      hairlines       #dfe3e6
       accent       #e3612a      accent (dark)   #b8461a
   Look for the SECTION HEADINGS below to find what you want to change. */


/* ---- RESET: remove the browser's default spacing ---- */

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


/* ---- BODY: the cool grey ground the column stands on ---- */

body {
    background: #eceef0;
    color: #5b636b;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 48px 16px;
    -webkit-font-smoothing: antialiased;
}


/* ---- PAGE: the slim column itself, with hairline "railings" ---- */

#page {
    background: #ffffff;
    border-left: 1px solid #dfe3e6;
    border-right: 1px solid #dfe3e6;
    border-top: 4px solid #e3612a;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 1px 2px rgba(30, 40, 50, 0.04),
                0 18px 44px rgba(30, 40, 50, 0.09);
    margin: 0 auto;
    max-width: 600px;
    padding: 56px 56px 48px 56px;
    position: relative;
    text-align: left;
}

/* the small diamond "keystone" resting on the top edge */
#page::before {
    background: #e3612a;
    content: "";
    height: 11px;
    left: 50%;
    position: absolute;
    top: -7px;
    transform: translateX(-50%) rotate(45deg);
    width: 11px;
}


/* ---- MENU: the row of links at the very top ---- */

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 48px;
    text-align: center;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #5b636b;
    margin: 0 9px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #e3612a;
    color: #b8461a;
}


/* ---- MASTHEAD: the name, eyebrow and tagline ---- */

#masthead {
    border-bottom: 1px solid #dfe3e6;
    margin-bottom: 40px;
    padding-bottom: 40px;
    text-align: center;
}

#masthead .eyebrow {
    color: #b8461a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

#masthead h1 {
    color: #23282d;
    font-size: 42px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

#masthead .tagline {
    color: #6b737b;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 18px;
    text-transform: uppercase;
}


/* ---- TEXT: paragraphs, links and headings in the column ---- */

main p {
    margin-bottom: 24px;
}

main a,
main a:visited {
    border-bottom: 1px solid #f0c4ae;
    color: #23282d;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

main a:hover,
main a:focus {
    border-bottom-color: #b8461a;
    color: #b8461a;
}

.lead {
    color: #3a4147;
    font-size: 21px;
    line-height: 1.65;
}

h2 {
    color: #23282d;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 56px 0 20px 0;
    text-transform: uppercase;
}

/* the short orange rule that sits above every heading */
h2::before {
    background: #e3612a;
    content: "";
    display: block;
    height: 3px;
    margin-bottom: 12px;
    width: 24px;
}

.about h2 {
    margin-top: 0;
}


/* ---- QUOTE: a centred, typographic pull-quote ---- */

blockquote {
    border-top: 1px solid #dfe3e6;
    border-bottom: 1px solid #dfe3e6;
    color: #3a4147;
    font-size: 21px;
    font-style: italic;
    line-height: 1.6;
    margin: 32px 0;
    padding: 28px 0;
    text-align: center;
}

blockquote::before {
    color: #e3612a;
    content: "\201C";
    display: block;
    font-size: 48px;
    line-height: 0.5;
    margin-bottom: 14px;
}

blockquote p {
    margin: 0;
}


/* ---- LINK LIST: a few links, one line each ---- */

.link-list {
    list-style: none;
}

.link-list li {
    border-bottom: 1px solid #e7eaec;
    padding: 16px 0;
}

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

.link-list a {
    color: #23282d;
    display: inline-block;
    font-size: 21px;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* the arrow only appears when you hover the link */
.link-list a::after {
    color: #e3612a;
    content: "\2192";
    display: inline-block;
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.link-list a:hover,
.link-list a:focus {
    color: #b8461a;
}

.link-list a:hover::after,
.link-list a:focus::after {
    opacity: 1;
    transform: translateX(0);
}

.link-list .note {
    color: #6b737b;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-top: 4px;
}


/* ---- PROJECTS: a year in the margin, details beside it ---- */

.projects {
    list-style: none;
}

.projects li {
    border-bottom: 1px solid #e7eaec;
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

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

.project-year {
    color: #b8461a;
    flex: 0 0 62px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    padding-top: 6px;
}

.project-body h3 {
    font-size: 19px;
    font-weight: normal;
    line-height: 1.35;
    margin-bottom: 6px;
}

.project-body p {
    font-size: 15px;
    margin: 0;
}

/* the small orange status label */
.status {
    background: #fbeee8;
    border: 1px solid #f3cbb8;
    border-radius: 10px;
    color: #b8461a;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 2px 9px;
    text-transform: uppercase;
}


/* ---- NOTE BOX: a tinted panel with the editing guide ---- */

.note-box {
    background: #f4f6f7;
    border: 1px solid #e2e6e9;
    border-left: 3px solid #e3612a;
    border-radius: 4px;
    margin-top: 56px;
    padding: 28px 28px 8px 28px;
}

.note-box h2 {
    margin-top: 0;
}

.note-box p {
    font-size: 15px;
}


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

#footer {
    border-top: 1px solid #dfe3e6;
    color: #9aa2a9;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 56px;
    padding-top: 24px;
    text-align: center;
    text-transform: uppercase;
}

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

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


/* ---- SMALL SCREENS: relax the padding and stack the rows ---- */

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

    #page {
        border-left: none;
        border-right: none;
        padding: 44px 24px 36px 24px;
    }

    #menu {
        margin-bottom: 40px;
    }

    #menu a {
        display: inline-block;
        margin: 4px 8px;
    }

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

    .lead {
        font-size: 19px;
    }

    .projects li {
        display: block;
    }

    .project-year {
        display: block;
        padding-top: 0;
        margin-bottom: 4px;
    }
}


/* ---- PRINT: drop the ground, the shadow and the menu ---- */

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

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

    #page::before,
    #menu {
        display: none;
    }
}
