/**
 * Design system: shared color, type, and reset primitives.
 * Every other stylesheet builds on the tokens declared here.
 */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #e7e7e7;
  --line-strong: #dfe2e5;
  --text: #333333;
  --muted: #777777;
  --subtle: #f8f8f8;
  --accent: #4183C4;
  --accent-strong: #336699;
  --accent-soft: #f0f6ff;
  --danger: #dc2626;
  --mark: #fef3c7;
  --code-bg: #f8f8f8;
  --code-line: #e7eaed;
  --code-text: #24292f;
  --code-label: #8f4d39;
  --code-heading: #1f6feb;
  --code-info: #0969da;
  --code-inline: #8250df;
  --code-delete: #cf222e;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --ui-font: "Vazirmatn", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --latin-font: "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono-font: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
}

body {
  transition: background-color 200ms ease, color 200ms ease;
}

* {
  box-sizing: border-box;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

body.dark {
  color-scheme: dark;
  --bg: #0f1419;
  --panel: #182027;
  --panel-strong: #222c35;
  --line: #33414b;
  --line-strong: #465764;
  --text: #eef2f5;
  --muted: #aab7c2;
  --subtle: #202b34;
  --accent: #70b7ff;
  --accent-strong: #8fc8ff;
  --accent-soft: #203b52;
  --danger: #ff8f8f;
  --mark: #5b4b1c;
  --code-bg: #202a31;
  --code-line: #45525d;
  --code-text: #e5edf3;
  --code-label: #f0b39e;
  --code-heading: #8fc8ff;
  --code-info: #9ed0ff;
  --code-inline: #d3b2ff;
  --code-delete: #ff9f9f;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 16px;
  line-height: 1.65;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.material-symbols-outlined {
  display: inline-grid;
  width: 1em;
  height: 1em;
  place-items: center;
  vertical-align: middle;
}

.material-symbols-outlined svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}
