/* Design tokens: the only place raw colours, sizes and fonts are defined. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.eb2486760f75.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.8e433c0592f7.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand, from the shopfront signage */
  --blue-600: #1f4fbf;
  --blue-700: #1a42a3;
  --navy-900: #0e2a6b;
  --navy-950: #0a1f50;
  --green-500: #4cb848;
  --green-700: #1e7a4f; /* AA on white for text and success states */
  --blue-50: oklch(0.965 0.018 262);
  --blue-100: oklch(0.915 0.04 262);
  --green-50: #edf7ee;
  --amber-50: #fff6e5;
  --amber-700: #8a5300;
  --red-700: #b42318;

  /* Warm paper and ink: never pure white or black */
  --gray-0: oklch(0.992 0.004 85);
  --gray-50: oklch(0.968 0.008 85);
  --gray-200: oklch(0.89 0.012 85);
  --gray-500: oklch(0.45 0.025 260); /* 7:1+ on paper */
  --gray-900: oklch(0.21 0.03 262);

  /* Semantic roles */
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-heading: var(--navy-900);
  --color-link: var(--blue-600);
  --color-surface: var(--gray-0);
  --color-surface-alt: var(--gray-50);
  --color-surface-brand: var(--blue-50);
  --color-border: var(--gray-200);
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--navy-900);
  --color-accent: var(--green-500);
  --color-focus: #ffbf47;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-heading: var(--font-display);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: 1rem;
  --text-base: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);
  --text-display: clamp(2.5rem, 1.5rem + 4.6vw, 5rem);
  --tracking-display: -0.03em;
  --leading-display: 0.98;
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);

  /* Spacing */
  --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: 4.5rem;

  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(14 42 107 / 0.08);
  --shadow: 0 6px 24px rgb(14 42 107 / 0.1);

  /* Motion: calm, transform and opacity only */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 150ms;
  --dur-small: 250ms;
  --dur-medium: 400ms;
  --tap: 3rem; /* minimum touch target */

  --container: 72rem;
  --gutter: 1rem;
  --header-height: 4.5rem;
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }
}
