/**
 * Styles for /variants/ — the index that lists every design.
 * Deliberately plain: this page is a maintenance tool, not a showcase.
 */

:root {
    color-scheme: dark;
    --bg: #0b0d12;
    --panel: #141821;
    --line: #262c38;
    --fg: #e7eaf0;
    --muted: #97a0b0;
    --accent: #4edea3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 2.5rem 1.25rem 4rem;
    background: var(--bg);
    color: var(--fg);
    font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.head {
    max-width: 70rem;
    margin: 0 auto 2rem;
}

.head h1 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.head a {
    color: var(--accent);
}

.grid {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0;
    margin-inline: 0;
    list-style: none;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}

.card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--panel);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.card a:hover,
.card a:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    object-position: top center;
    background: #0e1118;
}

.card__title {
    padding: 0.85rem 1rem 0.15rem;
    font-weight: 600;
    text-transform: capitalize;
}

.card__meta {
    padding: 0 1rem 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
    .card a {
        transition: none;
    }
}