/* daedalyte.net */

@font-face {
  font-family: 'Overpass';
  src: url('/fonts/overpass-latin.woff2') format('woff2');
  font-weight: 100 900;          /* variable */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Overpass Mono';
  src: url('/fonts/overpass-mono-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --house:  #09080c;   /* houselights out */
  --deck:   #131019;   /* set dressing */
  --line:   #262031;
  --unlit:  #756a92;   /* a channel at zero */
  --text:   #ddd8e6;
  --dim:    #918aa3;
  --purple: #b98cff;
  --plum:   #8e79d9;

  --sans: 'Overpass', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--house);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  /* House to half, then out. */
  animation: houselights 900ms ease-out both;
}

@keyframes houselights {
  from { opacity: 0; }
  50%  { opacity: 0.5; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .ch  { transition: none; }
}

.house {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

.mark {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--purple);
}

/* ---- channel list ---- */

.patch {
  margin: 4rem 0;
  border-top: 1px solid var(--line);
}

.ch {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0 1rem;
  align-items: baseline;
  padding: 1.15rem 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.ch:hover,
.ch:focus-visible {
  background: var(--deck);
  border-left-color: var(--purple);
  outline: none;
}

.num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--unlit);
  transition: color 140ms ease;
}

.name {
  font-weight: 600;
  color: var(--text);
}

.host {
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--unlit);
  transition: color 140ms ease;
}

.ch:hover .num,
.ch:focus-visible .num,
.ch:hover .name,
.ch:focus-visible .name { color: var(--purple); }

.ch:hover .host,
.ch:focus-visible .host { color: var(--plum); }

@media (max-width: 34rem) {
  .house { padding-top: 3.5rem; }
  .ch    { grid-template-columns: 2.25rem 1fr; }
  .host  { display: none; }
}

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

.foot {
  color: var(--dim);
  font-size: 0.85rem;
}

.note {
  margin: 0.75rem 0 0;
  color: var(--dim);
}
