/**
 * Design tokens, matched to the "Lotus and Code" Figma design: dark editorial
 * theme, Manrope for display/body, JetBrains Mono for eyebrow labels and
 * meta text, a warm orange accent.
 */
:root {
  --np-color-bg: #0a0a0a;
  --np-color-bg-alt: #101010;
  --np-color-surface: #161616;
  --np-color-surface-alt: #161616;
  --np-color-ink: #f5f5f2;
  --np-color-ink-soft: #9a9a95;
  --np-color-ink-faint: #8a8a85; /* 5.2:1 on surface (AA) */
  --np-color-border: #2a2a2a;
  --np-color-accent: #b9e079; /* fills / large decoration (lime, from the Figma redesign) */
  --np-color-on-accent: #0a0a0a; /* text on accent fills: 14:1 */
  --np-color-paper: #f3f1eb; /* light editorial sections on the dark theme */
  --np-color-on-paper: #111111;
  --np-color-on-paper-soft: #65655f; /* 5.4:1 on paper */
  --np-color-accent-text: #b9e079; /* accent used as text: 12:1 on dark */
  --np-color-on-light: #0a0a0a;
  --np-color-danger: #ff8a80; /* 9:1 on bg */
  --np-color-success: #7ddc9a; /* 11:1 on bg */
  --np-color-warning: #ffc85c; /* 12:1 on bg */

  --np-font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --np-font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --np-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --np-tracking-label: 0.12em;
  --np-radius-card: 16px;
  --np-radius-pill: 999px;
}

/* Light theme — toggled via [data-theme="light"] on <html>. Dark (above) is
   the default; see components/site-header for the toggle control. */
:root[data-theme='light'] {
  --np-color-bg: #f7f5f1;
  --np-color-bg-alt: #efece5;
  --np-color-surface: #ffffff;
  --np-color-surface-alt: #ffffff;
  --np-color-ink: #141311;
  --np-color-ink-soft: #5c5a54;
  --np-color-ink-faint: #6b6962; /* 5.0:1 on bg (AA) */
  --np-color-accent-text: #4a6a10; /* 5.7:1 on light surfaces (AA) */
  --np-color-border: #e2ddd2;
  --np-color-on-light: #f7f5f1;
  --np-color-danger: #b3261e; /* 6.4:1 on bg */
  --np-color-success: #1b6b3a; /* 5.9:1 on bg */
  --np-color-warning: #8a5a00; /* 5.6:1 on bg */
}

body {
  background-color: var(--np-color-bg);
  color: var(--np-color-ink);
  font-family: var(--np-font-body);
  transition: background-color 0.2s ease, color 0.2s ease;
  /* Full-bleed sections (e.g. hero media) use the 100vw/negative-margin
     trick, which can introduce a sub-pixel horizontal scrollbar. */
  overflow-x: hidden;
}
