/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Figtree, self-hosted (latin subset, variable weight) */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/figtree-latin-f7c28c58.woff2") format("woff2");
}

/* Warm Vibrance tokens, from misc/groop-storyboard.html */
:root {
  --canvas: #fff; --surface: #FAF8F7; --surface-2: #F7F7F7;
  --ink-900: #1A1A1A; --ink-700: #484848; --ink-500: #717171; --ink-300: #B0B0B0;
  --border: #EBEBEB; --border-strong: #DDDDDD;
  --primary: #6D5EF5; --primary-hover: #5B4CE0; --primary-soft: #F0EEFF;
  --coral: #FF5A5F; --coral-soft: #FFF0EE;
  --aura: linear-gradient(135deg, #FF8A80 0%, #FF5C93 46%, #6D5EF5 100%);
  --success: #2B8A6A; --warning: #F5A623; --danger: #E0245E; --info: #5B51D8;
  --r-sm: 6px; --r-md: 9px; --r-lg: 12px; --r-pill: 999px;
  --font-sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --glow-opacity: .16;
  /* From the design guide's tokens.css: type scale, spacing, elevation, the glow and motion */
  --fs-12: .75rem; --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem;
  --fs-22: 1.375rem; --fs-28: 1.75rem; --fs-36: 2.25rem;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px; --s-12: 48px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --glow: 0 4px 14px rgba(109,94,245,.34), 0 10px 30px rgba(255,92,147,.20), 0 2px 12px rgba(255,138,128,.14);
  --glow-soft: 0 4px 18px rgba(109,94,245,.24), 0 8px 26px rgba(255,92,147,.14);
  --t-fast: 120ms; --t-base: 180ms;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  color-scheme: light;
}

/* Dark mode. data-theme is set before first paint by layouts/_theme.html.erb
   and switched by theme_controller.js. The surface matches the dark app icon. */
[data-theme="dark"] {
  --canvas: #1E1B24; --surface: #15131A; --surface-2: #24212B;
  --ink-900: #F5F3F7; --ink-700: #C9C5CF; --ink-500: #9A95A1; --ink-300: #5E5965;
  --border: #2E2A35; --border-strong: #3A3542;
  --primary: #8B7FF8; --primary-hover: #A79EFA; --primary-soft: #2A2545;
  --coral-soft: #3A2226;
  --success: #4CC49A; --danger: #FF6B8E; --info: #A79EFA;
  --glow-opacity: .30;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
