/*
 * tunneldweller.tv — landing page
 *
 * Palette pulled from the channel:
 *   --bg     nearly-black with a warm tint, like CRT dark pixels
 *   --text   dim warm white, like a broadcast standby
 *   --muted  readable-but-withdrawn, for closed states
 *   --accent the exact HUD camera-label orange-red from config.yaml,
 *            so the site shares pigment with every video the channel posts
 *
 * Rules:
 *   - all lowercase
 *   - one column, centered, a lot of air
 *   - no animation except a single hover color shift on the live link
 *   - no tracking, no analytics, no cookies
 */

:root {
  --bg: #0b0908;
  --text: #d8d4cb;
  --muted: #4a4642;
  --muted-high: #6a655f;
  --accent: #ff5a1f;
  --max-width: 440px;
  --gutter: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, Monaco, 'Courier New', monospace;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter);
}

main {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* ------------------------------------------------------------------ title */

.title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.title-text {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.catalog {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* -------------------------------------------------------------- link rows */

.link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.95rem;
}

.link .label {
  font-weight: 400;
  color: var(--text);
}

.link .status {
  color: var(--muted-high);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.link a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: color 180ms ease, transform 180ms ease;
}

.link a:hover .label,
.link a:focus-visible .label {
  color: var(--accent);
}

.link a:hover .status,
.link a:focus-visible .status {
  color: var(--accent);
}

.link a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.link.closed .label {
  color: var(--muted);
}

.link.closed .status {
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer */

footer {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--text);
}

footer a:focus-visible {
  outline: 1px solid var(--muted-high);
  outline-offset: 4px;
}

/* ---------------------------------------------------------- small screens */

@media (max-width: 480px) {
  body {
    padding: 3rem 1.25rem;
  }
  main {
    gap: 2.25rem;
  }
}

/* ------------------------------------------- very-high-density no-animation */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
