/* ===== Color Tokens ===== */

:root {
    --parchment: #F5F0E8;
    --bark: #4A3728;
    --lichen: #6B7A4A;
    --dusk: #8C7B6B;
    --stone: #C9BFB2;
    --ink: #1F1A14;
}

/* ===== Reset ===== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== Base ===== */

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bark);
    background-color: var(--parchment);
}

/* ===== Typography ===== */

h1 {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 28px;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--bark);
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--bark);
    margin-bottom: 1.25rem;
}

h3 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--bark);
    margin-bottom: 0.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--lichen);
    text-decoration: none;
    transition: text-decoration 0.15s;
}

a:hover {
    text-decoration: underline;
}

/* ===== Header ===== */

header {
    padding: 2rem 48px;
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.wordmark {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 0.15em;
    color: var(--bark);
    text-decoration: none;
}

.wordmark:hover {
    text-decoration: none;
}

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

nav a {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--bark);
    text-transform: uppercase;
}

/* ===== Main Content ===== */

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 48px 4rem;
}

section {
    margin-bottom: 3rem;
}

/* ===== Dividers ===== */

hr {
    border: none;
    border-top: 1px solid var(--stone);
    margin: 3rem 0;
}

/* ===== Projects ===== */

.project {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--stone);
}

.project:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.project p {
    color: var(--dusk);
    margin-bottom: 0;
}

/* ===== Contact ===== */

.twitter-bird {
    width: 13px;
    height: 13px;
    fill: currentColor;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-right: 2px;
}

#contact p {
    margin-bottom: 0;
}

.separator {
    color: var(--stone);
    margin: 0 0.4rem;
}

/* ===== Footer ===== */

footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 48px;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--dusk);
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
    header {
        padding: 1.5rem 24px;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .wordmark {
        font-size: 22px;
    }

    nav {
        gap: 1.5rem;
    }

    main {
        padding: 1.5rem 24px 3rem;
    }

    footer {
        padding: 2rem 24px;
    }

    h1 {
        font-size: 24px;
    }
}
