/* Arabic-safe tactile text materials for Berwaz landing prototypes.
   Never split Arabic letters into spans; apply foil only to single-line or clean block elements. */

:root {
  --foil-x: 0;
  --foil-y: 0;
}

.foil-gold {
  display: inline-block;
  white-space: nowrap;
  text-shadow: none;
  padding: 0.25em 0.15em;
  margin: -0.25em -0.15em;
  color: #c9a24a;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil-gold {
    background-image: linear-gradient(
      calc(115deg + var(--foil-x, 0) * 28deg),
      #7c5b22 0%,
      #b99144 22%,
      #f6e5b6 calc(48% + var(--foil-x, 0) * 18%),
      #c9a24a 70%,
      #7c5b22 100%
    );
    background-size: 160% 160%;
    background-position: calc(50% + var(--foil-x, 0) * 35%) calc(50% + var(--foil-y, 0) * 25%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
  }
}

.foil-champagne {
  display: inline-block;
  white-space: nowrap;
  text-shadow: none;
  padding: 0.25em 0.15em;
  margin: -0.25em -0.15em;
  color: #b89867;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil-champagne {
    background-image: linear-gradient(
      calc(118deg + var(--foil-x, 0) * 24deg),
      #6f5129 0%,
      #9d7843 28%,
      #cfb07c calc(50% + var(--foil-x, 0) * 16%),
      #946f3c 76%,
      #654822 100%
    );
    background-size: 160% 160%;
    background-position: calc(50% + var(--foil-x, 0) * 30%) calc(50% + var(--foil-y, 0) * 20%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.letterpress-light {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 -0.5px 0 rgba(70, 50, 32, 0.18);
}

.latin-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  direction: ltr;
  unicode-bidi: isolate;
}

@media (prefers-reduced-motion: reduce) {
  .foil-gold,
  .foil-champagne {
    background-position: 50% 50%;
  }
}
