*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.top__track {
  height: 2px;
  background: #eee;
}

.top__fill {
  height: 100%;
  width: 100%;
  background: #111;
  transition: width 1s linear;
}

.top__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  font: 12px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.top__meta button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #111;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top__meta button:hover {
  color: #666;
}

main {
  max-width: 26rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3rem;
}

main a {
  color: inherit;
}

code {
  font: 13px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: #666;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

main p {
  margin: 0.75rem 0 0;
  color: #666;
}

@media (prefers-reduced-motion: reduce) {
  .top__fill {
    transition: none;
  }
}
