/* Shared styles for client-facing system pages: live preview chrome, gone, thanks. */
:root {
  --bg: #050505;
  --fg: #ededea;
  --dim: #8b8b86;
  --faint: #3a3a37;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(14, 14, 13, 0.72);
  --signal: #ff3b1f;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --text: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.wordmark {
  font-family: var(--text);
  font-weight: 500;
  letter-spacing: 0.32em;
  font-size: 12.5px;
  text-transform: uppercase;
}

/* ---------- Centred message pages (gone, thanks) ---------- */
.msg {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(16px, 4vw, 40px);
}
.msg-body {
  align-self: center;
  justify-self: center;
  width: min(560px, 100%);
  text-align: center;
  padding: 48px 0;
}
.msg h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.msg h1 em { color: var(--dim); }
.msg p { color: var(--dim); margin-top: 20px; }
.msg-foot { display: flex; justify-content: space-between; color: var(--faint); font-size: 12.5px; letter-spacing: 0.08em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }

.spinner {
  width: 14px; height: 14px;
  border: 1px solid var(--faint);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
