/* ==========================================================================
   Velosearch design system
   Warm paper, indigo ink, lila support, lime for improvement, orange for
   people and action. Lora display, Manrope body, IBM Plex Mono for data.
   Hand-rolled, dependency-free CSS. Tokens mirror the design-system artifact.
   ========================================================================== */

:root {
  color-scheme: light;

  /* core palette */
  --white: #faf6ed;
  --purple: #2a2670;
  --lila: #d4cfe5;
  --green: #c6cb3a;
  --orange: #d98841;

  /* derived surfaces */
  --cream: #fffefb;
  --cream-2: #f1ebdd;
  --cream-3: #e6decb;
  --paper: var(--white);
  --indigo: var(--purple);
  --indigo-2: #3b3699;
  --indigo-deep: #1d1a50;
  --lila-2: #ebe7f3;
  --lila-ink: #4a4380;
  --lav-strong: #a99bf7;
  --green-soft: #eef0c4;
  --green-ink: #6f7414;
  --orange-soft: #f7e3cc;
  --orange-ink: #8a4a12;

  /* text and lines */
  --text: #171616;
  --ink-soft: #3f3a37;
  --ink-faint: #6e6863;
  --line: rgba(42, 38, 112, 0.14);
  --line-2: rgba(42, 38, 112, 0.32);

  /* status */
  --ok: #4d5410;
  --ok-soft: var(--green-soft);
  --warn: var(--orange-ink);
  --warn-soft: var(--orange-soft);
  --danger: #9b2c1f;
  --danger-soft: #f6ddd8;

  /* type */
  --f-display: 'Lora', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* shape and motion */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --radius-lg: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 0 rgba(42, 38, 112, 0.04);
  --shadow: 0 30px 60px -30px rgba(42, 38, 112, 0.35);
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --maxw: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 500 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
:where(.page, .auth-card, .flash-stack, .callout) a {
  color: var(--indigo);
  font-weight: 700;
}
:where(.page, .auth-card, .flash-stack, .callout) a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2.5px solid var(--indigo);
  outline-offset: 3px;
}
.on-dark :focus-visible {
  outline-color: var(--green);
}
::selection {
  background: var(--green-soft);
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 600;
  margin: 0;
  color: var(--indigo);
  text-wrap: balance;
  letter-spacing: -0.015em;
}
:where(.page, .auth-card, .callout) :is(h1, h2, h3) {
  margin: 0 0 0.4em;
  line-height: 1.12;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
:where(.page, .auth-card, .callout, .flash-stack) p { margin: 0 0 0.8em; }
small { color: var(--ink-faint); }
code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  background: var(--cream-2);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  color: var(--indigo);
  word-break: break-all;
}
pre {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  background: var(--indigo-deep);
  color: #e6e2f6;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow: auto;
  line-height: 1.6;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Brand logo ---------------------------------------------------------- */
.brand-logo {
  display: block;
  height: 25px;
  width: auto;
}
