/* Midnight Merge — cold ink, warm lamp. Mono for data, sans for prose. */

:root {
  --ink:    #0a0b0e;
  --raised: #101216;
  --text:   #e9e7e2;   /* warm off-white, not pure */
  --muted:  #8b8a85;
  --faint:  #55565b;
  --rule:   #1d1f24;
  --amber:  #e2a044;   /* the lamp that's still on */
  --live:   #7ec9a2;
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

/* film grain — keeps the flat dark from looking like a template */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

main {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.75rem 5rem;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.clock {
  text-align: right;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.clock .time {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 400ms ease;
}

/* the one hour the name is literally true */
.clock.witching .time { color: var(--amber); }

/* ---------- sections ---------- */

section { margin-top: 2.5rem; }

.label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin: 0 0 0.25rem;
}

.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- listing rows ---------- */

.list { list-style: none; margin: 0; padding: 0; }

.list > li { border-bottom: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 1rem;
  padding: 1.15rem 0.7rem;
  margin: 0 -0.7rem;
  text-decoration: none;
  color: inherit;
  border-radius: 3px;
  transition: background 150ms ease;
}

a.row:hover { background: var(--raised); }

.name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

a.row:hover .name { color: var(--amber); }

.state {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.state.live { color: var(--live); }

.desc {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0.3rem 0 0;
  max-width: 30rem;
}

.links {
  grid-column: 1 / -1;
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 150ms ease, border-color 150ms ease;
}

.links a:hover { color: var(--amber); border-bottom-color: var(--amber); }

.links .sep { color: var(--faint); margin: 0 0.45rem; }

.role {
  grid-column: 3;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.people {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 1rem;
  line-height: 2;
}

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

footer {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  align-items: baseline;
  font-size: 0.8rem;
  color: var(--faint);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

footer a:hover { color: var(--text); border-bottom-color: var(--amber); }

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

@media (max-width: 34rem) {
  main { padding: 3rem 1.25rem 4rem; }
  .brand { font-size: 1.02rem; }

  /* keep the caption — just tighten it up */
  .masthead { gap: 1rem; }
  .clock { font-size: 0.66rem; }
  .clock .time { font-size: 0.88rem; }
  section { margin-top: 2.75rem; }
}
