/* ============================================================
   Golden Hour — Effects: scrims, grain, shadows, transitions
   The defining visual move is the warm SCRIM over photography
   that lifts cream type off a busy candid photo.
   ============================================================ */

:root {
  /* --- Scrims (warm, top-and-bottom darkened, never flat) ---
     Photos are real, busy, candid. A soft vertical gradient plus a
     low global darken keeps the warm tones while making cream type
     readable everywhere on the frame. */
  --scrim-soft: linear-gradient(
      180deg,
      rgba(27,21,16,0.34) 0%,
      rgba(27,21,16,0.20) 32%,
      rgba(27,21,16,0.30) 68%,
      rgba(27,21,16,0.46) 100%); /* @kind other */
  --scrim-strong: linear-gradient(
      180deg,
      rgba(27,21,16,0.52) 0%,
      rgba(27,21,16,0.40) 40%,
      rgba(27,21,16,0.48) 70%,
      rgba(27,21,16,0.62) 100%); /* @kind other */
  /* flat darken layered UNDER the gradient for very bright photos */
  --scrim-flat: rgba(27,21,16,0.22); /* @kind other */

  /* --- Film treatment for imagery ---
     Source photos read warm, slightly faded, low-fi phone film. */
  --photo-filter: saturate(0.92) contrast(1.02) brightness(0.96); /* @kind other */
  --photo-filter-warm: sepia(0.10) saturate(0.95) contrast(1.02) brightness(0.95); /* @kind other */

  /* --- Shadows (soft, warm-tinted; used in UI/cards, never on photos) --- */
  --shadow-sm: 0 1px 2px rgba(27,21,16,.08);
  --shadow-md: 0 6px 20px rgba(27,21,16,.10);
  --shadow-lg: 0 18px 50px rgba(27,21,16,.16);

  /* text shadow to seat cream type onto photos when scrim is light */
  --text-shadow-photo: 0 1px 18px rgba(27,21,16,.45); /* @kind shadow */

  /* --- Motion --- */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */  /* gentle settle */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast: 160ms; /* @kind other */
  --dur-base: 280ms; /* @kind other */
  --dur-slow: 520ms; /* @kind other */
}

/* ------------------------------------------------------------
   Grain overlay utility — apply to a ::after on a photo frame.
   A faint film grain unifies the candid photos. Pure CSS, no asset.
   ------------------------------------------------------------ */
.gh-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
