:root {
    --bg: #f3f5f7;
    --text: #14181d;
    --muted: #566170;
    --accent: #1f5fd6;
    color-scheme: light dark;
}

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

html,
body {
    height: 100%;
}

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

.intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 40rem;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.tagline {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.status {
    margin: 0 0 2rem;
    color: var(--muted);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

a,
a:hover,
a:active {
    color: var(--accent);
    text-underline-offset: 0.25em;
}

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

footer {
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12161b;
        --text: #eef1f4;
        --muted: #9aa5b3;
        --accent: #7aa7ff;
    }
}

/* Project section */
#projects {
    margin-top: 3rem;
}

#project-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

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

.project-card h3 {
    margin: 0 0 0.5rem;
}

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

.project-links {
    display: flex;
    gap: 1rem;
}