/* GENERATED BY scripts/build_tokens.py — DO NOT HAND-EDIT */
/* Motu DS v1.1.0 · sha256:b69f32e49818 · prefix: --motu-* */

:root,
.motu-scope {
  color-scheme: light;
  /* Semantic colors (Light — Crisp Modern White/Gray/Obsidian from motucloud.com) */
  --motu-bg: #FFFFFF;
  --motu-surface: #FFFFFF;
  --motu-surface-soft: #F8F8F8;
  --motu-surface-muted: #F3F3F3;
  --motu-surface-hover: #EAEAEA;
  --motu-band-dark: #0A0A0A;
  --motu-ink: #0A0A0A;
  --motu-ink-2: #333333;
  --motu-muted: #666666;
  --motu-faint: #8F8F8F;
  --motu-line: #E5E5E5;
  --motu-line-strong: #CCCCCC;
  --motu-cta: #0A0A0A;
  --motu-cta-hover: #262626;
  --motu-on-cta: #FFFFFF;
  --motu-wine: #780000;
  --motu-wine-hover: #5C0000;
  --motu-wine-fill: #780000;
  --motu-on-wine: #FFFFFF;
  --motu-wine-soft: #FDF4F4;
  --motu-wine-line: rgba(120, 0, 0, 0.22);
  --motu-focus-ring: rgba(10, 10, 10, 0.28);
  --motu-backdrop: rgba(10, 10, 10, 0.42);
  --motu-toast-bg: #0A0A0A;
  --motu-toast-fg: #FFFFFF;
  --motu-ok: #166534;
  --motu-ok-soft: #F0FDF4;
  --motu-warn: #92400E;
  --motu-warn-soft: #FFFBEB;
  --motu-danger: #B42318;
  --motu-danger-soft: #FEF2F2;

  /* Elevation (Flat resting cards; subtle lift for float/modal only) */
  --motu-shadow-none: none;
  --motu-shadow-float: 0 10px 30px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.04);
  --motu-shadow-modal: 0 20px 50px rgba(10, 10, 10, 0.16);

  /* Typography (Strict 400 weight baseline; zero browser fake-bold) */
  --motu-font-ui: "Spinnaker", "wenfeng-albbpht", "Alibaba PuHuiTi R", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --motu-font-display: "wenfeng-dymht", "Spinnaker", "wenfeng-albbpht", "Douyin Sans", "PingFang SC", sans-serif;
  --motu-font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --motu-fw-regular: 400;
  --motu-text-xs: 12px;
  --motu-text-sm: 14px;
  --motu-text-base: 16px;
  --motu-text-md: 18px;
  --motu-text-lg: 24px;
  --motu-text-xl: 30px;
  --motu-text-hero: 45px;
  --motu-lh-tight: 1.15;
  --motu-lh-snug: 1.35;
  --motu-lh-normal: 1.65;
  --motu-lh-reading: 1.75;

  /* Spacing (4px base) */
  --motu-space-1: 4px;
  --motu-space-2: 8px;
  --motu-space-3: 12px;
  --motu-space-4: 16px;
  --motu-space-5: 20px;
  --motu-space-6: 24px;
  --motu-space-8: 32px;
  --motu-space-10: 40px;
  --motu-space-12: 48px;
  --motu-space-16: 64px;

  /* Radii (Crisp editorial geometry) */
  --motu-r-xs: 4px;
  --motu-r-sm: 8px;
  --motu-r-md: 10px;
  --motu-r-lg: 14px;
  --motu-r-pill: 999px;

  /* Layout containers & chrome */
  --motu-container-doc: 64rem;
  --motu-container-app: 80rem;
  --motu-container-gallery: 96rem;
  --motu-header-height: 64px;
  --motu-sidebar-width: 240px;

  /* Z-index scale */
  --motu-z-base: 0;
  --motu-z-sticky: 20;
  --motu-z-dropdown: 40;
  --motu-z-drawer: 60;
  --motu-z-modal: 80;
  --motu-z-toast: 100;

  /* Calm motion */
  --motu-dur-fast: 140ms;
  --motu-dur: 160ms;
  --motu-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Component geometry */
  --motu-button-height: 40px;
  --motu-button-height-sm: 34px;
  --motu-input-height: 40px;
  --motu-card-padding: 24px;
}

