/* Page refinements inherit each world's authored palette and typography. */
.atlas-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2147483001;
  padding: 16px 22px;
  background: #fff;
  color: #111;
  font: 700 16px/1.25 system-ui, sans-serif;
  border: 2px solid #111;
  transform: translateY(-180%);
}
.atlas-skip:focus { transform: none; }
body[data-atlas-refined] :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
body[data-atlas-refined] :is(main, section, h2)[id] { scroll-margin-block: 32px; }
body[data-atlas-refined] .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body[data-atlas-refined] :is(.hero-lede, .manifest-copy p, .feature-copy p) {
  max-inline-size: 65ch;
  text-wrap: pretty;
}
body[data-atlas-refined] :is(output, .feature-output) { font-variant-numeric: tabular-nums; }
body[data-atlas-refined] .section h2 { overflow-wrap: anywhere; }
body[data-atlas-refined] .site-footer { padding-bottom: max(96px, env(safe-area-inset-bottom)); }
body[data-atlas-refined="kinetic-stack"] .hero-title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: clamp(3.45rem, 6vw, 7rem);
}
body[data-atlas-refined="kinetic-stack"] .hero-copy { min-width: 0; }
body[data-atlas-refined="graffiti-marker"] h1,
body[data-atlas-refined="holo-registry"] h1 { overflow-wrap: anywhere; max-inline-size: 100%; }
body[data-atlas-refined="graffiti-marker"] h1,
body[data-atlas-refined="holo-registry"] h1 { transform-origin: center !important; }
body[data-atlas-refined="retro-operating-system"] .wm-btn { min-width: 24px; min-height: 24px; }
body[data-atlas-refined="retro-operating-system"] .os-title { height: auto; min-height: 38px; align-items: center; }
body[data-atlas-refined="retro-operating-system"] :is(.os-taskbar button, .wm-task) { min-height: 28px; }
body[data-atlas-refined="pulse-cartography"] input[type="range"],
body[data-atlas-refined="kinetic-stack"] input[type="range"] { min-height: 44px; }
@media (max-width: 720px) {
  body[data-atlas-refined] .section { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-atlas-refined] .section > * { min-width: 0; }
  body[data-atlas-refined] .section h2 { font-size: clamp(2.5rem, 12vw, 4.5rem); line-height: 1.02; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body[data-atlas-refined]) { scroll-behavior: auto !important; }
}
