/*
 * GLORIOOUS Token Override
 * Remaps Magzin CSS variables to the GLORIOOUS editorial palette.
 * Loaded AFTER magzin-base.css so these take precedence.
 *
 * Palette reference (DESIGN_SPEC + FRONT_VISUAL_GOVERNANCE):
 *   --background : warm ivory   #FAF8F5
 *   --surface    : soft blush   #F5F0EB
 *   --ink        : ink black    #1A1A1A
 *   --accent     : oxblood      #8B2500
 *   --plum       : noir plum    #4B1D29
 *   --stone      : muted stone  #A89F96
 *   --line       : subtle line  #E8E3DD
 *
 * Typography:
 *   Display/Serif : Fraunces
 *   Body/Sans     : Manrope
 */

:root {
  /* ── Typography ─────────────────────────────────────── */
  --tc-body-font-family: 'Manrope', sans-serif;
  --tc-heading-font-family: 'Fraunces', serif;
  --tc-body-font-size: 16px;
  --tc-body-line-height: 1.6;
  --tc-heading-line-height: 1.15;

  /* ── Neutral scale — warm ivory axis ────────────────── */
  --tc-neutral-50:  #FAF8F5;   /* background — warm ivory */
  --tc-neutral-100: #F5F0EB;   /* surface — soft blush */
  --tc-neutral-200: #E8E3DD;   /* line */
  --tc-neutral-300: #D4CFC8;
  --tc-neutral-400: #A89F96;   /* stone */
  --tc-neutral-500: #7A746D;
  --tc-neutral-600: #5A554F;
  --tc-neutral-700: #3A3632;
  --tc-neutral-800: #2A2725;
  --tc-neutral-900: #1A1A1A;   /* ink */

  /* ── Dark mode neutral (kept for Magzin compat) ─────── */
  --tc-neutral-dark-50:  #1A1715;
  --tc-neutral-dark-100: #1E1B19;
  --tc-neutral-dark-200: #2A2725;
  --tc-neutral-dark-300: #3A3632;
  --tc-neutral-dark-400: #5A554F;
  --tc-neutral-dark-500: #7A746D;
  --tc-neutral-dark-600: #A89F96;
  --tc-neutral-dark-700: #D4CFC8;
  --tc-neutral-dark-800: #E8E3DD;
  --tc-neutral-dark-900: #F5F0EB;

  /* ── System colors — GLORIOOUS editorial ────────────── */
  --tc-system-white: #FAF8F5;
  --tc-system-dark:  #1A1A1A;
  --tc-system-muted: #A89F96;

  /* ── Background accents ─────────────────────────────── */
  --tc-bg-1: #F5F0EB;           /* blush surface */
  --tc-bg-2: #F0E8E0;           /* warm highlight */
  --tc-bg-3: #FAF8F5;           /* ivory */
  --tc-bg-4: #4B1D29;           /* noir plum */
  --tc-bg-5: #8B2500;           /* oxblood */

  /* ── GLORIOOUS semantic tokens ──────────────────────── */
  --gl-background: #FAF8F5;
  --gl-surface:    #F5F0EB;
  --gl-ink:        #1A1A1A;
  --gl-accent:     #8B2500;
  --gl-plum:       #4B1D29;
  --gl-stone:      #A89F96;
  --gl-line:       #E8E3DD;
  --gl-blush:      #F0E8E0;
}

/* ── Global overrides ────────────────────────────────── */

body {
  background-color: var(--gl-background);
  color: var(--gl-ink);
  font-family: var(--tc-body-font-family);
}

h1, h2, h3, h4, h5, h6,
.ds-1, .ds-2, .ds-3, .ds-4, .ds-5, .ds-6 {
  font-family: var(--tc-heading-font-family);
}

/* Badge overrides — GLORIOOUS editorial territories */
.badge.bg-1 { background-color: var(--gl-plum) !important; color: var(--gl-background); }
.badge.bg-2 { background-color: var(--gl-accent) !important; color: var(--gl-background); }
.badge.bg-3 { background-color: var(--gl-stone) !important; color: var(--gl-ink); }

/* Link and accent color */
a { color: var(--gl-ink); }
a:hover { color: var(--gl-accent); }

/* Section backgrounds */
.bg-100 { background-color: var(--gl-surface) !important; }
.bg-900 { background-color: var(--gl-ink) !important; }

/* Cards — softer shadows for editorial feel */
.article.card-1,
.article.card-2,
.article.card-3 {
  border-radius: 12px;
  overflow: hidden;
}

/* Section padding — generous editorial breathing room */
.sec-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .sec-padding {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
