/* ============================================================
   BIG TROUBLE IN LITTLE CHINA CHRONICLES — BASE.CSS
   Aesthetic: Jade & Thunder
   Palette: obsidian black · jade green · vermillion · ancient gold
   Typography: Cinzel Decorative · Cinzel · Crimson Pro
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600;700;900&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #04030a;
  --surface:      #090818;
  --surface-2:    #0f0d20;
  --surface-3:    #161330;

  --text:         #e8dfc8;
  --text-muted:   #a89e88;
  --text-faint:   #5a5248;

  --accent:       #00c875;   /* jade green — Lo Pan ghost glow */
  --accent-dim:   #008a4f;
  --accent-glow:  rgba(0, 200, 117, 0.18);
  --accent-glow-strong: rgba(0, 200, 117, 0.35);

  --red:          #d42200;   /* vermillion — lanterns / fire */
  --red-dim:      #8a1600;
  --red-glow:     rgba(212, 34, 0, 0.20);

  --gold:         #c9963a;   /* ancient gold — talismans / Lo Pan's throne */
  --gold-dim:     #7a5a1e;
  --gold-glow:    rgba(201, 150, 58, 0.20);

  --border:       rgba(0, 200, 117, 0.12);
  --border-red:   rgba(212, 34, 0, 0.15);
  --divider:      rgba(255, 255, 255, 0.04);

  --radius:       4px;
  --radius-lg:    8px;

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Crimson Pro', serif;
  --font-mono:    'JetBrains Mono', monospace;

  --transition:   0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
  font-weight: 600;
}

h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 4.5rem); letter-spacing: 0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: 0.06em; text-transform: uppercase; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); letter-spacing: 0.04em; }
h4 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--text); }

img, svg { display: block; max-width: 100%; }

ul, ol { list-style: none; }

/* ─── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }

/* ─── Selection ──────────────────────────────────────────────── */
::selection { background: var(--accent-glow-strong); color: var(--text); }
