/* Parametrig — Base Reset + Typography */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

html {
    scroll-behavior: smooth;
}

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-main);
    padding: 2vw;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "pnum" on, "lnum" on;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mission {
    font-family: var(--font-serif);
}

code,
pre,
.mono {
    font-family: var(--font-mono);
    font-feature-settings: var(--font-features-mono);
}

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

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Selection highlight uses brand */
::selection {
    background: var(--brand);
    color: var(--fg);
}

/* Shared Tabs Component */
.p-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.p-tabs::-webkit-scrollbar {
    display: none;
}

.p-tab {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.p-tab:hover {
    color: var(--fg);
}

.p-tab.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}