:root {
  --hn-graphite: #0f1115;
  --hn-graphite-deep: #0b0d10;
  --hn-panel: #13171d;
  --hn-ink: #f4f5f7;
  --hn-text: #e5e7eb;
  --hn-muted: #9ca3af;
  --hn-faint: #6b7280;
  --hn-cyan: #00b2ff;
  --hn-amber: #f5a623;
  --hn-gold: #c9a45c;
  --hn-gold-bright: #e0b978;
  --hn-gold-soft: rgba(201, 164, 92, 0.16);
  --hn-line: rgba(229, 231, 235, 0.09);
  --hn-line-strong: rgba(229, 231, 235, 0.15);
  --hn-glass-bg: linear-gradient( 180deg, rgba(255, 255, 255, 0.045), rgba(19, 23, 29, 0.55) 42%, rgba(11, 13, 16, 0.62) );
  --hn-glass-blur: blur(16px) saturate(150%);
  --hn-glass-border: var(--hn-line-strong);
  --hn-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --hn-font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --hn-font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --hn-shell-max: 1280px;
  --hn-gutter: 64px;
  --hn-space-1: 4px;
  --hn-space-2: 8px;
  --hn-space-3: 12px;
  --hn-space-4: 16px;
  --hn-space-5: 24px;
  --hn-space-6: 32px;
  --hn-space-7: 48px;
  --hn-space-8: 64px;
  --hn-radius-sm: 10px;
  --hn-radius-md: 14px;
  --hn-radius-pill: 999px;
  --hn-shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.3);
  --hn-shadow-md: 0 10px 26px rgba(0, 0, 0, 0.35);
  --hn-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
  --hn-focus-ring-color: var(--hn-cyan);
  --hn-focus-ring: 0 0 0 2px var(--hn-graphite), 0 0 0 4px var(--hn-cyan);
  --hn-motion-control: 120ms;
  --hn-motion-target: 200ms;
  --hn-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Product Atlas layout (HORO-285). --hn-* custom properties above this
   block are injected at build time from src/css/custom.css by tokens.mjs —
   this file only lays the page out and never redeclares a color/spacing
   value that a token already owns. */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--hn-graphite);
  color: var(--hn-text);
  font-family: var(--hn-font-sans);
  -webkit-font-smoothing: antialiased;
}

.hn-atlas-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--hn-text);
  color: var(--hn-graphite);
  padding: var(--hn-space-3) var(--hn-space-4);
  border-radius: var(--hn-radius-sm);
}

.hn-atlas-skip:focus {
  left: var(--hn-space-4);
  top: var(--hn-space-4);
}

.hn-atlas-header {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--hn-space-8) var(--hn-gutter) var(--hn-space-6);
}

.hn-atlas-header__kicker {
  font-family: var(--hn-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hn-muted);
  margin: 0 0 var(--hn-space-3);
}

.hn-atlas-header__title {
  font-size: 40px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  margin: 0 0 var(--hn-space-4);
  color: var(--hn-ink);
}

.hn-atlas-header__framing {
  font-size: 17px;
  color: var(--hn-muted);
  margin: 0 0 var(--hn-space-5);
}

.hn-atlas-header__back {
  color: var(--hn-cyan);
  text-decoration: none;
  font-size: 14px;
}

.hn-atlas-header__back:hover,
.hn-atlas-header__back:focus-visible {
  text-decoration: underline;
}

.hn-atlas-grid {
  list-style: none;
  margin: 0 auto;
  max-width: 960px;
  padding: 0 var(--hn-gutter) var(--hn-space-8);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hn-space-5);
}

.hn-atlas-card {
  position: relative;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius-md);
  padding: var(--hn-space-5);
  overflow-wrap: anywhere;
  background: var(--hn-panel);
  box-shadow: var(--hn-shadow-sm);
}

/* The figure is a quiet orientation cue behind the registry content. Its
   opacity changes only when the corresponding card owns attention, so it
   cannot compete with the scan path or imply a second navigation surface. */
.hn-atlas-card__constellation {
  position: absolute;
  top: var(--hn-space-4);
  right: var(--hn-space-4);
  width: 88px;
  height: 48px;
  overflow: visible;
  color: var(--hn-gold);
  opacity: 0.28;
  pointer-events: none;
  transition: opacity var(--hn-motion-control) var(--hn-ease-out);
}

.hn-atlas-card__constellation path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hn-atlas-card__constellation circle {
  fill: currentColor;
}

