/* =========================================================
   TRASHLABS — Core tokens
   Dark by default. Sharp corners. Mono-first.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* -------- Color: Neutrals (dark-first) -------- */
  --bg-0: #0a0a0a;          /* page background (near-black) */
  --bg-1: #111111;          /* raised surface */
  --bg-2: #161616;          /* card / panel */
  --bg-3: #1d1d1d;          /* hover / input */
  --bg-4: #242424;          /* pressed / border-heavy */

  --fg-0: #f5f5f5;          /* primary text */
  --fg-1: #b4b4b4;          /* secondary text */
  --fg-2: #787878;          /* tertiary / muted */
  --fg-3: #4a4a4a;          /* disabled / hints */
  --fg-4: #2a2a2a;          /* lowest contrast */

  --line-1: #222222;        /* hairline divider */
  --line-2: #2e2e2e;        /* standard border */
  --line-3: #3a3a3a;        /* emphasized border */

  /* -------- Color: Accents -------- */
  --accent: #c6ff3d;        /* toxic green — the one hot color */
  --accent-dim: #8aab2b;
  --accent-fg: #0a0a0a;     /* text on accent */

  /* -------- Semantic colors -------- */
  --danger: #ff5c5c;
  --warning: #ffb454;
  --success: #6fe89b;
  --info: #7aa2ff;

  /* -------- Typography -------- */
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --font-display: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Type scale — tight, utilitarian */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 26px;
  --text-3xl: 34px;
  --text-4xl: 48px;
  --text-5xl: 68px;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-loose: 1.7;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.14em;

  /* -------- Spacing (4px base, sharp) -------- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* -------- Radius — SHARP. 0 is the default. -------- */
  --radius-0: 0;
  --radius-1: 2px;          /* rarely used — only inputs if desired */
  --radius-full: 9999px;    /* avatars only */

  /* -------- Borders -------- */
  --border-1: 1px solid var(--line-2);
  --border-hair: 1px solid var(--line-1);
  --border-heavy: 1px solid var(--line-3);
  --border-accent: 1px solid var(--accent);

  /* -------- Shadows — minimal. Mostly none. -------- */
  --shadow-0: none;
  --shadow-1: 0 0 0 1px var(--line-2);                     /* ring, not drop */
  --shadow-2: 0 8px 24px rgba(0,0,0,0.6), 0 0 0 1px var(--line-2);
  --shadow-glow: 0 0 0 1px var(--accent), 0 0 24px rgba(198,255,61,0.25);

  /* -------- Motion -------- */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.8, 0.4);
  --dur-fast: 80ms;
  --dur-med: 160ms;
  --dur-slow: 280ms;
}

/* =========================================================
   Semantic element defaults
   ========================================================= */
html, body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-0);
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-0);
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--fg-0);
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}

p, .p {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg-1);
  margin: 0;
}

.eyebrow, .label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-2);
}

code, pre, .code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-0);
  background: var(--bg-2);
  padding: 2px 6px;
  border: var(--border-hair);
}

a {
  color: var(--fg-0);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--fg-3);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover {
  text-decoration-color: var(--accent);
}

hr {
  border: 0;
  border-top: var(--border-hair);
  margin: var(--space-5) 0;
}

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

/* Caret blink — terminal vibe */
@keyframes blink { 50% { opacity: 0; } }
.caret::after {
  content: '▊';
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
