:root {
    --bg: #0b0d12;
    --bg-deep: #050608;
    --text: #e7e7e7;
    --muted: #9aa1b2;
    --accent: #ffb347;
    --accent-strong: #ff7a1a;
    --card: rgba(17, 19, 26, 0.82);
    --card-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", "Source Code Pro", sans-serif;
    background-image: url("assets/background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 179, 71, 0.08), transparent 55%),
        linear-gradient(135deg, rgba(5, 6, 8, 0.92), rgba(11, 13, 18, 0.88));
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero {
    display: grid;
    gap: 16px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 12px;
    color: var(--muted);
    font-family: "Source Code Pro", monospace;
}

.title {
    font-size: clamp(36px, 6vw, 64px);
    margin: 0;
    font-weight: 700;
    font-family: "Source Code Pro", monospace;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
    font-size: 18px;
    line-height: 1.6;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 179, 71, 0.45);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-weight: 700;
    font-size: 18px;
    font-family: "Source Code Pro", monospace;
}

.card-meta {
    color: var(--muted);
    font-size: 14px;
}

.footer {
    font-size: 13px;
    color: var(--muted);
    font-family: "Source Code Pro", monospace;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    body {
        background-attachment: scroll;
    }

    .page {
        padding: 56px 18px 36px;
    }

    .subtitle {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('SourceSans3-Roman.woff2') format('woff2'),
        url('SourceSans3-Roman.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Code Pro Italic';
    src: url('SourceCodeItalic-ExtraLightItalic.woff2') format('woff2'),
        url('SourceCodeItalic-ExtraLightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Source Code Pro';
    src: url('SourceCodeRoman-ExtraLight.woff2') format('woff2'),
        url('SourceCodeRoman-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
