/* Power Pick design tokens. Midnight ink, electric violet actions, mint for live state, amber for warnings. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Surfaces */
  --sheet: #F6F5FC;        /* page ground, tracing white */
  --paper: #FFFFFF;        /* panels, inputs */
  --wash: #EEEDF8;         /* quiet fills, table heads */
  --line: #DCDAEC;         /* hairline rules */
  --line-soft: #E8E7F4;
  /* Ink */
  --ink: #0D0B2E;          /* masthead, headings, staff rail */
  --ink-2: #3E404D;        /* body text, 11:1 on sheet */
  --ink-3: #535460;        /* secondary text, 6.5:1 on sheet */
  --ink-line: #2A2B57;     /* rules on ink surfaces */
  --on-ink: #F2F3F5;
  --on-ink-2: #B5B8DA;     /* 8:1 on ink */
  /* Action and state */
  --blue: #5B3DF5;         /* actions, links, linework */
  --blue-deep: #4B28D4;
  --blue-wash: #EFEBFF;
  --live: #2FDDA6;         /* mint: selected node, live state, in-stock tick */
  --live-deep: #08795E;    /* mint text on light, 5.6:1 */
  --live-wash: #D6F8EB;
  --fault: #E0312E;
  --warn: #E8A100;
  --warn-deep: #8A5A00;
  --warn-wash: #FFF3D6;
  --fault-wash: #FDECEF;
  --ok: #08795E;
  --ok-wash: #D6F8EB;
  /* Type */
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-base: 1rem; --t-md: 1.125rem; --t-lg: 1.375rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --t-hero: clamp(2.5rem, 1.4rem + 4.4vw, 4.9rem);
  /* Space: 4px base */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 1240px;
  /* Shape */
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  /* Elevation: declared once. Cards use a border; menus and hover lift use this. */
  --lift: 0 1px 2px rgb(11 18 32 / .06), 0 14px 28px -14px rgb(11 18 32 / .26);
  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: 140ms; --med: 280ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #A9A6C9 var(--sheet); scrollbar-width: thin; }
body { margin: 0; background: var(--sheet); color: var(--ink-2); font: 400 var(--t-base)/1.6 var(--f-body);
  min-height: 100vh; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility; }
main { flex: 1; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--t-2xl); font-weight: 800; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); line-height: 1.2; }
h4 { font-size: var(--t-md); line-height: 1.25; }
p { margin: 0; max-width: 68ch; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.on-ink :focus-visible, .mast :focus-visible, .staff-rail :focus-visible { outline-color: var(--live); }
::selection { background: var(--live); color: var(--ink); }
input, textarea, select { caret-color: var(--blue); accent-color: var(--blue); }
::placeholder { color: #6B6890; opacity: 1; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -4rem; z-index: 100; background: var(--live); color: var(--ink); padding: var(--s3) var(--s4); border-radius: var(--r); font-weight: 700; }
.skip:focus { top: var(--s3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
