:root {
  color-scheme: dark;
  --ambient: 139 71 239;
  --text: #f4edf9;
  --ink: var(--text);
  --muted: #b9acc8;
  font-family: system-ui, sans-serif;
  background: #08060e;
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { max-width: none; padding: 0;
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 50% 57%, rgb(var(--ambient) / .15), transparent 53%),
    radial-gradient(ellipse at 50% 105%, #20142a, transparent 56%), #08060e;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .075;
  background-image: radial-gradient(#dac2ff 1px, transparent 1px);
  background-size: 5px 5px;
  mask-image: radial-gradient(ellipse, transparent 20%, black);
}
button { font: inherit; color: inherit; }
button, label, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #e5d1ff; outline-offset: 5px; }
.exhibit {
  width: min(1280px, 100%);
  margin: auto;
  min-height: 100svh;
  padding: 25px clamp(17px, 5vw, 78px) 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}
.mast { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; }
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .28em;
}
.wordmark i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #dcc1ff;
  box-shadow: inset 0 0 7px rgb(var(--ambient) / .7), 0 0 12px rgb(var(--ambient) / .5);
}
.quiet {
  cursor: pointer;
  border: 1px solid #cbb0f338;
  border-radius: 999px;
  background: #dcc0ff09;
  min-height: 44px;
  min-width: 44px;
  padding: 0 13px;
}
.quiet:hover { background: #dcc0ff1e; }
#expand { font-size: 1.3rem; line-height: 1; }
.stage { display: grid; justify-items: center; align-content: center; min-width: 0; }
.intro { z-index: 1; text-align: center; margin: -3px 0 16px; }
#title {
  margin: 0;
  font: italic 400 clamp(2.45rem, 7.2vw, 5.6rem)/1 Georgia, serif;
  letter-spacing: -.085em;
  padding-right: .085em;
  text-shadow: 0 0 46px rgb(var(--ambient) / .32);
}
.intro p { color: var(--muted); margin: 13px 0 0; font-size: 1rem; }
.apparatus { position: relative; margin: 0 0 30px; }
.orb {
  width: min(76vw, 59svh, 560px);
  min-width: min(65vw, 240px);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  touch-action: none;
  cursor: crosshair;
  background:
    radial-gradient(ellipse at 34% 20%, rgb(var(--ambient) / .17), transparent 37%),
    radial-gradient(circle at 50% 50%, #1f0f32, #080511 71%);
  box-shadow: 0 0 2px 1px #dcbdff77, 0 0 40px rgb(var(--ambient) / .25),
    0 0 110px rgb(var(--ambient) / .14), inset 0 0 50px rgb(var(--ambient) / .18);
}
canvas { position: absolute; width: 100%; height: 100%; inset: 0; }
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 27% 15%, #ead4ff27, transparent 31%),
    radial-gradient(ellipse at 75% 82%, rgb(var(--ambient) / .24), transparent 31%),
    radial-gradient(circle, transparent 57%, #07050d80 68%, transparent 70%);
  box-shadow: inset 9px 11px 22px -13px #f1deffba, inset -7px -10px 25px -12px rgb(var(--ambient) / .95);
}
.floor {
  position: absolute;
  z-index: -1;
  inset: auto 0 -2.375rem;
  height: 67px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgb(var(--ambient) / .36), transparent 62%);
  filter: blur(12px);
}
.console {
  width: min(100%, 550px);
  display: grid;
  grid-template-columns: auto minmax(85px, 1fr) auto;
  gap: clamp(9px, 3.3vw, 34px);
  align-items: center;
  justify-self: center;
  padding: 13px clamp(9px, 2.5vw, 24px);
  background: linear-gradient(125deg, #221931d9, #120e1ad9);
  border: 1px solid #dac0ff29;
  border-radius: 22px;
  box-shadow: 0 15px 55px #030205a6, inset 0 1px #fff1;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .energy label, output { color: var(--muted); font-size: .875rem; }
.swatches { display: flex; }
.swatches label {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.swatches input { position: absolute; opacity: 0; }
.swatch {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 0 12px -3px var(--b);
}
.swatches input:checked + .swatch { outline: 1px solid #f2dfff; outline-offset: 4px; }
.swatches input:focus-visible + .swatch { outline: 2px dashed white; outline-offset: 6px; }
.violet { --a: #f58aee; --b: #7643ff; }
.lagoon { --a: #9affdc; --b: #0079e6; }
.ember { --a: #ffe297; --b: #ef315c; }
.opal { --a: #ffb6cf; --b: #8ecfff; }
.energy { display: grid; grid-template-columns: 1fr auto; }
output { font-variant-numeric: tabular-nums; }
.energy input { grid-column: span 2; width: 100%; height: 36px; margin: 4px 0 0; accent-color: #dfc6ff; cursor: pointer; }
.motion { font-size: .875rem; min-width: 72px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 440px) {
  .exhibit { padding-top: 16px; }
  .console { grid-template-columns: minmax(0, 1fr) auto; gap: .625rem; }
  .energy { grid-row: 2; grid-column: 1 / -1; }
  .swatches { flex-wrap: wrap; }
  .swatches label { width: 2.75rem; height: 2.75rem; }
  .motion { min-width: 3.85rem; padding: 0 .5rem; }
}
@media (max-height: 680px) {
  .exhibit { padding-top: 10px; padding-bottom: 12px; }
  .intro { margin: 0 0 12px; }
  #title { font-size: clamp(2rem, 6.2vw, 4.5rem); }
  .apparatus { margin-bottom: 21px; }
}
.energy input {
  appearance: none;
  background: none;
  --energy: 62%;
}
.energy input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgb(var(--ambient)), #f3d6ff var(--energy), #4b3b58 var(--energy));
}
.energy input::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgb(var(--ambient)), #f3d6ff var(--energy), #4b3b58 var(--energy));
}
.energy input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #e9d3ff;
  box-shadow: 0 0 12px rgb(var(--ambient) / .85);
}
.energy input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #e9d3ff;
  box-shadow: 0 0 12px rgb(var(--ambient) / .85);
}

body:has([data-plasma-work]) > header {
  box-sizing: border-box;
  padding-inline: clamp(0.9rem, 4vw, 3rem);
}
body:has([data-plasma-work]) .page-body {
  max-width: none;
  padding: 0;
}
[data-plasma-work] { min-height: calc(100svh - 5rem); }

[data-plasma-work] #title { color: var(--text); }
