/* Design system: Recipe Catalogue */
:root {
  /* Palette - warm neutrals + accent */
  --color-bg: #faf8f5;
  --color-bg-elevated: #ffffff;
  --color-surface: #f5f2ed;
  --color-text: #2c2825;
  --color-text-muted: #6b6560;
  --color-accent: #c17f59;
  --color-accent-hover: #a86a47;
  --color-border: #e8e4de;
  --color-shadow: rgba(44, 40, 37, 0.08);
  --color-shadow-hover: rgba(44, 40, 37, 0.12);

  /* Typography */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Serif 4", "Georgia", serif;
  --font-meta: "Source Sans 3", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 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;
  --space-24: 6rem;

  /* Motion */
  --duration-instant: 100ms;
  --duration-micro: 200ms;
  --duration-fast: 300ms;
  --duration-normal: 400ms;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-micro: 0ms;
    --duration-fast: 0ms;
    --duration-normal: 0ms;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-out);
}

a:hover {
  color: var(--color-accent-hover);
}
