@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #f6f5f2;
    --surface: #ffffff;
    --border: #e4e2dc;
    --text: #3a3a38;
    --text-strong: #1a1a18;
    --text-muted: #6e6e6a;
    --accent: #4a6fa5;
    --accent-hover: #3d5d8a;
    --font: "IBM Plex Mono", monospace;
    --page-pad: clamp(20px, 5vw, 64px);
    --focus-ring: 2px solid var(--accent);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    padding: 48px var(--page-pad) 80px;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(74, 111, 165, 0.35);
    text-underline-offset: 3px;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

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

a:focus-visible {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
    outline: var(--focus-ring);
    outline-offset: 3px;
}

.page {
    width: 100%;
    max-width: none;
}

header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.page-home header {
    margin-bottom: 56px;
}

.site-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

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

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

.site-nav a[aria-current="page"] {
    font-weight: 500;
}

.site-nav a:focus-visible {
    color: var(--text-strong);
    outline: var(--focus-ring);
    outline-offset: 3px;
}

h1 {
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.page-home h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.25;
    margin-bottom: 16px;
}

.page-projects h1 {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
    margin-bottom: 12px;
}

.lede {
    color: var(--text);
}

.page-home .lede {
    font-size: 1.05rem;
}

.page-projects .lede {
    color: var(--text-muted);
}

section {
    margin-bottom: 48px;
}

h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.link-row a {
    text-decoration: none;
}

.link-row a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    body {
        padding: 32px var(--page-pad) 60px;
    }
}

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