@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --panel: #0e0e11;
  --line: #1c1c21;
  --line2: #26262c;
  --text: #e8e8eb;
  --dim: #7a7a84;
  --faint: #7a7a87;
  --ok: #d9dbe2;
  --no: #ff5a6a;
  --a2: #d84557;
  --g1: 150, 18, 34;
  --f2: #8f1424;
  --bar: #151519;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color .2s, color .2s;
}

a:hover {
  border-color: var(--ok);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 3px 3px;
}

.dotstage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px 120px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 -28px;
  padding: 14px 28px;
  background: rgba(9, 9, 11, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.bar .brand {
  color: var(--a2);
  border: 0;
}

.bar .req {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.bar .req .sep {
  color: var(--faint);
}

.status {
  color: var(--ok);
  transition: color .2s;
}

.status.bad {
  color: var(--no);
}

.tick {
  flex: 0 1 380px;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--faint);
  text-align: right;
}

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

.tick .ok {
  color: var(--ok);
}

.tick .no {
  color: var(--no);
}

.tick.flash {
  animation: in .35s ease-out;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.np {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.np i {
  width: 5px;
  height: 5px;
  background: var(--line2);
  transition: background .06s;
}

.np.live i.on {
  background: var(--a2);
}

.np em {
  font-style: normal;
  margin-left: 6px;
  min-width: 64px;
  transition: opacity .18s ease, transform .18s ease;
}

.np em.swap {
  opacity: 0;
  transform: translateY(-3px);
}

.np.live em {
  color: var(--text);
}

.snd {
  all: unset;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  border: 1px solid var(--line2);
  padding: 2px 8px;
  margin-left: 12px;
  min-width: 10ch;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s, border-color .2s;
}

.snd:hover,
.snd.on {
  color: var(--a2);
  border-color: var(--a2);
}

.snd:focus-visible {
  outline: 1px solid var(--a2);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: end;
  padding: 150px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 15vw, 164px);
  line-height: .86;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.namewrap {
  touch-action: manipulation;
}

.namewrap.fx h1 {
  color: transparent;
}

.padhint {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.padhint b {
  display: inline-block;
  font-weight: 400;
  color: var(--dim);
  border: 1px solid var(--line2);
  padding: 0 6px;
  margin: 0 2px;
  transition: color .1s, border-color .1s;
}

.padhint b.hit {
  color: var(--a2);
  border-color: var(--a2);
}

.hero p {
  margin: 26px 0 0;
  max-width: 460px;
  font-size: 18px;
  color: var(--dim);
}

.hero p b {
  color: var(--text);
  font-weight: 500;
}

.hero p b.c1 {
  color: var(--ok);
}

.hero p b.c2 {
  color: var(--a2);
}

.token {
  position: relative;
  border: 1px solid var(--line2);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
}

.token::before,
.token::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--ok);
  border-style: solid;
  transition: border-color .3s;
}

.token::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.token::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.token.bad::before,
.token.bad::after {
  border-color: var(--no);
}

.token .th {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}

.token .enc {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  word-break: break-all;
  line-height: 1.55;
  font-size: 11px;
  max-height: 92px;
  overflow: hidden;
}

.enc .h {
  color: var(--a2);
}

.enc .p {
  color: var(--ok);
}

.enc .s {
  color: var(--dim);
}

.token.bad .enc .s {
  color: var(--no);
}

.token .dec {
  padding: 12px 14px;
  line-height: 1.8;
  color: var(--dim);
}

.dec .key {
  color: var(--text);
}

.dec .val {
  color: var(--ok);
}

.dec [contenteditable] {
  outline: none;
  border-bottom: 1px dashed var(--faint);
  cursor: text;
  padding: 0 1px;
}

.dec [contenteditable]:focus {
  border-color: var(--ok);
  background: rgba(var(--g1), .08);
}

.token .sig {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.verdict {
  color: var(--faint);
}

.verdict::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  background: currentColor;
}

.verdict.grant {
  color: var(--ok);
}

.verdict.deny {
  color: var(--no);
}

.verdict.eval::before {
  animation: pulse .5s ease-in-out infinite alternate;
}

@keyframes pulse {
  to {
    opacity: .2;
  }
}

.scope {
  padding: 56px 0 16px;
  border-bottom: 1px solid var(--line);
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.on {
  opacity: 1;
  transform: none;
}

.scope-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 12px;
}

.scope-head .name {
  color: var(--text);
}

.scope-head .name i {
  font-style: normal;
  color: var(--a2);
  margin-right: 10px;
}

.res {
  border-top: 1px solid var(--line);
}

.res > button {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 220px 1fr 24px;
  gap: 6px 28px;
  width: 100%;
  padding: 20px 0;
  cursor: pointer;
}

.res > button:focus-visible {
  outline: 1px solid var(--ok);
  outline-offset: 4px;
}

.res .k,
.row .k {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.res .k {
  transition: color .2s;
}

.row .k a {
  border: 0;
}

.res > button:hover .k,
.row .k a:hover {
  color: var(--a2);
}

.res .v,
.row .v {
  color: var(--dim);
  font-size: 15px;
}

.res .plus {
  font-family: var(--mono);
  color: var(--faint);
  text-align: right;
  transition: transform .3s, color .2s;
}

.res.open .plus {
  transform: rotate(45deg);
  color: var(--ok);
}

.attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

.detail {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .4s ease, visibility .4s;
}

.res.open .detail {
  grid-template-rows: 1fr;
  visibility: visible;
}

.detail > div {
  overflow: hidden;
}

.detail .inner {
  margin: 0 0 22px 248px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--dim);
}

.detail .inner b {
  font-weight: 400;
  color: var(--text);
}

.detail .inner .e {
  color: var(--no);
}

.detail .inner .w {
  color: #d9c38a;
}

.detail .links {
  margin-top: 10px;
  display: flex;
  gap: 16px;
}

.detail .links a {
  color: var(--text);
}

.redact {
  display: inline-block;
  position: relative;
  height: 1.1em;
  vertical-align: -0.18em;
  background: var(--bar);
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, #1e1e23 5px 6px);
  border-radius: 2px;
  cursor: help;
  font-family: var(--mono);
  font-size: .9em;
  line-height: 1.1em;
  color: var(--no);
  white-space: nowrap;
  text-align: left;
}

.redact[data-len="7"] {
  width: 7ch;
}

.redact[data-len="9"] {
  width: 9ch;
}

.redact .why {
  position: absolute;
  left: 0;
  top: 140%;
  z-index: 5;
  width: max-content;
  max-width: 60vw;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--no);
  background: var(--bg);
  border: 1px solid var(--line2);
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.redact:hover .why,
.redact:focus .why {
  opacity: 1;
}

.kv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 28px;
  font-size: 15px;
}

.kv .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  padding-top: 3px;
}

