:root {
    --background: #eee9df;
    --paper: #faf7f0;
    --ink: #28251f;
    --muted: #6f685e;
    --accent: #9a4f2f;
    --accent-hover: #793c24;
    --accent-soft: #ead8ca;
    --line: #d9d1c4;
    --font-body: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 7rem;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 0.3em;
    transition: color 160ms ease;
}

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

a:focus-visible,
main:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 2px;
}

.site-shell {
    width: min(1120px, calc(100% - 96px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 16px;
    transform: translateY(-160%);
    background: var(--ink);
    color: var(--paper);
}

.skip-link:focus {
    transform: translateY(0);
    color: var(--paper);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--background);
}

.navigation,
.nav-links,
.hero-bottom,
.project-heading,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation {
    min-height: 92px;
    justify-content: flex-end;
    border-bottom: 1px solid var(--line);
}

.nav-links {
    gap: 32px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a,
.site-footer a {
    padding-block: 12px;
}

.nav-links a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

.hero {
    padding-block: 86px 78px;
}

.eyebrow {
    display: flex;
    gap: 20px;
    align-items: baseline;
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-number {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

h1,
h2,
.project h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.045em;
}

h1 {
    margin: 30px 0 36px;
    font-size: clamp(52px, 7.6vw, 96px);
    line-height: 1.06;
}

h1 em {
    color: var(--accent);
    font-weight: 400;
}

.hero-bottom {
    align-items: flex-end;
    gap: 40px;
}

.hero-description {
    max-width: 580px;
}

.intro {
    margin: 0;
    font-size: 19px;
    line-height: 1.65;
}

.hero-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    flex-shrink: 0;
    padding-block: 8px;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    font-size: 14px;
}

.text-link span {
    margin-left: 24px;
}

.text-link:hover,
.email-link:hover {
    color: var(--accent-hover);
    border-color: currentColor;
}

.content-section {
    padding-block: 78px;
    border-top: 1px solid var(--line);
}

.section-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
}

.section-index {
    padding-top: 13px;
}

h2 {
    margin: 0 0 26px;
    font-size: 44px;
    line-height: 1.2;
}

.about-copy > p {
    margin: 20px 0 0;
    max-width: 690px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.focus-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.section-intro {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    margin-top: 36px;
}

.expertise {
    padding-block: 25px;
    border-top: 1px solid var(--line);
}

.expertise h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.expertise p,
.project p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.projects {
    margin-top: 36px;
}

.project {
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.project + .project {
    margin-top: 24px;
}

.project-heading {
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 18px;
}

.project h3 {
    margin: 0;
    font-size: 36px;
    line-height: 1.25;
}

.project-type {
    color: var(--accent);
    font-size: 12px;
}

.project .project-note {
    margin-top: 18px;
    color: var(--accent);
    font-size: 13px;
}

.project-link {
    display: inline-block;
    margin-top: 20px;
}

.contact {
    padding-bottom: 96px;
}

.contact h2 {
    font-size: 60px;
}

.contact .section-intro {
    max-width: 500px;
}

.email-link {
    display: inline-block;
    max-width: 100%;
    margin-top: 32px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    font-size: clamp(17px, 2.4vw, 25px);
    overflow-wrap: anywhere;
}

.email-link span {
    margin-left: 18px;
}

.site-footer {
    gap: 24px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

.site-footer p span {
    padding-inline: 8px;
}

.site-footer a {
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .section-layout {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 32px;
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .expertise-grid {
        column-gap: 28px;
    }
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 6rem;
    }

    .site-shell {
        width: calc(100% - 40px);
    }

    .navigation {
        min-height: 68px;
    }

    .nav-links {
        width: 100%;
        gap: 8px;
        font-size: 13px;
    }

    .hero {
        padding-block: 50px;
    }

    h1 {
        margin-block: 24px 28px;
        font-size: clamp(40px, 8.8vw, 60px);
        line-height: 1.1;
    }

    .intro {
        font-size: 18px;
    }

    .content-section {
        padding-block: 48px;
    }

    .section-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .section-index {
        padding-top: 0;
    }

    h2 {
        margin-bottom: 22px;
        font-size: 36px;
    }

    .about-copy > p {
        font-size: 17px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .expertise {
        padding-block: 22px;
    }

    .project {
        padding: 24px;
    }

    .contact h2 {
        font-size: 46px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

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