/* گرافیت، مینیمال فنی و تم پیش‌فرض. این بلوک را در :root بگذارید. */
:root {
  color-scheme: dark;

  /* رنگ */
  --background: oklch(0.115 0.002 285);
  --foreground: oklch(0.975 0 0);
  --card: oklch(0.14 0.002 285);
  --card-foreground: oklch(0.975 0 0);
  --popover: oklch(0.16 0.002 285);
  --popover-foreground: oklch(0.975 0 0);
  --primary: oklch(0.975 0 0);
  --primary-foreground: oklch(0.13 0 0);
  --secondary: oklch(0.2 0.002 285);
  --secondary-foreground: oklch(0.975 0 0);
  --muted: oklch(0.175 0.002 285);
  --muted-foreground: oklch(0.63 0.004 285);
  --accent: oklch(0.2 0.002 285);
  --accent-foreground: oklch(0.975 0 0);
  --destructive: oklch(0.65 0.2 25);
  --success: oklch(0.75 0.16 160);
  --warning: oklch(0.82 0.16 80);
  --border: oklch(1 0 0 / 8%);
  --input: oklch(1 0 0 / 11%);
  --ring: oklch(0.7 0 0);
  --brand: oklch(0.8 0.165 65);
  --brand-foreground: oklch(0.22 0.06 60);

  /* زبان طراحی: فونت، فرم، خط، عمق، حرکت و تراکم */
  --radius: 0.625rem;
  --type-display-weight: 700;
  --shape-control: calc(var(--radius) - 2px);
  --shape-field: calc(var(--radius) - 2px);
  --shape-surface: calc(var(--radius) + 12px);
  --shape-overlay: calc(var(--radius) + 4px);
  --line: 1px;
  --line-field: 1px;
  --line-style: solid;
  --field: color-mix(in oklch, var(--background) 60%, transparent);
  --depth-control: 0 0 #0000;
  --depth-press: 0 0 #0000;
  --depth-field: 0 0 #0000;
  --depth-surface: 0 1px 0 0 oklch(1 0 0 / 6%) inset;
  --depth-overlay: 0 20px 50px -20px oklch(0 0 0 / 80%);
  --surface-filter: none;
  --press: scale(0.98);
  --motion: 200ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --backdrop: none;
  --spacing: 0.25rem;
}

/* نسخهٔ روشن گرافیت؛ همان تایپوگرافی، هندسه و سلسله‌مراتب. */
[data-theme="paper"] {
  color-scheme: light;
  --background: oklch(0.967 0.003 285);
  --foreground: oklch(0.205 0.008 285);
  --card: oklch(0.995 0.001 285);
  --card-foreground: oklch(0.205 0.008 285);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.205 0.008 285);
  --primary: oklch(0.235 0.008 285);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.945 0.004 285);
  --secondary-foreground: oklch(0.25 0.008 285);
  --muted: oklch(0.952 0.003 285);
  --muted-foreground: oklch(0.46 0.01 285);
  --accent: oklch(0.931 0.005 285);
  --accent-foreground: oklch(0.205 0.008 285);
  --destructive: oklch(0.52 0.19 25);
  --success: oklch(0.43 0.12 160);
  --warning: oklch(0.48 0.1 70);
  --border: oklch(0.22 0.008 285 / 12%);
  --input: oklch(0.22 0.008 285 / 20%);
  --ring: oklch(0.48 0.04 65);
  --brand: oklch(0.54 0.13 55);
  --brand-foreground: oklch(0.995 0 0);
  --radius: 0.625rem;
  --type-display: var(--type-body);
  --type-display-weight: 700;
  --shape-control: calc(var(--radius) - 2px);
  --shape-field: calc(var(--radius) - 2px);
  --shape-surface: calc(var(--radius) + 12px);
  --shape-overlay: calc(var(--radius) + 4px);
  --line: 1px;
  --line-field: 1px;
  --line-style: solid;
  --field: oklch(0.985 0.002 285);
  --depth-control: 0 0 #0000;
  --depth-press: 0 0 #0000;
  --depth-field: 0 0 #0000;
  --depth-surface: 0 1px 2px oklch(0.2 0.008 285 / 3%);
  --depth-overlay: 0 24px 70px -20px oklch(0.2 0.008 285 / 23%);
  --surface-filter: none;
  --press: scale(0.98);
  --motion: 200ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --backdrop: none;
  --spacing: 0.25rem;
}
