/* Single token source for the brand homepage and Collect website.
   Shared components live in styles.css; page composition stays in brand/product.css. */
:root {
  /* Palette primitives. */
  --palette-white: #fff;
  --palette-black: #141414;
  --palette-gray-50: #f5f5f5;
  --palette-gray-200: #e4e4e4;
  --palette-gray-300: #ddd;
  --palette-gray-500: #787878;
  --palette-gray-600: #333;
  --palette-gray-900: #151515;
  --palette-blue-500: #215dff;
  --palette-blue-600: #124deb;

  /* Semantic colors. */
  --color-canvas: var(--palette-white);
  --color-surface: var(--palette-gray-50);
  --color-text: var(--palette-black);
  --color-text-secondary: var(--palette-gray-500);
  --color-text-inverse: var(--palette-white);
  --color-border: var(--palette-gray-200);
  --color-action: var(--palette-blue-500);
  --color-action-hover: var(--palette-blue-600);
  --color-action-dark: var(--palette-gray-900);
  --color-action-dark-hover: #303030;
  --color-focus: var(--color-action);
  --color-demo-dark: #17191b;
  --color-footer: #111;

  /* Existing typography and spacing scales; values preserve the current identity. */
  --font-sans: "Helvetica Neue", "PingFang TC", "Noto Sans TC", sans-serif;
  --font-wordmark: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Segoe UI", sans-serif;
  --font-size-12: 12px;
  --font-size-14: 14px;
  --font-size-16: 16px;
  --font-size-18: 18px;
  --font-size-20: 20px;
  --font-size-24: 24px;
  --font-size-28: 28px;
  --font-size-32: 32px;
  --font-size-40: 40px;
  --font-size-48: 48px;
  --font-size-52: 52px;
  --font-size-64: 64px;
  --type-display-weight: 700;
  --type-heading-weight: 650;
  --type-section-size: clamp(30px, 3.6vw, 52px);
  --type-section-line: 1.3;
  --type-section-tracking: -.035em;
  --type-body-size: var(--font-size-16);
  --type-body-line: 1.8;
  --type-lead-size: var(--font-size-18);
  --type-caption-size: var(--font-size-12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-14: 14px;
  --radius-16: 16px;
  --radius-18: 18px;
  --radius-20: 20px;
  --radius-24: 24px;
  --radius-28: 28px;
  --radius-30: 30px;
  --radius-32: 32px;
  --radius-48: 48px;
  --radius-pill: 999px;
  --layout-container: 1240px;
  --layout-reading: 960px;
  --layout-gutter: var(--space-12);

  /* Shared component roles. */
  --button-height: 52px;
  --button-radius: var(--radius-pill);
  --button-padding-block: 14px;
  --button-padding-inline: 26px;
  --button-gap: 18px;
  --control-touch: 44px;
  --nav-width: 1010px;
  --nav-height: 60px;
  --nav-radius: var(--radius-30);
  --nav-surface: rgba(237,237,237,.74);
  --nav-blur: 18px;
  --nav-gap: var(--space-6);
  --nav-offset: var(--space-6);
  --nav-action-width: 110px;
  --nav-action-height: var(--control-touch);
  --motion-duration: .2s;
  --motion-ease: cubic-bezier(.22,1,.36,1);
  --layer-nav: 40;

  /* Legacy content typography names, now backed by the same scales. */
  --space-20: 80px;
  --font-size-1: var(--font-size-12);
  --font-size-3: var(--font-size-14);
  --font-size-4: var(--font-size-16);
  --font-size-5: var(--font-size-18);
  --font-size-6: var(--font-size-20);
  --font-size-7: var(--font-size-24);
  --font-size-8: var(--font-size-32);
  --font-size-9: 44px;
  --font-weight-bold: var(--type-display-weight);
  --font-weight-semibold: 600;
  --font-family-mono: ui-monospace,monospace;
  --color-action-primary: var(--color-action);
  --color-action-soft: #edf2ff;
  --color-bg-surface: #f6f6f6;
  --color-text-tertiary: #444;
  --line-height-heading: var(--type-section-line);
  --line-height-body: var(--type-body-line);
  --line-height-reading: 1.95;
  --line-height-ui: 1.5;
  --radius-md: var(--radius-10);
  --radius-xl: var(--radius-20);
  --media-radius: var(--radius-16);
  --touch-target-min: var(--control-touch);
  --surface-border: 1px solid var(--color-border);

  /* Compatibility aliases used throughout existing website styles. */
  --ink: var(--color-text);
  --muted: var(--color-text-secondary);
  --blue: var(--color-action);
  --soft: var(--color-surface);
  --dark: var(--color-demo-dark);
  --ease: var(--motion-ease);
  --gutter: var(--layout-gutter);
  --font: var(--font-sans);
}
@media (max-width:1100px) { :root { --layout-gutter: var(--space-8); } }
@media (max-width:800px) { :root { --layout-gutter: var(--space-6); } }
@media (max-width:600px) {
  :root {
    --layout-gutter: var(--space-5);
    --type-section-size: 32px;
    --nav-height: 56px;
    --nav-offset: var(--space-3);
    --nav-gap: var(--space-3);
    --nav-action-width: auto;
    --nav-action-height: 40px;
  }
}
@media (max-width:360px) { :root { --layout-gutter: var(--space-4); } }
