/* Flow Inside: Soft Grove
   Licht · groen · organisch · menselijk · speels · modern
*/

:root {
  /* Surfaces */
  --paper: #f7f5ef;
  --paper-2: #f0ede5;
  --mist: #e8f0df;
  --mist-2: #dce8d0;
  --sand: #ebe4d8;

  /* Brand green from logo #5c813c */
  --leaf: #5c813c;
  --leaf-deep: #45622d;
  --leaf-soft: #7fa35f;
  --leaf-wash: #f0f5ea;

  /* Ink */
  --ink: #2a3224;
  --ink-soft: #4f5848;
  --mute: #7a8472;

  /* Lines */
  --line: rgba(42, 50, 36, 0.1);
  --line-strong: rgba(42, 50, 36, 0.18);

  /* Type: warm serif + friendly modern sans */
  --font-display: "Lora", "Iowan Old Style", Georgia, serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.72rem;
  --text-sm: 0.875rem;
  --text-base: 1.02rem;
  --text-md: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  --text-lg: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  --text-xl: clamp(1.75rem, 1.25rem + 2vw, 3.1rem);
  --text-2xl: clamp(2.15rem, 1.35rem + 2.8vw, 4rem);

  /* Layout */
  --gutter: clamp(1.1rem, 3.5vw, 2.5rem);
  --max: 1160px;
  --header-h: 4.25rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Organic radii: varied on purpose */
  --r-sm: 0.85rem;
  --r: 1.5rem;
  --r-lg: 2.25rem;
  --r-xl: 3rem;
  --r-band: clamp(1.5rem, 3.5vw, 3.25rem);
  --r-full: 999px;

  /* Space: fluid rhythm — tighter on phone/tablet, airy on desktop */
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  --s-5: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
  --s-6: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);
  --s-7: clamp(2.75rem, 1.75rem + 4vw, 6.75rem);

  /* Elevation */
  --shadow-soft: 0 14px 40px rgba(92, 129, 60, 0.1);
  --shadow-float: 0 10px 28px rgba(42, 50, 36, 0.11);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
  --dur-long: 700ms;
}

/* Compact phones (SE / small fold inner) */
@media (max-width: 380px) {
  :root {
    --gutter: 1rem;
    --header-h: 3.85rem;
    --text-base: 0.98rem;
    --s-5: 1.35rem;
    --s-6: 1.85rem;
    --s-7: 2.5rem;
  }
}

/* Phones */
@media (min-width: 381px) and (max-width: 639px) {
  :root {
    --s-7: clamp(2.5rem, 6vw, 3.25rem);
  }
}

/* Tablets / iPads */
@media (min-width: 640px) and (max-width: 1099px) {
  :root {
    --gutter: clamp(1.35rem, 3.2vw, 2rem);
    --s-5: clamp(1.65rem, 1.3rem + 1vw, 2rem);
    --s-6: clamp(2.15rem, 1.6rem + 1.4vw, 2.85rem);
    --s-7: clamp(2.85rem, 2rem + 2vw, 4rem);
  }
}

/* Wide / 2K */
@media (min-width: 1600px) {
  :root {
    --max: 1280px;
    --gutter: clamp(2rem, 2.5vw, 3.25rem);
    --text-xl: clamp(2.1rem, 1.4rem + 1.2vw, 3.25rem);
    --text-2xl: clamp(2.6rem, 1.6rem + 1.6vw, 4.25rem);
  }
}

/* Ultra-wide / 4K */
@media (min-width: 2200px) {
  :root {
    --max: 1400px;
    --gutter: clamp(2.5rem, 3vw, 4rem);
    --s-7: clamp(4.5rem, 6vw, 7.5rem);
  }
}
