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

html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.2px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

main {
  width: 100%;
  max-width: 420px;
}

p + p {
  margin-top: 32px;
}

.serif {
  font-family: "Averia Serif Libre", serif;
  font-weight: 300;
  letter-spacing: normal;
}

a {
  color: #1a1a1a;
  text-decoration: none;
}

.highlight {
  --color: rgb(0, 170, 255);
  display: inline;
  margin: -0.12671em -0.402962em -0.17329em -0.0970383em;
  padding: 0.12671em 0.402962em 0.17329em 0.0970383em;
  border-radius: 0.5em 0.3em;
  background-color: transparent;
  background-image: linear-gradient(
    89.7deg,
    color-mix(in srgb, var(--color), transparent 50%),
    color-mix(in srgb, var(--color), transparent 90%) 4%,
    color-mix(in srgb, var(--color), transparent 70%) 96%,
    color-mix(in srgb, var(--color), transparent 30%)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 96px;
  pointer-events: none;
}

.bottom-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  opacity: 0.5;
}

.pill-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  pointer-events: auto;
}

@media (min-width: 768px) {
  .pill-nav {
    display: flex;
  }
}

.pill-indicator {
  position: absolute;
  top: 50%;
  left: 6px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.04);
  transform: translateY(-50%);
  pointer-events: none;
}

.pill-indicator.is-ready {
  transition: left 0.2s ease-out, width 0.2s ease-out;
}

.pill-item {
  position: relative;
  display: block;
  height: 100%;
  padding: 7px 12px;
  border: 0;
  border-radius: 9999px;
  background: none;
  font: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  color: #1a1a1a;
  text-decoration: none;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}

.pill-item.is-active {
  opacity: 1;
}

.pill-item span {
  display: block;
  white-space: nowrap;
  transition: transform 0.2s ease-out;
}

.pill-item:active span {
  transform: scale(0.9);
}
