/* ============ VARIABLES ============ */
:root {
  --bg: #0c0c0f;
  --bg-soft: #131318;
  --surface: #191920;
  --surface-hover: #22222a;
  --border: #29292f;
  --border-bright: #3a3a44;
  --text: #e8e6dd;
  --text-dim: #a8a498;
  --text-muted: #6b6862;
  --text-faint: #434048;
  --accent: #e0a775;
  --accent-dim: #8b6f4f;
  --accent-bright: #f2bf8c;
  --teal: #7aa8a8;
  --rose: #c97b73;
  --green: #8fa873;
  --blue: #7a8fa8;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --serif: 'Fraunces', Georgia, serif;
  --maxw: 920px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scan-line vignette for deep space feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 70% 0%, rgba(224, 167, 117, 0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 110%, rgba(122, 168, 168, 0.05) 0%, transparent 55%);
}

::selection { background: var(--accent); color: var(--bg); }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }
