/* Shared tokens + wheel styling for the Atlas landing-page prototypes. */
:root {
  color-scheme: light;
  --bg: #FAF8F4; --ink: #29243D; --muted: #5e5a6e; --violet: #5B4BC4; --plum: #8D4B79;
  --terra: #D88169; --yellow: #E7C878; --line: #E5DFE7; --ochre: #C9972F; --deep: #3a3070;
  --font: "Avenir Next", "Helvetica Neue", Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }

/* Wheel (same geometry as the real Through the Years wheel) */
.wheel { position: relative; aspect-ratio: 1; --turn: 0deg; --unturn: 0deg; }
.wheel-dial { position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--turn)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.wheel-hub { position: absolute; inset: 41%; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 .6em rgba(255, 255, 255, .55); }
.wheel-year { position: absolute; inset: 0; pointer-events: none; transform: rotate(var(--turn)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
/* year labels orbit with the dial but are counter-rotated so they stay upright */
.wheel-year b { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(var(--unturn)); font-size: var(--wheel-font, 1.4rem); font-weight: 900; letter-spacing: -.03em; color: #fff; text-shadow: 0 1px 2px rgba(22, 34, 49, .45); transition: transform .9s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.wheel-year.pale b { color: #192a35; text-shadow: none; }
.wheel-year.on b { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .18em; }

/* Preview graphics: colours come from CSS variables so each card can set its own */
.pv svg { display: block; width: 100%; height: 100%; }
.pv .b { fill: var(--bar, #cfc7e8); } .pv .b.top { fill: var(--bar-top, #5B4BC4); }
.pv .e { stroke: var(--edge, #29243D); stroke-opacity: .35; fill: none; }
.pv .n { stroke: var(--node-ring, #FAF8F4); stroke-width: .8; fill: var(--node, #5B4BC4); }
.pv .n.hub { fill: var(--hub, #D88169); }
.pv .zero { fill: var(--zero, #efeaf0); }
.pv .lbl { font: 700 3.1px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: .9px; }
