/*
 * Design tokens. Every component reads colours, type and spacing from here.
 * Palette and type from design/promptproof-design.html.
 */
:root {
  /* Colours */
  --color-green: #11382B;
  --color-green-hover: #1F6B50;
  --color-gold: #D8B766;
  --color-paper: #F4F5F1;
  --color-white: #FFFFFF;
  --color-ink: #16241E;
  --color-muted: #4C5A53;
  --color-lines: #D5DAD3;
  --color-lines-dark: rgb(255 255 255 / 0.25);
  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: #C9D6CF;
  --color-input-border: #9AA59E;
  --color-portrait: #DDE2DC;
  --color-badge-text: #7A5A12;
  --color-badge-bg: #F6E9C4;
  --color-diff-minus: #A8321F;
  --color-diff-plus: #1F6B50;
  --color-error: #A8321F;
  --color-success: #1F6B50;
  --color-focus: var(--color-gold);

  /* Semantic aliases used by generic components */
  --color-bg: var(--color-paper);
  --color-text: var(--color-ink);
  --color-primary: var(--color-green);
  --color-primary-contrast: var(--color-white);

  /* Typography */
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.9375rem;   /* 15px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.0625rem;   /* 17px */
  --text-lg: 1.1875rem;   /* 19px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.625rem;   /* 26px */
  --text-price: clamp(1.75rem, 1.2rem + 1.8vw, 2.375rem);      /* 38px */
  --text-h2: clamp(2rem, 1.35rem + 2.4vw, 2.875rem);           /* 46px */
  --text-h2-large: clamp(2.25rem, 1.5rem + 2.8vw, 3.375rem);   /* 54px */
  --text-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.125rem);          /* 66px */
  --text-step: clamp(2.75rem, 2rem + 2vw, 3.5rem);             /* 56px */
  --leading-tight: 1.1;
  --leading-body: 1.6;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.875rem;
  --space-4: 1.125rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 3.5rem;
  --space-9: 5rem;
  --space-section: clamp(4.5rem, 3rem + 5vw, 7.5rem);  /* 120px desktop */
  --gap-columns: clamp(2rem, 1rem + 4vw, 4.5rem);      /* 72px desktop */

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-bubble: 14px;
  --shadow-card: 0 32px 64px rgb(0 0 0 / 0.35);
  --control-height: 50px;
  --button-height: 56px;
  --button-height-sm: 44px;
  --transition: 160ms ease;
}

@media (min-width: 56.25em) {
  :root {
    --gutter: 40px;
  }
}
