:root {
    --page-width: 1080px;
    --ink: #050505;
    --paper: #f7f7f4;
    --panel: #ffffff;
    --rule: 2px;
    --shadow: 7px;
    --gap: 28px;
    --tight: 14px;
    --header-panel-breathing-room: 24px;
    --font: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.33;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url("../projects/2012 06 paradigm/icon.jpg") 0 0 / 256px 256px repeat;
    opacity: .07;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
    background: var(--ink);
    color: var(--paper);
    outline: 0;
}

.resume-page {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(var(--page-width), calc(100vw - 48px));
    min-height: 1480px;
    margin: 24px auto;
    padding: 18px 22px 26px;
    background: transparent;
    border: 0;
}

.resume-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../projects/2012 06 paradigm/icon.jpg") 0 0 / 256px 256px repeat;
    opacity: .07;
    display: none;
    pointer-events: none;
}

.resume-page::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: 22px;
    width: 590px;
    height: 60px;
    background: url("../projects/2012 06 paradigm/icon.jpg") center bottom / cover no-repeat;
    filter: contrast(1.05);
    opacity: .07;
    display: none;
    pointer-events: none;
}

.masthead {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 26px;
}

.masthead-title {
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding: 14px 16px 26px;
    background: var(--panel);
    border: var(--rule) solid var(--ink);
    box-shadow: var(--shadow) var(--shadow) 0 var(--ink);
    overflow: hidden;
}

.version {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.masthead h1 {
    margin: 0;
    font-size: 48px;
    line-height: .9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}

.version {
    position: absolute;
    right: 16px;
    bottom: 6px;
    z-index: 2;
}

.resume-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .95fr);
    gap: var(--gap);
    align-items: start;
}

.column {
    display: grid;
    gap: var(--gap);
}

.resume-section {
    position: relative;
}

.section-title {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 0 0 -10px -18px;
    padding: 8px 12px 9px;
    background: var(--paper);
    border: var(--rule) solid var(--ink);
    box-shadow: var(--shadow) var(--shadow) 0 var(--ink);
    font-size: 50px;
    line-height: .82;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.panel {
    position: relative;
    background: var(--panel);
    border: var(--rule) solid var(--ink);
    box-shadow: var(--shadow) var(--shadow) 0 var(--ink);
}

.intro-panel,
.profile-panel,
.timeline-panel {
    padding: 18px 24px;
}

.intro-panel {
    margin: 0 0 34px;
}

.profile-panel {
    margin-bottom: 0;
}

.panel p {
    margin: 0;
}

.panel p + p {
    margin-top: 16px;
}

.contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 2px;
    font-size: 14px;
    font-weight: 600;
}

strong {
    font-weight: 700;
}

.compact-panel {
    padding: 18px 22px;
}

.compact-panel h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.1;
    text-transform: uppercase;
}

.portfolio-section .compact-panel p + p {
    margin-top: 8px;
}

.toolkit-section .section-title,
.focus-section .section-title {
    font-size: 48px;
}

.projects-section .section-title {
    font-size: 47px;
}

.entry-list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 22px 0 0;
    list-style: none;
}

.entry {
    margin: 0 0 13px;
    padding-left: 26px;
}

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

.entry h3,
.project-entry h3 {
    margin: 0 0 3px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
}

.entry h3 span,
.project-entry h3 span {
    font-weight: 400;
}

.entry p {
    max-width: 520px;
}

.timeline-panel {
    padding-top: var(--header-panel-breathing-room);
    min-height: 650px;
}

.timeline-label {
    position: absolute;
    right: 17px;
    z-index: 2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
}

.timeline-present {
    top: 28px;
}

.timeline-past {
    bottom: 26px;
}

.timeline-panel::after {
    content: "";
    position: absolute;
    top: 102px;
    right: 23px;
    bottom: 74px;
    width: var(--rule);
    background: var(--ink);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.skill-tags li {
    white-space: nowrap;
}

.skill-tags li::before {
    content: "#";
    margin-right: 3px;
    font-weight: 700;
}

.projects-panel {
    padding: var(--header-panel-breathing-room) 20px 22px;
}

.project-entry {
    margin: 0 0 22px;
}

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

.project-entry p {
    text-align: left;
}

.note-panel {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: var(--header-panel-breathing-room) 18px 10px;
}

.note-panel::before {
    content: "P.S.";
    align-self: start;
    font-size: 34px;
    line-height: 1;
}

.note-panel p {
    margin: 0;
}

.note-panel .signoff {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 15px;
}

.section-title + .panel {
    padding-top: var(--header-panel-breathing-room);
}

.signoff span {
    font-weight: 600;
}

@media (max-width: 980px) {
    .resume-page {
        width: calc(100vw - 24px);
        min-height: 0;
        padding: 16px;
    }

    .masthead {
        justify-content: stretch;
    }

    .masthead-title {
        width: 100%;
    }

    .masthead h1 {
        white-space: normal;
        font-size: 42px;
    }

    .resume-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: 1230px 1850px;
        margin: 0;
    }

    html,
    body {
        background: #fff;
        width: 1230px;
        margin: 0;
    }

    .resume-page {
        width: 1180px;
        min-height: 1850px;
        margin: 0 auto;
        border: 0;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .masthead {
        justify-content: flex-end;
    }

    .masthead-title {
        width: fit-content;
    }

    .masthead h1 {
        white-space: nowrap;
        font-size: 48px;
    }

    .resume-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(340px, .95fr);
    }

    a {
        text-decoration: none;
    }
}
