:root {
  color-scheme: dark;
  --bg: #06080e;
  --ink: #e9edf5;
  --ink-2: #a5aec2;
  --ink-3: #5f6980;
  --line: rgba(233, 237, 245, 0.10);
  --line-2: rgba(233, 237, 245, 0.22);
  --live: #6ee7b7;
  --glow: rgba(110, 231, 183, 0.55);
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* Orbit graphic */
.orbit {
  position: fixed;
  top: -14vmin;
  right: -20vmin;
  width: 80vmin;
  height: 80vmin;
  z-index: 0;
  pointer-events: none;
  fill: none;
  stroke: var(--line-2);
  stroke-width: 0.8;
  opacity: 0.9;
}

.orbit .core {
  fill: var(--ink);
  stroke: none;
  filter: drop-shadow(0 0 10px rgba(233, 237, 245, 0.6));
}

.orbit .sat {
  fill: var(--live);
  stroke: none;
  filter: drop-shadow(0 0 8px var(--glow));
  /* Same ellipse as the outer ring; the parent <g> supplies the tilt */
  offset-path: path("M 300 300 m -280 0 a 280 110 0 1 0 560 0 a 280 110 0 1 0 -560 0");
  offset-rotate: 0deg;
  animation: orbit 28s linear infinite;
}

@keyframes orbit {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

/* Header */
.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--pad);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.brand .mark { display: block; width: 28px; height: 28px; }

.clock {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Main */
.log {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h1 {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  color: var(--ink-2);
}

/* Section heads */
.section-h {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(3.5rem, 8vw, 6rem) 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-h .rule { flex: 1; }
.section-h .count { font-weight: 400; }

/* Manifest rows */
.row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  grid-template-areas:
    "idx name status"
    "idx desc desc"
    "idx dest dest";
  column-gap: 1rem;
  row-gap: 0.5rem;
  padding: 1.5rem 0;
  text-decoration: none;
  transition: background-color 200ms ease;
}

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

.row:hover, .row:focus-visible {
  background: linear-gradient(90deg, rgba(233, 237, 245, 0.03), transparent 70%);
  outline: none;
}

.idx {
  grid-area: idx;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  padding-top: 0.2rem;
}

.name {
  grid-area: name;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: start;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
  white-space: nowrap;
  padding-top: 0.3rem;
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.status.muted { color: var(--ink-2); }
.status.muted .dot, .status.dim .dot { box-shadow: none; animation: none; opacity: 0.6; }
.status.dim { color: var(--ink-3); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.desc {
  grid-area: desc;
  max-width: 60ch;
  color: var(--ink-2);
}

.dest {
  grid-area: dest;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  transition: color 200ms ease;
}

.dest .arrow { display: inline-block; transition: transform 250ms ease; }

.row:hover .dest, .row:focus-visible .dest { color: var(--ink); }
.row:hover .arrow, .row:focus-visible .arrow { transform: translate(3px, -3px); }

/* Hail */
.mail {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 200ms ease, text-shadow 300ms ease;
}

.mail:hover, .mail:focus-visible {
  border-color: var(--live);
  text-shadow: 0 0 24px rgba(110, 231, 183, 0.35);
  outline: none;
}

.hail-note {
  margin: 1rem 0 0;
  max-width: 52ch;
  color: var(--ink-2);
}

/* Footer */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem var(--pad) 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.foot a { text-decoration: none; transition: color 200ms; }
.foot a:hover, .foot a:focus-visible { color: var(--ink); }

/* Wide layout: manifest becomes a true table */
@media (min-width: 900px) {
  .row {
    grid-template-columns: 3rem 15rem 11rem 1fr 11rem;
    grid-template-areas: "idx name status desc dest";
    align-items: start;
    column-gap: 1.5rem;
    padding: 1.75rem 0;
  }
  .status { padding-top: 0.35rem; }
  .dest { text-align: right; padding-top: 0.25rem; }
  .name { padding-top: 0; }
  .desc { padding-top: 0.15rem; }
}

@media (max-width: 480px) {
  .clock { display: none; }
  .orbit { width: 110vmin; height: 110vmin; top: -40vmin; right: -50vmin; opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit .sat, .status .dot { animation: none; }
  .dest .arrow, .row, .mail { transition: none; }
}
