/*
 * Design tokens — Recetas de mamá (proyecto Mamoria).
 * Palette chosen by the family (Ivoire, Pêche, Corail, Tomate, Basilic) + Encre for text.
 * Light theme only (the family's choice).
 * Contrast rules: Corail is never text on light grounds; buttons in Corail carry Encre text.
 */
@font-face {
  font-family: "Pacifico";
  src: url("../assets/fonts/pacifico-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-variable.woff") format("woff");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-italic-variable.woff") format("woff");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand palette */
  --ivoire: #fff8ee;
  --peche: #f2d4b3;
  --corail: #e87545;
  --tomate: #a53f32;
  --basilic: #425e43;
  --encre: #262626; /* the black of the logo, used for all black text */
  --encre-douce: #6b5a4c;

  /* Semantic roles */
  --bg: var(--ivoire);
  --surface: #fffdf8;
  --surface-tint: #fbead6;
  --text: var(--encre);
  --text-muted: var(--encre-douce);
  --title: var(--tomate);
  --accent: var(--corail);
  --on-accent: var(--encre);
  --success: var(--basilic);
  --line: #ead8c2;
  --grid-line: rgba(165, 63, 50, 0.07);
  --focus: var(--basilic);
  --edge: var(--encre);
  --edge-shadow: var(--encre);
  --overlay: rgba(38, 38, 38, 0.72);

  /* Category tints */
  --cat-tartas: #f7dcc4;
  --cat-flanes: #f2d4b3;
  --cat-salados: #dfe6d6;
  --cat-fritos: #f6cdb6;
  --cat-conservas: #ecd3cc;

  /* Type */
  --font-titre: "Pacifico", "Brush Script MT", cursive;
  --font-texte: "Nunito", "Segoe UI", system-ui, sans-serif;
  --fs-app: clamp(2.6rem, 8vw, 3.5rem);
  --fs-h1: clamp(2rem, 6vw, 2.6rem);
  --fs-h2: clamp(1.5rem, 4.5vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-ingredient: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Space, radius, elevation */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-card: 4px 4px 0 var(--encre);
  --content-max: 1120px;
  --reading-max: 68ch;
  --header-h: 72px;
  color-scheme: light;
  --nav-h: 68px;
}

