.universe-map {
  margin-block-start: var(--space-16);
  padding-block: var(--space-8);
  border-block: 1px solid var(--rule-strong);
}

.universe-map__head {
  display: grid;
  gap: var(--space-2);
  margin-block-end: var(--space-6);
}

.universe-map__eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.universe-map__head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.universe-map__intro {
  max-width: var(--measure);
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.klu-system-map {
  margin: 0 0 var(--space-8);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.klu-system-map__canvas {
  overflow-x: auto;
  padding: var(--space-6);
  background:
    linear-gradient(180deg, rgb(36 87 214 / 5%), transparent 45%),
    var(--surface);
  scrollbar-color: var(--accent) var(--rule);
}

.klu-system-map__canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.klu-system-map__diagram {
  display: block;
  width: 100%;
  min-width: 52rem;
  aspect-ratio: 1040 / 560;
  border: 0;
}

.klu-system-map figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-3) var(--space-4);
  border-block-start: 1px solid var(--rule);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: var(--micro);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.universe-map__product-label {
  margin: 0 0 var(--space-3);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.universe-map__surfaces {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 42rem) {
  .universe-map__surfaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .universe-map__surfaces {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.universe-map__surface {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--space-2);
  min-height: 10.75rem;
  padding: var(--space-4);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

a.universe-map__surface {
  transition: border-color 150ms ease-out, color 150ms ease-out;
}

a.universe-map__surface:hover,
a.universe-map__surface:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

a.universe-map__surface:hover .universe-map__action {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.universe-map__surface--closed {
  border-style: dashed;
  background: transparent;
  color: var(--ink-muted);
}

.universe-map__surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--micro);
  letter-spacing: 0.08em;
}

.universe-map__name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-weight: 600;
}

.universe-map__surface--closed .universe-map__name {
  color: var(--ink-muted);
}

.universe-map__dot {
  inline-size: 0.65rem;
  block-size: 0.65rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--universe-tone, var(--ink));
}

.universe-map__surface--closed .universe-map__dot {
  background: transparent;
}

.universe-map__status {
  color: var(--ink-faint);
  text-align: end;
}

.universe-map__surface h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.universe-map__surface p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.universe-map__action {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.universe-map__surface--closed .universe-map__action {
  color: var(--ink-faint);
}

.universe-map__surface--blog { --universe-tone: #2457d6; }
.universe-map__surface--archive { --universe-tone: #a18048; }
.universe-map__surface--map { --universe-tone: #17181a; }
.universe-map__surface--outside { --universe-tone: #5e7f57; }
.universe-map__surface--inside { --universe-tone: #5e7f57; }
.universe-map__surface--slides { --universe-tone: #6a7ba5; }

.universe-map__note {
  margin: var(--space-4) 0 0;
  color: var(--ink-faint);
  font-size: var(--meta);
  line-height: 1.6;
}