.kv .gap {
  margin-top: 22px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
}

.tools > span {
  white-space: nowrap;
}

.tools > span:not(:last-child)::after {
  content: "·";
  color: var(--a2);
  opacity: .6;
  margin: 0 9px;
}

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 6px 28px;
  padding: 20px 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

.lost {
  padding: 150px 0 96px;
  font-size: 18px;
  color: var(--dim);
}

.lost p {
  margin: 0 0 12px;
}

.fb {
  overflow-anchor: none;
}

.fb.unfocus .ch {
  opacity: .42;
}

.fb.unfocus .ch.lit,
.fb.unfocus .ch.rim,
.fb.unfocus .ch.hot {
  opacity: 1;
}

.ch {
  transition: color .25s ease;
}

.ch.lit {
  color: #f4f4f7;
  text-shadow: 0 0 12px rgba(207, 44, 64, .35);
}

.ch.rim {
  color: var(--a2);
}

.ch.hot {
  color: var(--a2);
  transition: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tick.flash,
  .verdict.eval::before {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 0 56px;
  }

  .bar .req .hide-s,
  .tick {
    display: none;
  }

  .lost {
    padding: 64px 0 56px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px 60px;
  }

  .bar {
    margin: 0 -18px;
    padding: 14px 18px;
  }

  .bar .req,
  .np em {
    display: none;
  }

  .snd {
    margin: -4px 0;
    padding: 6px 10px;
  }

  .res > button {
    grid-template-columns: 1fr 24px;
  }

  .res .v {
    grid-column: 1 / -1;
  }

  .res .k {
    grid-row: 1;
  }

  .res .plus {
    grid-row: 1;
    grid-column: 2;
  }

  .detail .inner {
    margin-left: 0;
  }

  .kv,
  .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .kv .k {
    padding-top: 12px;
  }
}
