:root {
  color-scheme: light;
  --tf-canvas: #f6f6f3;
  --tf-surface: #ffffff;
  --tf-raised: #efefeb;
  --tf-border: #dedfd9;
  --tf-border-strong: #c6c8c1;
  --tf-text: #171918;
  --tf-secondary: #5e635f;
  --tf-tertiary: #858b86;
  --tf-paper: #ffffff;
  --tf-page: #f6f6f3;
  --tf-white: var(--tf-text);
  --tf-success: #197a4b;
  --tf-success-bg: #e8f5ed;
  --tf-warn: #9a6517;
  --tf-warn-bg: #fbf1de;
  --tf-danger: #b83a35;
  --tf-danger-bg: #fceae8;
  --tf-radius-xl: 28px;
  --tf-radius-lg: 20px;
  --tf-radius-md: 14px;
  --tf-radius-sm: 10px;
  --tf-shadow: 0 20px 60px rgba(24, 28, 25, .10);
  --tf-font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --tf-ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --tf-canvas: #090a0a;
  --tf-surface: #111312;
  --tf-raised: #191c1a;
  --tf-border: #2b2f2c;
  --tf-border-strong: #434944;
  --tf-text: #f4f5f2;
  --tf-secondary: #b4b9b4;
  --tf-tertiary: #777d78;
  --tf-paper: #111312;
  --tf-page: #090a0a;
  --tf-white: var(--tf-text);
  --tf-success: #57d49a;
  --tf-success-bg: #123a29;
  --tf-warn: #f1b75d;
  --tf-warn-bg: #3b2d16;
  --tf-danger: #ff7c73;
  --tf-danger-bg: #3f211f;
  --tf-shadow: 0 24px 72px rgba(0, 0, 0, .42);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  min-width: 320px;
  font-family: var(--tf-font);
  background: var(--tf-canvas);
  transition: background-color .18s var(--tf-ease), color .18s var(--tf-ease);
}
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--tf-text);
  outline-offset: 3px;
}

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