/* irv2 base: what the wheel page (index.html) and the pages (pages.css) share. Tokens first, then the few parts that are identical everywhere. */

/* Palette. Dark is the default in each stylesheet's :root; this is the light one, used when the device asks for it or the visitor chooses it. */
@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--paper:#f7f7f5;--ink:#0d0d0d;--soft:#55554f;--mute:#6e6e73;--line:#d9d9d3;--g1:#6e6e73;--g2:#3a3a3c;--g3:#d2d2d7;--g4:#aeaeb2;--g5:#e8e8e4;--orange:#e05a12}:root:not([data-theme=dark]) :is(.v2-brand,.pg-brand) img{filter:invert(1)}}
:root[data-theme=light]{--paper:#f7f7f5;--ink:#0d0d0d;--soft:#55554f;--mute:#6e6e73;--line:#d9d9d3;--g1:#6e6e73;--g2:#3a3a3c;--g3:#d2d2d7;--g4:#aeaeb2;--g5:#e8e8e4;--orange:#e05a12;color-scheme:light}:root[data-theme=light] :is(.v2-brand,.pg-brand) img{filter:invert(1)}:root[data-theme=dark]{color-scheme:dark}

/* Space. Every margin, padding and gap of 12px or more is one of these steps; smaller values are optical corrections and stay as written. */
:root{--s1:12px;--s2:16px;--s3:20px;--s4:24px;--s5:32px;--s6:40px;--s7:48px;--s8:56px;--s9:64px;--s10:80px;--s11:96px;--s12:112px;--s13:128px;--s14:160px;--s15:192px;--s16:224px}

/* Motion: three speeds. Hover and focus answer at once; a stage change (a sheet, a section) takes about half a second; the wheel turning to a step is the one slow, deliberate move. */
:root{--t-hover:.2s;--t-stage:.5s;--t-scene:.8s}

/* Keyboard focus is always visible. */
html :is(a,button,[tabindex]):focus-visible{outline:1.5px solid var(--orange)!important;outline-offset:5px;border-radius:4px}html :is(.v2-pill,.pg-pill,.pg-ghost):focus-visible{border-radius:999px}

/* The quiet link in the corner: Legal. */
.v2-legal-open{position:fixed;bottom:24px;z-index:10;border:0;background:none;padding:8px 0;cursor:pointer;font:400 14px/1 var(--sans);letter-spacing:-.01em;color:var(--g1);transition:color var(--t-hover) ease,opacity var(--t-stage) ease}
.v2-legal-open{right:var(--m)}.v2-legal-open:hover{color:var(--ink)}

/* Legal: one sheet, the same on every page. */
.v2-legal{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:flex-end;background:rgba(0,0,0,.45);opacity:0;transition:opacity .35s ease}.v2-legal[hidden]{display:none}.v2-legal.on{opacity:1}
.v2-legal-in{position:relative;width:min(760px,100%);max-height:100%;overflow:auto;margin:0;padding:clamp(32px,4vw,48px);background:var(--paper);border:1px solid var(--g3);border-right:0;border-bottom:0;border-radius:26px 0 0 0;transform:translateY(24px);transition:transform var(--t-stage) cubic-bezier(.2,.8,.2,1)}.v2-legal.on .v2-legal-in{transform:none}
.v2-legal h2{margin:0 0 32px;font-size:clamp(28px,3vw,44px);font-weight:600;letter-spacing:-.04em}.v2-legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 40px}
.v2-legal h3{margin:0 0 12px;font-size:14px;font-weight:500;letter-spacing:-.01em;color:var(--g1)}.v2-legal p{margin:0 0 12px;font-size:16px;line-height:1.5;color:var(--g2)}
.v2-legal nav a{display:block;padding:5px 0;font-size:16px;color:var(--ink);text-decoration:none;transition:color var(--t-hover) ease}.v2-legal nav a:hover{color:var(--orange)}.v2-legal p a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--orange);padding-bottom:2px}
.v2-legal-close{position:absolute;right:clamp(22px,3vw,40px);top:clamp(26px,3.6vw,44px);border:0;background:none;padding:8px 0;cursor:pointer;font:400 14px/1 var(--sans);color:var(--g1);transition:color var(--t-hover) ease}.v2-legal-close:hover{color:var(--ink)}
.v2-legal-foot{margin:32px 0 0!important;padding-top:20px;border-top:1px solid var(--g3);font-size:14px!important;color:var(--g1)!important}
@media (max-width:820px){.v2-legal-open{position:static;display:block;text-align:right}.v2-legal-open{margin:0 var(--m) 40px auto}.v2-legal-in{border-radius:22px 22px 0 0;border-left:0}.v2-legal-grid{grid-template-columns:1fr;gap:24px}}
@media (prefers-reduced-motion:reduce){.v2-legal,.v2-legal-in{transition:none}}
