@font-face {
  font-family: "JetBrains Mono";
  src: url("/font/JetBrainsMono.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

* { box-sizing: border-box; }

html { color-scheme: dark; background: #000; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 48px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: #000;
  font: 13px/1.6 "JetBrains Mono", monospace;
}

.shell { width: min(100%, 600px); }

.mark { display: inline-block; color: inherit; text-decoration: none; }
.mark pre {
  margin: 0;
  font: 13px/1.1 "JetBrains Mono", monospace;
  white-space: pre;
}

.route { margin: 8px 0 30px; font-size: 11px; }
h1 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.intro { max-width: 56ch; margin: 0 0 32px; }

form { max-width: 440px; }
label { display: block; margin: 0 0 6px; }
input {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0 0 20px;
  padding: 8px 10px;
  border: 1px solid #888;
  border-radius: 0;
  outline: none;
  background: #000;
  color: #fff;
  font: inherit;
}
input::placeholder { color: #999; }
input:focus-visible { border-color: #fff; outline: 1px solid #fff; outline-offset: 2px; }
.hint { margin: -12px 0 24px; color: #aaa; font-size: 11px; }

button {
  padding: 10px 14px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #000; color: #fff; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }

.result { margin: 0; }
.result:not(:empty) { margin-top: 16px; }
.result.error { text-decoration: underline; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -10000px; }

footer { margin-top: 42px; color: #aaa; font-size: 11px; }
footer p { margin: 0; }
footer strong { color: #fff; font-weight: 400; }
.foot { margin-top: 30px; }
a { color: #fff; }

@media (max-width: 620px) {
  body { padding: 28px 18px; align-items: flex-start; }
  .mark pre { font-size: clamp(7px, 1.95vw, 13px); }
  .route { margin-bottom: 26px; }
}
