/* JS Cuisines — Design Tokens
 * Colors, typography, spacing, radii, shadows.
 * Pulled from the brand vibe of jscuisines.fr — warm wood, charcoal, cream, daylight photography.
 */

/* Webfonts via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ============ COLORS ============ */
  /* Primary residential palette — warm woods + matte neutrals */
  --c-bois: #B89478;            /* primary warm accent — oak */
  --c-taupe: #8C7B6B;           /* secondary warm neutral */
  --c-argile: #D9CBB8;          /* pale wood / soft surface */
  --c-charbon: #2A2724;         /* primary text / matte black */
  --c-granit: #5C5953;          /* secondary text / mid grey */
  --c-galet: #C7C2BA;           /* light divider / border */
  --c-creme: #F5F1EA;           /* page background, warm off-white */
  --c-blanc: #FFFFFF;           /* pure white surfaces */
  --c-brique: #A85A3C;          /* rare accent — terracotta / made-in-France */

  /* Semantic foreground / background */
  --fg-1: var(--c-charbon);     /* primary body text */
  --fg-2: var(--c-granit);      /* secondary text */
  --fg-3: var(--c-taupe);       /* tertiary / captions */
  --fg-on-dark: var(--c-creme);
  --bg-page: var(--c-creme);
  --bg-surface: var(--c-blanc);
  --bg-inverse: var(--c-charbon);

  /* Accents */
  --accent-warm: var(--c-bois);
  --accent-cool: var(--c-charbon);
  --accent-rare: var(--c-brique);

  /* Border / divider */
  --border-hairline: var(--c-galet);
  --border-strong: var(--c-charbon);

  /* States — derived */
  --hover-overlay: rgba(42, 39, 36, 0.04);
  --press-overlay: rgba(42, 39, 36, 0.08);
  --focus-ring: rgba(42, 39, 36, 0.35);

  /* ============ TYPOGRAPHY ============ */
  --font-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale (1.25 minor third, with a hero step) */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 36px;
  --text-3xl: 48px;
  --text-4xl: 64px;
  --text-5xl: 88px;

  /* Line heights */
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;       /* for small caps labels */

  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ============ SPACING (8px grid) ============ */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --sp-11: 160px;
  --sp-12: 192px;

  /* ============ RADII ============ */
  --r-none: 0;
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* ============ SHADOWS ============ */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(42, 39, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 39, 36, 0.08);
  --shadow-lg: 0 16px 48px rgba(42, 39, 36, 0.12);

  /* ============ MOTION ============ */
  --ease-residential: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 600ms;
  --dur-slower: 800ms;

  /* ============ LAYOUT ============ */
  --container-max: 1280px;
  --container-pad: var(--sp-6);
  --section-py: var(--sp-9);
}

/* ============ SEMANTIC TYPE STYLES ============ */
.h-hero,
h1.hero {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: var(--text-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.h1, h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--text-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.h2, h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--text-2xl);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

.h3, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

.h4, h4 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-md);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-xs);
  line-height: 1;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-3);
}

p, .body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.body-lg {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
}

.caption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}

.label {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-1);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ============ COMPONENT STYLES ============ */
.btn {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-charbon);
  background: transparent;
  color: var(--c-charbon);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-residential),
              color var(--dur-base) var(--ease-residential),
              transform var(--dur-fast) var(--ease-residential);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.btn:hover {
  background: var(--c-charbon);
  color: var(--c-creme);
}
.btn:active {
  transform: translateY(1px);
}

.btn-link {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-charbon);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
}
.btn-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-charbon);
  transform-origin: left;
  transform: scaleX(0.4);
  transition: transform var(--dur-base) var(--ease-residential);
}
.btn-link:hover::after { transform: scaleX(1); }

/* Body defaults */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
