:root {
  --void: #070a0d;
  --panel: #0c1116;
  --ink: #e8eef2;
  --dim: #8b9aa4;
  --line: #1c262e;
  --teal: #3dd6c6;
  --copper: #d4894a;
  --amber: #f0c36a;
  --font: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  background: var(--void);
  color: var(--ink);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(61, 214, 198, 0.07), transparent 55%),
    var(--void);
}

::selection {
  background: var(--teal);
  color: var(--void);
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3.5rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.95rem 1rem 0.85rem;
  background: color-mix(in srgb, var(--void) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  width: min(42rem, 100%);
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 .dot {
  color: var(--amber);
  padding: 0 0.05em;
}

.lede {
  margin: 0.25rem 0 0.85rem;
  color: var(--dim);
  font-size: 0.82rem;
}

#count {
  color: var(--dim);
  font-size: 0.75rem;
  white-space: nowrap;
}

label[for="q"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#q {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.8rem;
  caret-color: var(--teal);
  border-radius: 2px;
}

#q:focus {
  outline: none;
  border-color: var(--teal);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
}

.jump a {
  color: var(--dim);
}

.jump a:hover {
  color: var(--teal);
  text-decoration: none;
}

.cat {
  margin-top: 1.8rem;
  scroll-margin-top: 8.75rem;
}

.cat h2 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.term {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.term:last-child {
  border-bottom: 0;
}

.term h3 {
  margin: 0 0 0.22rem;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 600;
}

.term p {
  margin: 0;
  color: var(--ink);
}

.aka {
  margin-top: 0.28rem !important;
  color: var(--dim);
  font-size: 0.78rem;
}

#empty {
  margin: 2rem 0 0;
  color: var(--dim);
}

.foot {
  margin-top: 2.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.78rem;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 5;
  background: var(--panel);
  color: var(--ink);
  padding: 0.35rem 0.55rem;
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .brand-row {
    align-items: flex-end;
  }
}
