:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #f5f7fb;
  color: #1f2a44;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.subheading {
  margin: 0;
  font-size: 1rem;
  color: #4b5563;
}

.status {
  padding: 10px 16px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
}

.status.error {
  background: #fee2e2;
  color: #991b1b;
}

.controls {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  width: min(420px, 100%);
}

.search input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d6d9e0;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: #ffffff;
  border: 1px solid #e4e7ef;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.card--permanent {
  background: #c30010;
  border-color: #c30010;
  color: #ffffff;
}

.card--ready {
  background: #51c300;
  border-color: #51c300;
  color: #ffffff;
}

.card--permanent .pill {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.card--ready .pill {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.card--permanent .muted,
.card--permanent dt,
.card--permanent dd {
  color: #ffffff;
}

.card--ready .muted,
.card--ready dt,
.card--ready dd {
  color: #ffffff;
}

.card--permanent .links a {
  color: #ffffff;
}

.card--ready .links a {
  color: #ffffff;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guid {
  font-weight: 700;
  font-size: 1rem;
}

.pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e4e7ef;
  background: #f7f8fc;
}

dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 12px;
  margin: 0;
}

dt {
  color: #5b6473;
  font-size: 0.8rem;
}

dd {
  margin: 0;
  font-size: 0.9rem;
}

.links a {
  margin-right: 12px;
  color: #4f46e5;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.discord-button {
  display: inline-block;
}

.discord-button img {
  width: min(260px, 100%);
  height: auto;
  display: block;
}

.muted {
  color: #5b6473;
}

.empty-state {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 24px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 620px) {
  .header {
    flex-direction: column;
    align-items: stretch;
  }

  dl {
    grid-template-columns: 1fr;
  }

  dt {
    font-weight: 600;
  }
}
