/* Warriors Box demos: shared tokens and pieces. Look-only mockups, not app code. */
:root {
  --display: "Montserrat", "Archivo", system-ui, sans-serif; --stretch: 100%; --stretch-btn: 100%; --track: -.02em;
  --text: "Archivo", system-ui, sans-serif;
  --num: "Chakra Petch", "Archivo", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #ECEFF3; --surface: #FFFFFF; --surface-2: #E3E7EE;
  --ink: #0B0E14; --ink-2: #454D5E; --line: #C7CEDA;
  --cobalt: #1438B8; --cobalt-2: #0E2A8C; --on-cobalt: #FFFFFF; --link: #1438B8;
  --flag: #8A4200; --flag-bg: #FFEDCC; --flag-line: #D9902B;
  --ghost: rgba(11, 14, 20, .10); --plate: #D9E9F8; --scrim: rgba(236, 239, 243, .78);
  --m-body: #DDE2EA; --m-rest: #BCC4D1; --m-pri: #1438B8; --m-sec: #D3DCF6; --m-sec-ink: #1438B8; --m-hover: #0B0E14; --m-glow: rgba(20, 56, 184, .5);
  --logo-filter: none; --logo-blend: multiply;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0D13; --surface: #141926; --surface-2: #1D2434;
  --ink: #F3F5F9; --ink-2: #AEB7C8; --line: #2D364A;
  --cobalt: #2450E6; --cobalt-2: #17389F; --on-cobalt: #FFFFFF; --link: #8CAAFF;
  --flag: #FFC164; --flag-bg: #2C200D; --flag-line: #8A5A12;
  --ghost: rgba(243, 245, 249, .12); --plate: #D9E9F8; --scrim: rgba(10, 13, 19, .78);
  --m-body: #262E40; --m-rest: #414B63; --m-pri: #5C86FF; --m-sec: #1B2233; --m-sec-ink: #9DB6FF; --m-hover: #FFFFFF; --m-glow: rgba(79, 123, 255, .7);
  --logo-filter: invert(1); --logo-blend: screen;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--text); background: var(--bg); color: var(--ink); scrollbar-color: var(--line) transparent; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The poster voice: wide, heavy, leaning forward. Whole headlines lean, never single words. */
[data-font="archivo-wide"] { --display: "Archivo", system-ui, sans-serif; --stretch: 125%; --stretch-btn: 112%; --track: -.012em; }
[data-font="archivo"] { --display: "Archivo", system-ui, sans-serif; --stretch: 100%; --stretch-btn: 100%; --track: -.01em; }
.display { font-family: var(--display); font-stretch: var(--stretch); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .98; letter-spacing: var(--track); text-wrap: balance; }
.num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cond { font-family: var(--display); font-stretch: 78%; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* Ghost type: the outlined giant letters from the posters, always decorative. */
.ghost { position: absolute; font-family: var(--display); font-stretch: var(--stretch); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ghost); pointer-events: none; user-select: none; white-space: nowrap; }

/* Slanted buttons: the lean of the type, cut into the control. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border: 0; cursor: pointer; padding: .95em 1.6em; background: var(--ink); color: var(--bg); font: italic 800 1rem/1 var(--display); font-stretch: var(--stretch-btn); text-transform: uppercase; letter-spacing: .02em; clip-path: polygon(.75em 0, 100% 0, calc(100% - .75em) 100%, 0 100%); transition: transform .16s var(--ease), background-color .16s, filter .16s; }
.btn:hover { transform: translateX(3px); }
.btn:active { transform: translateX(1px) scale(.985); }
.btn:focus-visible { outline-offset: -6px; outline-color: currentColor; }
.btn.pri { background: var(--cobalt); color: var(--on-cobalt); }
.btn.pri:hover { background: var(--cobalt-2); }
.btn.sub { background: var(--surface-2); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Grain for cobalt fields, so the flat colour reads as printed, not as a web gradient. */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Body map: one renderer, three path sets (wb.js). */
.body-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.b-out, .b-inert { fill: var(--m-body); }
.b-m { fill: var(--m-rest); stroke: var(--m-body); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .18s var(--ease); transform-box: fill-box; transform-origin: center; }
.b-m[data-s="secondary"] { fill: var(--hatch, var(--m-sec)); }
.b-m[data-s="primary"] { fill: var(--m-pri); filter: drop-shadow(0 0 var(--g, 5px) var(--m-glow)); }
.is-pick .b-m { cursor: pointer; }
.is-pick .b-m.hov, .is-pick .b-m:focus-visible { stroke: var(--m-hover); stroke-width: 2.5; outline: none; }
.is-pick .b-m.hov:not([data-s="primary"]):not([data-s="secondary"]) { fill: color-mix(in srgb, var(--m-pri) 35%, var(--m-rest)); }
.b-m.just { animation: mpop .42s var(--ease); }
@keyframes mpop { 0% { transform: scale(1.14); filter: drop-shadow(0 0 calc(var(--g, 5px) * 2.6) var(--m-glow)) brightness(1.5); } 100% { transform: scale(1); } }

/* Demo chrome: clearly not part of the product. */
.demo-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px 20px; background: #05070B; color: #E9EDF5; font: 500 13px/1.3 var(--text); }
.demo-bar b { font-weight: 700; }
.demo-bar a { color: #9DB6FF; }
.demo-bar .seg { display: inline-flex; border: 1px solid #39435A; }
.demo-bar .seg button { background: transparent; border: 0; padding: 6px 12px; cursor: pointer; color: #C9D2E3; }
.demo-bar .seg button[aria-pressed="true"] { background: #E9EDF5; color: #05070B; font-weight: 700; }
.demo-bar .grow { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
