:root {
    --bg: #fbfaf7;
    --surface: #f2f0ea;
    --text: #1c1b19;
    --muted: #5c5a54;
    --rule: #d9d5db;
    --accent: #1f5f5b;
    --accent-soft: #e1ecea;
    --todo-bg: #fff1b8;
    --todo-text: #5a4500;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

    --measure: 44rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: var(--accent);
    text-underline-offset: 0.15rem;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip {
    position: absolute;
    left: -999px;
    top: 0px;
    background: var(--text);
    color: var(--bg);
    padding: 0.5rem 1rem;
}

.skip:focus {
    left: 1rem;
}

.site-header {
    border-bottom: 1px solid var(--rule);
    padding: 1.25rem;
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: baseline;
    justify-content: space-between;
}

.site-name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    font-family: var(--sans);
    font-size: 0.9375rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    text-decoration: underline;
}

h1,
h2,
h3 {
    font-family: var(--sans);
    line-height: 1.25;
    letter-spacing: -0.1em;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin: 2.5rem 0 0.75rem;
    font-weight: 650;
}

h2 {
    font-size: 1.25rem;
    margin: 3rem 0 0.75rem;
    font-weight: 650;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

h3 {
    font-size: 1.0625rem;
    margin: 1.75rem 0 0.5rem;
    font-weight: 600;
}

.lede {
    font-size: 1.1875rem;
    color: var(--muted);
}

/*Projects List*/
.projects {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects li {
    border-top: 1px solid var(--rule);
    padding: 1.25rem 0;
    margin: 0;
}

.projects li:last-child {
    border-bottom: 1px solid var(--rule);
}

.projects h3 {
    margin: 0 0 0 0.25rem;
    font-size: 1.125rem;
}

.projects p {
    margin: 0.25rem 0 0.5rem;
}

.site-footer {
    margin-top: 4rem;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0.25rem 0;
}