/* ============================================================
   RITZ ARIONA — design system
   Hand-built. No generated imagery, no glassmorphism, no glow.
   One ground (navy), one accent (violet), hairlines, tabular
   numerals, restrained motion. See docs/SITE_PLAN_V3.md.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg:        #0a0f16;
  --bg-2:      #0e1520;   /* raised surface */
  --bg-3:      #121a28;   /* pressed / inset */
  --ink:       #e9edf5;
  --ink-dim:   #98a2b6;
  --ink-faint: #5c6577;
  --violet:    #a78bfa;
  --violet-2:  #7c5cff;
  --hairline:  rgba(167, 139, 250, 0.14);
  --hairline-strong: rgba(167, 139, 250, 0.30);

  /* game feedback — a game reads in colour */
  --win:       #34d399;
  --win-bg:    rgba(52, 211, 153, 0.10);
  --win-line:  rgba(52, 211, 153, 0.45);
  --loss:      #f87171;
  --loss-bg:   rgba(248, 113, 113, 0.10);
  --loss-line: rgba(248, 113, 113, 0.45);

  --font-display: "Archivo", "Archivo Black", system-ui, sans-serif;
  --font-text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius: 10px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

::selection { background: rgba(124, 92, 255, 0.35); }

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

.num { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ---------- type scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.small { font-size: 13px; color: var(--ink-dim); }
.faint { color: var(--ink-faint); }

/* the brand gradient is reserved for ARIONA in the wordmark and for
   nothing else — it is the one gradient in the system */
.accent-text { color: var(--violet); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--s5); }
.col  { width: 100%; max-width: 460px; margin: 0 auto; }

.section { padding: var(--s8) 0; border-top: 1px solid var(--hairline); }

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5);
  max-width: 1080px; margin: 0 auto;
}
.site-head img.mark { height: 20px; display: block; }
.site-head nav { display: flex; gap: var(--s5); }
.site-head nav a { color: var(--ink-dim); font-size: 13px; }
.site-head nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease),
              transform 120ms var(--ease);
}
.btn:hover { border-color: var(--violet); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--violet-2);
  border-color: var(--violet-2);
  color: #ffffff;
}
.btn-primary:hover { background: #8b6dff; border-color: #8b6dff; }

.btn-quiet { border-color: transparent; color: var(--ink-dim); }
.btn-quiet:hover { color: var(--ink); border-color: var(--hairline); }

/* ---------- surfaces ---------- */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.hairline-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: var(--s3) 0;
  border-top: 1px solid var(--hairline);
}
.hairline-row:first-child { border-top: none; }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.badge.hit  { color: var(--win); border-color: var(--win-line); background: var(--win-bg); }
.badge.miss { color: var(--loss); border-color: var(--loss-line); background: var(--loss-bg); }

/* full-width game result banner — the first thing a reveal says */
.result-banner {
  display: block; width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.result-banner.hit  { color: var(--win);  background: var(--win-bg);  border: 1px solid var(--win-line); }
.result-banner.miss { color: var(--loss); background: var(--loss-bg); border: 1px solid var(--loss-line); }

.tick { font-weight: 800; }
.tick.hit  { color: var(--win); }
.tick.miss { color: var(--loss); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: var(--s6) var(--s5) var(--s8);
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--s3);
}
.site-foot img.mark { height: 14px; opacity: 0.7; }
.site-foot p { font-size: 12px; color: var(--ink-faint); max-width: 60ch; }

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