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

:root {
    --color-bg: #ffffff;
    --color-alt: #f0f6f9;
    --color-hero: #1c2b3a;
    --color-hero-text: #e8edf2;
    --color-accent: #6BA4BF;
    --color-accent-hover: #4D8AA6;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #d8e8f0;
    --font: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --max-width: 960px;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.hero {
    background: var(--color-hero);
    color: var(--color-hero-text);
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.tagline {
    font-size: 1.05rem;
    color: #8fb6cb;
}

/* Nav */
.nav {
    background: var(--color-hero);
    border-top: 1px solid #2d3f52;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav .container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav a {
    color: #8fb6cb;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s;
}

.nav a:hover {
    color: #e8edf2;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--color-alt);
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.section p {
    color: var(--color-text);
    margin-bottom: 1rem;
    max-width: 680px;
}

/* Project grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #f8fbfd;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.15s;
}

.project-card:hover {
    border-color: var(--color-accent);
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0;
    flex: 1;
    max-width: none;
}

.project-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: 0.25rem;
    transition: color 0.15s;
}

.project-link:hover {
    color: var(--color-accent-hover);
}

/* Contact */
.contact-bio {
    margin-bottom: 2rem;
    max-width: 640px;
}

.contact-bio p {
    margin-bottom: 0.75rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    min-width: 70px;
}

.contact-list a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s;
}

.contact-list a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-hero);
    color: #8fb6cb;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .nav .container {
        gap: 1.25rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-list li {
        flex-direction: column;
        gap: 0.2rem;
    }
}
