/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: #d8dbe3;
    background:
        radial-gradient(circle at top left, rgba(40, 167, 69, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(40, 167, 69, 0.12), transparent 24%),
        linear-gradient(180deg, #0a0d12 0%, #10161f 42%, #0d1117 100%);
}

a {
    color: #7be495;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(10, 13, 18, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f4f7fb;
    letter-spacing: 0.02em;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.topbar nav a {
    color: #b9c1cf;
}

/* Layout */
.page-shell {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.card {
    background: rgba(15, 20, 28, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* Hero */
.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 14px;
    max-width: 12ch;
    color: #f4f7fb;
}

.eyebrow {
    margin: 0 0 10px;
    color: #8d99ad;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    max-width: 60ch;
    font-size: 1.05rem;
    color: #c4cad6;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.links a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(123, 228, 149, 0.12);
    color: #eef3fb;
    border: 1px solid rgba(123, 228, 149, 0.22);
}

.hero-note {
    margin: 16px 0 0;
    color: #8d99ad;
    font-size: 0.95rem;
}

/* About and projects */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.project {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.project h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #f4f7fb;
}

.project p,
.card p {
    color: #c4cad6;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-shell {
        padding-top: 28px;
    }

    .card {
        padding: 22px;
    }
}