/* =============================================
   8DOT MEDIA — THE INDEX
   the work is the about page.
   ink #f4f2ee on #101010 · dot-red #cc2200
   Anton (display) · Space Mono (labels)
   ============================================= */

:root {
  --bg: #101010;
  --ink: #f4f2ee;
  --ink-dim: #8d8a84;
  --red: #cc2200;
  --line: #2a2a2a;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* film grain — the family fingerprint */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

.masthead {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
}

.dots { display: flex; gap: 0.45rem; }
.dots i {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.9;
}
.dots i.hot { background: var(--red); opacity: 1; }
.dots.small i { width: 0.4rem; height: 0.4rem; }

.mast-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- hero ---------- */

.hero { padding: clamp(2rem, 7vh, 5rem) clamp(1.2rem, 4vw, 3rem) clamp(2.5rem, 8vh, 5rem); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 13.5vw, 11rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

@media (max-width: 640px) {
  .hero h1 em { -webkit-text-stroke: 1.2px var(--ink); }
}

/* ---------- the index ---------- */

.index { border-top: 1px solid var(--line); }

.index-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 1rem clamp(1.2rem, 4vw, 3rem) 0.6rem;
}

.entry {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.1rem, 3vh, 1.8rem) clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  position: relative;
}
.index .entry:last-child { border-bottom: 1px solid var(--line); }

.entry .no {
  font-size: 0.8rem;
  color: var(--red);
  min-width: 2.6rem;
}

.entry .name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, color 0.18s ease;
}

.entry .meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  text-align: right;
}

.entry .what { font-size: 0.7rem; color: var(--ink-dim); letter-spacing: 0.06em; }

.status {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.st-live { color: #4ade80; }
.st-beta { color: #7dd3fc; }
.st-soon { color: var(--ink-dim); }
.st-red  { color: var(--red); border-style: dashed; }

.entry .arrow {
  font-size: 1.4rem;
  color: var(--ink-dim);
  transition: transform 0.18s ease, color 0.18s ease;
}

a.entry:hover .name, a.entry:focus-visible .name { color: var(--red); transform: translateX(0.4rem); }
a.entry:hover .arrow, a.entry:focus-visible .arrow { color: var(--red); transform: translateX(0.5rem); }
a.entry:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

/* 004 — the one that doesn't explain itself */

.redacted { cursor: default; }
.redacted .name { font-size: clamp(1.6rem, 5vw, 3.6rem); }
.redacted .bar {
  background: var(--ink);
  color: var(--ink);
  padding: 0 0.35em;
  user-select: none;
  transition: background 0.4s ease, color 0.4s ease;
}
.redacted:hover .bar {
  background: var(--red);
  color: var(--bg);
}

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

.foot {
  margin-top: auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.2rem, 4vw, 3rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.foot-line a {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.foot-line a:hover { color: var(--red); }

.foot-fine { font-size: 0.68rem; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ---------- motion (opt-in only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .hero h1 {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .entry { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .entry:nth-child(2) { animation-delay: 0.05s; }
  .entry:nth-child(3) { animation-delay: 0.1s; }
  .entry:nth-child(4) { animation-delay: 0.15s; }
  .entry:nth-child(5) { animation-delay: 0.2s; }

  /* entries drift in against scroll where supported */
  @supports (animation-timeline: view()) {
    .foot { animation: rise both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

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

@media (max-width: 640px) {
  .entry { grid-template-columns: auto 1fr auto; }
  .entry .arrow { display: none; }
  .entry .meta { align-items: flex-end; }
}
