:root {
  --paper: #ffffff;      /* the page */
  --ink: #141414;        /* links near the index, the name, the base rule */
  --mute: #a3a09a;       /* links far from the index */
  --tick: #141414;       /* the ticks of the scale */
  --accent: #e5401a;     /* the vermilion index */
  --focus: #141414;      /* the keyboard focus frame */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Anybody Variable', 'Anybody', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 3vw;
  overflow: hidden;
}

.bar {
  position: relative;
  width: min(720px, 94vw);
  height: 60px;
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 5vw, 48px);
}

.bar__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
}

.brand {
  align-self: center;
  margin-top: -8px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(12.5px, 3.6vw, 15px);
  font-variation-settings: 'wdth' 62, 'wght' 760;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 3px;
  outline-offset: 5px;
}

.nav {
  position: relative;
  flex: 1;
  min-width: 0;
  touch-action: pan-y;
}

.list {
  list-style: none;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 13px;
}

.item { display: flex; justify-content: center; }

.link {
  display: inline-flex;
  justify-content: center;
  padding: 3px 4px;
  color: var(--mute);
  text-decoration: none;
  font-size: clamp(12.5px, 3.6vw, 15px);
  line-height: 1.2;
  border-radius: 3px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.link__word {
  display: inline-block;
  white-space: nowrap;
  font-variation-settings: 'wdth' 80, 'wght' 340;
}

.link:focus-visible { box-shadow: 0 0 0 1px var(--focus); }
.brand:focus-visible { outline: 1px solid var(--focus); }

.scale {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 26px;
  pointer-events: none;
}
