/*
 * 开心来练歌 · design tokens
 * Canonical source: this file. Mirror for the native mini-program: packages/design/design-tokens.wxss.
 * Mobile-first; desktop surfaces (admin) use the same palette, type and shape scale.
 */
:root {
  color-scheme: light;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-numeric: Arial, Helvetica, sans-serif;
  --text-display: 27px;
  --text-page-title: 24px;
  --text-section: 20px;
  --text-card-title: 18px;
  --text-control: 16px;
  --text-body: 15px;
  --text-small: 13px;
  --text-caption: 12px;
  --leading-title: 1.25;
  --leading-body: 1.65;
  --leading-caption: 1.55;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 650;
  --weight-bold: 700;
  --weight-heavy: 800;

  /* Color — fresh mint skin from the 2026 prototype */
  --color-canvas: #f5fdfa;
  --color-canvas-deep: #dff6ee;
  --color-surface: #ffffff;
  --color-surface-muted: #f3fbf8;
  --color-surface-blue: #f0fbf7;
  --color-text: #1f2937;
  --color-text-strong: #12332b;
  --color-text-muted: #64748b;
  --color-text-subtle: #63756f;
  --color-text-inverse: #ffffff;
  --color-border: #edf7f4;
  --color-border-strong: #e5f1ee;
  --color-primary: #0e9f7f;
  --color-primary-strong: #0b7a62;
  --color-primary-soft: #e6f9f5;
  --color-primary-wash: #f0fbf7;
  --color-primary-ring: #7ed9c8;
  --color-accent: #34ccb0;
  --color-accent-strong: #0b7a62;
  --color-accent-soft: #e9f9f3;
  --color-danger: #b33227;
  --color-danger-soft: #ffecec;
  --color-success: #0e7a5f;
  --color-success-soft: #e9f9f3;
  --color-warning: #8a5e08;
  --color-warning-soft: #fff4dc;
  --color-focus: #0e9f7f;
  --color-disabled-surface: #eef4f1;
  --color-disabled-text: #7a8c86;
  --opacity-disabled: .55;

  /* Shape — soft rounded cards with green-tinted shadows */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-control: 14px;
  --radius-card: 18px;
  --radius-large: 22px;
  --radius-sheet: 26px;
  --radius-pill: 999px;
  --border-width: 1px;
  --shadow-card: 0 2px 8px rgba(14, 159, 127, .08);
  --shadow-float: 0 14px 34px rgba(14, 159, 127, .20);
  --shadow-primary: 0 4px 12px rgba(14, 159, 127, .32);
  --shadow-accent: 0 6px 16px rgba(14, 159, 127, .30);
  --shadow-chrome: 0 1px 0 #edf7f4;

  /* Spacing and sizing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --page-gutter: 12px;
  --card-padding: 16px;
  --card-padding-compact: 9px;
  --control-height: 44px;
  --button-height: 46px;
  --tap-min: 44px;

  /* Green brand gradients for the singing action; canvas and cards stay soft. */
  --gradient-accent: linear-gradient(135deg, #0c8366 0%, #0a6b55 100%);
  --gradient-canvas: linear-gradient(180deg, #f5fdfa 0%, #e8f8f4 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
  --gradient-sun: linear-gradient(135deg, #e6f9f5 0%, #c9efe9 100%);

  /* Motion, layering and icon sizes */
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --focus-ring-width: 3px;
  --focus-ring-offset: 3px;
  --z-chrome: 40;
  --z-sheet: 75;
  --z-modal: 80;
  --z-toast: 90;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --layout-mobile-max: 440px;
  /* Practice typography */
  --note-size: 19px;
  --lyric-size: 14px;
  --note-size-large: 22px;
  --lyric-size-large: 17px;
  --note-size-largest: 26px;
  --lyric-size-largest: 20px;

  /* Legacy aliases used by existing styles; keep one source of truth. */
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --blue: var(--color-primary-strong);
  --blue-soft: var(--color-primary-wash);
  --line: var(--color-border-strong);
  --orange: var(--color-accent);
  --bg: var(--color-canvas);
  --green: var(--color-success);
}
