/* ==========================================================================
   base.css — design tokens, reset, typography

   Direction: bright and white. Pure white surfaces on a very light canvas,
   soft shadows, rounded corners, one calm blue accent. Light mode only.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #F6F8FB;          /* canvas */
  --surface: #FFFFFF;     /* cards, sidebar, top bar */
  --surface-2: #F3F5F9;   /* hover / wells */
  --surface-3: #E9EDF3;
  --fg: #1B2433;          /* text */
  --fg-2: #3C4657;
  --muted: #6B7587;
  --faint: #9AA3B2;
  --line: #E8ECF2;
  --line-strong: #D6DCE5;

  /* accent: calm blue */
  --accent: #2F6BFF;
  --accent-hover: #1F5BEF;
  --accent-fg: #FFFFFF;
  --accent-soft: #EEF3FF;
  --accent-soft-2: #DCE6FF;
  --accent-ring: rgba(47, 107, 255, .18);

  /* primary buttons use the accent */
  --ink: var(--accent);
  --ink-fg: #FFFFFF;
  --ink-hover: var(--accent-hover);

  /* semantic, soft */
  --good: #12935B;   --good-soft: #E7F7EF;
  --warn: #B26A00;   --warn-soft: #FFF4E0;
  --bad: #D33A2C;    --bad-soft: #FDEDEB;
  --info: #2F6BFF;   --info-soft: #EEF3FF;
  --violet: #7650E0; --violet-soft: #F2EDFF;

  /* elevation */
  --shadow-card: 0 1px 2px rgba(27, 36, 51, .04), 0 2px 8px rgba(27, 36, 51, .04);
  --shadow-hover: 0 2px 4px rgba(27, 36, 51, .05), 0 8px 24px rgba(27, 36, 51, .08);
  --shadow-float: 0 4px 12px rgba(27, 36, 51, .08), 0 16px 40px rgba(27, 36, 51, .12);
  --shadow-modal: 0 8px 24px rgba(27, 36, 51, .10), 0 32px 80px rgba(27, 36, 51, .18);

  /* shape */
  --r-sm: 10px;
  --r: 14px;

  /* type */
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Heebo", system-ui, sans-serif;

  /* layout */
  --side-w: 240px;
  --content-max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--font); text-wrap: balance; margin: 0; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft-2); }

/* ---------- helpers ---------- */
.num, .mono { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; text-align: right; unicode-bidi: plaintext; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }
kbd {
  font: 500 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 3px 6px; background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
