@font-face {
    font-family: "TT Norms Pro";
    src: url("../font/TTNormsProVariable.ttf") format("truetype");
    font-weight: 100 950;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #000;
    --text: #fff;
    --muted: #a3a3a3;
    --faint: #737373;
    --line: #262626;
    --underline: rgba(255, 255, 255, 0.35);
    --page: 36rem;
    --meta: 0.875rem;
}

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

html {
    background: var(--bg);
    color: var(--text);
    color-scheme: dark;
}

body {
    margin: 0;
    padding: 3rem 1.5rem 6rem;
    background: var(--bg);
    color: var(--text);
    font-family: "TT Norms Pro", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    font-stretch: 100%;
    font-synthesis: none;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
    margin: 0;
    font-weight: inherit;
}

h1,
h2 {
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

h1 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h2 {
    font-size: inherit;
    line-height: inherit;
}

a {
    color: var(--text);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--underline);
    text-underline-offset: 0.25em;
    transition: text-decoration-color 0.15s;
}

a:hover {
    text-decoration-color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

::selection {
    background: #333;
    color: var(--text);
}

.skip {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg);
}

.skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.page {
    width: min(100%, var(--page));
    margin-inline: auto;
}

.intro {
    margin-top: 1.5rem;
}

.intro p + p {
    margin-top: 1.25em;
}

.section {
    margin-top: 3rem;
}

.work,
.more {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.work {
    display: grid;
    gap: 0.75rem;
}

.work li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 1rem;
}

.work a {
    justify-self: start;
}

.work .role {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--muted);
}

.work .when {
    color: var(--faint);
    font-size: var(--meta);
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
    text-align: right;
    white-space: nowrap;
}

.more {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.25rem;
    row-gap: 0.25rem;
}

.footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: var(--meta);
    line-height: 1.6;
}

@media (min-width: 40rem) {
    body {
        padding-top: 6rem;
        font-size: 1.0625rem;
    }

    .section {
        margin-top: 4rem;
    }

    .work {
        gap: 0.5em;
    }

    .work li {
        grid-template-columns: auto 1fr auto;
    }

    .work .role {
        grid-column: auto;
        grid-row: auto;
    }

    .footer {
        margin-top: 6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: none;
    }
}

@media print {
    body {
        padding: 0;
        background: #fff;
        color: #000;
    }

    a,
    .work .role,
    .work .when,
    .footer {
        color: #000;
    }

    .skip,
    .footer {
        display: none;
    }

    .page {
        width: auto;
    }
}
