:root {
  --color-deep-blue: #0A46BD;
  --color-bright-blue: #094FDB;
  --color-sky-blue: #1963F5;
  --color-orange: #F59700;
  --color-light-orange: #FFB936;
  --color-red: #F20530;
  --color-text: #101828;
  --color-muted: #5b667a;
  --color-surface: #ffffff;
  --color-background: #f3f7ff;
  --color-border: rgba(10, 70, 189, 0.18);
  --color-shadow: rgba(5, 24, 71, 0.12);
  --color-link: #84a11c;
  --color-good: #157347;
  --color-good-bg: #ebfff3;
  --color-bad-bg: #fff1f4;
  --font-body: "Inter", sans-serif;
  --font-display: "Bebas Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 10px 2em;
  background: #f5f5f5;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1em;
  text-align: center;
}

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

.container {
  position: relative;
  margin: auto;
  max-width: 1200px;
}

.heading-and-search {
  display: inline-block;
  width: min(100%, 5em);
  margin: 0.5em auto;
  padding: 0;
  border: none;
  border-bottom: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: none;
  color: #111;
  caret-color: transparent;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.03em;
  text-align: center;
}

.heading-and-search::placeholder {
  color: #111;
}

.heading-and-search:focus,
.heading-and-search:active {
  outline: none;
  border-bottom-color: rgba(0, 0, 0, 0.2);
}

#stats {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  gap: 10px;
  margin: 10px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.4em 0.8em;
  border: 2px solid #0003;
  border-radius: 1.6em;
  background: #eee;
  color: #333;
  transition: 0.1s ease;
}

.stat-pill:hover {
  border-color: #333;
  background: #fff;
}

.stat-pill div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stat-pill svg {
  width: 1.45em;
  height: 1.45em;
}

.stat-pill.is-good {
  color: var(--color-good);
}

.stat-pill.is-bad {
  color: var(--color-red);
}

.section-heading {
  margin: 1.1em 0 0.5em;
  color: #111;
  font-family: var(--font-body);
  font-size: 2em;
  font-weight: 800;
}

.section-heading .hash {
  margin-left: 0.4em;
  color: inherit;
  opacity: 0.22;
}

.section-heading .hash svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin-top: -0.3em;
}

.embedded-cards {
  text-align: center;
}

.card-link {
  display: inline-block;
  padding: 0;
}

.card {
  display: inline-block;
  width: 360px;
  max-width: calc(100vw - 40px);
  margin: 15px 10px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--color-surface);
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.13);
  vertical-align: top;
  transition: 0.2s ease;
  padding-bottom: 20px;
}

.card-link:hover .card {
  transform: scale(1.03);
  box-shadow:
    0 6px 9px rgba(0, 0, 0, 0.13),
    0 0 0 2px #333;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2em 0;
  color: #fff;
}

.card-icon svg {
  width: auto;
  height: 4em;
}

.card h3 {
  margin: 20px 0;
  font-size: 1.5em;
  font-weight: 800;
  color: #111;
}

.card p {
  display: flex;
  min-height: 3em;
  margin: 0;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  color: #333;
}

.card span {
  display: inline-block;
  padding: 0 25px;
  margin-top: 14px;
  color: var(--color-link);
  font-weight: 600;
}

.empty-state {
  margin-top: 32px;
  color: var(--color-muted);
  font-weight: 600;
}

@media (max-width: 1000px) {
  #stats {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #e2e8f5;
    --color-muted: #8b96b0;
    --color-surface: #1a2035;
    --color-background: #0f1117;
    --color-border: rgba(100, 150, 255, 0.18);
    --color-shadow: rgba(0, 0, 0, 0.4);
    --color-good: #8ab4d4;
    --color-good-bg: #1a2035;
    --color-bad-bg: #2a0d14;
  }

  body {
    background: #0f1117;
    color: var(--color-text);
  }

  .heading-and-search {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
  }

  .heading-and-search::placeholder {
    color: var(--color-text);
  }

  .heading-and-search:focus,
  .heading-and-search:active {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }

  .stat-pill {
    border-color: rgba(255, 255, 255, 0.1);
    background: #1a2035;
    color: #c0cbdd;
  }

  .stat-pill:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: #232d48;
  }

  .section-heading {
    color: var(--color-text);
  }

  .card-link:hover .card {
    box-shadow:
      0 6px 9px rgba(0, 0, 0, 0.4),
      0 0 0 2px rgba(255, 255, 255, 0.5);
  }

  .card h3 {
    color: var(--color-text);
  }

  .card p {
    color: #9aaac0;
  }
}
