/*
 * Faith Mining Design System v1.0
 * ─────────────────────────────────────────────────────────────────
 * Use these tokens on every Faith Mining property:
 *   tools.faithmining.net
 *   faithmining.net
 *   solo.faithmining.net
 *
 * Fonts (add to <head> before linking this file):
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
 */

:root {
  /* ── Backgrounds ── */
  --bg:             #0C0C0F;   /* page background */
  --bg-surface:     #141418;   /* cards, panels */
  --bg-elevated:    #1C1C23;   /* dropdowns, tooltips, raised cards */
  --bg-hover:       #22222B;   /* hover state on surfaces */

  /* ── Borders ── */
  --border:         rgba(255, 255, 255, 0.06);
  --border-strong:  rgba(255, 255, 255, 0.12);
  --border-orange:  rgba(247, 147, 26, 0.35);

  /* ── Text ── */
  --text:           #EDEDF0;   /* primary */
  --text-secondary: #9292A0;   /* labels, descriptions */
  --text-muted:     #4A4A5A;   /* placeholders, disabled */

  /* ── Brand / Accent ── */
  --orange:         #F7931A;
  --orange-light:   #FFA733;
  --orange-dark:    #D97706;
  --orange-glow:    rgba(247, 147, 26, 0.12);
  --orange-glow-md: rgba(247, 147, 26, 0.20);

  /* ── Semantic ── */
  --green:          #22D47E;
  --green-bg:       rgba(34, 212, 126, 0.08);
  --red:            #F25555;
  --red-bg:         rgba(242, 85, 85, 0.08);
  --yellow:         #F5C542;
  --yellow-bg:      rgba(245, 197, 66, 0.08);

  /* ── Typography ── */
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', ui-monospace, 'Cascadia Code', monospace;

  /* ── Spacing ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Radii ── */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* ── Shadows ── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow:     0 4px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.6);
  --shadow-orange: 0 0 0 3px rgba(247, 147, 26, 0.18);

  /* ── Transitions ── */
  --transition: 150ms ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-light); text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-5); }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 var(--space-5); }

/* ── Typography scale ── */
.text-xs   { font-size: 0.72rem; }
.text-sm   { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.35rem; }
.text-2xl  { font-size: 1.65rem; }
.text-3xl  { font-size: 2.1rem; }
.font-mono { font-family: var(--font-mono); }
.text-muted    { color: var(--text-secondary); }
.text-dim      { color: var(--text-muted); }
.text-orange   { color: var(--orange); }
.text-green    { color: var(--green); }
.text-red      { color: var(--red); }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

/* ── Card ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card-sm { padding: var(--space-4); }
.card-elevated { background: var(--bg-elevated); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 100px;
}
.badge-orange { background: var(--orange-glow); color: var(--orange); border: 1px solid var(--border-orange); }
.badge-green  { background: var(--green-bg);  color: var(--green);  }
.badge-muted  { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary  { background: var(--orange); color: #000; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-light); border-color: var(--orange-light); }
.btn-ghost    { background: transparent; color: var(--text-secondary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-strong); }
.btn-sm       { font-size: 0.82rem; padding: 6px 13px; }

/* ── Form inputs ── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field label .hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-left: 4px;
}
.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239292A0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
