/* =========================================================
   Domaine de Brion — Foundations: Colors & Typography
   ---------------------------------------------------------
   Variables CSS de base pour le design system.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* COULEURS — palette brute */
  --cream-50:   #FDFBF5;
  --cream-100:  #FAF6EE;
  --cream-200:  #F2EBDC;
  --cream-300:  #E6DBC4;
  --cream-400:  #D6C7A8;

  --gold-50:    #F2EAD7;
  --gold-200:   #DCC392;
  --gold-400:   #C9A66B;
  --gold-500:   #B8965A;
  --gold-600:   #A07F47;
  --gold-700:   #816436;
  --gold-800:   #5E4825;

  --stone-50:   #6E6259;
  --stone-200:  #4F453D;
  --stone-400:  #3A312A;
  --stone-500:  #2A2118;
  --stone-700:  #1B1510;
  --stone-900:  #0E0A07;

  --lavender:   #8E84A8;
  --olive:      #7A7A55;
  --terracotta: #B5704F;

  --success:    #6E8E5C;
  --error:      #A14A3A;
  --warning:    #C68A3A;
  --info:       #5C7A8E;

  /* TOKENS SÉMANTIQUES */
  --bg-page:        var(--cream-100);
  --bg-elevated:    var(--cream-50);
  --bg-subtle:      var(--cream-200);
  --bg-inverse:     var(--stone-500);
  --bg-overlay:     rgba(42, 33, 24, 0.55);

  --fg-primary:     var(--stone-500);
  --fg-secondary:   var(--stone-200);
  --fg-muted:       var(--stone-50);
  --fg-on-dark:     var(--cream-100);
  --fg-on-gold:     var(--cream-50);
  --fg-accent:      var(--gold-500);
  --fg-accent-deep: var(--gold-700);

  --border-subtle:  var(--cream-300);
  --border-default: var(--cream-400);
  --border-strong:  var(--stone-200);
  --border-gold:    var(--gold-500);
  --hairline:       1px solid var(--cream-400);

  --cta-bg:         var(--stone-500);
  --cta-bg-hover:   var(--stone-700);
  --cta-fg:         var(--cream-100);
  --cta-gold-bg:    var(--gold-500);
  --cta-gold-hover: var(--gold-600);
  --link:           var(--gold-700);
  --link-hover:     var(--stone-500);

  /* TYPOGRAPHIE */
  --font-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-body:    'Jost', 'Futura', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --fs-3xs:   0.6875rem;
  --fs-2xs:   0.75rem;
  --fs-xs:    0.8125rem;
  --fs-sm:    0.9375rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.375rem;
  --fs-xl:    1.75rem;
  --fs-2xl:   2.25rem;
  --fs-3xl:   3rem;
  --fs-4xl:   4rem;
  --fs-5xl:   5.5rem;

  --lh-tight:   1.05;
  --lh-display: 1.12;
  --lh-snug:    1.3;
  --lh-body:    1.6;
  --lh-loose:   1.8;

  --ls-tight:    -0.01em;
  --ls-normal:   0;
  --ls-wide:     0.04em;
  --ls-eyebrow:  0.22em;

  /* ESPACEMENT */
  --space-0:  0;
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* RAYONS */
  --radius-none:  0;
  --radius-xs:    2px;
  --radius-sm:    4px;
  --radius-md:    6px;
  --radius-lg:    10px;
  --radius-pill:  999px;
  --radius-arch:  50% 50% 4px 4px / 60% 60% 4px 4px;

  /* OMBRES */
  --shadow-xs:    0 1px 2px rgba(42, 33, 24, 0.06);
  --shadow-sm:    0 2px 6px rgba(42, 33, 24, 0.08);
  --shadow-md:    0 6px 18px rgba(42, 33, 24, 0.10);
  --shadow-lg:    0 14px 36px rgba(42, 33, 24, 0.14);
  --shadow-xl:    0 24px 60px rgba(42, 33, 24, 0.18);
  --shadow-inset: inset 0 1px 0 rgba(255, 252, 244, 0.6);

  /* LAYOUT */
  --max-w-prose:    62ch;
  --max-w-content:  72rem;
  --max-w-wide:     84rem;
  --gutter:         var(--space-5);
  --gutter-lg:      var(--space-8);

  /* MOTION */
  --ease-standard: cubic-bezier(0.32, 0.08, 0.24, 1);
  --ease-soft:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-quick:     180ms;
  --dur-base:      320ms;
  --dur-slow:      640ms;
  --dur-reveal:    900ms;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg-primary);
  background: var(--bg-page);
}

.display-hero,
h1.hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, var(--fs-5xl));
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
  color: var(--fg-primary);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, var(--fs-4xl));
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-5);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, var(--fs-3xl));
  line-height: var(--lh-display);
  margin: 0 0 var(--space-5);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, var(--fs-2xl));
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-4);
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-3);
}

h5, .h5 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-wide);
  margin: 0 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--fg-accent-deep);
  display: inline-block;
}

.script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

p, .body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg-primary);
  text-wrap: pretty;
}

.lede {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--fg-secondary);
}

.small { font-size: var(--fs-sm); }

.caption {
  font-size: var(--fs-2xs);
  color: var(--fg-muted);
  letter-spacing: var(--ls-wide);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(184, 150, 90, 0.4);
  text-underline-offset: 0.2em;
  transition: color var(--dur-quick) var(--ease-soft),
              text-decoration-color var(--dur-quick) var(--ease-soft);
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.rule-gold {
  width: 56px;
  height: 1px;
  background: var(--gold-500);
  border: 0;
  margin: var(--space-4) 0;
}
.rule-gold--center {
  margin-left: auto;
  margin-right: auto;
}
