/* Zilica — Base layer
   ============================================================================
   Global brand defaults + the signature GRADIENT MESH utility.
   ss01 is switched on at the body level so the stylistic-set substitution is
   live for every text role (the brand's typographic signature).
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body-md);          /* 15px default body */
  font-weight: var(--fw-thin);           /* 300 — thin is the brand */
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--canvas);
  font-feature-settings: "ss01";         /* ss01 globally */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Inline links on light surfaces — indigo, no underline by default. */
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--indigo-deep); }

/* Indigo focus ring for keyboard users. */
:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Headings inherit the thin display rhythm by default; override per role. */
h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-thin); letter-spacing: -0.02em; margin: 0; }

/* ============================================================================
   SIGNATURE — Gradient mesh backdrop
   A wide horizontal wash (cream → sherbet → lavender → indigo → ruby → magenta)
   concentrated in the upper third, fading to white below. Apply to a hero/band
   wrapper. NOT a flat linear gradient — layered soft radial blobs give the
   organic atmospheric lift.
   ============================================================================ */
.zilica-mesh {
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(62% 72% at  8% -12%, rgba(245,233,212,0.95) 0%, rgba(245,233,212,0) 55%),
    radial-gradient(56% 66% at 26%  -8%, rgba(249,180,120,0.70) 0%, rgba(249,180,120,0) 52%),
    radial-gradient(62% 76% at 48% -14%, rgba(185,185,249,0.88) 0%, rgba(185,185,249,0) 58%),
    radial-gradient(58% 70% at 70%  -8%, rgba(102, 94,253,0.60) 0%, rgba(102, 94,253,0) 52%),
    radial-gradient(54% 64% at 90%  -6%, rgba(234, 34, 97,0.48) 0%, rgba(234, 34, 97,0) 50%),
    radial-gradient(48% 58% at 102%  2%, rgba(249,107,238,0.40) 0%, rgba(249,107,238,0) 50%);
}

/* Subtle variant — softer wash for secondary bands / cards. */
.zilica-mesh--soft {
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(70% 80% at 12% -20%, rgba(245,233,212,0.6) 0%, rgba(245,233,212,0) 60%),
    radial-gradient(70% 80% at 52% -24%, rgba(185,185,249,0.55) 0%, rgba(185,185,249,0) 62%),
    radial-gradient(64% 72% at 88% -16%, rgba(102, 94,253,0.4) 0%, rgba(102, 94,253,0) 58%);
}

/* Optional slow atmospheric drift (off by default — opt in per element). */
@media (prefers-reduced-motion: no-preference) {
  .zilica-mesh--animate { animation: zilica-mesh-drift 24s ease-in-out infinite alternate; }
}
@keyframes zilica-mesh-drift {
  from { background-position: 0% 0%; }
  to   { background-position: 6% 0%; }
}

/* ---- Elevation utility classes ----------------------------------------- */
.shadow-1 { box-shadow: var(--shadow-1); }
.shadow-2 { box-shadow: var(--shadow-2); }
