@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/space-grotesk-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --fg: #111827;
    --muted: #4b5563;
    --border: #e5e7eb;
    --accent: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0f14;
        --fg: #f3f4f6;
        --muted: #9ca3af;
        --border: #1f2937;
        --accent: #60a5fa;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

header { padding: 4rem 0 2rem; }

.brand { display: flex; align-items: center; gap: 1.25rem; }

.brand-mark {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    border-radius: 1rem;
    object-fit: cover;
}

h1 {
    margin: 0;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.tagline {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 1.15rem;
}

section { margin-bottom: 2.5rem; }

.project-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.project-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.project-card img {
    width: 7rem;
    height: 7rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
}

.project-card h3 { margin: 0 0 0.5rem; }
.project-card p { margin: 0 0 0.75rem; color: var(--muted); }

@media (max-width: 30rem) {
    .project-card { flex-direction: column; align-items: flex-start; }
    .project-card img { width: 100%; height: auto; aspect-ratio: 1; }
}

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

.links ul { list-style: none; padding: 0; margin: 0; }

footer {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: no-preference) {
    a { transition: opacity 0.15s; }
    a:hover { opacity: 0.8; }
}
