:root {
  color-scheme: dark;
  --paper: #e8e7e0;
  --ink: #10110f;
  --field: #181a17;
  --rule: #4c5048;
  --muted: #adb2a9;
  --quiet: #747970;
  --signal: #d8ff2f;
  --good: #92efb7;
  --bad: #ff9e82;
  --warn: #f5cc62;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(232, 231, 224, .07) 31px 32px, transparent 32px),
    var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

code,
output,
.site,
.label,
.number,
button,
a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 66px;
}

.masthead {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 0 0 34px;
  border-bottom: 2px solid var(--paper);
}

.site,
.label {
  margin: 0;
  color: var(--signal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 700px;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 78px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
}

h2 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.025em;
}

h3 {
  margin-bottom: 4px;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.25;
}

.mastheadcopy > p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.input,
.runbar,
.tests,
.source {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.input h2 { margin: 5px 0 8px; }

.quiet {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.filebox {
  display: flex;
  min-height: 106px;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 20px;
  border: 1px dashed #7a8076;
  background: var(--field);
}

.filebox.hot {
  border-color: var(--signal);
  background: #22281a;
}

.filebox input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.choose,
button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}

.choose { padding: 0 14px; }

.filebox p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font: 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.runbar { align-items: center; }

.readout {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
}

.dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #73776f;
}

.dot.running { background: var(--warn); }
.dot.good { background: var(--good); }
.dot.bad { background: var(--bad); }

.readout strong { font-size: 15px; }

.readout p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

button {
  width: min(230px, 100%);
  min-height: 48px;
  padding: 0 16px;
}

button:hover:not(:disabled),
.choose:hover { background: var(--signal); border-color: var(--signal); }

button:disabled { opacity: .4; cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.tests ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.tests li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(160px, 280px);
  gap: 12px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}

.number { color: var(--quiet); font-size: 11px; line-height: 1.5; }

.tests p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

output {
  min-height: 36px;
  padding-left: 13px;
  border-left: 3px solid #73776f;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

li[data-state="running"] output { border-color: var(--warn); color: var(--paper); }
li[data-state="good"] output { border-color: var(--good); color: var(--good); }
li[data-state="bad"] output { border-color: var(--bad); color: var(--bad); }

.sectionhead { display: flex; align-items: end; justify-content: space-between; gap: 18px; }

a { color: var(--signal); font-size: 12px; font-weight: 700; }

.source h2 { margin: 5px 0 0; }

details { min-width: 0; }

summary {
  padding: 12px 0;
  color: var(--paper);
  cursor: pointer;
  font-weight: 700;
}

pre {
  max-height: 540px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  background: #090a09;
  border: 1px solid var(--rule);
  color: #d5ded5;
  font-size: 11px;
  line-height: 1.45;
  tab-size: 2;
  white-space: pre;
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 680px); padding-top: 25px; }
  .masthead,
  .input,
  .runbar,
  .tests,
  .source { grid-template-columns: 1fr; gap: 18px; }
  .masthead { gap: 14px; }
  .runbar { align-items: stretch; }
  button { width: 100%; }
  .tests li { grid-template-columns: 30px minmax(0, 1fr); }
  .tests output { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