/* Dark Mode — Crisp Obsidian Monochrome (matches motucloud.com #0A0A0A banner) */
:root[data-theme="dark"],
html.dark,
.motu-scope[data-theme="dark"] {
  color-scheme: dark;
  --motu-bg: #0A0A0A;
  --motu-surface: #141414;
  --motu-surface-soft: #1C1C1C;
  --motu-surface-muted: #242424;
  --motu-surface-hover: #2E2E2E;
  --motu-band-dark: #000000;
  --motu-ink: #FAFAFA;
  --motu-ink-2: #D4D4D4;
  --motu-muted: #A3A3A3;
  --motu-faint: #666666;
  --motu-line: #262626;
  --motu-line-strong: #404040;
  --motu-cta: #FFFFFF;
  --motu-cta-hover: #E5E5E5;
  --motu-on-cta: #0A0A0A;
  --motu-wine: #E59898;
  --motu-wine-hover: #F0B2B2;
  --motu-wine-fill: #9A2626;
  --motu-on-wine: #FFFFFF;
  --motu-wine-soft: rgba(154, 38, 38, 0.22);
  --motu-wine-line: rgba(229, 152, 152, 0.30);
  --motu-focus-ring: rgba(250, 250, 250, 0.34);
  --motu-backdrop: rgba(0, 0, 0, 0.68);
  --motu-toast-bg: #FAFAFA;
  --motu-toast-fg: #0A0A0A;
  --motu-ok: #4ADE80;
  --motu-ok-soft: rgba(74, 222, 128, 0.14);
  --motu-warn: #FBBF24;
  --motu-warn-soft: rgba(251, 191, 36, 0.14);
  --motu-danger: #F08078;
  --motu-danger-soft: rgba(240, 128, 120, 0.16);
  --motu-shadow-none: none;
  --motu-shadow-float: 0 14px 36px rgba(0, 0, 0, 0.45);
  --motu-shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.62);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light),
  .motu-scope:not([data-theme="light"]) {
    color-scheme: dark;
    --motu-bg: #0A0A0A;
    --motu-surface: #141414;
    --motu-surface-soft: #1C1C1C;
    --motu-surface-muted: #242424;
    --motu-surface-hover: #2E2E2E;
    --motu-band-dark: #000000;
    --motu-ink: #FAFAFA;
    --motu-ink-2: #D4D4D4;
    --motu-muted: #A3A3A3;
    --motu-faint: #666666;
    --motu-line: #262626;
    --motu-line-strong: #404040;
    --motu-cta: #FFFFFF;
    --motu-cta-hover: #E5E5E5;
    --motu-on-cta: #0A0A0A;
    --motu-wine: #E59898;
    --motu-wine-hover: #F0B2B2;
    --motu-wine-fill: #9A2626;
    --motu-on-wine: #FFFFFF;
    --motu-wine-soft: rgba(154, 38, 38, 0.22);
    --motu-wine-line: rgba(229, 152, 152, 0.30);
    --motu-focus-ring: rgba(250, 250, 250, 0.34);
    --motu-backdrop: rgba(0, 0, 0, 0.68);
    --motu-toast-bg: #FAFAFA;
    --motu-toast-fg: #0A0A0A;
    --motu-ok: #4ADE80;
    --motu-ok-soft: rgba(74, 222, 128, 0.14);
    --motu-warn: #FBBF24;
    --motu-warn-soft: rgba(251, 191, 36, 0.14);
    --motu-danger: #F08078;
    --motu-danger-soft: rgba(240, 128, 120, 0.16);
    --motu-shadow-none: none;
    --motu-shadow-float: 0 14px 36px rgba(0, 0, 0, 0.45);
    --motu-shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.62);
  }
}

/* Global Motu baseline rules (opt-in via .motu-app or .motu-scope) */
.motu-app,
.motu-scope {
  background-color: var(--motu-bg);
  color: var(--motu-ink);
  font-family: var(--motu-font-ui);
  font-size: var(--motu-text-base);
  font-weight: var(--motu-fw-regular);
  line-height: var(--motu-lh-normal);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.motu-app :is(h1, h2, h3, h4, h5, h6, strong, b, th, button, label),
.motu-scope :is(h1, h2, h3, h4, h5, h6, strong, b, th, button, label) {
  font-weight: var(--motu-fw-regular);
}

.motu-app :is(a, button):focus-visible,
.motu-scope :is(a, button):focus-visible {
  outline: 2px solid var(--motu-ink);
  outline-offset: 2px;
}

.motu-tabular {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .motu-app *,
  .motu-scope * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
