/* Restrained typography and neutral surfaces; project media keep their colours. */
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
}
:root {
    --bg: #f5f5f2;
    --bg-elevated: #fcfcfa;
    --panel: #eeeee9;
    --panel-strong: #e3e3de;
    --text: #252525;
    --muted: #666661;
    --muted-strong: #484844;
    --line: #d9d9d2;
    --line-strong: #b6b6af;
    --glass-border: var(--line);
    --accent: var(--text);
    --accent-secondary: var(--text);
    --accent-tertiary: var(--muted);
    --accent-soft: #25252508;
    --accent-secondary-soft: #25252508;
    --accent-tertiary-soft: #25252508;
    --accent-tertiary-line: var(--line-strong);
    --card-subtle: #25252504;
    --cool: #25252508;
    --shadow: none;
    --media-border-width: 1px;
    --media-border-colour: var(--line-strong);
    --media-radius: 0;
    --font-body: "Source Sans 3", Candara, "Segoe UI", sans-serif;
    --font-display: "Lora", "Palatino Linotype", Georgia, serif;
    --max-width: 1160px;
    --header-offset: 76px;
}

::selection { background: #252525; color: #f5f5f2; }
body { background: var(--bg); }
main { position: relative; isolation: isolate; padding-bottom: 76px; }
main .media-frame img, main .media-frame video,
.media-lightbox__image, .media-lightbox__video {
    border-radius: var(--media-radius);
}
.render-comparison.is-interactive .render-comparison__images {
    overflow: hidden;
    border-radius: var(--media-radius);
}
a {
    transition: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input { accent-color: var(--text); }
.skip-link {
    position: fixed;
    z-index: 50;
    top: 10px;
    left: 20px;
    padding: 12px 20px;
    background: var(--text);
    color: var(--bg);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header, .site-header.is-condensed { box-shadow: 0 1px var(--line-strong); }
.site-header .site-header__inner,
.site-header.is-condensed .site-header__inner {
    min-height: 76px;
    padding: 12px 0;
    justify-content: center;
}
.site-header .site-nav, .site-header.is-condensed .site-nav { gap: 20px; }
.site-header .site-nav a, .site-header.is-condensed .site-nav a {
    padding-block: 10px;
    font: 400 14px/1.5 var(--font-body);
    color: var(--muted);
}
.site-header .site-nav a.active { color: var(--text); }
.site-header .site-nav a[aria-current="location"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}
.page-location { display: none; }
.page-progress { display: none; }
.js-enabled .page-progress {
    display: block;
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    pointer-events: none;
}
.page-progress::before {
    content: "";
    display: block;
    height: 100%;
    background: var(--muted-strong);
    transform: scaleX(var(--page-progress, 0));
    transform-origin: left;
}
.intro-layout {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
}
.intro-layout > .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 38px 64px;
    align-items: center;
    max-width: none;
    padding: 60px 0 48px;
    margin: 0;
    box-shadow: none;
}
.hero-copy { max-width: 490px; }
.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(3.4rem, 6.8vw, 6.1rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.05;
}
.hero .hero-lede { font-size: 1rem; line-height: 1.8; }
.hero .hero-lede + .hero-lede { margin-top: 14px; }
.hero-lede a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.hero-lede a:hover { text-decoration-color: currentColor; }
.hero .hero-availability {
    margin-top: 20px;
    font: 400 14px/1.7 var(--font-body);
    color: var(--muted-strong);
}
.profile-links { gap: 20px; margin-top: 25px; }
.profile-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 4px 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    text-decoration: underline;
    font: 400 .9rem/1.5 var(--font-body);
}
.profile-links a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.hero .hero-render {
    min-width: 0;
    width: 100%;
    margin: 0;
}
.hero .hero-render img { width: 100%; height: auto; }
.hero .hero-render figcaption { font-size: .78rem; line-height: 1.7; }
.intro-layout > .experience { padding: 44px 0 36px; }
.section-heading { margin-bottom: 28px; }
h2, .section-heading h2 { font-size: 1.7rem; font-weight: 500; letter-spacing: -.025em; }
.section-intro { color: var(--muted); }
.intro-layout .experience-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: none;
}
.intro-layout .experience-timeline::before { display: none; }
.intro-layout .experience-timeline__item {
    display: block;
    padding: 0 0 0 17px;
    box-shadow: -1px 0 var(--line-strong);
}
.intro-layout .experience-timeline__item::before { left: -3px; top: 5px; }
.interest-timeline__item::before, .experience-timeline__item::before { border-radius: 0; width: 5px; height: 5px; background: var(--text); }
.experience-date { margin-bottom: 12px; }
.experience-entry h3 { font-size: .94rem; }
.experience-entry > p { font-size: .83rem; line-height: 1.8; }
.experience-entry .experience-company { margin-top: 4px; font-size: .875rem; }
.experience-entry .experience-languages { margin-top: 12px; font-size: 12px; }
.experience-date, .experience-languages, .interest-timeline__year,
.trail-entry__language, .archive-year, .journey-meta, .proof-meta { font-family: var(--font-body); }
main > .section { margin-top: 64px; padding-top: 20px; box-shadow: none; }
.intro-layout + .section { margin-top: 48px; }
.hero-link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; box-shadow: 0 0 0 1px var(--line-strong); }
.hero-summary-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 24px;
}
.hero-summary-link + .hero-summary-link { box-shadow: -1px 0 var(--line-strong); }
.hero-summary-link:hover { text-decoration: underline; }
.hero-summary-link:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.hero-summary-link > span { font-size: 1rem; font-weight: 500; }
.hero-summary-link small { max-width: 33ch; min-height: 3.5em; color: var(--muted); font-size: .78rem; }
.interest-trail, .interest-trail .trail-entry, .interest-archive {
    scroll-margin-top: 16px;
}
.interest-trail {
    display: block;
    max-width: 1000px;
    margin-top: 64px;
    padding-top: 0;
    box-shadow: none;
}
.interests > .interest-trail:first-of-type { margin-top: 36px; }
.interest-trail__intro { position: static; margin-bottom: 32px; }
.interest-trail__intro h3 { font-size: 1.3rem; font-weight: 500; }
.interest-trail__intro p { max-width: 62ch; margin-top: 8px; font-size: .9rem; }
.interest-timeline::before, .interest-timeline__item::before { display: none; }
.interest-timeline__year { font-size: 12px; }
.interest-timeline__item { padding-bottom: 38px; }
.interest-timeline__item:last-child { padding-bottom: 0; }
.trail-entry__copy { max-width: 62ch; }
.trail-entry h4 { font-family: var(--font-display); font-weight: 500; }
.trail-entry h4 a { text-decoration: underline; }
.trail-entry h4 a:hover { text-decoration: underline; }
.trail-entry__language { font-size: 12px; }
.media-frame .is-expandable-media:hover { outline: none; box-shadow: 0 2px 0 var(--text); }
.journey-card h3 { font-weight: 500; }
.journey-meta { font-size: 13px; }
.proof-meta { font-size: 12px; }
.proof-heading { padding-block: 5px; }
.proof-heading:hover h5 { text-decoration: underline; text-underline-offset: 4px; }
.skills-list { gap: 0 24px; }
.skills-list dt, .skills-list dd { padding: 10px 0; box-shadow: 0 1px var(--line); }
.skills-list dt { font: 600 13px/1.8 var(--font-body); }
.skills-list dd { font-size: .85rem; }
.contact-shell { grid-template-columns: 1fr auto; align-items: end; padding-bottom: 12px; }
.contact-shell h2 { margin-bottom: 12px; }
.contact-links a { padding: 12px 0; font: 400 14px/1.5 var(--font-body); color: var(--text); }
.site-footer {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    width: min(calc(100% - 80px), var(--max-width));
    margin: 0 auto;
    padding: 24px 0 32px;
    box-shadow: 0 -1px var(--line-strong);
    color: var(--muted);
    font: 400 12px/1.7 var(--font-body);
}
.site-footer a:hover { text-decoration: underline; }
.media-lightbox { background: #f5f5f2f7; }
.media-lightbox__close { box-shadow: inset 0 0 0 1px var(--line-strong); }
.media-lightbox__close:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-404 .not-found__panel { padding: 40px; box-shadow: 0 0 0 1px var(--line-strong); background: var(--bg); }
.page-404 .not-found h1 { max-width: 16ch; font-size: clamp(2rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.025em; }
.page-404 .hero-summary-link { display: block; padding: 12px 0; min-height: 0; }
.page-404 .project-kicker { font-family: var(--font-body); }

@media (max-width: 1120px) {
    .site-header .site-nav, .site-header.is-condensed .site-nav { gap: 14px; }
    .intro-layout > .hero { gap: 32px; }
    .hero h1 { font-size: 5rem; }
}
@media (max-width: 860px) {
    :root { --header-offset: 68px; }
    .site-header .site-header__inner, .site-header.is-condensed .site-header__inner { min-height: 68px; padding: 10px 0; }
    .menu-toggle { margin-left: auto; }
    .js-enabled .page-location {
        display: block;
        min-width: 0;
        margin-right: auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font: 400 15px/1.5 var(--font-display);
    }
    .site-header .site-nav {
        display: none;
        right: 24px;
        left: 24px;
        padding: 18px 24px;
        box-shadow: 0 0 0 1px var(--line-strong), 0 15px 25px #2525250a;
    }
    .site-header .site-nav.open { display: flex; }
    .site-header .site-nav a, .site-header.is-condensed .site-nav a { width: 100%; font-size: 16px; }
    html:not(.js-enabled) .site-header .site-nav { display: flex; flex-basis: 100%; box-shadow: none; }
    html:not(.js-enabled) .site-header .site-nav a { width: auto; }
    .intro-layout > .hero { gap: 32px; padding-top: 44px; }
    .hero h1 { font-size: 4rem; }
    .hero .hero-lede { font-size: .93rem; }
    .hero .hero-availability { font-size: 13px; }
    .intro-layout .experience-timeline { gap: 20px; }
    .hero-summary-link { padding: 18px; }
    .contact-shell { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .interest-timeline__item { padding-left: 0; }
    .page-404 .not-found__panel { padding: 24px; }
    .intro-layout > .hero { grid-template-columns: 1fr; gap: 30px; }
    .hero-copy { max-width: 100%; }
    .hero h1 { font-size: clamp(3.8rem, 15vw, 5rem); }
    .hero .hero-availability { font-size: 13px; }
    .intro-layout .experience-timeline { grid-template-columns: 1fr; gap: 26px; }
    .experience-entry > p { font-size: .88rem; }
    .experience-date { font-size: 12px; }
    .hero-link-list { grid-template-columns: 1fr; }
    .hero-summary-link { gap: 4px; padding: 22px 18px; }
    .hero-summary-link + .hero-summary-link { box-shadow: 0 -1px var(--line-strong); }
    .hero-summary-link > span { font-size: .9rem; }
    .hero-summary-link small { min-height: 0; font-size: .76rem; }
    .site-footer { width: calc(100% - 48px); font-size: 12px; }
}
@media (max-width: 380px) {
    .hero-summary-link { padding: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    a { transition: none; }
}
