:root {
  --bg: #0f1117;
  --surface: #1a1f2e;
  --surface-raised: #222736;
  --text: #e8edf4;
  --muted: #8b96aa;
  --accent: #4a9eff;
  --line: rgba(232, 237, 244, 0.1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

/* Environment banner — always visible in admin; color signals environment risk */
body[data-admin-environment="dev"] {
  --environment-banner-bg: #7a3512;
}

body[data-admin-environment="staging"] {
  --environment-banner-bg: #365c53;
}

body[data-admin-environment="prod"] {
  --environment-banner-bg: #8b1a1a;
}

.environment-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  background: var(--environment-banner-bg, #1a1f2e);
  color: #fffaf4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 4rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.lede {
  margin: 0 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* 404 page */
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}
