/* public/styles/tokens.css: single source of truth (spec-04a-styling.md §2.7). Load FIRST. */
:root {
  color-scheme: light;

  /* color */
  --color-bg:            #FBFAF7;
  --color-surface:       #FFFFFF;
  --color-surface-alt:   #F3F1EA;
  --color-ink:           #1A1A1A;
  --color-ink-soft:      #55554E;
  --color-ink-faint:     #66665C;
  --color-border:        #E4E2DA;
  --color-border-strong: #C9C7BD;
  --color-accent:        #1F3A5C;
  --color-accent-hover:  #162C47;
  --color-accent-soft:   #E7EDF4;
  --color-accent-contrast:#FFFFFF;
  --color-success:       #1E7A46;
  --color-warning:       #9A6700;
  --color-error:         #A93226;
  --color-error-soft:    #F7E9E7;
  --color-focus-ring:    rgba(31,58,92,0.35);

  /* type */
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs:   0.75rem;   --lh-xs:   1.4;
  --text-sm:   0.875rem;  --lh-sm:   1.5;
  --text-base: 1rem;      --lh-base: 1.6;
  --text-lg:   1.125rem;  --lh-lg:   1.55;
  --text-xl:   1.25rem;   --lh-xl:   1.45;
  --text-2xl:  1.5rem;    --lh-2xl:  1.35;
  --text-3xl:  1.875rem;  --lh-3xl:  1.25;
  --text-4xl:  2.25rem;   --lh-4xl:  1.2;
  --text-5xl:  3rem;      --lh-5xl:  1.12;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;

  --tracking-tight: -0.01em;
  --tracking-wide:  0.02em;
  --measure-max:    68ch;

  /* space */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;    --space-9: 6rem;

  /* radius */
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px; --radius-full: 9999px;

  /* elevation + motion */
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.05);
  --shadow-md: 0 2px 8px rgba(26,26,26,0.08);
  --shadow-lg: 0 8px 24px rgba(26,26,26,0.10);
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* layout (spec-04a §3.2) */
  --container-max: 1120px;
  --form-max: 34rem;
}
