/* This site's own styles, over the stack's shared stylesheet (shared/base.css, the Visual Geometry Toolkit site's,
   linked first and never copied here: site/fetch_shared.sh): the foundation node's colours, the graph's height, the
   title banner. */
:root {
  --foundation: #2b5d7d;     /* the Visual Geometry Toolkit, which this toolkit builds on (the graph's foundation node) */
  --foundation-bg: #eef3f9;
  --graph-min-height: 18rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --foundation: #9ccbe8;
    --foundation-bg: #1c2830;
  }
}

/* Title banner after Saul Bass's Vertigo titles: an eye whose iris is a lens aperture, spirograph curves of light
   unwinding from its pupil, the lettering in focus over its own out-of-focus image. Laid out in the same 1701x925
   design stage as the Visual Geometry Toolkit's banner, scaled to the banner's width by the shared script; the eye and
   the spirals are drawn by main.js. */
.iris-banner {
  position: relative; aspect-ratio: 1701 / 925; overflow: hidden; border-radius: 6px;
  text-align: left; margin: 0 0 1.75rem;   /* in the hero: the hero centres its text */
  background: radial-gradient(ellipse 70% 90% at 33% 51%, #5a0d12 0%, #2a0709 42%, #0f0506 78%);
}
.iris-stage { position: absolute; left: 0; top: 0; width: 1701px; height: 925px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.iris-stage svg { position: absolute; inset: 0; }
.iris-title {
  position: absolute; left: 1040px; top: 470px; display: flex; flex-direction: column;   /* top: the eye's centre line (cy in main.js) */
  font-family: var(--title-font); color: #f4eee8; text-transform: uppercase; line-height: 0.9;
  transform-origin: 0 50%; transform: translateY(-50%) scale(var(--sx, 0.84), 1.1);   /* centred vertically on that line */
}
.font-b { --title-font: "Federo", sans-serif; --what-size: 100px; --what-weight: 400; --what-track: 0.12em; --sx: 0.80; }
.iris-title .what { margin: 0; font-size: var(--what-size, 108px); font-weight: var(--what-weight, 700); letter-spacing: var(--what-track, 0.12em); line-height: 1.12; }
/* the rack focus: the same lettering, defocused, glowing behind the sharp one */
.iris-title.defocus { color: #ff5a3c; filter: blur(14px); opacity: 0.55; pointer-events: none; }
.iris-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 45%, rgba(0,0,0,0.25)); }
@media (prefers-reduced-motion: no-preference) {
  .spirals { transform-origin: 560px 470px; animation: turn 240s linear infinite; }
  @keyframes turn { to { transform: rotate(360deg); } }
}

/* The foundation (the Visual Geometry Toolkit): its own colour */
.graph .node.foundation rect { fill: var(--foundation-bg) !important; stroke: var(--foundation) !important; stroke-width: 1.5px !important; }
.graph .node.foundation .nodeLabel { color: var(--foundation) !important; }
.graph a:hover .node.foundation rect, .graph .node.foundation.clickable:hover rect { stroke: var(--foundation) !important; stroke-width: 2.5px !important; }
