@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Warna inti */
  --c-primary: #3645a5;
  --c-secondary: #6874c2;
  --c-tertiary: #ffffff;

  /* Turunan primer (secondary hanya untuk grafis/teks besar: 4.32:1) */
  --c-primary-hover: #2d3a8f;
  --c-primary-active: #25307a;
  --c-primary-soft: #eef0fa;
  --c-primary-soft-2: #dfe3f6;
  --c-primary-border: #b9c0e6;
  --c-secondary-soft: #f1f2fa;
  --c-on-primary: var(--c-tertiary);

  /* Permukaan & teks */
  --c-bg: var(--c-tertiary);
  --c-surface: var(--c-tertiary);
  --c-surface-2: #f7f7fa;
  --c-surface-3: #eff0f4;
  --c-border: #e5e6ec;
  --c-border-strong: #cdd0da;
  --c-text: #1b1d29;
  --c-text-2: #3b3f51;
  --c-text-muted: #5c6175;
  --c-placeholder: #6a6f83;
  --c-focus: var(--c-primary);
  --c-overlay: rgb(17 19 34 / 0.42);

  /* Semantik */
  --c-danger: #c0303f;
  --c-danger-hover: #a52634;
  --c-danger-soft: #fdeef0;
  --c-success: #1b7444;
  --c-success-soft: #e6f4ec;
  --c-warning: #8f5400;
  --c-warning-soft: #fdf3e1;
  --c-info: #2b59c3;
  --c-info-soft: #e9effd;

  /* Status Dev Task */
  --st-open: #4a5468;
  --st-open-soft: #eef0f4;
  --st-discuss: #8f5400;
  --st-discuss-soft: #fdf3e1;
  --st-progress: #2b59c3;
  --st-progress-soft: #e9effd;
  --st-review: #0b6e79;
  --st-review-soft: #e3f4f6;
  --st-backlog: #5c6175;
  --st-backlog-soft: #f1f2f5;
  --st-testing: #7a3fb8;
  --st-testing-soft: #f3ecfb;
  --st-finish: #1b7444;
  --st-finish-soft: #e6f4ec;

  /* Prioritas */
  --prio-low: #5c6175;
  --prio-medium: var(--c-primary);
  --prio-high: #b04a0c;
  --prio-urgent: #c0303f;

  /* Tipografi */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-11: 11px; /* mikro: inisial avatar ≤ 24px & tagline di bawah nama aplikasi */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-24: 24px;
  --lh: 1.5;
  --lh-tight: 1.25;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Spasi (grid 4px) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;

  /* Bentuk */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-full: 999px;
  --sh-1: 0 1px 2px rgb(16 18 35 / 0.06);
  --sh-2: 0 6px 20px rgb(16 18 35 / 0.08), 0 1px 3px rgb(16 18 35 / 0.06);
  --sh-3: 0 18px 48px rgb(16 18 35 / 0.16), 0 2px 6px rgb(16 18 35 / 0.06);
  --ring: 0 0 0 3px var(--c-primary-soft-2);
  --ring-danger: 0 0 0 3px var(--c-danger-soft);

  /* Ukuran tata letak */
  --sidebar-w: 232px;
  --topbar-h: 48px;
  --control-h: 32px;
  --control-h-sm: 26px;
  --tap-min: 40px; /* target sentuh minimum di layar sentuh/mobile */

  /* Lapisan */
  --z-sticky: 10;
  --z-popover: 30;
  --z-drawer: 40;
  --z-modal: 60;
  --z-toast: 80;

  /* Gerak */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-shimmer: 1400ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Kepadatan sentuh: kontrol setinggi target sentuh; desktop berpenunjuk halus tetap 32px */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  :root { --control-h: var(--tap-min); }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
    --dur-shimmer: 0ms;
  }
}
