/* =============================================================
   META SOUL GAMES — DESIGN TOKENS
   All foundations live here. Import this file once at the root.
   ============================================================= */

/* ------- Webfont imports (Google Fonts substitutes) -----------
   ⚠️ Substitutions: no licensed brand fonts provided. These four
   are chosen to match the logo's thin geometric posture.
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- COLOR ---------- */
  /* Surfaces (dark by default — the brand) */
  --bg-obsidian:        #000000;
  --bg-onyx:            #0E0E0E;
  --bg-soot:            #161616;
  --bg-soot-2:          #1C1C1C;

  /* Lines & dividers */
  --line-char:          #2A2826;
  --line-char-strong:   #3A3833;

  /* Ink (text on dark) */
  --ink-gunmetal:       #4A4843;  /* disabled / footnotes */
  --ink-ash:            #8A8680;  /* muted, captions */
  --ink-bone:           #C9C2B6;  /* secondary */
  --ink-parchment:      #F0EBE2;  /* primary, brand cream */

  /* Accent (the only chromatic note) */
  --accent-champagne:   #C9A961;
  --accent-gilt:        #D9BB76;  /* hover */
  --accent-tarnish:     #8A7641;  /* pressed / muted */

  /* Semantic state (deliberately desaturated) */
  --state-sage:         #6B8E6F;
  --state-amber:        #C68A3D;
  --state-oxblood:      #A04545;
  --state-slate:        #6B7B8E;

  /* Light-mode invert (rare, for print docs) */
  --light-bg:           #F0EBE2;
  --light-ink:          #0E0E0E;
  --light-line:         #D6CFC0;

  /* ---------- TYPE ---------- */
  --font-display:       'Outfit', 'Helvetica Neue', system-ui, sans-serif;
  --font-body:          'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --font-editorial:     'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-mono:          'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Sizes — modular scale ~1.25 */
  --fs-xs:    11px;
  --fs-sm:    13px;
  --fs-base:  15px;
  --fs-md:    17px;
  --fs-lg:    20px;
  --fs-xl:    24px;
  --fs-2xl:   32px;
  --fs-3xl:   44px;
  --fs-4xl:   60px;
  --fs-5xl:   84px;
  --fs-6xl:   120px;

  /* Weights */
  --fw-thin:        100;
  --fw-extralight:  200;
  --fw-light:       300;
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-semibold:    600;

  /* Line height */
  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  /* Letter spacing */
  --ls-wordmark: 0.32em;   /* Logo wordmark */
  --ls-eyebrow:  0.18em;   /* Section eyebrows */
  --ls-caps:     0.08em;   /* Buttons, small caps */
  --ls-display:  -0.02em;  /* Big headlines tighten */
  --ls-normal:   0;

  /* ---------- SPACING (4px base) ---------- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   24px;
  --sp-6:   32px;
  --sp-7:   48px;
  --sp-8:   64px;
  --sp-9:   96px;
  --sp-10:  128px;
  --sp-11:  192px;
  --sp-12:  256px;

  /* ---------- RADIUS ---------- */
  --r-none: 0;
  --r-sm:   2px;    /* cards, inputs */
  --r-md:   4px;    /* buttons */
  --r-pill: 999px;  /* chips, avatars */

  /* ---------- BORDERS ---------- */
  --border-hairline: 1px solid var(--line-char);
  --border-strong:   1px solid var(--line-char-strong);
  --border-bone:     1px solid rgba(240, 235, 226, 0.3);
  --border-cream:    1px solid var(--ink-parchment);

  /* ---------- SHADOW ---------- */
  --shadow-none:    none;
  --shadow-soft:    0 24px 64px -24px rgba(0, 0, 0, 0.6);
  --shadow-floating:0 32px 80px -32px rgba(0, 0, 0, 0.8), 0 1px 0 0 var(--line-char) inset;
  --shadow-focus:   0 0 0 1px var(--accent-champagne);

  /* ---------- MOTION ---------- */
  --ease-considered: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:         cubic-bezier(0.4, 0, 1, 1);

  --dur-instant:  100ms;
  --dur-fast:     200ms;   /* hover */
  --dur-normal:   400ms;   /* default */
  --dur-slow:     600ms;   /* reveal */
  --dur-deliberate: 800ms; /* hero reveal, rule-draw */

  /* ---------- LAYOUT ---------- */
  --max-content:   1440px;
  --max-prose:     64ch;
  --pad-edge:      64px;
  --pad-edge-sm:   24px;
  --grid-gutter:   64px;

  /* ---------- Z ---------- */
  --z-base:    1;
  --z-sticky:  10;
  --z-overlay: 100;
  --z-modal:   1000;
  --z-toast:   2000;
}

/* =============================================================
   Semantic typography classes
   Use these directly: <h1 class="t-display-1">…</h1>
   ============================================================= */

.t-wordmark {
  font-family: var(--font-display);
  font-weight: var(--fw-extralight);
  font-size: var(--fs-md);
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  color: var(--ink-parchment);
}

.t-display-1 {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: clamp(var(--fs-4xl), 7vw, var(--fs-6xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--ink-parchment);
}

.t-display-2 {
  font-family: var(--font-display);
  font-weight: var(--fw-extralight);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--ink-parchment);
}

.t-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--ink-parchment);
}

.t-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
  color: var(--ink-parchment);
}

.t-h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--ink-parchment);
}

.t-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-champagne);
}

.t-body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--ink-bone);
  max-width: var(--max-prose);
}

.t-body-lg {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--ink-bone);
  max-width: var(--max-prose);
}

.t-caption {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--ink-ash);
}

.t-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  line-height: var(--lh-snug);
  color: var(--ink-parchment);
}

.t-stat {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: clamp(var(--fs-4xl), 6vw, var(--fs-5xl));
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-parchment);
}

.t-mono {
  font-family: var(--font-mono);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sm);
  letter-spacing: 0;
  color: var(--ink-bone);
}

.t-button {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.t-link {
  color: var(--ink-parchment);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.t-link:hover {
  color: var(--accent-champagne);
  border-bottom-color: var(--accent-champagne);
}

/* =============================================================
   Card primitive — flat, hairline, square-ish (the MSG card)
   ============================================================= */
.msg-card {
  background: var(--bg-soot);
  border: var(--border-hairline);
  border-radius: var(--r-sm);
  padding: var(--sp-6);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.msg-card:hover {
  border-color: rgba(240, 235, 226, 0.3);
}

/* =============================================================
   Hairline rule — signature element from the wordmark
   ============================================================= */
.msg-rule {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--ink-ash);
}
.msg-rule::before,
.msg-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  min-width: var(--sp-5);
}
