/*
Theme Name: Recettes de Mamie
Theme URI: https://example.com
Author: Famille
Author URI: https://example.com
Description: Thème WordPress dédié à la mise en valeur des recettes manuscrites de famille, scannées et retranscrites.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: recettes-mamie
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Art direction: carnet de cuisine familial -> chaleureux, artisanal, intime
   Palette: beige chaud + accent terracotta (rappel du carnet ancien et de la terre cuite)
   Typography: Fraunces (display, serif chaleureuse) + Work Sans (body, lisible)
   Density: spacieux, éditorial */

:root, [data-theme="light"] {
  --color-bg: #f7f3ec;
  --color-surface: #fbf8f3;
  --color-surface-2: #fdfcfa;
  --color-surface-offset: #f0e9dd;
  --color-surface-offset-2: #e8dfd0;
  --color-surface-dynamic: #ddd2bd;
  --color-divider: #e2d8c8;
  --color-border: #d8ccb6;

  --color-text: #2b2318;
  --color-text-muted: #776b58;
  --color-text-faint: #b3a68c;
  --color-text-inverse: #fbf8f3;

  --color-primary: #b0522a;
  --color-primary-hover: #8c3f1e;
  --color-primary-active: #6e3117;
  --color-primary-highlight: #ecd4c4;

  --color-success: #4c7a3a;
  --color-error: #a1352c;
  --color-warning: #96601f;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 60 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.25 0.03 60 / 0.10);
  --shadow-lg: 0 14px 34px oklch(0.25 0.03 60 / 0.14);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --color-bg: #1c1712;
  --color-surface: #221c16;
  --color-surface-2: #262019;
  --color-surface-offset: #2a2319;
  --color-surface-offset-2: #33291c;
  --color-surface-dynamic: #3d301f;
  --color-divider: #362c20;
  --color-border: #453626;
  --color-text: #ecdfcb;
  --color-text-muted: #a5967d;
  --color-text-faint: #6f6250;
  --color-text-inverse: #221c16;
  --color-primary: #e08256;
  --color-primary-hover: #ec9c74;
  --color-primary-active: #f2b28f;
  --color-primary-highlight: #4a3327;
  --color-success: #85b06a;
  --color-error: #d17a70;
  --color-warning: #d0a15c;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 14px 34px oklch(0 0 0 / 0.45);
}

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --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; --space-32: 8rem;
}
