/* Title-strip texture for the Music page: its own picture, separately for dark and light mode.
   Tune it in mgb-tune on that page ("Hero dark texture", "Hero light texture"); Publish saves here.
   Starts as a copy of the site default in tokens.css (section 3).
   Picture paths are from assets/css/, not from this folder: browsers read them from styles.css, which uses them. */
:root {
  --tex-hero-dark: url("pages/img/tune/tex-my-axes-v.webp");
  --tex-hero-dark-strength: 0.13;
  --tex-hero-dark-blend: screen;
  --tex-hero-dark-size: 1400px auto;
  --tex-hero-dark-size-phone: max(100vw, 436px) auto;
  --tex-hero-dark-x: 0px;
  --tex-hero-dark-y: -30px;
  --tex-hero-dark-x-phone: 0vw;
  --tex-hero-dark-y-phone: -2.143vw;
  --tex-hero-dark-size-wide: var(--tex-hero-dark-size);
  --tex-hero-dark-x-wide: calc(0px + max(0px, 50vw - 700px));
  --tex-hero-dark-y-wide: var(--tex-hero-dark-y);
  --tex-hero-dark-repeat-wide: repeat-y;
  --tex-hero-dark-mask-wide: linear-gradient(90deg, transparent max(0px, 50% - 700px), black calc(max(0px, 50% - 700px) + min(280px, max(0px, 100vw - 1400px))), black calc(100% - max(0px, 50% - 700px) - min(280px, max(0px, 100vw - 1400px))), transparent calc(100% - max(0px, 50% - 700px)));
  --tex-hero-dark-keys-wide: "fade";

  --tex-hero-light: url("pages/img/tune/tex-my-axes-v.webp");
  --tex-hero-light-strength: 0.19;
  --tex-hero-light-blend: multiply;
  --tex-hero-light-size: 1400px auto;
  --tex-hero-light-size-phone: max(100vw, 436px) auto;
  --tex-hero-light-x: 0px;
  --tex-hero-light-y: -30px;
  --tex-hero-light-x-phone: 0vw;
  --tex-hero-light-y-phone: -2.143vw;
  --tex-hero-light-size-wide: var(--tex-hero-light-size);
  --tex-hero-light-x-wide: calc(0px + max(0px, 50vw - 700px));
  --tex-hero-light-y-wide: var(--tex-hero-light-y);
  --tex-hero-light-repeat-wide: repeat-y;
  --tex-hero-light-mask-wide: linear-gradient(90deg, transparent max(0px, 50% - 700px), black calc(max(0px, 50% - 700px) + min(280px, max(0px, 100vw - 1400px))), black calc(100% - max(0px, 50% - 700px) - min(280px, max(0px, 100vw - 1400px))), transparent calc(100% - max(0px, 50% - 700px)));
  --tex-hero-light-keys-wide: "fade";
}

/* Fire tear (Music only): black flames rise out of the footer into the bottom of the page, with a red glow inside
   them. --edge-fire is the flames' shape, --edge-fire-shade the detail inside them (both from the texture library's
   "flame" edge); mgb-tune shows them as "Fire edge" and can swap in another torn edge. These paths are from this
   folder: the rules that use them are below, in this same file. */
:root {
  --edge-fire: url("img/tune/edge-flame2.webp");
  --edge-fire-shade: url("img/tune/edge-flame2-shade.webp");
  --edge-fire-height: 232px;
  --edge-fire-scorch: 1;
}
main { padding-bottom: calc(var(--edge-fire-height) * .6); }   /* room, so the flames don't cover the last section */
.site-footer { position: relative; border-top: 0; }             /* the flames are the footer's edge now */
.site-footer::before, .site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--edge-fire-height);
  pointer-events: none;
}
.site-footer::before {                                           /* the flames: the footer's own color */
  background: var(--foot-bg);
  -webkit-mask: var(--edge-fire) center bottom / 100% 100% no-repeat;
          mask: var(--edge-fire) center bottom / 100% 100% no-repeat;
}
.site-footer::after {                                            /* the glow inside them */
  background: linear-gradient(to top, var(--ember), color-mix(in oklab, var(--ember) 40%, transparent));
  -webkit-mask: var(--edge-fire-shade) center bottom / 100% 100% no-repeat;
          mask: var(--edge-fire-shade) center bottom / 100% 100% no-repeat;
  opacity: var(--edge-fire-scorch);
}
@media (max-width: 600px) { :root { --edge-fire-height: 90px; } }
