:root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --raised: #121212;
    --line: #242424;
    --heading: #e0e0e0;
    --text: #a0a0a0;
    /* The old site's #606060 is too faint to read at these text sizes. */
    --faint: #7a7a7a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--bg);
    color: var(--text);
    font: 0.95rem/1.8 Consolas, "Courier New", monospace;
}

h1, h2, h3, strong { color: var(--heading); font-weight: 400; line-height: 1.3; }
h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; }

a { color: var(--heading); text-decoration-color: var(--faint); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--heading); outline-offset: 3px; }

.page { width: min(100% - 4rem, 44rem); margin-inline: auto; }
section { padding-top: 5rem; }

.intro { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 3rem 7rem; }
.view-total { display: inline-block; margin-left: 1ch; color: var(--faint); }
.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; color: var(--faint); font-size: 0.8rem; white-space: nowrap; text-decoration: none; }
.scroll-cue:hover { color: var(--heading); }
.scroll-cue span { font-size: 1.25rem; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(0.3rem); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }
.stack { color: var(--faint); margin-top: 1.5rem; }
nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; }
.page.intro { width: fit-content; max-width: calc(100% - 4rem); }
@media (max-width: 36rem) {
    nav { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

.marquee { margin-top: 1.5rem; }
.marquee-row { overflow-x: auto; padding-block: 0.5rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.videos { display: flex; width: max-content; list-style: none; }
.videos li { width: 16rem; margin-right: 1rem; }
.moving .marquee-row { scrollbar-width: none; }
.videos a { display: block; text-decoration: none; }
.videos img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.videos a:hover img { border-color: var(--heading); }
.videos strong { display: block; margin-top: 0.5rem; line-height: 1.5; }
.videos span { color: var(--faint); font-size: 0.85rem; }
.marquee-controls { display: flex; justify-content: center; margin-top: 0.5rem; }
.marquee-controls button { font: inherit; font-size: 0.85rem; color: var(--text); background: none; border: 1px solid var(--line); padding: 0.25rem 1rem; cursor: pointer; }
.marquee-controls button:hover { border-color: var(--heading); color: var(--heading); }

.projects article { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.built-with { color: var(--faint); }

.filters { margin-top: 1rem; }
.filters label { display: block; margin-bottom: 0.35rem; }
.filters input { width: 100%; font: inherit; font-size: max(1rem, 16px); color: var(--heading); background: var(--raised); border: 1px solid var(--line); padding: 0.55rem 0.75rem; }
.filters input::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chips button { font: inherit; font-size: 0.85rem; color: var(--text); background: none; border: 1px solid var(--line); padding: 0.2rem 0.75rem; cursor: pointer; }
.chips button:hover { border-color: var(--faint); }
.chips button[aria-pressed="true"] { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.result-count { color: var(--faint); margin-top: 1rem; }

.category, .compilations { margin-top: 2.5rem; }
.category h3, .compilations h3 { border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 0.75rem; }
.category ul, .compilations ul { columns: 2 17rem; column-gap: 2rem; list-style: none; }
.category li { break-inside: avoid; padding-block: 0.15rem; }

.no-results { margin-top: 2rem; }

footer.page { margin-top: 5rem; border-top: 1px solid var(--line); padding-block: 1.5rem 2.5rem; color: var(--faint); font-size: 0.85rem; }
