/* ═══════════════════════════════════════════════════════════════
   Ascii Water — hero background (pairs with /ascii-water.js)
   The canvas colours come from the theme tokens in themes.css
   (--accent for the water, --accent-secondary for the word glyphs);
   ascii-water.js re-reads them on every theme / palette change.
   Tune overall strength with --aw-opacity / --aw-opacity-light.
   ═══════════════════════════════════════════════════════════════ */

.ascii-water {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--aw-opacity, 0.7);
}

html[data-theme="light"] .ascii-water {
  opacity: var(--aw-opacity-light, 1);
}

.ascii-water__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* The water sits in the lower part of the hero, so only a soft fade at the
   top and a thin one at the very bottom (replaces the old rain fade). */
.hero .hero-bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 94%, transparent 100%);
}

/* Let the water show faintly through the terminal window (and its motion-trail
   ghosts) without hurting legibility. Raise the % for a more solid terminal. */
.hero-content .terminal {
  background: color-mix(in srgb, var(--term-bg) var(--aw-terminal-solid, 82%), transparent);
}
