:root {
    color-scheme: light;
    --ink: #222b2b;
    --muted: #66716c;
    --rule: #dedfda;
    --bg: #f8f7f4;
    --accent: #287a60
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.7 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
    color: inherit;
    text-decoration-color: #96b9aa;
    text-underline-offset: 4px
}

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

.wrap {
    max-width: 1020px;
    margin: auto;
    padding: 0 32px
}

.top {
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rule)
}

.wordmark {
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.9px
}

.wordmark span {
    color: var(--accent)
}

nav {
    display: flex;
    gap: 28px;
    font-size: 14px
}

nav a {
    text-decoration: none;
    color: #57635d
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    grid-template-areas: "intro ." "heading portrait" "body ." "links .";
    column-gap: 48px;
    padding: 106px 0 90px
}

.portrait {
    grid-area: portrait;
    display: block;
    align-self: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%
}

.little {
    grid-area: intro;
    font-size: 15px;
    font-weight: 650;
    color: var(--accent);
    margin-bottom: 20px
}

.little span {
    margin-left: 8px
}

.hero h1 {
    grid-area: heading;
    align-self: center;
    font-size: clamp(38px, 6.2vw, 76px);
    letter-spacing: -.065em;
    line-height: 1.12;
    margin: 0;
    font-weight: 730;
    max-width: 850px
}

.hero h1 span {
    color: #7c8981
}

.hero>p {
    grid-area: body;
    max-width: 670px;
    font-size: 19px;
    line-height: 1.8;
    color: #485751;
    margin: 28px 0 0
}

.links {
    grid-area: links;
    display: flex;
    gap: 27px;
    margin: 25px 0 0;
    font-size: 14px;
    font-weight: 600
}

.small {
    color: var(--muted);
    font-size: 13px
}

.section {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    border-top: 1px solid var(--rule);
    padding: 70px 0
}

.side {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding-top: 8px
}

.main {
    max-width: 720px
}

.main h2 {
    font-size: clamp(27px, 3.1vw, 40px);
    line-height: 1.23;
    letter-spacing: -.04em;
    margin: 0 0 20px
}

.main p {
    color: #53615b;
    max-width: 670px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 26px 0
}

.chips span {
    font-size: 13px;
    border: 1px solid #d7dfd8;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fffdf9
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.project h2 {
    margin-bottom: 15px
}

.note {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: #7b8982;
    white-space: nowrap
}

.asterisk {
    font-size: 38px;
    color: var(--accent)
}

.code-diagram {
    background: #eaece6;
    border: 1px solid #dfe4da;
    border-radius: 12px;
    padding: 28px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 28px 0 18px;
    font: 13px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace
}

.code-diagram span {
    padding: 10px 14px;
    background: #fffdfa;
    border: 1px solid #d7ded3;
    border-radius: 6px
}

.code-diagram .accent {
    background: #286d55;
    color: white;
    border-color: #286d55
}

.code-diagram b {
    font-weight: 400;
    color: #7b8982
}

.text-link {
    display: inline-block;
    font-weight: 650;
    margin-top: 12px
}

.job {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid var(--rule)
}

.jobdate {
    font-size: 13px;
    color: #77847c;
    padding-top: 5px
}

.job h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 680;
    letter-spacing: -.02em
}

.role {
    font-size: 13px;
    color: #3b8267
}

.job p {
    font-size: 14px;
    margin: 8px 0 0;
    line-height: 1.7
}

.email {
    font-size: clamp(18px, 3vw, 27px);
    font-weight: 700;
    letter-spacing: -.04em
}

.email-reveal {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: #96b9aa;
    text-underline-offset: 4px
}

.email-reveal:hover {
    color: var(--accent)
}

footer {
    display: flex;
    justify-content: right;
    gap: 20px;
    padding: 26px 0 45px;
    border-top: 1px solid var(--rule);
    font-size: 12px;
    color: var(--muted)
}

@media(max-width:700px) {
    .wrap {
        padding: 0 22px
    }

    .top {
        align-items: flex-start;
        gap: 14px
    }

    .top nav {
        gap: 13px;
        flex-wrap: wrap;
        justify-content: flex-end
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-areas: "portrait" "intro" "heading" "body" "links";
        padding: 76px 0 65px
    }

    .portrait {
        width: 128px;
        margin-bottom: 28px
    }

    .hero>p {
        font-size: 17px
    }

    .section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 48px 0
    }

    .side {
        padding: 0
    }

    .job {
        grid-template-columns: 1fr;
        gap: 5px
    }

    .jobdate {
        padding: 0
    }

    footer {
        flex-direction: column
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}
