:root {
    color-scheme: dark;
    --background: #0b0d12;
    --surface: #151923;
    --surface-hover: #1b2130;
    --text: #f4f1e8;
    --muted: #aaa99f;
    --accent: #d7ff64;
    --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 10%, rgba(91, 75, 255, 0.2), transparent 35rem),
        var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main, footer {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.hero {
    min-height: 62vh;
    display: grid;
    align-content: center;
    padding: 5rem 0 3rem;
}

.eyebrow {
    color: var(--accent);
    font: 700 0.78rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
    max-width: 920px;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
}

.intro {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.6;
}

.projects { padding: 4rem 0 7rem; }
.section-heading { margin-bottom: 2rem; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.045em; }

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.card:hover, .card:focus-visible {
    transform: translateY(-4px);
    background: var(--surface-hover);
    border-color: rgba(215, 255, 100, 0.45);
}

.card span { font-size: 1.6rem; font-weight: 750; }
.card p { max-width: 34rem; margin: 1rem 0; color: var(--muted); line-height: 1.55; }
.card strong { margin-top: auto; color: var(--accent); }

footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 700px) {
    .hero { min-height: auto; padding-top: 6rem; }
    .grid { grid-template-columns: 1fr; }
    .card { min-height: 190px; }
}
