/* Design tokens. */
:root {
    --bg: #09090c;
    --bg-elevated: #0f0f14;
    --border: #1e1e28;
    --border-hover: #2c2c3a;

    --text: #d8d8e8;
    --text-muted: #9090a8;
    --text-subtle: #40404c;
    --white: #f2f2fa;

    --accent: #7b61ff;

    --mono: "JetBrains Mono", monospace;
    --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* Reset. */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Background dot grid. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

/* Shared tag group layout. */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Shared tag base. */
.tag {
    font-family: var(--mono);
    font-size: 9.5px;
    line-height: 1.65;
    letter-spacing: 0.04em;
    padding: 2px 9px;
    border: 1px solid;
    border-radius: 4px;
    white-space: nowrap;
}

/* Shared card base. */
.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
    transition:
        border-color 0.22s,
        background 0.22s,
        box-shadow 0.22s;
}

/* Shared animation. */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