.hn-atlas-grid:has(.hn-atlas-card:hover) .hn-atlas-card:not(:hover) .hn-atlas-card__constellation,
.hn-atlas-grid:has(.hn-atlas-card:focus-within) .hn-atlas-card:not(:focus-within) .hn-atlas-card__constellation {
  opacity: 0.12;
}

.hn-atlas-card:hover .hn-atlas-card__constellation,
.hn-atlas-card:focus-within .hn-atlas-card__constellation {
  opacity: 0.82;
}

.hn-atlas-card__eyebrow {
  font-family: var(--hn-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hn-muted);
  margin: 0 0 var(--hn-space-2);
}

.hn-atlas-card__celestial {
  color: var(--hn-gold);
}

.hn-atlas-card__name {
  font-size: 20px;
  margin: 0 0 var(--hn-space-2);
  color: var(--hn-ink);
}

.hn-atlas-card__problem {
  font-size: 14px;
  color: var(--hn-text);
  margin: 0 0 var(--hn-space-3);
}

.hn-atlas-card__maturity {
  font-family: var(--hn-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--hn-muted);
  margin: 0 0 var(--hn-space-4);
}

.hn-atlas-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--hn-space-2);
  color: var(--hn-graphite);
  background: var(--hn-text);
  border-radius: var(--hn-radius-sm);
  padding: var(--hn-space-2) var(--hn-space-4);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  transition: background var(--hn-motion-control) var(--hn-ease-out);
}

.hn-atlas-card__link:hover,
.hn-atlas-card__link:focus-visible {
  background: #ffffff;
}

.hn-atlas-card__link:focus-visible {
  outline: none;
  box-shadow: var(--hn-focus-ring);
}

.hn-atlas-card__pending {
  display: inline-block;
  color: var(--hn-muted);
  font-size: 13px;
  font-style: italic;
}

@media (max-width: 720px) {
  .hn-atlas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --hn-gutter: 20px;
  }

  .hn-atlas-card__constellation {
    top: var(--hn-space-3);
    right: var(--hn-space-3);
    transform: scale(0.84);
    transform-origin: top right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hn-atlas-card__constellation {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: 2px;
    box-shadow: none !important;
  }
}

/* Consent banner (HORO-595) — minimal, matches existing token/pill idiom
   rather than introducing new design language. */
/* HORO-611: the `hidden` attribute is a normal-specificity UA-stylesheet
   rule (`[hidden]` sets `display: none`), so the plain class rule below —
   same specificity, but declared later and winning on source order —
   silently overrode it. The banner never
   actually disappeared: not on first load once a choice was already
   stored, and not after clicking Accept/Decline (analytics.mjs only ever
   sets the `hidden` attribute, never an inline style). It stayed fixed,
   full-width, and interactive at the bottom of the page forever, on every
   visit, which reads exactly like "clicking doesn't do anything." This
   explicit `[hidden]` override is what actually makes hiding work. */
.hn-atlas-consent[hidden] {
  display: none;
}

.hn-atlas-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hn-space-4);
  padding: var(--hn-space-4);
  /* HORO-611: on a real touchscreen, a fixed bottom:0 element sits flush
     against the iOS home-indicator / Android gesture-nav safe area, and
     the layout viewport `bottom:0` anchors to can extend past the visible
     area while the browser's own URL/toolbar chrome is showing. Padding
     with the actual safe-area inset (0 on browsers that don't support it)
     keeps the real tappable buttons clear of both. */
  padding-bottom: calc(var(--hn-space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--hn-surface, #16171d);
  border-top: 1px solid var(--hn-border, rgba(255, 255, 255, 0.12));
}

.hn-atlas-consent__text {
  margin: 0;
  font-size: 13px;
  color: var(--hn-muted);
  max-width: 60ch;
}

.hn-atlas-consent__actions {
  display: flex;
  gap: var(--hn-space-2);
  flex-shrink: 0;
}

.hn-atlas-consent__accept,
.hn-atlas-consent__decline {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: var(--hn-space-2) var(--hn-space-4);
  /* HORO-611: the padding above alone renders at ~34px tall — below the
     44px (iOS HIG) / 48dp (Material) minimum recommended touch target.
     Real fingertip contact area is far less precise than a pointer-event
     coordinate in automated testing, so a target this small is a
     plausible cause of "renders but isn't reliably clickable" that a
     script clicking exact center coordinates would never catch. */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--hn-border, rgba(255, 255, 255, 0.24));
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hn-atlas-consent__accept {
  background: #ffffff;
  color: #0b0c10;
  border-color: transparent;
}

.hn-atlas-consent__accept:focus-visible,
.hn-atlas-consent__decline:focus-visible {
  outline: none;
  box-shadow: var(--hn-focus-ring);
}
