/*
 * CORAL brand tokens, version 1.
 * The single source of colour, type, spacing, radius and motion values for
 * everything CORAL builds. Import this file first, then use the variables.
 * Keep public/css/coral-tokens.css byte-identical to this file.
 */
:root {
  /* Surfaces */
  --coral-ink: #0B0F14;          /* page background */
  --coral-ink-raised: #10151C;   /* bands between sections */
  --coral-panel: #151A22;        /* cards, panels */
  --coral-panel-hover: #1A2029;  /* card hover */
  --coral-border: #272E39;       /* hairlines, card borders */
  --coral-border-strong: #3A4352;/* input and focus-adjacent borders */

  /* Text */
  --coral-text: #E6EDF3;         /* body text, 16.3:1 on ink */
  --coral-muted: #929CAA;        /* secondary text, 6.9:1 on ink */

  /* Brand */
  --coral-peach-light: #FFC097;  /* hover, highlights */
  --coral-peach: #FFA66A;        /* primary accent, links, buttons */
  --coral-deep: #FF7F5C;         /* emphasis, gradient end */
  --coral-on-peach: #0B0F14;     /* text on peach fills */
  --coral-gradient: linear-gradient(90deg, #FFC097 0%, #FFA66A 50%, #FF7F5C 100%);
  --coral-glow: rgba(255, 166, 106, 0.18);

  /* Status (never use brand peach for status) */
  --coral-ok: #3FB950;           /* active, signing */
  --coral-warn: #E3B341;         /* delayed, inactive */
  --coral-bad: #FF6B6B;          /* jailed, error */
  --coral-neutral: #929CAA;      /* unknown, not available */

  /* Type */
  --coral-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --coral-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --coral-fs-xs: 0.875rem;       /* 14px small print, the minimum text size */
  --coral-fs-sm: 0.875rem;       /* 14px labels */
  --coral-fs-base: 1rem;         /* 16px body */
  --coral-fs-md: 1.125rem;       /* 18px lead text */
  --coral-fs-lg: 1.375rem;       /* 22px h3 */
  --coral-fs-xl: 1.75rem;        /* 28px h2 */
  --coral-fs-2xl: 2.25rem;       /* 36px stat numbers */
  --coral-fs-hero: clamp(2.75rem, 9vw, 5.5rem);
  --coral-lh-tight: 1.15;
  --coral-lh-body: 1.6;
  --coral-tracking-wide: 0.12em; /* mono eyebrows and the wordmark */

  /* Spacing, 4px base */
  --coral-space-1: 0.25rem;
  --coral-space-2: 0.5rem;
  --coral-space-3: 0.75rem;
  --coral-space-4: 1rem;
  --coral-space-5: 1.5rem;
  --coral-space-6: 2rem;
  --coral-space-7: 3rem;
  --coral-space-8: 4rem;
  --coral-space-9: 6rem;
  --coral-gutter: 1rem;          /* page side gutter on phones */
  --coral-measure: 68ch;         /* longest line of body text */
  --coral-width: 72rem;          /* page content width */

  /* Shape */
  --coral-radius-sm: 6px;
  --coral-radius-md: 12px;
  --coral-radius-lg: 20px;
  --coral-radius-pill: 999px;

  /* Motion */
  --coral-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --coral-dur-fast: 150ms;       /* hover, focus */
  --coral-dur: 300ms;            /* state changes */
  --coral-dur-slow: 700ms;       /* reveals */
  --coral-dur-draw: 1800ms;      /* logo drawing in */
  --coral-dur-count: 1200ms;     /* number count-up */

  /* Focus */
  --coral-focus-ring: 0 0 0 2px var(--coral-ink), 0 0 0 4px var(--coral-peach-light);
}

@media (min-width: 40rem) {
  :root { --coral-gutter: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --coral-dur-fast: 0.01ms;
    --coral-dur: 0.01ms;
    --coral-dur-slow: 0.01ms;
    --coral-dur-draw: 0.01ms;
    --coral-dur-count: 0.01ms;
  }
}
