/* ============================================================
   De Bouche à Oreille — premium artisanal aperitif site
   Design tokens, type, layout, liquid animation system
   ============================================================ */

:root {
  /* paper / cream */
  --cream:      #FFFFFF;
  --cream-2:    #F7F7F5;
  --paper:      #FFFFFF;
  --offwhite:   #F1ECE1;

  /* ink / anthracite */
  --ink:        #1E2426;
  --ink-2:      #14181A;
  --ink-soft:   #2A2F31;

  /* brand accents */
  --cherry:     #7A0F18;
  --cherry-2:   #9B1B24;
  --cherry-3:   #B83340;
  --lemon:      #E9C75A;
  --lemon-soft: #F0D784;
  --sage:       #9BAA8B;
  --gold:       #C8A24B;

  /* text */
  --text:       #23282A;
  --text-2:     #54595B;
  --text-mute:  #8A8A82;
  --on-dark:    #F4F0E7;
  --on-dark-2:  #BFBBB0;

  /* type */
  --hand:  'Caveat', 'Segoe Script', cursive;
  --sans:  'Jost', system-ui, sans-serif;

  /* motion */
  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.25, 1);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ---------- shared layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.section { position: relative; }

/* ---------- type helpers ---------- */
.hand {
  font-family: var(--hand);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-2);
}
.lead {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-2);
  font-weight: 300;
  max-width: 46ch;
}
.section-title {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.6vw, 3.8rem);
  color: var(--ink);
  line-height: 1.04;
}
.section-title.on-dark { color: var(--on-dark); }

/* hand-drawn underline under section titles */
.uline {
  display: block;
  width: 132px;
  height: 12px;
  margin-top: 14px;
  color: var(--cherry);
}
.uline.gold { color: var(--gold); }
.uline.light { color: var(--on-dark-2); }

/* ============================================================
   BUTTONS — with liquid fill on hover
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 17px 34px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: color .4s var(--ease), box-shadow .4s var(--ease), transform .2s var(--ease);
  isolation: isolate;
}
.btn > * { position: relative; z-index: 2; }
.btn::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -160%;
  width: 320%;
  aspect-ratio: 1 / 1;
  border-radius: 43% 47% 44% 46%;
  transform: translateX(-50%) scale(0.18);
  transition: transform .62s var(--ease), bottom .62s var(--ease), border-radius .62s var(--ease);
  z-index: 1;
}
.btn:hover::before {
  bottom: -58%;
  transform: translateX(-50%) scale(1) rotate(8deg);
  border-radius: 46% 44% 48% 42%;
}
.btn:active { transform: translateY(1px); }

/* dark solid button -> liquid fills cherry */
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: var(--cherry); }
.btn--dark:hover { color: #fff; box-shadow: 0 14px 30px -14px rgba(122,15,24,.6); }

/* outline button -> liquid fills ink */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 15px 32px;
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); }

/* ghost on dark */
.btn--ghost-light {
  background: transparent;
  color: var(--on-dark);
  border: 1.5px solid rgba(244,240,231,.45);
  padding: 15px 32px;
}
.btn--ghost-light::before { background: var(--cream); }
.btn--ghost-light:hover { color: var(--ink); border-color: var(--cream); }

/* lemon / contact button */
.btn--cherry { background: var(--ink); color: #fff; }
.btn--cherry::before { background: var(--cherry); }
.btn--cherry:hover { color:#fff; }

/* ============================================================
   LIQUID BACKGROUND BLOBS
   ============================================================ */
.liquid-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 42% 58% 57% 43% / 48% 42% 58% 52%;
  filter: blur(46px);
  opacity: .5;
  animation: blob-drift 22s var(--ease-io) infinite alternate;
  will-change: transform, border-radius;
}
@keyframes blob-drift {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); border-radius: 42% 58% 57% 43% / 48% 42% 58% 52%; }
  50%  { transform: translate(34px,-26px) rotate(12deg) scale(1.08); border-radius: 56% 44% 47% 53% / 42% 56% 44% 58%; }
  100% { transform: translate(-22px,22px) rotate(-8deg) scale(0.96); border-radius: 48% 52% 42% 58% / 56% 48% 52% 44%; }
}

/* slow drifting wave layer (svg set as bg in markup) */
@keyframes wave-pan {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-img {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity .9s var(--ease), clip-path 1s var(--ease);
}
.reveal-img.in { opacity: 1; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .blob, .float { animation: none !important; }
}

/* ============================================================
   FLOAT (fruits, polaroids)
   ============================================================ */
.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(var(--r,0deg)); }
  50%     { transform: translateY(-12px) rotate(var(--r,0deg)); }
}
