/* Print Resume - A Free Design by Bryant Smith (bryantsmith.com)
   Every colour, type size and gap used on the page lives here.
   Look for the section headings below to find what you want to change. */


/* ---- RESET: a clean starting point ---- */

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


/* ---- BODY: the desk the sheet of paper rests on ---- */

body {
    background: #ecece9;
    color: #3a3a3a;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 48px 16px;
}


/* ---- PAGE: the white sheet itself ---- */

#page {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 18px 44px rgba(0, 0, 0, 0.10);
    margin: 0 auto;
    max-width: 840px;
    padding-bottom: 4px;
}


/* ---- MASTHEAD: the charcoal band with name and contact details ---- */

#masthead {
    align-items: flex-start;
    background: #202024;
    color: #f4f4f2;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    padding: 48px 60px 42px 60px;
}

.masthead-name {
    border-left: 3px solid #8d8d86;
    padding-left: 22px;
}

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

.job-title {
    color: #b6b6b0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    margin-top: 12px;
    text-transform: uppercase;
}

.masthead-contact {
    text-align: right;
}

.masthead-contact p {
    color: #c9c9c4;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.4px;
    line-height: 2;
}


/* ---- MENU: the row of links just under the band ---- */

#menu {
    background: #f4f4f2;
    border-bottom: 1px solid #e2e2de;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 14px 60px;
    text-transform: uppercase;
}

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

#menu a:hover {
    border-bottom-color: #1a1a1a;
    color: #1a1a1a;
}

#menu a:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 4px;
}


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

#content {
    padding: 48px 60px 8px 60px;
}

#content p {
    color: #3a3a3a;
    margin-bottom: 18px;
}

.lead {
    color: #404040;
    font-size: 19px;
    line-height: 1.65;
}


/* ---- HEADINGS: strong, grey-ruled section titles ---- */

h2 {
    border-bottom: 1px solid #e2e2de;
    color: #1a1a1a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 48px 0 22px 0;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
}

h2::after {
    background: #1a1a1a;
    bottom: -1px;
    content: "";
    display: block;
    height: 2px;
    left: 0;
    position: absolute;
    width: 46px;
}

#content > section:first-child h2 {
    margin-top: 0;
}


/* ---- ENTRIES: a job or qualification, date on the right ---- */

.entry {
    margin-bottom: 32px;
}

.entry:last-child {
    margin-bottom: 0;
}

.entry-head {
    align-items: baseline;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.entry-what h3 {
    color: #161616;
    font-size: 19px;
    font-weight: normal;
    line-height: 1.3;
}

.entry-org,
.entry-date {
    margin-bottom: 0;
}

.entry-org {
    color: #6b6b6b;
    font-style: italic;
    margin-top: 2px;
}

.entry-date {
    color: #8a8a8a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ---- BULLETS: the short dashed list inside each entry ---- */

.bullets {
    list-style: none;
    margin-top: 12px;
}

.bullets li {
    color: #3a3a3a;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.bullets li::before {
    background: #a9a7a0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 0.72em;
    width: 10px;
}


/* ---- SKILLS: a wrapped row of subtle grey pills ---- */

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

.skills li {
    border: 1px solid #dcdcd7;
    border-radius: 999px;
    color: #444444;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.4px;
    padding: 5px 13px;
}


/* ---- HOW TO: the friendly note for beginners who download this ---- */

.howto {
    background: #f7f7f5;
    border-left: 4px solid #202024;
    margin-top: 52px;
    padding: 24px 28px;
}

.howto h2 {
    border-bottom: none;
    margin: 0 0 10px 0;
    padding-bottom: 0;
}

.howto h2::after {
    display: none;
}

.howto p {
    font-size: 15px;
    margin-bottom: 0;
}


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

#footer {
    border-top: 1px solid #e2e2de;
    color: #8a8a8a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 48px 60px 0 60px;
    padding: 20px 0 40px 0;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #6b6b6b;
    text-decoration: none;
}

#footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}


/* ---- SMALL SCREENS: stack the band and pull in the padding ---- */

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

    #masthead {
        flex-direction: column;
        gap: 20px;
        padding: 32px 24px 28px 24px;
    }

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

    .masthead-contact {
        text-align: left;
    }

    #menu {
        padding: 12px 24px;
    }

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

    #content {
        padding: 32px 24px 4px 24px;
    }

    .entry-head {
        display: block;
    }

    .entry-date {
        display: block;
        margin-top: 4px;
    }

    .lead {
        font-size: 17px;
    }

    .howto {
        padding: 18px 20px;
    }

    #footer {
        margin: 40px 24px 0 24px;
    }
}


/* ---- PRINT: drop the desk, menu and note for one clean sheet ---- */

@media print {
    @page {
        margin: 15mm;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 11pt;
        line-height: 1.5;
        padding: 0;
    }

    #page {
        box-shadow: none;
        margin: 0;
        max-width: none;
        padding-bottom: 0;
    }

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

    #masthead h1 {
        color: #000000;
        font-size: 26pt;
    }

    .masthead-name {
        border-left: 3px solid #000000;
    }

    .job-title,
    .masthead-contact p {
        color: #000000;
    }

    #menu,
    .howto,
    #footer {
        display: none;
    }

    #content {
        margin-top: 24px;
        padding: 0;
    }

    #content p,
    .bullets li,
    .entry-org,
    .entry-date,
    .skills li {
        color: #000000;
    }

    .skills li {
        border-color: #999999;
    }

    h2 {
        border-bottom: 1px solid #000000;
    }

    h2::after {
        background: #000000;
    }

    .entry,
    .skills li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    h2,
    h3 {
        break-after: avoid;
        page-break-after: avoid;
    }
}
