/* Dripline — Design System
 * Tokens, fonts, reset, and shared utilities.
 * Module-specific component styles live with each module under /modules/<name>/styles.css.
 *
 * This file is canonical. Promoted from the Claude Design "Dripline OS" export.
 */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,400;0,500;0,700;0,900;1,400&family=Space+Mono:wght@400;700&display=swap");

:root {
  /* ─── Canvas ──────────────────────────────────────────────────────────── */
  --canvas:           #0a0a0a;

  /* ─── Card surfaces — warm cream ──────────────────────────────────────── */
  --card:             #f7f5f0;
  --card-raised:      #fafaf6;
  --card-border:      rgba(0, 0, 0, 0.08);
  --card-border-mid:  rgba(0, 0, 0, 0.12);
  --card-shadow:      0 1px 2px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.06);

  /* ─── Dark surfaces (sidebar, mobile nav) ─────────────────────────────── */
  --dark-bg:          #0f0f0d;
  --dark-raised:      #161614;
  --dark-border:      rgba(255, 255, 255, 0.07);
  --dark-text:        #e8e6e0;
  --dark-secondary:   #6b6a65;
  --dark-muted:       #3a3935;

  /* ─── Ink — text on cream ─────────────────────────────────────────────── */
  --ink:              #1c1a16;
  --ink-secondary:    #6b6760;
  --ink-muted:        #a8a49e;
  --ink-hairline:     rgba(0, 0, 0, 0.08);

  /* ─── Brand accents ───────────────────────────────────────────────────── */
  --purple:           #6B3FA6;
  --purple-light:     #8B5FCF;
  --purple-tint:      rgba(107, 63, 166, 0.10);
  --yellow:           #F2C94C;
  --yellow-tint:      rgba(242, 201, 76, 0.18);

  /* ─── Status — tuned for cream backgrounds ────────────────────────────── */
  --s-nominal:        #2a7a4f;
  --s-nominal-bg:     #eaf4ee;
  --s-nominal-bd:     rgba(42, 122, 79, 0.2);

  --s-watch:          #8a6500;
  --s-watch-bg:       #fdf8e4;
  --s-watch-bd:       rgba(138, 101, 0, 0.2);

  --s-action:         #b84f0a;
  --s-action-bg:      #fdf0e6;
  --s-action-bd:      rgba(184, 79, 10, 0.2);

  --s-critical:       #c0281a;
  --s-critical-bg:    #fde9e7;
  --s-critical-bd:    rgba(192, 40, 26, 0.2);

  /* ─── Typography ──────────────────────────────────────────────────────── */
  --font-display:     'Bebas Neue', sans-serif;             /* numerics, brand wordmarks */
  --font-ui:          'DM Sans', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:        'Space Mono', ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif-italic:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* ─── Spacing — 4px base ──────────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ─── Radius ──────────────────────────────────────────────────────────── */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Aliases retained from session 1 so pre-existing markup keeps working */
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);

  /* Color aliases retained from session 1 */
  --color-bg:           var(--canvas);
  --color-card:         var(--card);
  --color-text:         var(--dark-text);
  --color-text-on-card: var(--ink);
  --color-text-muted:   var(--dark-secondary);
  --color-accent-purple:var(--purple);
  --color-accent-yellow:var(--yellow);
  --color-divider:      var(--dark-border);
  --font-sans:          var(--font-ui);
}

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

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ─── Shared utilities ──────────────────────────────────────────────────── */

/* Strain names — DM Sans 900, tight tracking. NOT italic (italic is for genetics sub-line). */
.strain-name {
  font-family: var(--font-ui);
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--ink);
}

/* Genetics sub-line — italic, muted */
.genetics {
  font-family: var(--font-ui);
  font-style: italic;
  color: var(--ink-muted);
}

/* Numeric data values — monospace, tabular */
.data-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Sentence-case label — content controls case, no text-transform */
.label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.3px;
}

/* Card surface */
.card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--card-shadow);
  padding: var(--space-5);
}

/* Layout container — mobile-first */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: var(--space-6);
  }
}
