:root {
  --bg: #0d0f0d;
  --fg: #d6dcd2;
  --muted: #6f786d;
  --accent: #9fd49a;
  --rule: #1f241f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "SF Mono", "Cascadia Mono", Consolas, Menlo, "DejaVu Sans Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint scanlines over the whole page. Kept very low contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Soft vignette, like the edges of a tube. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand::after {
  content: "_";
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand::after {
    animation: none;
  }
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--muted);
}

nav a[aria-current="page"] {
  color: var(--fg);
}

nav a[aria-current="page"]::before {
  content: "> ";
  color: var(--accent);
}

h1 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 1.5rem;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(159, 212, 154, 0.06);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.grid a {
  display: block;
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.15s ease;
}

.grid a:hover .thumb {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(159, 212, 154, 0.1);
}

.grid a:hover .thumb img {
  filter: saturate(1);
}

.label {
  display: block;
  margin-top: 0.6rem;
}

.label::before {
  content: "  ";
  white-space: pre;
  color: var(--accent);
}

.grid a:hover .label::before {
  content: "> ";
}

p {
  margin: 0 0 1rem;
}

.strapline {
  max-width: 64ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
