:root {
  /* Brand and accent (not theme-aware) */
  --color-brand: #342e37;
  --color-brand-hover: #4a4150;
  --color-accent: #f59e0b;
  --color-accent-strong: #fbbf24;
  --color-white: #ffffff;
  --color-on-dark: #f2efe9; /* text on brand, nav and footer */
  --color-on-dark-muted: #8f8a84; /* muted text on nav and footer */
  --color-hero: linear-gradient(138deg, #ffe608 0%, #f8c300 66%, #f8b80d 100%);

  /* Theme-aware (overridden in html.dark) */
  --color-bg: #f5f4f6;
  --color-surface: #fbfafc;
  --color-border: #d6d3d8;
  --color-border-soft: #eeedf0;
  --color-text: #48434b;
  --color-text-muted: #7a7580;
  --color-heading: #342e37;
  --color-nav: #2a252c;

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --text-2xs: 0.65rem;
  --text-chip: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-logo: 1.21875rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.05;
  --leading-snug: 1.35;
  --leading-body: 1.6;
  --leading-heading: 1.4;
  --leading-relaxed: 1.75;

  --space-hair: 0.15rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;
  --radius-chip: calc(var(--radius-xl) * 0.45);
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(52, 46, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(52, 46, 55, 0.1);
  --shadow-lg: 0 10px 28px rgba(52, 46, 55, 0.16);
  /* Material elevation 8: key, ambient and penumbra layers in brand tint */
  --shadow-raised: 0 5px 5px -3px rgba(52, 46, 55, 0.2), 0 8px 10px 1px rgba(52, 46, 55, 0.14), 0 3px 14px 2px rgba(52, 46, 55, 0.12);
  --shadow-edge: 0 20px 30px -20px rgba(52, 46, 55, 0.2);
  --shadow-edge-inset: inset 0 -20px 30px -20px rgba(52, 46, 55, 0.2);

  --btn-padding: 0.65rem 1.25rem;
  --badge-padding: 0.2rem 0.65rem;

  --gutter: 2rem;
  --container: 72rem;
  --sidebar-width: 19rem;
  --nav-height: 4.5rem;
  --donut-size: 9rem;
  --portrait-height: 20rem;
  --quote-min-height: 22rem;

  --gap-xs: 0.375rem;
  --gap-sm: 0.75rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --carousel-gap: 1.5rem;

  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
}

html.dark {
  --color-bg: #1f1c21;
  --color-surface: #48434b;
  --color-border: rgba(235, 234, 235, 0.16);
  --color-border-soft: rgba(235, 234, 235, 0.08);
  --color-text: #ebeaeb;
  --color-text-muted: rgba(235, 234, 235, 0.8);
  --color-heading: #ffffff;
  --color-nav: rgba(18, 18, 18, 0.92);
}
