/* The nav with a drop on the wire. The colours stay here, so the Playground's Palette can change them.
   On a real site the bar is the header: the wire sits right under the links and the drop marks the page you are on. */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --soft: #9a9a96;
  --hair: #c9c8c2;
  --accent: #2b62e5;
  --glass: #d6e1e7;
  --glass-hi: #ffffff;
  --glass-lo: #8a9ea9;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.bar {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  padding-bottom: clamp(72px, 20vh, 96px);
  touch-action: pan-y;
}

.brand {
  margin: 0 0 clamp(18px, 5vh, 30px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.02em;
}
.brand__name { font-weight: 640; font-stretch: 108%; }
.brand__note { color: var(--soft); }

.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.link {
  position: relative;
  display: block;
  padding: 8px 2px 12px;
  color: var(--soft);
  text-decoration: none;
  font-size: clamp(13px, 3.9vw, 19px);
  font-weight: 420;
  font-stretch: 100%;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.link__word {
  display: inline-block;
  will-change: transform;
}
.link[aria-current='page'] { color: var(--accent); }
.link:focus-visible .link__word { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

@media (hover: hover) {
  .link { cursor: pointer; }
}

.wire {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.wire__line {
  fill: none;
  stroke: var(--hair);
  stroke-width: 1;
  stroke-linecap: round;
}
.pin { fill: var(--paper); stroke: var(--soft); stroke-width: 1; }
.drop__body { stroke: none; }
.drop__rim {
  fill: none;
  stroke: var(--glass-lo);
  stroke-width: 0.9;
  stroke-opacity: 0.9;
}
.drop__shine { fill: #ffffff; opacity: 0.9; }
.drop__glint { fill: #ffffff; opacity: 0.8; }
.drop__shadow { fill: var(--glass-lo); opacity: 0.16; }
.bead { fill: url(#drop-fill); stroke: var(--glass-lo); stroke-width: 0.6; opacity: 0; }

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 0.02em;
  color: var(--soft);
}
#drop-fill stop:nth-child(1) { stop-color: var(--glass-hi); }
#drop-fill stop:nth-child(2) { stop-color: var(--glass); }
#drop-fill stop:nth-child(3) { stop-color: var(--glass-lo); }
