:root {
  --fondo: #ffffff;
  --testo: #15171c;
  --testo-2: #5d616c;
  --testo-3: #9ea2ad;
  --linea: #ecedf0;
  --traccia: #f3f4f6;
  --accento: #3651d4;        /* the single accent: Lumen's ink blue, on the current level, the focus ring and the hover */
  --accento-velo: #eef1fd;
  --ombra: 21, 23, 28;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--fondo);
  color: var(--testo);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: min(5vh, 5vw);
}

/* everything is in em: the size follows both the width and the height of the window */
.doc {
  font-size: clamp(10.5px, min(2.15vw, 3.15vh), 16px);
  width: min(44em, 100%);
  position: relative;
}

/* ---- the top bar ---- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1em;
}
.brand { display: inline-flex; align-items: center; gap: .45em; font-weight: 640; font-size: 1.02em; letter-spacing: -.01em; }
.brand__mark { width: 1.25em; height: 1.25em; fill: var(--testo); }
.brand__cut { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.brand__sub { color: var(--testo-3); font-weight: 500; }
.bar__search {
  display: inline-flex; align-items: center; gap: .5em;
  height: 2.2em; padding: 0 .55em 0 .7em;
  border: 1px solid var(--linea); border-radius: .7em;
  color: var(--testo-3); font-size: .86em;
}
.bar__search svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.bar__search kbd {
  font: inherit; font-size: .85em; color: var(--testo-2);
  border: 1px solid var(--linea); border-radius: .35em; padding: 0 .35em; line-height: 1.4;
}

/* ---- the trail ---- */
.trail {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: .55em 0;
}
.trail__track { position: relative; }
.trail__list {
  list-style: none;
  display: flex;
  align-items: center;
  min-height: 2.3em;
  position: relative;
  z-index: 1;
}
.crumb {
  flex: none;
  overflow: hidden;
  white-space: nowrap;
  padding: .2em 0;
  margin: -.2em 0;
}
.crumb__in { display: inline-flex; align-items: center; white-space: nowrap; }
.sep { width: .95em; height: .95em; margin: 0 .2em; fill: none; stroke: var(--testo-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.crumb__btn {
  display: inline-flex; align-items: center; gap: .4em;
  height: 2.1em; padding: 0 .6em;
  border-radius: .6em;
  color: var(--testo-2);
  font-size: .95em;
  font-weight: 480;
  font-stretch: 100%;
  transition: color .25s ease;
  outline: none;
}
.crumb__btn:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accento), 0 0 0 3px var(--accento-velo); color: var(--testo); }
.crumb__ico {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.crumb--home .crumb__ico { color: var(--testo-3); }
.crumb__kind { width: 0; opacity: 0; margin-right: -.4em; transition: opacity .3s ease; }
.crumb.is-last .crumb__btn { color: var(--testo); font-weight: 650; }
.crumb.is-last .crumb__kind { width: 1.05em; opacity: 1; margin-right: 0; color: var(--accento); }
.crumb__more {
  width: 2.4em; justify-content: center; padding: 0;
  background: var(--traccia);
  height: 1.7em; border-radius: 999px;
  margin: 0 .2em;
}
.crumb__more svg { width: 1.1em; height: 1.1em; fill: var(--testo-2); }
.crumb__more[aria-expanded="true"] { background: var(--accento-velo); }
.crumb__more[aria-expanded="true"] svg { fill: var(--accento); }
@media (hover: hover) {
  .crumb__btn:hover { color: var(--testo); }
}

/* the soft pill that slides behind the crumb under the pointer */
.trail__pill {
  position: absolute;
  left: 0; top: 50%;
  height: 2.1em; margin-top: -1.05em;
  width: 4em;
  border-radius: .6em;
  background: var(--traccia);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---- the menu of the hidden levels ---- */
.menu {
  position: absolute;
  top: calc(100% - .2em);
  left: 0;
  z-index: 5;
  min-width: 12em;
  padding: .35em;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: .85em;
  box-shadow: 0 .9em 2.2em -.8em rgba(var(--ombra), .22), 0 .2em .5em -.2em rgba(var(--ombra), .12);
  transform-origin: 1.6em 0;
}
.menu[hidden] { display: none; }
.menu__item {
  display: flex; align-items: center; gap: .55em;
  width: 100%;
  height: 2.2em;
  padding: 0 .7em;
  border-radius: .55em;
  color: var(--testo-2);
  font-size: .95em;
  outline: none;
}
.menu__item svg { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.menu__item .menu__depth { flex: none; width: .1em; }
.menu__item.is-hot, .menu__item:focus-visible { background: var(--accento-velo); color: var(--accento); }
@media (hover: hover) {
  .menu__item:hover { background: var(--accento-velo); color: var(--accento); }
}

/* ---- the page under the trail ---- */
.page { padding-top: 1.5em; }
.page__head { margin-bottom: 1em; }
.page__title {
  font-size: 2.15em;
  font-weight: 660;
  letter-spacing: -.025em;
  line-height: 1.15;
  height: 1.15em;
  overflow: hidden;
  position: relative;
}
.roll { display: block; position: relative; }
.roll__line { display: block; white-space: nowrap; }
.page__meta { color: var(--testo-3); font-size: .9em; margin-top: .45em; height: 1.4em; }

.rows { list-style: none; display: grid; gap: .3em; min-height: 11.6em; align-content: start; }
.row__btn {
  display: grid;
  grid-template-columns: 2.2em 1fr auto;
  align-items: center;
  gap: .75em;
  width: 100%;
  padding: .55em .7em .55em .55em;
  border-radius: .8em;
  border: 1px solid var(--linea);
  background: #fff;
  outline: none;
  transition: border-color .25s ease, box-shadow .3s ease, background .25s ease;
}
.row__btn:focus-visible { border-color: var(--accento); box-shadow: 0 0 0 3px var(--accento-velo); }
.row__btn.is-hot { border-color: #d8ddf6; box-shadow: 0 .5em 1.2em -.8em rgba(54, 81, 212, .35); background: #fbfcff; }
@media (hover: hover) {
  .row__btn:hover { border-color: #d8ddf6; box-shadow: 0 .5em 1.2em -.8em rgba(54, 81, 212, .35); background: #fbfcff; }
  .row__btn:hover .row__go { transform: translateX(.2em); color: var(--accento); }
}
.row__ico {
  width: 2.2em; height: 2.2em; border-radius: .6em;
  display: grid; place-items: center;
  background: var(--traccia); color: var(--testo-2);
}
.row__ico svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.row__txt { min-width: 0; }
.row__name { display: block; font-weight: 600; font-size: .98em; letter-spacing: -.005em; }
.row__desc { display: block; color: var(--testo-3); font-size: .84em; margin-top: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__go { width: 1em; height: 1em; fill: none; stroke: var(--testo-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.3,1.4,.5,1), color .25s ease; }
.row__btn.is-hot .row__go { transform: translateX(.2em); stroke: var(--accento); }

/* a leaf page shows a few lines instead of a list */
.leaf { display: grid; gap: .7em; justify-items: start; color: var(--testo-2); font-size: .95em; line-height: 1.55; }
.leaf code {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .88em;
  color: var(--testo);
  background: var(--traccia);
  border-radius: .45em;
  padding: .45em .7em;
}
.leaf code b { color: var(--accento); font-weight: 600; }

@media (max-width: 520px) {
  .bar__search span, .bar__search kbd { display: none; }
  .row__desc { display: none; }
  .rows { min-height: 9.6em; }
}
