:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #101010;
  --line: #292929;
  --muted: #909090;
  --text: #eeeeec;
  --accent: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid #383838;
  border-radius: 5px;
  color: var(--text);
  background: #141414;
  cursor: pointer;
  font-weight: 550;
}
button:hover,
.button:hover {
  background: #222;
  border-color: #626262;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  background: #ededeb;
  color: #111;
  border-color: #ededeb;
}
.primary:hover {
  background: #fff;
  color: #000;
}
.quiet {
  background: transparent;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.text-link {
  display: inline-flex;
  gap: 30px;
  font-size: 13px;
  color: #d2d2d2;
}
.text-link:hover {
  color: white;
}
header {
  max-width: 1200px;
  margin: auto;
  min-height: 82px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.mark {
  width: 28px;
  height: 28px;
  border: 1px solid #484848;
  display: grid;
  place-items: center;
  font-size: 17px;
  letter-spacing: -2px;
  font-style: italic;
}
.beta {
  font-size: 9px;
  font-weight: 500;
  color: #777;
  letter-spacing: 1px;
  align-self: flex-start;
  margin-top: 3px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  white-space: nowrap;
  color: #a2a2a2;
  font-size: 13px;
}
nav a:hover {
  color: #fff;
}
header > button {
  font-size: 12px;
  min-height: 34px;
  padding: 7px 13px;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 0 32px;
}
.hero {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #888;
}
h1 {
  font-size: clamp(36px, 5.6vw, 66px);
  font-weight: 550;
  letter-spacing: -2.8px;
  line-height: 1.1;
  margin: 18px 0;
}
h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 0 0 20px;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.35px;
  font-weight: 600;
  margin: 0 0 10px;
}
.hero p {
  color: #969696;
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.7;
}
.catalogue {
  padding: 38px 0 70px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 16px;
}
.section-top h2 {
  margin: 0;
}
.count {
  display: inline-block;
  font-size: 12px;
  color: #7c7c7c;
  margin-left: 12px;
  vertical-align: middle;
  font-weight: 400;
  letter-spacing: 0;
}
.search {
  margin: 0;
}
.search input {
  width: 280px;
  font-size: 12px;
  background: #111;
  border-color: #2d2d2d;
  padding: 11px 13px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.filters button {
  min-height: 31px;
  padding: 6px 11px;
  font-size: 12px;
  background: transparent;
  color: #949494;
  border-color: transparent;
}
.filters button.selected {
  background: #1c1c1c;
  color: #fff;
  border-color: #333;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #101010;
  border: 1px solid #2b2b2b;
  border-radius: 7px;
  padding: 22px;
  transition: border-color 0.15s;
}
.card:hover {
  border-color: #575757;
}
.mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.mod-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #1b1b1b;
  color: #e8e8e8;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: -1px;
  font-weight: 650;
}
.pill,
.chip {
  font-size: 10px;
  color: #929292;
  border: 1px solid #303030;
  padding: 5px 7px;
  border-radius: 3px;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.card .description {
  font-size: 12px;
  line-height: 1.75;
  color: #999;
  flex: 1;
  margin: 0 0 25px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7e7e7e;
  font-size: 11px;
  border-top: 1px solid #292929;
  padding-top: 15px;
  gap: 10px;
}
.card-bottom a {
  color: #ddd;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body p {
  color: #999;
  font-size: 12px;
  margin: 0 0 25px;
}
.cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.number {
  font-size: 30px;
  color: #505050;
  letter-spacing: -1px;
}
.submit-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 30px 0;
  margin-top: 35px;
  border-top: 1px solid var(--line);
}
.submit-strip p {
  margin: 0;
  color: #888;
  font-size: 12px;
}
.submit-strip .button {
  font-size: 12px;
}
.page {
  padding: 42px 0 75px;
}
.back {
  display: inline-block;
  font-size: 12px;
  color: #888;
  margin-bottom: 28px;
}
.page-header {
  margin-bottom: 30px;
}
.page-header h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
}
.page-header p {
  color: #999;
  line-height: 1.8;
  max-width: 700px;
  white-space: pre-line;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.panel {
  background: #101010;
  border: 1px solid #292929;
  border-radius: 7px;
  padding: 24px;
  margin-bottom: 18px;
}
.panel p,
small,
.muted {
  color: #999;
  line-height: 1.8;
}
.panel .actions {
  margin-top: 20px;
}
.panel p {
  white-space: pre-line;
}
.form {
  max-width: 680px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin: 16px 0;
  color: #b5b5b5;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: #0b0b0b;
  color: #eee;
  border: 1px solid #353535;
  border-radius: 4px;
  padding: 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 1px solid #888;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.map {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #292929;
  padding: 18px 0;
}
.position {
  font-size: 20px;
  color: #666;
}
.map small {
  display: block;
  font-size: 11px;
}
.record {
  text-align: right;
  font-size: 13px;
}
.map strong {
  overflow-wrap: anywhere;
}
.map button {
  min-height: 30px;
  padding: 6px 9px;
}
.controls {
  display: flex;
  gap: 5px;
}
.gold {
  color: #dfc786;
}
.silver {
  color: #cbd2d8;
}
.bronze {
  color: #cba080;
}
.author {
  color: #a8c4aa;
}
.metric {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.stats .muted {
  font-size: 12px;
}
.empty {
  padding: 35px;
  border: 1px dashed #333;
  color: #888;
  border-radius: 5px;
  grid-column: 1/-1;
  line-height: 1.8;
}
.notice {
  padding: 16px;
  border-left: 1px solid #555;
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  display: block;
  color: #777;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.steps .panel {
  margin: 0;
}
.steps p {
  font-size: 12px;
}
.steps .button {
  font-size: 12px;
  margin-top: 10px;
}
code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #cfcfcf;
}
.error {
  color: #edaaaa;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
dialog {
  width: min(410px, 92vw);
  padding: 32px;
  background: #101010;
  color: #eee;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
}
dialog::backdrop {
  background: #000c;
}
dialog h2 {
  font-size: 28px;
  margin-top: 18px;
}
.close {
  position: absolute;
  right: 9px;
  top: 7px;
  background: none;
  border: none;
  font-size: 23px;
  padding: 5px;
}
.form .primary {
  margin-top: 15px;
}
dialog .primary,
dialog .quiet {
  width: 100%;
  margin-top: 10px;
}
dialog .quiet {
  border: none;
  color: #aaa;
  font-size: 12px;
}
#toast {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 92vw);
  background: #202020;
  color: #eee;
  border: 1px solid #555;
  padding: 14px 20px;
  border-radius: 5px;
  z-index: 20;
  font-size: 13px;
}
footer {
  max-width: 1200px;
  margin: auto;
  padding: 26px 32px;
  border-top: 1px solid #292929;
  display: flex;
  gap: 28px;
  font-size: 11px;
  color: #666;
}
footer span:first-child {
  font-weight: 700;
  color: #bcbcbc;
}
footer a {
  margin-left: auto;
  color: #aaa;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  header {
    gap: 20px;
    flex-wrap: wrap;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    padding: 4px 0;
  }
  header > button {
    margin-left: auto;
  }
  .cards,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0;
  }
}
@media (max-width: 620px) {
  header,
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
  header {
    min-height: 70px;
  }
  nav {
    gap: 22px;
  }
  h1 {
    letter-spacing: -1.7px;
  }
  .hero {
    padding: 42px 0;
  }
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }
  .section-top {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .search input {
    width: 100%;
  }
  .panel {
    padding: 18px;
  }
  .page {
    padding-top: 30px;
  }
  .page-header h1 {
    font-size: 32px;
  }
  .submit-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  footer {
    padding: 25px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  footer a {
    margin-left: 0;
  }
  .map {
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
}
