:root {
  color-scheme: dark;
  --ground: var(--abyss-ground);
  --panel: var(--abyss-surface);
  --bar: var(--abyss-surface);
  --focus: var(--abyss-accent);
  --accent: var(--abyss-yellow);
  --text: var(--abyss-text);
  --muted: var(--abyss-muted);
  background: var(--ground);
  color: var(--text);
  font: 1rem/1.45 ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--abyss-selection); color: var(--text); }
.chrome, .bar, .titlebar { display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; }
.chrome { border-bottom: 1px solid var(--abyss-border); }
.chrome h1, .titlebar h2 { margin: 0; font-size: 1rem; }
.chrome span { margin-inline-start: auto; color: var(--muted); }
.bar, .titlebar { background: var(--bar); justify-content: space-between; }
.bar nav { display: flex; gap: .45rem; }
.bar a, .close { display: grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; }
.bar a[aria-current] { background: var(--abyss-selection); color: var(--accent); }
.desktop { position: relative; isolation: isolate; min-height: calc(100svh - 6.1rem); padding: 1rem; }
.desktop::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ground) url("./wallpaper.webp") center / cover;
  animation: wallpaper-in 1s ease-out both;
}
@keyframes wallpaper-in { from { opacity: .12; } }
.workspace, .panel { display: none; }
#workspace-1 { display: block; }
.desktop:has(#workspace-2:target, #hivemon:target) #workspace-1 { display: none; }
.desktop:has(#workspace-2:target, #hivemon:target) #workspace-2, .panel:target { display: block; }
.launchers { display: flex; flex-wrap: wrap; gap: .5rem; }
.launchers a, .hint { padding: .65rem .8rem; background: var(--panel); border: 1px solid var(--focus); }
.launchers a:hover, .close:hover { color: var(--accent); }
.hint { width: fit-content; margin: 1rem 0 0; }
.desktop:has(.panel:target) .hint { display: none; }
.panel {
  position: relative;
  width: min(56rem, 100%);
  margin: .85rem auto 0;
  background: var(--panel);
  border: 1px solid var(--focus);
  box-shadow: 0 12px 25px #000b;
}
.titlebar { cursor: grab; touch-action: none; user-select: none; }
.titlebar:active { cursor: grabbing; }
figure { margin: 0; }
figure a, figure img { display: block; width: 100%; }
figure img { height: auto; }
figcaption { padding: .8rem 1rem; }
@media (max-width: 40rem) {
  .desktop { padding: .75rem; }
  .chrome { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .desktop::before { animation: none; }
}
