/* Beagle Byte Studio: plum palette + pixel-dither patterns. No images needed. */

:root {
  --bg: oklch(0.27 0.05 320);          /* ≈ #311e36, use hex for <meta theme-color> */
  --sky: oklch(0.36 0.06 300);         /* dither colour, Coat or Not page */
  --floor: oklch(0.34 0.055 320);      /* dither colour, studio home */
  --card: oklch(0.33 0.05 320);        /* app link card on home */
  --text: #f1f2f4;
  --text-soft: oklch(0.9 0.012 320);   /* taglines, body copy */
  --text-muted: oklch(0.85 0.02 320);  /* eyebrows, footer, secondary */
  --accent: #f4c542;                   /* raincoat yellow (buttons, links) */
  --on-accent: #22252b;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: var(--accent); }
a:hover { color: #ffe08a; }

/* Dithered sky: top of /coat-or-not/. Band heights are multiples of 8px so the checker stays aligned. */
.sky { position: absolute; inset: 0 0 auto 0; height: 360px; z-index: -1; pointer-events: none; }
.sky i { display: block; }
.sky i:nth-child(1) { height: 72px; background: var(--sky); }
.sky i:nth-child(2) { height: 96px; background: conic-gradient(var(--sky) 25%, transparent 0 50%, var(--sky) 0 75%, transparent 0) 0 0 / 8px 8px; }
.sky i:nth-child(3) { height: 96px; background: conic-gradient(var(--sky) 25%, transparent 0) 0 0 / 8px 8px; }
.sky i:nth-child(4) { height: 96px; background: conic-gradient(from 0deg at 50% 25%, var(--sky) 25%, transparent 0) 0 0 / 8px 16px; }

/* Snow-to-sun columns behind lineup.png: one column per character (snow, rain, mild, autumn, sun, heat).
   lineup.png is opaque, so the columns show as a band above it (padding-top) and then run on down the
   page below it. The stops follow where the characters stand in the 686px image: 140, 250, 358, 464
   and 570px. No isolation here, so the columns join the page's background layer (body) and sit behind
   everything after the lineup too. */
.lineup { position: relative; padding-top: 48px; }
.lineup::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0;          /* matches the image width so columns line up with characters */
  top: 0; bottom: -5000px;    /* cut off by .has-columns at the bottom of <main> */
  background: linear-gradient(90deg,
    oklch(0.38 0.05 235) 0 20.41%, oklch(0.38 0.05 260) 0 36.44%,
    oklch(0.38 0.05 150) 0 52.19%, oklch(0.38 0.05 55) 0 67.64%,
    oklch(0.38 0.05 85) 0 83.09%,  oklch(0.38 0.05 30) 0);
}
.lineup img { display: block; width: 100%; height: auto; }

/* The <main> that holds the lineup: the columns stop at its bottom edge and dissolve into the
   background just before it (.fade, last child of main, 3 x 32px dither steps). */
.has-columns { position: relative; overflow: clip; padding-bottom: 120px; }
.fade { position: absolute; inset: auto 0 0 0; z-index: -1; pointer-events: none; }
.fade i { display: block; height: 32px; }
.fade i:nth-child(1) { background: conic-gradient(var(--bg) 25%, transparent 0) 0 0 / 8px 8px; }
.fade i:nth-child(2) { background: conic-gradient(var(--bg) 25%, transparent 0 50%, var(--bg) 0 75%, transparent 0) 0 0 / 8px 8px; }
.fade i:nth-child(3) { background: conic-gradient(transparent 25%, var(--bg) 0) 0 0 / 8px 8px; }

/* The same fade mirrored at the top of the lineup band (.fade as first child of .lineup), in 16px steps. */
.lineup .fade { inset: 0 0 auto 0; transform: scaleY(-1); }
.lineup .fade i { height: 16px; }

/* Dither floor: bottom of studio home. */
body.has-floor { padding-bottom: 200px; box-sizing: border-box; }
.floor { position: absolute; inset: auto 0 0 0; z-index: -1; pointer-events: none; }
.floor i { display: block; }
.floor i:nth-child(1) { height: 64px; background: conic-gradient(var(--floor) 25%, transparent 0) 0 0 / 8px 8px; }
.floor i:nth-child(2) { height: 64px; background: conic-gradient(var(--floor) 25%, transparent 0 50%, var(--floor) 0 75%, transparent 0) 0 0 / 8px 8px; }
.floor i:nth-child(3) { height: 56px; background: var(--floor); }

/* Pixel art stays crisp. Only the icons and the lineup: the promo and press images are large
   renders scaled down, and nearest-neighbour scaling makes them jagged. */
img[src*="icon"], img[src*="lineup"] { image-rendering: pixelated; }
