/* Colours of the final design: paper-warm ink on white, copper accent, and
   three link inks sampled along the banner photograph (slate, rose, copper). */

/* ================ banner ================
   White, warm ink, and the photograph's own passage from shadow to light:
   the floor's slate (Abstract), the cushion's rose (Slides), the lamp's
   copper (PDF). The rose is the midpoint of the straight line between them.
   light: text 15.5, muted 4.6, accent 5.04 on ground and 3.08 against text
   dark:  text 14.3, muted 4.8, accent 4.70 on ground and 3.05 against text 
   by day:   Abstract #6A6480, Slides #915F59, PDF #B4521F;
     on the ground 5.60 / 5.27 / 5.04; apart (OKLab x100) A-S, S-P, A-P 8.4 / 8.2 / 16.6 
   at night: Abstract #9A94B2, Slides #B3837D, PDF #C76C3D;
     on the ground 6.05 / 5.38 / 4.70; apart (OKLab x100) A-S, S-P, A-P 8.1 / 8.2 / 16.3 */
html[data-palette="banner"][data-look] {
  --bg: #FFFFFF;
  --bg-elev: #FFFFFF;
  --nav-bg: #FFFFFF;
  --nav-bg-docked: rgba(255, 255, 255, 0.88);
  --text-strong: #19120F;
  --text: #29231F;
  --text-mid: #3A322F;
  --text-soft: #5C5450;
  --text-muted: #7C746F;
  --text-faint: #A29A97;
  --hairline: #EEEEEE;
  --hairline-strong: #DEDCDC;
  --border-mid: #BDBABA;
  --accent: #B4521F;
  --link: var(--accent);
  --pdf-ink: var(--accent);
  --slides-ink: #915F59;
  --abstract-ink: #6A6480;
  --rule: #211B18;
  --shadow-soft: rgba(25, 18, 15, 0.04);
  --shadow: rgba(25, 18, 15, 0.09);
}

html[data-palette="banner"][data-look][data-theme="dark"] {
  --bg: #171923;
  --bg-elev: #20232F;
  --nav-bg: #171923;
  --nav-bg-docked: rgba(23, 25, 35, 0.85);
  --text-strong: #F9FAFF;
  --text: #E7E8EF;
  --text-mid: #CFD0D8;
  --text-soft: #AAACB2;
  --text-muted: #84858C;
  --text-faint: #65676C;
  --hairline: #2C2D37;
  --hairline-strong: #3E4049;
  --border-mid: #575961;
  --accent: #C76C3D;
  --link: var(--accent);
  --pdf-ink: var(--accent);
  --slides-ink: #B3837D;
  --abstract-ink: #9A94B2;
  --rule: #E7E8EF;
  --shadow-soft: rgba(1, 1, 5, 0.35);
  --shadow: rgba(1, 1, 5, 0.5);
}


/* Day, under any palette: the figures and comics are drawn on white, so they
   multiply into the ground instead of sitting on it as a card. The figures'
   paper is #FCFCFC-#FEFEFE; 2% of brightness clips it to white first. */
html[data-palette][data-look]:not([data-theme="dark"]) .area-image { filter: brightness(1.02); mix-blend-mode: multiply; }
html[data-palette][data-look]:not([data-theme="dark"]) .comic img { mix-blend-mode: multiply; }

/* Night, under any palette: the research figures are redrawn in light instead
   of dimmed as a white card. Inverted and turned back to their own hues (the
   navy line becomes pale blue, the mint fill deep teal, the drop stays
   orange), then screened, so their paper is the ground, as the banner's map
   is pale line on slate. Delete this rule to get the dimmed card back. */
html[data-palette][data-look][data-theme="dark"] .area-image {
  filter: invert(1) contrast(1.05) hue-rotate(180deg);
  mix-blend-mode: screen;
}


/* The Academic Tree draws in fixed greys; under a palette it takes the ramp. */
html[data-palette][data-look] #miscellaneous .gx-edge,
html[data-palette][data-look] #miscellaneous .gx-halo { stroke: var(--hairline-strong); }
html[data-palette][data-look] #miscellaneous .gx-t-self .gx-dot { fill: var(--text); }
html[data-palette][data-look] #miscellaneous .gx-t-self .gx-label { fill: var(--text-strong); }
html[data-palette][data-look] #miscellaneous .gx-t-advisor .gx-dot { fill: var(--text-mid); }
html[data-palette][data-look] #miscellaneous .gx-t-advisor .gx-label { fill: var(--text); }
html[data-palette][data-look] #miscellaneous .gx-t-landmark .gx-dot { fill: var(--text-soft); }
html[data-palette][data-look] #miscellaneous .gx-t-landmark .gx-label { fill: var(--text-mid); }
html[data-palette][data-look] #miscellaneous .gx-t-normal .gx-dot { fill: var(--border-mid); }
html[data-palette][data-look] #miscellaneous .gx-t-normal .gx-label { fill: var(--text-muted); }
html[data-palette][data-look] #miscellaneous .gx-t-ghost .gx-dot { fill: var(--hairline-strong); }
html[data-palette][data-look] #miscellaneous .gx-t-ghost .gx-label { fill: var(--text-faint); }
html[data-palette][data-look] #miscellaneous .gx-node.gx-active .gx-dot { fill: var(--text); }
html[data-palette][data-look] #miscellaneous .gx-node.gx-active .gx-label { fill: var(--text-strong); }
html[data-palette][data-look] #miscellaneous .gx-edge.gx-active { stroke: var(--text-mid); }
html[data-palette][data-look] #miscellaneous .gx-node:focus-visible .gx-dot { stroke: var(--text-strong); }
