:root {
  /* Brand palette */
  --color-bg: #15130f;
  --color-surface: #201d18;
  --color-surface-soft: #29251f;
  --color-surface-raised: #312c25;

  --color-text: #f4efe6;
  --color-text-muted: #b4a898;
  --color-text-subtle: #887d70;

  --color-accent: #c69a5b;
  --color-accent-strong: #d5aa6a;
  --color-accent-soft: rgba(198, 154, 91, 0.12);

  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  --color-danger: #c87062;
  --color-success: #8fa77b;

  /* Typography */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.5rem;
  --text-display: clamp(3rem, 9vw, 6.5rem);

  --line-tight: 1;
  --line-heading: 1.1;
  --line-body: 1.65;

  /* Spacing */
  --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;
  --space-20: 5rem;

  /* Shape */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;

  /* Controls */
  --control-height: 3rem;
  --control-height-lg: 3.25rem;

  /* Layout */
  --content-width: 1180px;
  --reading-width: 44rem;

  /*
  Shared page and focused-surface geometry.

  The outer shell may use the available viewport,
  while the content inside it keeps an intentional
  readable width and consistent gutter.
*/
  --page-gutter: clamp(1rem, 3vw, 2rem);

  --panel-width: 72rem;
  --panel-width-narrow: 58rem;

  --panel-padding: clamp(1rem, 2.5vw, 2rem);

  --form-width: 42rem;

  /* Preferred width for dense humidor cards. */
  --humidor-card-width: 23.25rem;
  /* Motion */
  --transition-fast: 140ms ease;
  --transition-base: 220ms ease;

  /*
    Temporary compatibility aliases.
    We'll remove these after app.css is migrated.
  */
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-soft: var(--color-surface-soft);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --accent: var(--color-accent);
  --border: var(--color-border);
  --max-width: var(--content-width);
}
