:root {
  /* Spacing scale */
  --space-2: 0.125rem;
  --space-4: 0.25rem;
  --space-6: 0.375rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-20: 1.25rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-48: 3rem;
  --space-56: 3.5rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-96: 6rem;

  /* Color tokens derived from live */
  --color-page-top: #f1f1f1;
  --color-page-light: #fdf8ef;
  --color-page-dark: #0f1316;
  --color-page-dark-soft: #141b24;
  --color-text-primary: #141b24;
  --color-text-secondary: rgb(20 27 36 / 80%);
  --color-text-muted: rgb(20 27 36 / 72%);
  --color-text-meta: rgb(20 27 36 / 62%);
  --color-text-inverse: #fff;
  --color-text-inverse-muted: rgb(255 250 233 / 50%);
  --color-accent: #fc5723;
  --color-accent-strong: #b23b14;
  --color-accent-dark: #a83a16;
  --color-accent-on-dark: #ff8a65;
  --color-code-text: var(--color-accent-strong);
  --color-link-muted: #88887f;
  --color-surface-light-top: #fff;
  --color-surface-light-bottom: #ededed;
  --color-surface-dark-top: #141b24;
  --color-surface-dark-bottom: #0f1316;
  --color-surface-panel: #0f1316;
  --color-surface-cta: #fdfdfd;

  /* Radius scale */
  --radius-card-sm: 1.5rem;
  --radius-card-md: 1.875rem;
  --radius-card-lg: 2.5rem;
  --radius-card-xl: 3.125rem;
  --radius-panel-xl: 5rem;
  --radius-pill: 6.25rem;

  /* Shadows */
  --shadow-card-soft: 0 1px 20px rgb(0 0 0 / 4%);
  --shadow-cta: 0 1px 12px 5px rgb(251 88 34 / 45%);
  --shadow-card-deep: 0 32px 80px rgb(17 21 23 / 16%);
  --shadow-card-medium: 0 18px 44px rgb(17 21 23 / 9%);

  /* Layout */
  --layout-width: 1180px;
  --content-width: 820px;
  --shell-width: 1360px;
  --header-offset: 5.25rem;
  --button-height: 3rem;
  --button-padding-inline: 1.5rem;

  /* Backwards-compatible aliases for the current stylesheet */
  --page-bg: var(--color-page-light);
  --page-bg-strong: var(--color-page-dark);
  --page-bg-soft: var(--color-page-dark-soft);
  --surface: rgb(255 250 239 / 92%);
  --surface-strong: var(--color-page-light);
  --surface-muted: rgb(255 250 239 / 72%);
  --surface-dark: rgb(15 21 23 / 78%);
  --surface-dark-strong: rgb(15 21 23 / 92%);
  --surface-outline: rgb(16 23 24 / 8%);
  --surface-outline-strong: rgb(255 248 235 / 14%);
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-link-muted);
  --text-on-dark: var(--color-text-inverse);
  --text-on-dark-muted: rgb(255 247 237 / 72%);
  --accent-dark: var(--color-accent-dark);
  --accent-on-dark: var(--color-accent-on-dark);
  --accent-soft: rgb(251 88 34 / 12%);
  --accent-soft-strong: rgb(251 88 34 / 20%);
  --success-soft: rgb(96 170 123 / 16%);
  --shadow-strong: var(--shadow-card-deep);
  --shadow-soft: var(--shadow-card-medium);
  --radius-2xl: var(--radius-card-lg);
  --radius-xl: 1.75rem;
  --radius-lg: 1.375rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
}
