:root {
  color-scheme: light;

  /* Colors — 06 §4. This is the only stylesheet allowed to hold raw values. */
  --color-primary: #ff385c;
  --color-primary-pressed: #e00b41;
  --color-primary-fill: #e00b41;
  --color-primary-fill-hover: #c8102e;
  --color-primary-fill-pressed: #b8002e;
  --color-danger-ink: #b4123a;
  --color-success: #0a7d43;

  --color-canvas: #ffffff;
  --color-ink: #222222;
  --color-body: #3f3f3f;
  --color-muted: #6a6a6a;
  --color-hairline: #dddddd;
  --color-surface-soft: #f7f7f7;

  /* State tints derive from the palette instead of introducing near-duplicates. */
  --color-success-soft: color-mix(in srgb, var(--color-success) 10%, var(--color-canvas));
  --color-success-line: color-mix(in srgb, var(--color-success) 30%, var(--color-canvas));
  --color-danger-soft: color-mix(in srgb, var(--color-primary-pressed) 8%, var(--color-canvas));
  --color-danger-line: color-mix(in srgb, var(--color-primary-pressed) 30%, var(--color-canvas));
  --color-scrim: rgb(0 0 0 / 50%);
  --color-veil: rgb(255 255 255 / 97%);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-sheet: 22px;
  --radius-pill: 9999px;

  /* Space — multiples of 4 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  /* Type */
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 28px;
  --text-5xl: 40px;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-body: 1.6;

  /* Component metrics */
  --header-height: 80px;
  --control-height: 48px;
  --touch-target: 44px;
  --touch-target-kitchen: 56px;
  --action-bar-height-fallback: 88px;

  --aspect-photo-list: 4 / 5;
  --aspect-photo-detail: 3 / 2;
  --aspect-photo-thumb: 1 / 1;

  /* Elevation — overlays, drawers and dropdowns only */
  --shadow-overlay: 0 0 0 1px rgb(0 0 0 / 2%), 0 2px 6px rgb(0 0 0 / 4%),
    0 4px 8px rgb(0 0 0 / 10%);

  /* Motion */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);

  --layout-max: 960px;
}
