:root {
    --bg: #0e0e10;
    --bg-alt: #141417;
    --rule: #26262b;
    --ink: #e8e6e1;
    --ink-dim: #9a978f;
    --ink-faint: #6b6862;
    --accent: #ffc857;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: 62rem;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: color .15s ease, border-color .15s ease;
}

a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- top bar ---------- */

.topbar {
    border-bottom: 1px solid var(--rule);
    background: rgba(14, 14, 16, .85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar .wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.brand {
    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--ink);
    border: 0;
}

.brand .dot {
    color: var(--accent);
}

.topnav {
    display: flex;
    gap: 1.25rem;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.topnav a {
    color: var(--ink-faint);
    border: 0;
}

.topnav a:hover {
    color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
    padding: 5.5rem 0 3.5rem;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(2.2rem, 7vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0 0 1.5rem;
}

.lede {
    font-size: 1.12rem;
    color: var(--ink-dim);
    max-width: 40rem;
    margin: 0 0 1rem;
}

.lede strong {
    color: var(--ink);
    font-weight: 500;
}

.status {
    font-family: var(--mono);
    font-size: .76rem;
    color: var(--ink-faint);
    letter-spacing: .02em;
    margin: 1.75rem 0 0;
}

.status .pip {
    display: inline-block;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--accent);
    margin-right: .5rem;
    vertical-align: middle;
}

/* ---------- numbers ---------- */

.numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin: 2.5rem 0 0;
}

.numbers div {
    background: var(--bg);
    padding: 1rem 1.1rem;
}

.numbers b {
    display: block;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    color: var(--accent);
}

.numbers span {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---------- sections ---------- */

section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--rule);
}

h2 {
    font-family: var(--mono);
    font-weight: 400;
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 2rem;
}

h2::before {
    content: "// ";
    color: var(--accent);
}

/* ---------- skills ---------- */

.skills {
    display: grid;
    gap: 1.4rem;
}

.skill-row {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: .35rem 1.5rem;
    align-items: start;
}

.skill-row dt {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: .3rem;
}

.skill-row dd {
    margin: 0;
    color: var(--ink-dim);
    font-size: .95rem;
    max-width: 42rem;
}

/* ---------- experience ---------- */

.job {
    margin-bottom: 3rem;
}

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

.job-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .35rem;
}

.job-head h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.job-head h3 a {
    border-bottom-color: transparent;
}

.when {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--ink-faint);
    letter-spacing: .03em;
    white-space: nowrap;
}

.blurb {
    color: var(--ink-faint);
    font-size: .88rem;
    font-style: italic;
    margin: 0 0 1.2rem;
    max-width: 44rem;
}

.role {
    border-left: 1px solid var(--rule);
    padding: 0 0 0 1.25rem;
    margin: 0 0 1.6rem;
}

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

.role-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.role-head h4 {
    margin: 0;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
}

.role ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .7rem;
    max-width: 46rem;
}

.role li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--ink-dim);
    font-size: .95rem;
}

.role li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--rule);
}

.role li b {
    color: var(--ink);
    font-weight: 500;
}

/* ---------- footnotes / education ---------- */

.list {
    display: grid;
    gap: 1rem;
}

.line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px dotted var(--rule);
    padding-bottom: .7rem;
}

.line p {
    margin: 0;
    font-size: .95rem;
}

.line small {
    display: block;
    color: var(--ink-faint);
    font-size: .82rem;
}

/* ---------- off hours ---------- */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.tags li {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--ink-dim);
    border: 1px solid var(--rule);
    padding: .3rem .65rem;
    transition: border-color .15s ease, color .15s ease;
}

.tags li:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.aside {
    color: var(--ink-faint);
    font-size: .9rem;
    max-width: 40rem;
    margin: 0;
}

/* ---------- contact + footer ---------- */

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-family: var(--mono);
    font-size: .82rem;
    margin-top: 1.25rem;
}

footer {
    border-top: 1px solid var(--rule);
    padding: 1.75rem 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--ink-faint);
}

footer .icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

footer .icons a {
    border: 0;
    opacity: .55;
    transition: opacity .15s ease;
    line-height: 0;
}

footer .icons a:hover {
    opacity: 1;
}

footer img {
    height: 18px;
    width: 18px;
}

@media (max-width: 640px) {
    .hero {
        padding: 3.5rem 0 2.5rem;
    }

    .numbers {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-row {
        grid-template-columns: 1fr;
        gap: .1rem;
    }

    .topnav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
