/**
 * Theme Kit — Quant Memo / Quant Native
 * Exact colors and typography from quantmemo.com / quantnative.com
 */

:root {
  /* Quant Memo / Quant Native palette */
  --cream: #f6f1e7;
  --cream-dark: #ede8dc;
  --near-black: #1a1915;
  --quant-green: #2d4a3e;
  --quant-green-light: #3d5a4e;

  /* Semantic (map to palette) */
  --bg-primary: var(--cream);
  --bg-secondary: var(--cream-dark);
  --text-primary: var(--near-black);
  --text-secondary: rgba(26, 25, 21, 0.8);
  --text-tertiary: rgba(26, 25, 21, 0.6);
  --text-inverse: var(--cream);
  --accent: var(--quant-green);
  --accent-hover: var(--quant-green-light);
  --border-primary: rgba(45, 74, 62, 0.15);
  --border-secondary: rgba(45, 74, 62, 0.2);
  --border-focus: rgba(45, 74, 62, 0.4);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography — Quant Memo uses Georgia for headings, system UI for body */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --tracking-tight: -0.025em;
  --tracking-wide: 0.025em;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--near-black);
  background-color: var(--cream);
  margin: 0;
}

a {
  color: var(--quant-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Headings — serif like Quant Memo */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  color: var(--near-black);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
}

p {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}
