/* Every page in the key art's watercolor identity, loaded after styles.css and landing.css.
   The menu bar and the footer stay night, as the Mac's own bar; everything between is a
   parchment page. The game's canvases keep their dark backdrop, framed as windows into the
   pixel game. The art is cut off its paper (the *-cut.webp files), so it needs no mask. */
main {
  --paper: #f3ead7;
  --sky-night: #f3ead7;
  --sky-night-low: #ece1c9;
  --sky-night-edge: #d6c6a4;
  --sky-dawn: #f2e7d6;
  --sky-dawn-low: #ebdfc8;
  --sky-morning: #efe6d3;
  --sky-morning-low: #e9dec6;
  --sky-noon: #f3ead7;
  --sky-noon-low: #e8dcc2;
  --sky-noon-edge: #cbb68f;
  --sky-afternoon: #f0e5d2;
  --sky-afternoon-edge: #c4b08c;
  --sky-dusk: #ede0cc;
  --ink: #2a2147;
  --ink-2: #463c63;
  --ink-3: #6e6286;
  --gold-1: #8a5f0c;
  --mana: #17768f;
  --mana-low: #cfe3e6;
  --violet: #6b4fb0;
  --field-edge: #a796c4;
  color: var(--ink);
  background: var(--paper);
}
main a { color: var(--violet); }
main .btn:not(.btn--buy) { color: var(--ink); border-color: var(--ink-3); background: rgba(255, 252, 244, .6); }

/* Watercolor washes, a different tint per block, like pages of one book. */
.hero, .block, .tale {
  background-color: var(--paper);
  background-image:
    radial-gradient(55% 45% at 6% 10%, var(--wash-a), transparent 70%),
    radial-gradient(45% 40% at 94% 18%, var(--wash-b), transparent 70%),
    radial-gradient(50% 45% at 88% 96%, var(--wash-c), transparent 70%),
    radial-gradient(40% 35% at 12% 92%, rgba(214, 170, 80, .14), transparent 70%);
}
.hero { --wash-a: rgba(70, 60, 150, .22); --wash-b: rgba(120, 96, 190, .20); --wash-c: rgba(171, 138, 244, .16); }
.tale { --wash-a: rgba(120, 96, 190, .20); --wash-b: rgba(70, 90, 170, .16); --wash-c: rgba(171, 138, 244, .18); }
.block--dawn { --wash-a: rgba(171, 138, 244, .20); --wash-b: rgba(240, 160, 140, .16); --wash-c: rgba(120, 96, 190, .14); }
.block--morning { --wash-a: rgba(90, 150, 200, .18); --wash-b: rgba(69, 210, 240, .12); --wash-c: rgba(120, 96, 190, .12); }
.block--noon { --wash-a: rgba(70, 90, 170, .16); --wash-b: rgba(214, 170, 80, .16); --wash-c: rgba(90, 150, 200, .14); }
.block--afternoon { --wash-a: rgba(214, 170, 80, .18); --wash-b: rgba(171, 138, 244, .14); --wash-c: rgba(240, 160, 140, .14); }
.block--dusk { --wash-a: rgba(120, 60, 150, .20); --wash-b: rgba(240, 140, 160, .16); --wash-c: rgba(70, 60, 150, .18); }
.tale::before, .tale::after { display: none; }

/* Ink rule between pages instead of a hard color change. */
.block { border-top: 1px solid rgba(42, 33, 71, .10); }

/* The game's canvases: dark windows with a deckled paper frame. */
main canvas { box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(42, 33, 71, .25), 0 10px 24px rgba(42, 33, 71, .18); border-radius: 3px; }
.zoom-lines path { stroke: var(--field-edge); }

/* Hero: the Rift above the strip it becomes. */
.zoom__rift { display: block; width: 100%; height: auto; }

/* Join: the party on its cliff. */
.end__party { display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; }

/* Party: the portraits are cut off their paper, so they need no mask or blend. */
.party__card img { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }

/* Story: the five lands are cut off their paper too. */
.tale__art img { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }

/* Text pages: the same parchment, one wash, the bar and the footer stay night. */
body:has(> main.doc) {
  background-color: #f3ead7;
  background-image:
    radial-gradient(50% 30% at 4% 6%, rgba(120, 96, 190, .16), transparent 70%),
    radial-gradient(45% 30% at 96% 40%, rgba(70, 90, 170, .12), transparent 70%),
    radial-gradient(50% 30% at 10% 90%, rgba(214, 170, 80, .12), transparent 70%);
}
main.doc { background: transparent; }
.doc :is(input, textarea, select) { color: var(--ink); background: rgba(255, 252, 244, .7); border-color: var(--ink-3); }

/* Story page: the art is cut off its paper, so no frame. */
.story__art img { border: 0; }
.sheet { background: rgba(255, 252, 244, .5); border-color: rgba(42, 33, 71, .14); }
