:root {
  color-scheme: dark;
  --background: #0b0c0e;
  --surface: #111317;
  --surface-raised: #17191e;
  --text: #f3f3f4;
  --muted: #90949d;
  --line: #292c33;
  --line-strong: #3a3e47;
  --accent: #ff7417;
  --danger: #f06b6b;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 72px 0;
}

header {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 104px;
  margin-bottom: 44px;
}

.xns-brand {
  display: block;
  flex: 0 0 136px;
  width: 136px;
  height: 102px;
}

.xns-brand img {
  display: block;
  width: 136px;
  height: 102px;
}

.indexer-brand {
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
  font-size: 34px;
  font-weight: 760;
  line-height: 1;
}

.indexer-brand span {
  color: var(--accent);
}

form {
  padding-bottom: 32px;
}

form.with-result {
  border-bottom: 1px solid var(--line);
}

label,
dt {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 52px;
  border-radius: 5px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line-strong);
  padding: 0 16px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

input::placeholder {
  color: #62666f;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

button {
  border: 1px solid var(--accent);
  padding: 0 24px;
  color: #0b0c0e;
  background: var(--accent);
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: #ff8938;
}

.result,
.message {
  margin-top: 32px;
}

.name {
  margin: 0;
  padding: 0;
  font-size: 30px;
  line-height: 1.2;
}

dl,
dd {
  margin: 0;
}

dl > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.split > div {
  min-width: 0;
}

dd {
  font-size: 15px;
  font-weight: 650;
}

code {
  color: #d9dbe0;
  overflow-wrap: anywhere;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
}

ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.message {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  background: var(--surface);
}

.message strong {
  display: block;
  margin-bottom: 6px;
}

.message p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.error {
  border-left-color: var(--danger);
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 760px);
    padding: 36px 0;
  }

  header {
    gap: 18px;
    min-height: 78px;
    margin-bottom: 36px;
  }

  .xns-brand,
  .xns-brand img {
    width: 100px;
    height: 75px;
  }

  .xns-brand {
    flex-basis: 100px;
  }

  .indexer-brand {
    padding-left: 18px;
    font-size: 27px;
  }

  .search,
  .split {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
