:root {
    --paper: #f3efe5;
    --ink: #192621;
    --muted: #5e6962;
    --line: #c8c9bb;
    --accent: #d64d2f;
    --accent_dark: #a8321d;
    --card: #faf8f1;
    --code: "Iosevka Etoile", monospace;
    --sans: "Iosevka Aile", ui-sans-serif, system-ui, -apple-system,
            BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(25, 38, 33, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: 100% 2rem;
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
}

a {
    color: inherit;
}

.site_header,
main,
footer {
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
}

.site_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}

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

nav {
    display: flex;
    gap: 1.75rem;
}

nav a {
    color: var(--muted);
    font-family: var(--code);
    font-size: 0.9rem;
    text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
    color: var(--accent_dark);
}

.hero {
    padding: 4rem 0 4rem;
}

.eyebrow,
.section_label,
.project_meta {
    font-family: var(--code);
    font-size: 0.85rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow,
.section_label {
    color: var(--accent_dark);
}

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

h1 {
    margin-bottom: 2rem;
    font-size: clamp(3.5rem, 8vw, 7.8rem);
    font-weight: 750;
    letter-spacing: -0.05em;
    line-height: 0.87;
}

.introduction {
    color: var(--muted);
    font-size: 1.44rem;
}

.hero_links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.primary_link {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--code);
    font-size: 0.85rem;
    text-decoration: none;
}

.primary_link:hover,
.primary_link:focus-visible {
    background: var(--accent_dark);
}

.statement {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    padding: 4rem 0;
    border-top: 1px solid var(--line);
}

.statement > div {
    max-width: 760px;
}

h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3.75rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.statement div p {
    color: var(--muted);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.statement_link {
    color: var(--accent_dark);
    font-family: var(--code);
    font-size: 0.85rem;
    text-underline-offset: 0.3rem;
}

.statement_link:hover,
.statement_link:focus-visible {
    color: var(--accent);
}

.projects {
    padding: 4rem 0;
    border-top: 1px solid var(--line);
}

.section_heading {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.section_heading h2 {
    margin-bottom: 0;
}

.section_heading > p {
    margin-bottom: 0.4rem;
    color: var(--muted);
}

.project_grid {
    border-top: 1px solid var(--line);
}

.project {
    display: grid;
    grid-template-columns:
        minmax(8rem, 0.7fr)
        minmax(9rem, 0.9fr)
        minmax(18rem, 2fr)
        auto;
    gap: 2rem;
    align-items: start;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.project_meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--muted);
}

.status {
    color: #36725b;
}

.status.wip {
    color: var(--accent_dark);
}

.project h3 {
    margin: -0.25rem 0 0;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
}

.project p {
    max-width: 32rem;
    margin-bottom: 0;
    color: var(--muted);
}

.project p a {
    text-underline-offset: 0.2rem;
}

.project p a:hover,
.project p a:focus-visible {
    color: var(--accent_dark);
}

.project > a,
.project > .source_placeholder {
    font-family: var(--code);
    font-size: 0.78rem;
    white-space: nowrap;
    text-underline-offset: 0.3rem;
}

.source_placeholder {
    color: var(--muted);
}

.manifesto {
    padding: 5rem 0 6rem;
}

.manifesto_content {
    max-width: 52rem;
    margin-inline: auto;
}

.manifesto_content h1 {
    margin-bottom: 4rem;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
}

.manifesto_content h2 {
    margin-top: 4rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.manifesto_content p {
    font-size: 1.1rem;
    line-height: 1.75;
}

.manifesto_content a {
    color: var(--accent_dark);
    text-underline-offset: 0.2rem;
}

.manifesto_content em {
    color: var(--accent_dark);
}

.project > a:hover,
.project > a:focus-visible {
    color: var(--accent);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem 0 5rem;
    color: var(--muted);
    font-family: var(--code);
    font-size: 0.85rem;
}

footer p {
    margin: 0;
}

footer a {
    text-underline-offset: 0.2rem;
}

@media(max-width: 850px) {
    .section_heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project {
        grid-template-columns:
            minmax(7rem, 0.6fr)
            minmax(9rem, 0.8fr)
            minmax(15rem, 2fr);
        gap: 1.5rem;
    }

    .project > a,
    .project > .source_placeholder {
        grid-column: 2 / 4;
    }
}

@media(max-width: 620px) {
    .site_header,
    main,
    footer {
        width: min(100% - 2rem, 1180px);
    }

    .site_header {
        align-items: flex-start;
    }

    nav {
        flex-direction: column;
        gap: 0.35rem;
        text-align: right;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0;
    }

    h1 {
        font-size: clamp(3.2rem, 16vw, 5.1rem);
    }

    .hero_links {
        align-items: flex-start;
        flex-direction: column;
    }

    .statement {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 5rem 0;
    }

    .projects {
        padding: 5rem 0;
    }

    .manifesto {
        padding: 4rem 0 5rem;
    }

    .manifesto_content h1 {
        margin-bottom: 3rem;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1.5rem 0;
    }

    .project_meta {
        flex-direction: row;
        justify-content: space-between;
    }

    .project > a,
    .project > .source_placeholder {
        grid-column: auto;
        margin-top: 0.5rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }
}

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