:root {
    color-scheme: dark;
    --bg-0: #000000;
    --fg-0: #ffffff;
    --fg-1: #d7d7d7;
    --fg-2: #9a9a9a;
    --accent: #fca5a5;
    --accent-2: #c4b5fd;
    --accent-3: #fcd34d;
    --accent-4: #86efac;
    --border: #242424;
    --card: #0c0c0c;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;

    --radius-1: 0.5rem;
    --radius-2: 0.75rem;

    --border-1: 0.0625rem solid var(--border);
    --shadow-1: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(56.25rem 32.5rem at 10% -10%, rgba(252, 165, 165, 0.12), transparent 55%),
        radial-gradient(43.75rem 26.25rem at 90% -20%, rgba(196, 181, 253, 0.12), transparent 55%),
        radial-gradient(37.5rem 26.25rem at 20% 90%, rgba(252, 211, 77, 0.08), transparent 60%),
        radial-gradient(31.25rem 22.5rem at 85% 85%, rgba(134, 239, 172, 0.08), transparent 60%),
        var(--bg-0);
    color: var(--fg-0);
    font-family: "Inter", "Segoe UI", sans-serif;
    line-height: 1.6;
}

::selection {
    background: #ffffff;
    color: #000000;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ffffff #000000;
}

*::-webkit-scrollbar {
    width: 0.75rem;
    height: 0.75rem;
}

*::-webkit-scrollbar-track {
    background: #000000;
}

*::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 999px;
    border: 0.25rem solid #000000;
}

:where(.label) {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fg-2);
}

:where(.value) {
    font-size: 0.8125rem;
    color: var(--fg-1);
}

.shell {
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 4vw, 4rem) clamp(1.25rem, 4vw, 1.75rem) clamp(4rem, 6vw, 6rem);
}

.hero {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-6);
    text-align: center;
    align-items: center;
}

.eyebrow {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--fg-2);
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    flex-direction: column;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.hero-sub {
    margin: 0;
    color: var(--fg-1);
    max-width: 40rem;
    font-size: 1rem;
    text-align: center;
}

.hero-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fg-2);
    text-decoration: none;
}

.hero-link:hover {
    color: var(--fg-0);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.chip {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    color: var(--fg-1);
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    border: var(--border-1);
    border-radius: var(--radius-2);
    padding: 0.75rem 1.125rem;
    margin-bottom: var(--space-5);
    background: linear-gradient(120deg, rgba(124, 211, 252, 0.08), rgba(196, 181, 253, 0.06), rgba(12, 12, 12, 0.9));
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 7.5rem;
}

.status-item .value {
    font-size: 0.875rem;
    color: var(--fg-0);
}

.status-item.warn .value {
    color: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: var(--space-5);
}

.repo {
    position: relative;
    border: none;
    border-top: 0.125rem solid var(--border-tint);
    border-radius: var(--radius-1);
    padding: var(--space-5) var(--space-5) calc(var(--space-5) + var(--space-1));
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.03), rgba(12, 12, 12, 0.94)),
        linear-gradient(160deg, color-mix(in srgb, var(--border-tint) 10%, transparent), transparent 55%);
    backdrop-filter: blur(6px) saturate(110%);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    box-shadow: var(--shadow-1);
    opacity: 0;
    transform: translateY(0.375rem);
    animation: lift 360ms ease forwards;
    animation-delay: var(--delay, 0ms);
    overflow: hidden;
    --accent-a: var(--accent);
    --accent-b: var(--accent-2);
    --accent-c: var(--accent-3);
    --accent-d: var(--accent-4);
    --border-tint: rgba(255, 255, 255, 0.08);
}

.repo:nth-child(4n + 1) {
    --accent-a: #fca5a5;
    --accent-b: #c4b5fd;
    --accent-c: #86efac;
    --accent-d: #fcd34d;
    --border-tint: #ff7a7a;
}

.repo:nth-child(4n + 2) {
    --accent-a: #a5b4fc;
    --accent-b: #f9a8d4;
    --accent-c: #fde68a;
    --accent-d: #6ee7b7;
    --border-tint: #6aa9ff;
}

.repo:nth-child(4n + 3) {
    --accent-a: #fbcfe8;
    --accent-b: #93c5fd;
    --accent-c: #fdba74;
    --accent-d: #bef264;
    --border-tint: #6ee7b7;
}

.repo:nth-child(4n + 4) {
    --accent-a: #c7d2fe;
    --accent-b: #fda4af;
    --accent-c: #bbf7d0;
    --accent-d: #fef08a;
    --border-tint: #fbbf24;
}

.repo-head {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    flex-wrap: nowrap;
}

.repo-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1 1 auto;
    min-width: 0;
}

.repo h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.repo-link {
    font-size: 0.75rem;
    color: var(--accent-a);
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.repo-link:hover {
    text-decoration: underline;
}

.repo-desc {
    margin: 0;
    color: var(--fg-1);
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-desc.muted {
    color: var(--fg-2);
}

.repo-date {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.repo-date .label {
    letter-spacing: 0.18em;
}

.repo-date .value {
    white-space: nowrap;
}

.repo-error {
    border: 0.0625rem solid rgba(88, 214, 255, 0.4);
    background: rgba(88, 214, 255, 0.08);
    color: var(--fg-0);
    border-radius: var(--radius-1);
    padding: var(--space-2) var(--space-3);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.repo-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    border-top: var(--border-1);
    padding-top: var(--space-3);
    margin-top: auto;
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
    align-items: flex-start;
}

.meta-row .value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-link {
    font-size: 0.8125rem;
    color: var(--accent-a);
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-link:hover {
    text-decoration: underline;
}

.repo-message {
    border-top: var(--border-1);
    padding-top: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.repo-message .value {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty {
    border: 0.0625rem dashed var(--border);
    border-radius: var(--radius-2);
    padding: var(--space-5);
    text-align: center;
    color: var(--fg-1);
    background: #050505;
}

.empty-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-1);
}

.empty-sub {
    color: var(--fg-2);
    font-size: 0.8125rem;
}

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

@media (min-width: 80rem) {
    .shell {
        max-width: 80rem;
    }
}

@media (min-width: 100rem) {
    .shell {
        max-width: 92rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    .repo {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
