/*
 * base.css — Reset, variables, typographie, layout global, utilitaires
 * Site Anna Caraveli — BGL / BEM stack
 */

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  /* === STONE === */
  --color-stone-50:  #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;

  /* === TEAL === */
  --color-teal-50:  #f0fdfa;
  --color-teal-100: #ccfbf1;
  --color-teal-400: #2dd4bf;
  --color-teal-500: #14b8a6;
  --color-teal-600: #0d9488;
  --color-teal-700: #0f766e;
  --color-teal-800: #115e59;
  --color-teal-900: #134e4a;

  /* === AMBER === */
  --color-amber-50:  #fffbeb;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-amber-900: #78350f;

  /* === TYPOGRAPHIE === */
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* === LAYOUT === */
  --radius-sharp:  2px;
  --max-prose:     42rem;
  --max-content:   56rem;
  --max-wide:      64rem;

  /* === EDITORIAL SPACING === */
  --pad-section-mobile:  3rem;
  --pad-section-desktop: 5rem;
  --pad-section-large:   8rem;
  --pad-x-mobile:  1.5rem;
  --pad-x-desktop: 3rem;

  /* Generic spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --max-width-prose:   42rem;
  --max-width-content: 64rem;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-stone-50);
  color: var(--color-stone-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── Typographie ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

/* ── Eyebrow ───────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal-700);
  font-weight: 400;
}

/* ── Block layout base ─────────────────────────────────────────────────────── */
.block { width: 100%; }

/* Helper used by the admin */
.block__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

@media (max-width: 768px) {
  .block__inner { padding: var(--space-lg) var(--space-md); }
}

/* ── CTA buttons ───────────────────────────────────────────────────────────── */
.cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.025em;
  border-radius: var(--radius-sharp);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.cta--primary {
  background: var(--color-teal-700);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-color: var(--color-teal-700);
}

.cta--primary:hover {
  background: var(--color-teal-800);
  border-color: var(--color-teal-800);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta--medium {
  padding: 0.75rem 2rem;
}

.cta--ghost {
  background: transparent;
  color: var(--color-stone-700);
  border-color: var(--color-stone-400);
  padding: 0.75rem 2rem;
}

.cta--ghost:hover {
  border-color: var(--color-teal-700);
  color: var(--color-teal-700);
}

/* ── Gradient bar ──────────────────────────────────────────────────────────── */
.gradient-bar {
  height: 0.25rem;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--color-teal-600) 0%,
    var(--color-teal-500) 50%,
    var(--color-amber-500) 100%
  );
}

/* ── Alpine cloak (prevent FOUC) ───────────────────────────────────────────── */
[x-cloak] { display: none !important; }
