:root {
    --green: #668d3e;
    --ink: #282d31;
    --card: #ebf1ef;
    --muted: #3c4348;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.resume-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
    background: #d5d5d5;
    box-sizing: border-box;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1.6px solid var(--ink);
    border-radius: 3px;
    color: var(--ink);
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.resume-download:hover,
.resume-download:focus-visible {
    background: var(--ink);
    color: #fff;
}

.sheet {
    width: 8.5in;
    height: 11in;
    margin: 0 auto;
    padding: 0.42in 0.48in 0.36in;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.sheet-resume,
.sheet-cv {
    display: flex;
    flex-direction: column;
}

strong { font-weight: 500; }

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

/* Header --------------------------------------------------- */

.masthead {
    display: grid;
    grid-template-columns: 2.05in 1fr 1.28in;
    align-items: start;
    gap: 0.12in;
    min-height: 1.22in;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 9pt;
    font-weight: 400;
    line-height: 1.35;
}

.contact a,
.contact span {
    display: grid;
    grid-template-columns: 14px 1fr;
    column-gap: 6px;
    align-items: start;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact a { text-decoration: none; }

.contact em { font-style: normal; }

.contact a em {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.contact svg {
    width: 13px;
    height: 13px;
    margin-top: 1px;
    color: var(--ink);
}

.brand {
    text-align: center;
    padding-top: 2px;
}

.wordmark {
    width: 2.55in;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tagline {
    margin: 10px 0 0;
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.portrait {
    width: 1.22in;
    height: auto;
    justify-self: end;
    margin-top: 2px;
}

/* Page 1 columns ------------------------------------------ */

.columns {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 0.22in;
    margin-top: 0.16in;
}

.block {
    display: grid;
    grid-template-columns: 26px 1fr;
    column-gap: 8px;
    align-items: start;
}

.block + .block { margin-top: 18px; }

.tools { margin-top: 22px; margin-bottom: 4px; }

.block-icon {
    width: 24px;
    height: 24px;
    color: var(--ink);
    margin-top: 1px;
}

.summary h2 {
    margin: 0 0 8px;
    font-size: 11pt;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.011em;
}

.summary p {
    margin: 0;
    font-size: 9.5pt;
    font-weight: 400;
    line-height: 1.45;
}

.tools-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 12px;
    padding: 16px 8px 14px;
    background-color: #fff;
    background-image: radial-gradient(circle, #d5d8db 0.9px, transparent 1px);
    background-size: 13px 13px;
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.tool img {
    height: 40px;
    width: 44px;
    object-fit: contain;
}

.tool span {
    color: #3a4148;
    font-size: 8pt;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.tool-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
}

.tool-pair img {
    width: 22px;
    height: 22px;
}

.also-tools {
    margin: 14px 4px 0;
    color: var(--muted);
    font-size: 9.5pt;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

.skills {
    background: #f1f2f3;
    border-radius: 8px;
    padding: 9px 12px 10px 14px;
}

.skills ul {
    margin: 0;
    padding: 0 0 0 12px;
}

.skills li {
    font-size: 9.5pt;
    font-weight: 400;
    line-height: 1.45;
    margin: 2px 0;
}

.skills li::marker { color: var(--ink); font-size: 0.7em; }

.pill {
    margin: 8px auto 2px;
    width: 78%;
    background: transparent;
    border: 1.25px solid #8e959b;
    border-radius: 8px;
    padding: 6px 8px;
    color: var(--ink);
    text-align: center;
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.block.edu {
    display: block;
}

.edu .block-icon {
    display: block;
    margin: 0 0 8px;
}

.edu .school {
    margin: 0 0 1px;
    color: var(--ink);
    font-size: 9.5pt;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.edu .role,
.edu .dates,
.edu .honor {
    margin: 0;
    font-size: 9pt;
    font-weight: 400;
    line-height: 1.35;
}

.edu .dates {
    font-weight: 500;
    letter-spacing: 0.06em;
}

.edu .honor {
    margin-top: 1px;
    font-size: 9.5pt;
    line-height: 1.45;
}

.jobs-head {
    margin: 0 0 8px;
}

.job + .job { margin-top: 16px; }

.job h3 {
    margin: 0 0 1px;
    font-size: 9.5pt;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.job .role,
.job .dates {
    margin: 0;
    font-size: 9pt;
    font-weight: 400;
    line-height: 1.35;
}

.job .dates {
    font-weight: 500;
    letter-spacing: 0.06em;
}

.job .blurb {
    margin: 5px 0 0;
    padding-left: 0;
    font-size: 9.5pt;
    font-weight: 400;
    line-height: 1.45;
}

.showreel-wrap {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.showreel {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85in;
    padding: 6px 16px 5px;
    border: 1.6px solid var(--ink);
    border-radius: 3px;
    color: var(--ink);
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.showreel .cursor {
    position: absolute;
    right: -12px;
    bottom: -13px;
    width: 18px;
    height: 18px;
    color: var(--ink);
}

/* Page 2 --------------------------------------------------- */

.cv-title {
    margin: 2px 0 0;
    text-align: center;
    color: var(--ink);
    font-size: 11pt;
    font-weight: 500;
    letter-spacing: 0.28em;
}

.cv-title-rule {
    width: 2.35in;
    height: 1.6px;
    margin: 5px auto 14px;
    background: var(--ink);
}

.cv-role + .cv-role { margin-top: 20px; }

.cv-role h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 9.5pt;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.cv-role h2 svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.cv-role .lead,
.cv-role li {
    font-size: 9.5pt;
    font-weight: 400;
    line-height: 1.45;
}

.cv-role .lead { margin: 0 0 6px 22px; }

.cv-role ul {
    margin: 0;
    padding: 0 0 0 34px;
}

.cv-role li { margin: 3px 0; padding-left: 2px; }

.cv-role li::marker { color: var(--ink); }

.brand-mark {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    color: var(--green);
}

.brand-mark svg { width: 62px; height: auto; }

@media screen {
    body {
        background: #d5d5d5;
        padding: 22px 0 40px;
    }

    .sheet {
        margin-bottom: 22px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    }
}

@media print {
    .resume-toolbar { display: none !important; }

    body { background: #fff; padding: 0; }

    .sheet {
        margin: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }

    .sheet:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}

@page {
    size: letter;
    margin: 0;
}

* {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
