/* Base CSS - Variables, Reset, Body Styling */

:root {
  /* Foundation */
  --bg: #f1f0ee;
  --ink: #1a1a1a;
  --muted: #767676;
  --surface: #ffffff;
  --surface-hover: #f5f5f3;
  --border: #eeeeee;
  --border-hover: #dddddd;

  /* Accents */
  --red: #e63946;
  --teal: #0e7490;
  --amber: #f59e0b;
  --green: #10b981;

  /* Semantic aliases (kept for backwards compat — used in alerts, flash messages) */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Translucent accents */
  --red-light: rgba(230, 57, 70, 0.08);
  --teal-light: rgba(8, 145, 178, 0.05);
  --amber-light: rgba(245, 158, 11, 0.05);
  --green-light: rgba(16, 185, 129, 0.08);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 20px;

  /* Grid background */
  --grid-size: 44px;
  --grid-color: rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
