/* ============================================================
   THRIVE IN CHAOS — placeholder landing
   Ember Toolkit design language: crushed-black surfaces, a single
   burnt-orange accent, 100% Roboto Mono. Flat and dark by identity —
   separation comes from value steps, not shadows or gradients.
   Tokens mirror the game's docs/development/ui-theme.md.
   ============================================================ */

/* Brand mono face, self-hosted variable font (Apache-2.0; see fonts/ATTRIBUTION.md) */
@font-face {
  font-family: 'Roboto Mono';
  src: url('/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype-variations'),
       url('/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-crushed-black: #101010;
  --surface-background:   #121212;
  --surface-border:       #3a3a3a; /* hairline */

  --text-primary:   #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-disabled:  #606060;

  --accent-normal:  #c85102; /* burnt orange — the only chromatic color */
  --accent-hover:   #e65c00;

  --font-mono: 'Roboto Mono', 'SFMono-Regular', 'Menlo', 'Consolas', monospace;

  --shadow-glow: 0 0 0 2px rgba(200, 81, 2, 0.35); /* static ember glow */

  color-scheme: dark; /* the brand is dark by identity — no light theme */
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--brand-crushed-black);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3.5vw, 1.75rem);
  text-align: center;
  max-width: 60rem; /* keep the wordmark on one line at its 4rem cap; the font-size clamp shrinks it to fit down to mobile */
}

.wordmark {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.5rem, 7vw, 4rem);
  line-height: 1.15;
  letter-spacing: clamp(0.06em, 1.2vw, 0.16em);
  margin-inline-end: calc(-1 * clamp(0.06em, 1.2vw, 0.16em)); /* optically re-center trailing tracking */
  color: var(--text-primary);
  text-transform: uppercase;
}

/* hairline rule under the wordmark — Ember uses #3a3a3a hairlines everywhere */
.rule {
  width: clamp(3rem, 18vw, 8rem);
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--surface-border);
}

/* status: colored text carries the meaning; a small burnt-orange voxel marks it */
.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.ember {
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px; /* crisp, pixel-like corners */
  background: var(--accent-normal);
  box-shadow: var(--shadow-glow);
  flex: none;
}

/* ---------- footer ---------- */
.footer {
  position: fixed;
  inset-block-end: clamp(1rem, 4vw, 2rem);
  inset-inline: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-disabled);
}

.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--accent-hover); }
