@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #03171a;
    --bg-elevated: #051b1e;
    --surface: rgba(32, 75, 79, 0.45);
    --border: #1a414d;
    --text: #e6f5fb;
    --muted: #86adb0;
    --accent: #3d8a92;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 20% 20%, hsla(190, 71%, 18%, 0.45) 0%, transparent 32%),
        radial-gradient(circle at 85% 75%, hsla(190, 60%, 14%, 0.35) 0%, transparent 30%);
    min-height: 100vh;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, var(--bg-elevated), rgba(3, 23, 26, 0.92));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--muted);
}

.menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.menu::-webkit-scrollbar {
    display: none;
}

.menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.menu a:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.menu a.is-active {
    color: var(--text);
    background: var(--surface);
    border-color: var(--accent);
}

article {
    padding-top: 1.5rem;
}

article h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

article .lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 42rem;
    margin-bottom: 2rem;
}

article h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

article h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}

article p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

article ul,
article ol {
    margin: 0 0 1.25rem 1.25rem;
    color: var(--muted);
}

article li {
    margin-bottom: 0.5rem;
}

article a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

article a:hover {
    color: var(--text);
}

.back-home {
    display: inline-block;
    margin-top: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    text-decoration: none;
}

.back-home:hover {
    color: var(--text);
}

.cta-row {
    margin-top: 2.5rem;
}

article a.cta-button {
    display: inline-block;
    background: var(--border);
    color: var(--text);
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-underline-offset: unset;
    box-shadow: 0 10px 30px rgba(26, 65, 77, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.2s ease;
}

article a.cta-button:hover {
    color: var(--text);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 65, 77, 0.6);
}

.figure {
    margin: 2rem 0;
    text-align: center;
}

.figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.caption {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.card h3 {
    margin-top: 0;
}

@media (max-width: 640px) {
    .site-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .menu {
        justify-content: flex-start;
    }
}
