/* ── Fonts ── */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrainsmono-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrainsmono-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrainsmono-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ── Palette ── */
:root {
    --bg:      #0a0a0a;
    --surface: #111111;
    --border:  #1e1e1e;
    --text:    #d5d5d5;
    --dim:     #888;
    --accent:  #e8e8e8;
    --radius:  6px;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img[src$=".svg"] {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.6);
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Page ── */
.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

/* ── Header ── */
.header {
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.header-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header h1 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.2;
}

.header-sub {
    font-size: 0.75rem;
    color: var(--dim);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-family: inherit;
    color: var(--dim);
    transition: color 0.15s, border-color 0.15s;
}

.nav-btn:hover {
    color: var(--accent);
    border-color: #333;
}

/* ── Cards ── */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
    border-color: #333;
    transform: translateY(-1px);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.card-icon img[src$=".svg"] {
    width: 18px;
    height: 18px;
}

.card-body {
    min-width: 0;
}

.card-name {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.card-desc {
    font-size: 0.65rem;
    color: var(--dim);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Fade In ── */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.4s ease forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in:nth-child(1)  { animation-delay: 0s; }
.fade-in:nth-child(2)  { animation-delay: 0.04s; }
.fade-in:nth-child(3)  { animation-delay: 0.08s; }
.fade-in:nth-child(4)  { animation-delay: 0.12s; }
.fade-in:nth-child(5)  { animation-delay: 0.16s; }
.fade-in:nth-child(6)  { animation-delay: 0.20s; }
.fade-in:nth-child(7)  { animation-delay: 0.24s; }

/* ── Mobile ── */
@media (max-width: 540px) {
    .page {
        padding: 2rem 1rem 1.5rem;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}
