:root {
  --bg: #080808;
  --panel: #131313;
  --panel-soft: #1b1712;
  --text: #f4ede2;
  --muted: #cfbfa8;
  --gold: #f4b347;
  --amber: #ffcb72;
  --border: rgba(255, 210, 131, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(244, 179, 71, 0.16), transparent 30%),
    linear-gradient(180deg, #090909, #111111 40%, #090909);
  color: var(--text);
}

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

.hero,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand h1,
.brand p,
.section-heading h3,
.section-heading p {
  margin: 0;
}

.brand-mark,
.footer-lantern {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #121212, #050505);
  color: var(--gold);
  font-weight: 800;
  border: 1px solid var(--border);
}

.top-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 36px 0 56px;
}

.hero-copy,
.hero-panel,
.directory-section,
.operator-section,
.beta-section {
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 28px;
}

.hero-copy h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin: 10px 0 16px;
}

.hero-copy p,
.hero-panel li,
.section-heading p,
.operator-grid p,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-button,
.secondary-button,
.chip,
#search-input {
  border-radius: 999px;
}

.primary-button,
.secondary-button {
  padding: 14px 18px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: #0a0a0a;
}

.secondary-button {
  background: #1b1b1b;
  border: 1px solid var(--border);
}

.hero-panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

main {
  display: grid;
  gap: 24px;
  padding-bottom: 42px;
}

.section-heading {
  margin-bottom: 20px;
}

.directory-controls {
  display: grid;
  gap: 14px;
}

#search-input,
#sort-select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text);
}

.directory-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--border);
  background: #18130f;
  color: var(--amber);
  padding: 10px 14px;
  cursor: pointer;
}

.chip.active {
  color: #090909;
  background: linear-gradient(90deg, var(--gold), var(--amber));
}

.listing-grid,
.operator-grid {
  display: grid;
  gap: 16px;
}

.listing-grid {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.listing-card,
.detail-panel,
.operator-grid article {
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
}

.listing-card h4,
.operator-grid h4 {
  margin: 0 0 8px;
}

.listing-meta,
.listing-flags {
  color: var(--amber);
  font-size: 0.92rem;
}

.listing-flags {
  margin-top: 10px;
}

.listing-card {
  cursor: pointer;
}

.detail-panel {
  position: sticky;
  top: 24px;
}

.detail-panel h4,
.detail-panel p {
  margin-top: 0;
}

.detail-meta,
.detail-highlights {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.detail-actions a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid var(--border);
}

.detail-panel form,
.operator-grid form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-panel label,
.operator-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-panel input,
.detail-panel textarea,
.operator-grid input,
.operator-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text);
  font: inherit;
}

.detail-panel textarea,
.operator-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.detail-panel button,
.operator-grid button {
  width: fit-content;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: #090909;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.status-note {
  color: var(--amber);
  min-height: 1.2em;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0 40px;
}

@media (max-width: 860px) {
  .topbar,
  .hero-grid,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .top-links {
    flex-wrap: wrap;
  }

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}
