:root {
    --blue: #2079c7;
    --medium-grey: #ababab;
    --light-grey: #bfbfbf;
    color: rgb(31, 31, 31);
    font-family: 'Merriweather';
    font-size: 10px;
    line-height: 1.625;
}

body {
    background-color: mintcream;
    padding: 0.5in;
    text-align: center;
}


/* ------ */
/* LAYOUT */
/* ------ */

#sheet {
    background-color: white;
    border: var(--light-grey) 1px solid;
    box-sizing: border-box;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    display: inline-block;
    height: calc(11in + 2px);
    max-height: calc(11in + 2px);
    max-width: calc(8.5in + 2px);
    min-height: calc(11in + 2px);
    min-width: calc(8.5in + 2px);
    padding-bottom: 0.625in;
    padding-left: 0.625in;
    padding-right: 0.625in;
    padding-top: 0.625in;
    text-align: initial;
    width: calc(8.5in + 2px);
}

#resume>header {
    border-bottom: var(--medium-grey) 1px solid;
    display: grid;
    gap: 0.5in;
    grid-template-areas:
        'whodis contact';
    grid-template-columns: 1fr 2in;
    margin-bottom: 0.625em;
}

#resume-whodis {
    grid-area: whodis;
}

#resume>main {
    display: grid;
    gap: 0.25in;
    grid-template-areas:
        'overview credentials';
    grid-template-columns: 1fr 2in;
}

#resume-overview {
    grid-area: overview;
}


/* --------------- */
/* GENERAL SPACING */
/* --------------- */

main {
    line-height: 1.875em;
}

section,
section h3 {
    margin-block-start: 1.625em;
    margin-block-end: 1em;
}


/* ---------- */
/* COMPONENTS */
/* ---------- */

li {
    margin-block-end: 0.25em;
    padding-left: 1ch;

    &::marker {
        content: '⬥  ';
        color: var(--blue);
    }
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
    color: var(--blue);
    font-family: 'Merriweather Sans';
    font-size: 12px;
    text-transform: uppercase;
}

ul {
    padding-inline-start: 2ch;
    list-style-position: outside;
}

.cert-id {
    white-space: nowrap
}

#contact-me {
    align-self: end;
    display: grid;
    font-family: 'Merriweather Sans';
    font-weight: 300;
    grid-auto-rows: min-content;
    grid-template-columns: 19px 1fr;
    margin-top: 0;
    margin-block-end: 12px;

    & h3 {
        display: none;
    }

    & a,
    & a:active,
    & a:hover,
    & a:link,
    & a:visited {
        color: inherit;
        line-height: 1.875em;
        margin-bottom: 0.25em;
        text-decoration: none;
    }

    & svg {
        fill: var(--blue);
        height: 10px;
        margin-top: 4px;
        width: 10px;
    }
}

#employment-history>div {
    margin-block: 1em;
}

/* employment detail - all lines */
#employment-history>div>p {
    margin-block: 0.125em;
}

/* employment detail - first line */
#employment-history>div>p:first-of-type {
    font-family: 'Merriweather Sans';
    font-weight: 700;
    text-transform: uppercase;
}

/* employment detail - second line */
.employment-term {
    color: var(--light-grey);
    font-family: 'Merriweather Sans';
    font-weight: 400;
    text-transform: uppercase;

    &::before {
        content: '|';
        margin-left: 1ch;
        margin-right: 1ch;
    }
}

#legal {
    font-family: 'Merriweather Sans';
    font-weight: 300;
    margin-top: 6em;
    text-align: center;
}

#resume-credentials {
    grid-area: credentials;
}

#resume-whodis>#name {
    font-size: 40px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0;
}

#resume-whodis>#occupation {
    color: var(--light-grey);
    font-family: 'Merriweather Sans';
    font-size: 11px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1.375em;
}


/* -------- */
/* PRINTING */
/* -------- */

@page {
    margin: 0;
    height: 11in;
    width: 8.5in;
}

@media print {
    body {
        border: none;
        margin: 0;
        padding: 0;
    }

    body>footer {
        display: none;
    }

    footer:not(:has(>:not(#legal))) {
        display: none;
    }

    #legal {
        display: none;
    }

    #sheet {
        border: none;
        box-shadow: none;
        height: 11in;
        margin: 0;
        max-height: 11in;
        max-width: 8.5in;
        min-height: 11in;
        min-width: 8.5in;
        width: 8.5in;
    }
}