/* The spotlight nav: links on a black page, a stage light above them and its warm beam. */
:root {
  --page: #000000;          /* the page */
  --dark: #55555d;          /* a link out of the light */
  --lit: #fff4e2;           /* a link in the light */
  --beam: 255, 233, 196;    /* the colour of the light, as red, green and blue */
  --lamp: #2a2a30;          /* the light's can */
}

* {
  box-sizing: border-box;
}

/* a tap is a click at once: no wait for a double tap */
html {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--lit);
  font-family: 'Mozilla Headline Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 190px 16px 64px;
}

.sl {
  position: relative;
  font-size: clamp(19px, 2.5vw, 30px);
}

.sl__list {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(10px, 3.2vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sl__link {
  display: block;
  padding: 14px 8px;
  color: var(--dark);
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sl__link:focus {
  outline: none;
}

.sl__link:focus-visible {
  outline: 1px solid rgba(var(--beam), 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* the beam and the pool of light lie under the words, the light itself over them */
.sl__light,
.sl__lamp {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.sl__lamp {
  z-index: 2;
}

.sl__frame {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -24px;
  pointer-events: none;
}

.sl__beam-near {
  stop-color: rgb(var(--beam));
  stop-opacity: 0.3;
}

.sl__beam-mid {
  stop-color: rgb(var(--beam));
  stop-opacity: 0.13;
}

.sl__beam-far {
  stop-color: rgb(var(--beam));
  stop-opacity: 0;
}

.sl__pool-mid {
  stop-color: rgb(var(--beam));
  stop-opacity: 0.3;
}

.sl__pool-half {
  stop-color: rgb(var(--beam));
  stop-opacity: 0.12;
}

.sl__pool-edge {
  stop-color: rgb(var(--beam));
  stop-opacity: 0;
}

.lamp__yoke {
  fill: none;
  stroke: #3d3d44;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lamp__can {
  fill: var(--lamp);
}

.lamp__band {
  fill: #393941;
}

.lamp__sheen {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.lamp__lens {
  fill: rgb(var(--beam));
}

.lamp__bolt {
  fill: #4a4a52;
}

.lamp__bar {
  fill: #26262b;
}

.lamp__stem {
  stroke: #33333a;
  stroke-width: 3;
  stroke-linecap: round;
}
