/* Direction: Content Buddy — premium light SaaS, lavender accent, charcoal ink */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f7f6fb;
  --surface: #ffffff;
  --surface-2: #f1eefa;
  --border: #e6e2f1;
  --border-strong: #b2b0b9;
  --ink: #24212f;
  --muted: #6a6578;
  --accent: #7c5cdb;
  --accent-hover: #694eba;
  --accent-ink: #ffffff;
  --accent-text: #6144c0;
  --accent-strong: #4f379f;
  --accent-soft: #efeafc;
  --accent-border: #c0b1ed;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dce8e4;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #efe2de;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f0dce0;
  --danger-strong: #b91c1c;
  --chart-1: #7c5cdb;
  --chart-2: #e359a1;
  --chart-3: #96480d;
  --chart-4: #91941b;
  --chart-5: #156e58;
  --chart-6: #1796c6;

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --shadow-card: 0 1px 2px rgba(36, 33, 47, 0.04), 0 8px 24px -12px rgba(90, 64, 180, 0.16);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #0e0b1a;
  --surface: #262331;
  --surface-2: #1a1725;
  --border: #302d3a;
  --border-strong: #56545f;
  --ink: #f7f6fb;
  --muted: #9a98a1;
  --accent: #7c5cdb;
  --accent-hover: #9074e0;
  --accent-ink: #ffffff;
  --accent-text: #9980e3;
  --accent-strong: #9980e3;
  --accent-soft: #261d44;
  --accent-border: #3f2f71;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #102522;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #331b16;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #340f1a;
  --danger-strong: #d16969;
  --chart-1: #7c5cdb;
  --chart-2: #e359a1;
  --chart-3: #c2621c;
  --chart-4: #91941b;
  --chart-5: #179577;
  --chart-6: #239ccd;
}

/* Content Buddy — the few things no utility covers */

@keyframes cb-rise {
  from { transform: translateY(10px); }
  to { transform: none; }
}
.rise { animation: cb-rise 0.4s ease-out both; }
html.reduced-motion .rise { animation: none; }

/* Loading indicator for the generator: hidden until htmx marks it busy */
.gen-loading { display: none; }
.gen-loading.htmx-request { display: flex; }

.nav-link { transition: background-color 0.15s, color 0.15s; }
.lift { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised, var(--shadow-card)); }
html.reduced-motion .lift:hover { transform: none; }

#genform button[disabled] { opacity: 0.6; cursor: wait; }
