/* Vibe Masters — brand stylesheet.
   Source of truth: the Blueprint token block (Prompts/CLAUDE-CODE-reskin-blueprint-tokens.md):
   near-black ground, pure grayscale, ZERO hue — the one accent is white, reserved
   for the primary CTA and key numbers, ≤5% of any composition. Display 800/−0.04em.
   Tokens first, then the component classes the site uses. Vanilla CSS, no build. */

:root {
  /* — color tokens (brand sheet) — */
  --color-bg: #0a0a0b;        /* page background */
  --color-surface: #111114;   /* card background (--panel) */
  --color-text: #f4f4f5;      /* primary text (--ink) */
  --color-accent: #ffffff;    /* THE accent is pure white — primary CTA + key numbers ONLY, ≤5% */
  --color-accent-2: #e4e4e7;  /* hover/pressed tint of the accent */
  --color-divider: #242429;   /* 1px borders everywhere (--line) */

  /* grayscale ramp (zinc family — brand: #a1a1aa mut / #6b6b74 dim) */
  --color-neutral-100: #f4f4f5;
  --color-neutral-200: #e4e4e7;
  --color-neutral-300: #d4d4d8;
  --color-neutral-400: #a1a1aa; /* secondary text (--mut) */
  --color-neutral-500: #8a8a93; /* muted label ink — AA-passing at small sizes */
  --color-neutral-600: #6b6b74; /* labels, punctuation accents (--dim) */
  --color-neutral-700: #52525b;
  --color-neutral-800: #27272a;
  --color-neutral-900: #18181b;

  /* accent ramp — zero hue: white down through the grays */
  --color-accent-100: #ffffff;
  --color-accent-200: #f4f4f5;
  --color-accent-300: #e4e4e7;
  --color-accent-400: #d4d4d8;
  --color-accent-500: #a1a1aa;
  --color-accent-600: #8a8a93;
  --color-accent-700: #52525b;
  --color-accent-800: #27272a;
  --color-accent-900: #18181b;

  /* quiet band ground — this brand has no saturated fields */
  --color-section: #111114;
  --color-section-glow: #151519; /* elevated card (--panel2) */
  --color-section-ghost: #1a1a20;

  /* — type — */
  --font-heading: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading-weight: 800; /* brand sheet: display runs heavy */
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  /* — space & radius (compact scale) — */
  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;
  --space-6: 16.8px;
  --space-8: 22.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* — elevation: hairline edge + ambient darkness — */
  --shadow-sm: 0 0 0 1px #242429;
  --shadow-md: 0 0 0 1px #2e2e35, 0 6px 18px rgba(0,0,0,0.55);
  --shadow-lg: 0 0 0 1px #3f3f46, 0 16px 40px rgba(0,0,0,0.65);
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules: freestanding rules fade to transparent at their ends — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 13px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: calc(var(--space-2) * 0.85) var(--space-3);
  border-radius: var(--radius-md);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* — form input — */
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: 999px;
}
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-accent); }
