:root {
  color-scheme: light;
  --canvas: #f1f3f2;
  --surface: #ffffff;
  --surface-subtle: #f7f9f8;
  --surface-raised: #ffffff;
  --surface-inverse: #17211f;
  --ink: #17201e;
  --ink-strong: #0d1413;
  --muted: #66716e;
  --muted-strong: #4c5855;
  --line: #d9dfdc;
  --line-strong: #c5ceca;
  --sidebar: #17221f;
  --sidebar-active: #25332f;
  --sidebar-line: #34423e;
  --sidebar-ink: #edf2f0;
  --sidebar-muted: #9fada9;
  --brand: #d76f22;
  --brand-strong: #ae5216;
  --brand-soft: #fff4eb;
  --primary: #17695d;
  --primary-strong: #105247;
  --primary-soft: #eaf4f1;
  --ok: #176b46;
  --ok-soft: #e9f5ef;
  --danger: #a92d26;
  --danger-soft: #fbeeed;
  --warn: #936019;
  --warn-soft: #faf2e3;
  --info: #315f87;
  --info-soft: #edf3f8;
  --input-bg: #ffffff;
  --backdrop: rgb(15 22 20 / 58%);
  --shadow-float: 0 16px 40px rgb(20 34 30 / 14%);
  --shadow-dialog: 0 24px 72px rgb(12 22 19 / 22%);
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --sidebar-width: 238px;
  --topbar-height: 58px;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --duration-standard: 180ms;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101614;
  --surface: #18201e;
  --surface-subtle: #1c2623;
  --surface-raised: #202a27;
  --surface-inverse: #edf2f0;
  --ink: #e9efed;
  --ink-strong: #ffffff;
  --muted: #a3afab;
  --muted-strong: #c2cbc8;
  --line: #33403c;
  --line-strong: #485650;
  --sidebar: #0c1211;
  --sidebar-active: #1b2925;
  --sidebar-line: #293632;
  --sidebar-ink: #eef3f1;
  --sidebar-muted: #98a6a2;
  --brand: #e4853e;
  --brand-strong: #f09a59;
  --brand-soft: #322319;
  --primary: #59a99a;
  --primary-strong: #76c0b2;
  --primary-soft: #1b332e;
  --ok: #65b88a;
  --ok-soft: #1b3328;
  --danger: #ed8178;
  --danger-soft: #3a201f;
  --warn: #e3b15e;
  --warn-soft: #372c1c;
  --info: #8eb6d9;
  --info-soft: #1d2c38;
  --input-bg: #141c1a;
  --backdrop: rgb(0 0 0 / 68%);
  --shadow-float: 0 18px 48px rgb(0 0 0 / 28%);
  --shadow-dialog: 0 28px 80px rgb(0 0 0 / 46%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role="button"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: var(--space-2);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: 18px;
  line-height: 1.25;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: 15px;
  line-height: 1.3;
}

p {
  margin-bottom: var(--space-3);
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

::selection {
  background: color-mix(in srgb, var(--primary) 24%, transparent);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.muted,
small {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-inverse);
  color: var(--surface);
  transform: translateY(-150%);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
  transform: translateY(0);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
