:root {
    color-scheme: light;
    --bg: #faf9f6;
    --surface: #faf9f6;
    --ink: #171717;
    --muted: #747068;
    --line: #e5e0d7;
    --accent: #3f6964;
    --accent-soft: #f1f5f2;
    --shadow: 0 1px 0 rgba(28, 28, 24, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration-color: rgba(15, 118, 110, 0.35);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.22em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

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

.container {
    width: min(980px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 36px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 54px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 0 18px;
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
    background: transparent;
}

h1,
h2,
h3,
h4,
p,
ul {
    margin-top: 0;
}

h1 {
    max-width: none;
    margin-bottom: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 600;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 0;
    margin: 0;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    text-decoration: none;
}

nav a:hover {
    color: var(--ink);
    background: transparent;
}

main {
    display: grid;
    grid-template-columns: minmax(230px, 0.56fr) minmax(0, 1.44fr);
    gap: 56px;
    align-items: start;
}

.section {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#about {
    padding: 0;
}

#work {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 0;
}

h2 {
    width: fit-content;
    margin-bottom: 20px;
    padding: 0 0 9px;
    border-bottom: 2px solid var(--accent);
    font-size: 0.76rem;
    line-height: 1;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0;
}

#about p {
    max-width: 31rem;
    margin-bottom: 22px;
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.55;
}

#about p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.experience-strip {
    display: grid;
    gap: 7px;
    padding: 14px 0 18px;
    margin-bottom: 22px;
    border-top: 1px solid rgba(23, 23, 23, 0.075);
    border-bottom: 1px solid rgba(23, 23, 23, 0.075);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
    list-style: none;
}

.experience-label {
    padding-top: 6px;
    color: var(--accent);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.work-list {
    padding-top: 4px;
}

.work-list + .work-list {
    padding-top: 34px;
    border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.work-list h3 {
    margin-bottom: 18px;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.05;
    font-weight: 600;
}

.work-list h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.work-year {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.work-year:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.work-list ul {
    display: grid;
    gap: 0;
    padding-left: 0;
    margin-bottom: 0;
}

.work-list li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
    min-height: 44px;
    padding: 12px 0;
    border-top: 1px solid rgba(23, 23, 23, 0.075);
}

.work-year li:first-child {
    border-top: 0;
    padding-top: 1px;
}

.work-list .date {
    width: auto;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: left;
    white-space: nowrap;
}

.work-list li a {
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.35;
    text-decoration: none;
}

.work-list li a::after {
    content: "";
    display: inline-block;
    width: 0.38em;
    height: 0.38em;
    margin-left: 0.45em;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-0.12em) rotate(45deg);
    opacity: 0.42;
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, 680px);
        gap: 32px;
        padding-top: 18px;
    }

    header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    main {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 540px) {
    .container {
        width: min(100% - 22px, 680px);
    }

    .section,
    #about,
    #work {
        padding: 20px;
    }

    .work-year {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .work-list li {
        grid-template-columns: 1fr;
        gap: 4px;
        min-height: 0;
    }
}
