/* Design tokens. Every value used by main.css lives here.
   Certificate stylesheets do NOT use this file - print has its own scale. */

:root {
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4rem;
  --space-8: 6.5rem;

  /* Type scale */
  --fs-1: 0.8125rem;
  --fs-2: 0.9375rem;
  --fs-3: 1.0625rem;
  --fs-4: 1.375rem;
  --fs-5: 2rem;
  --fs-6: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);

  /* Colors */
  --color-bg: #f3f7fc;
  --color-surface: #ffffff;
  --color-surface-soft: #eaf2fb;
  --color-fg: #18324a;
  --color-muted: #60758a;
  --color-accent: #256ea5;
  --color-accent-hover: #1c5b8b;
  --color-accent-fg: #f8fbff;
  --color-accent-soft: #dcecf9;
  --color-line: #d4e1ed;
  --color-warm: #dda45d;
  --color-warm-soft: #f7ecdc;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Layout */
  --container: 68rem;
  --container-narrow: 44rem;

  /* Fonts */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Line heights */
  --lh-tight: 1.15;
  --lh-normal: 1.6;

  /* Borders and elevation */
  --border-width: 1px;
  --shadow-sm: 0 8px 24px -18px rgba(22, 62, 95, 0.32);
  --shadow-md: 0 20px 50px -30px rgba(22, 62, 95, 0.42);
  --shadow-lg: 0 32px 80px -42px rgba(22, 62, 95, 0.5);

  /* Motion */
  --transition: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Control sizing */
  --control-height: 3.25rem;
  --control-height-lg: 3.75rem;

  /* Overlays */
  --z-dropdown: 20;
  --dropdown-max-height: 16rem;

  /* A4 at 96dpi - the intrinsic size of the certificate preview iframe,
     which is then scaled down to fit its container. */
  --a4-width: 794px;
  --a4-height: 1123px;
  --preview-scale: 0.42;

  /* Language menu */
  --lang-panel-width: 13rem;
  --icon-size: 1rem;
}
