:root {
    --ink: #161513;
    --muted: #7a746c;
    --faint: #b8b2a8;
    --bg: #faf7f2;
    --line: #e7e1d6;
    --accent: #c8471f;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    flex: 1;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Hero ---------- */

.hero {
    padding: 12vh 0 10vh 0;
    display: flex;
    align-items: center;
    gap: 56px;
}

.hero-photo {
    flex-shrink: 0;
    width: 220px;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    filter: grayscale(0.15);
}

.hero-text {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
    font-size: clamp(4rem, 13vw, 8.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.tagline {
    margin: 9px 0 0 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--muted);
}

.bio {
    margin: 10px 0 0 0;
    max-width: 42ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
}

.social {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social span {
    color: var(--faint);
}

.social a {
    position: relative;
    color: var(--muted);
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.social a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right 0.25s ease;
}

.social a:hover {
    color: var(--ink);
}

.social a:hover::after {
    right: 0;
}

/* ---------- Projects ---------- */

.projects {
    padding-bottom: 12vh;
}

.section-label {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-sub {
    margin: 0 0 22px 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--faint);
}

.project-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.project-item {
    border-bottom: 1px solid var(--line);
}

.project-item a {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    transition: gap 0.2s ease;
}

.project-item a:hover {
    gap: 30px;
}

.index {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.1rem;
    color: var(--faint);
    width: 28px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.project-item a:hover .index {
    color: var(--accent);
}

.project-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.name {
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.desc {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--muted);
}

.arrow {
    flex-shrink: 0;
    color: var(--faint);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.project-item a:hover .arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
    padding: 18px 32px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    main {
        padding: 0 22px;
    }

    .hero {
        padding: 4vh 0 4vh 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* Full-bleed square crop instead of a small portrait thumbnail */
    .hero-photo {
        width: 100%;
        position: relative;
    }

    .hero-photo img {
        aspect-ratio: 4 / 5;
        object-position: center 40%;
        border-radius: 10px;
    }

    /* Photo dissolves into the page so the name can sit on top of it */
    .hero-photo::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 34%;
        pointer-events: none;
        background: linear-gradient(to top,
            var(--bg) 10%,
            rgba(250, 247, 242, 0.88) 46%,
            rgba(250, 247, 242, 0) 100%);
    }

    .hero-text {
        position: relative;
        z-index: 1;
        margin-top: -13vw;
    }

    /* Sits on the photo, so it gets its own chip to stay legible */
    .eyebrow {
        display: inline-block;
        background: var(--bg);
        padding: 3px 9px;
        margin-left: -9px;
        border-radius: 4px;
    }

    .social {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .projects {
        padding-bottom: 9vh;
    }

    .section-sub {
        margin-bottom: 16px;
    }

    .project-item a {
        gap: 14px;
        padding: 18px 0;
        align-items: flex-start;
    }

    .index {
        width: 22px;
        padding-top: 2px;
    }

    .name {
        line-height: 1.3;
    }

    .desc {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .arrow {
        display: none;
    }
}
