* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --bg: #0d0d0d;
    --bg-elev: #1a1a1a;
    --bg-elev-hover: #222;
    --text: #ffffff;
    --muted: #aaaaaa;
    --border: #1f1f1f;
    --border-strong: #333;
    --accent: #ffffff;
    --accent-text: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* NAVIGATION */

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 20px 8%;
    background: #0f0f0f;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s ease;
    outline: none;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
}

.nav-links a:focus-visible {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* HERO */

.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 0 10%;
}

.hero.compact {
    min-height: 55vh;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 700px;
}

/* SECTIONS */

.section {
    padding: 100px 10%;
}

.section h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
}

.lede {
    color: var(--muted);
    max-width: 850px;
    margin-top: -20px;
    margin-bottom: 40px;
}

/* GRID + CARDS */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-elev);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.25s;
}

.card:hover {
    background: var(--bg-elev-hover);
    transform: translateY(-5px);
}

.card p {
    color: var(--muted);
}

.meta {
    display: block;
    margin-top: 10px;
    color: #8a8a8a;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 12px;
}

.card-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card.full {
    grid-column: 1 / -1;
}

.cta {
    display: inline-block;
    padding: 12px 18px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.cta:hover {
    opacity: 0.85;
}

.cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.text-link {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link:hover {
    opacity: 0.85;
}

/* FORMS */

input, textarea {
    background: #111;
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

button {
    padding: 12px 30px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 10px;
}

button:hover {
    opacity: 0.85;
}

button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 40px;
    background: #0f0f0f;
    color: #777;
    border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
    nav {
        padding: 16px 6%;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .section {
        padding: 80px 6%;
    }
}
