/* 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; }

/* ================= v2: the base, its belts, and the pieces every screen shares ================= */
@view-transition { navigation: auto; }
::view-transition-group(belt) { animation-duration: .5s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
[data-theme="light"] { --belt: #DFE4EC; --belt-ink: rgba(11, 14, 20, .26); --belt-solid: rgba(11, 14, 20, .34); --bad: #B3261E; }
[data-theme="dark"] { --belt: #121722; --belt-ink: rgba(243, 245, 249, .26); --belt-solid: rgba(243, 245, 249, .36); --bad: #FF8A80; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); }
input, select, textarea { font: inherit; color: inherit; caret-color: var(--cobalt); }
a { color: inherit; }

/* A belt: a track that indexes one pitch at a time, like a conveyor. wb.js moves it. */
.belt { position: relative; overflow: hidden; background: var(--belt); --pitch: 120px; }
.belt-track { position: absolute; top: 0; left: 0; display: flex; height: 100%; will-change: transform; transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.belt[data-axis="y"] .belt-track { flex-direction: column; height: auto; width: 100%; }
.belt.run .belt-track { transition: transform .16s linear; }
.belt-copy { flex: none; display: flex; align-items: center; gap: 44px; padding: 0 22px; }
.belt[data-axis="y"] .belt-copy { flex-direction: column; gap: 36px; padding: 18px 0; }
/* rollers: ticks along the inner edge that travel with the belt */
.belt-track::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: repeating-linear-gradient(90deg, var(--belt-ink) 0 2px, transparent 2px calc(var(--pitch) / 4)); }
.belt[data-edge="top"] .belt-track::after { bottom: auto; top: 0; }
.belt[data-axis="y"] .belt-track::after { top: 0; bottom: 0; left: auto; right: 0; width: 7px; height: auto; background: repeating-linear-gradient(180deg, var(--belt-ink) 0 2px, transparent 2px calc(var(--pitch) / 4)); }
.belt[data-axis="y"][data-edge="left"] .belt-track::after { right: auto; left: 0; }
.plate { flex: none; display: grid; place-items: center; white-space: nowrap; transition: opacity .35s, filter .35s; }
.p-w { font: italic 900 54px/1.1 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: var(--belt); -webkit-text-stroke: 3px var(--belt-ink); paint-order: stroke fill; padding: 0 .08em; }
.belt[data-axis="y"] .p-n { font-size: 23px; }
.p-n { font: 700 30px/1 var(--num); color: var(--belt-solid); letter-spacing: -.01em; }
.p-x img { width: 86px; height: 86px; object-fit: contain; }
.p-s svg { width: 30px; height: 30px; fill: var(--belt-solid); color: var(--belt-solid); display: block; }
.p-h { width: 76px; height: 34px; background: repeating-linear-gradient(-62deg, var(--belt-solid) 0 3px, transparent 3px 9px); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.p-d { font: italic 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--on-cobalt); background: var(--cobalt); padding: 10px 22px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.p-b { width: 62px; height: 104px; }
.p-b .b-m[data-s="primary"] { filter: none; }

/* The way back: a strip of belt across the top of every working screen. The whole strip is the link. */
.strip { position: sticky; top: 0; z-index: 40; display: flex; align-items: stretch; height: 44px; background: var(--belt); border-bottom: 1px solid var(--line); text-decoration: none; view-transition-name: belt; }
.strip-home { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 30px 0 20px; background: var(--ink); color: var(--bg); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); font: italic 900 15px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; transition: background-color .2s; }
.strip-home svg { width: 15px; height: 15px; fill: currentColor; transform: scaleX(-1); transition: transform .3s var(--ease); }
.strip:hover .strip-home, .strip:focus-visible .strip-home { background: var(--cobalt); color: var(--on-cobalt); }
.strip:hover .strip-home svg { transform: scaleX(-1) translateX(4px); }
.strip:focus-visible { outline-offset: -3px; }
.strip .belt { flex: 1; min-width: 0; background: none; }
.strip .belt-copy { gap: 36px; }
.strip .p-w { font-size: 24px; -webkit-text-stroke-width: 2px; }
.strip .p-n { font-size: 16px; }
.strip .p-s svg { width: 15px; height: 15px; }
.strip .p-h { width: 44px; height: 16px; }
.strip .belt-track::after { height: 4px; }
.strip-here { flex: none; display: flex; align-items: center; padding: 0 20px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); background: var(--belt); }

/* Actions lean, all of them, at one height. The outline is a second slanted layer. */
.tb { --sl: 8px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; white-space: nowrap; padding: 0 16px; border: 0; background: var(--line); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 13.5px; text-decoration: none; clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%); transition: background-color .15s, color .15s, transform .16s var(--ease); }
.tb::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--surface); clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%); transition: background-color .15s; }
.tb:hover { background: var(--ink); transform: translateX(2px); }
.tb:hover::before { background: var(--surface-2); }
.tb:focus-visible { outline-offset: -5px; }
.tb svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.tb.danger:hover { background: var(--bad); color: var(--bad); }
.tb.lg { height: 52px; padding: 0 26px; font-size: 15px; --sl: 11px; }
a.btn { text-decoration: none; }
.btn.lg { height: 52px; padding: 0 30px; font-size: 15px; }
.btn.sm { height: 36px; padding: 0 20px; font-size: 12.5px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.btn[disabled] { background: var(--line); color: var(--ink-2); cursor: default; transform: none; }
.txt { border: 0; background: none; padding: 4px 2px; cursor: pointer; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.txt:hover { color: var(--ink); text-decoration-color: currentColor; }

/* The assistant's line: one black slanted band, with its action as a light piece set inside. */
.cmd { --lean: 18px; position: relative; display: flex; align-items: stretch; height: 64px; padding: 0 var(--lean) 0 calc(var(--lean) + 10px); background: var(--ink); color: var(--bg); clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%); }
.cmd > svg { width: 20px; height: 20px; fill: currentColor; align-self: center; flex: none; }
.cmd input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--bg); font: 500 18px/1 var(--text); padding: 0 14px; caret-color: var(--bg); }
.cmd input::placeholder { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.cmd button { position: relative; isolation: isolate; flex: none; border: 0; background: none; cursor: pointer; padding: 0 28px; color: var(--ink); font: italic 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.cmd button::before { content: ""; position: absolute; inset: 9px 0; z-index: -1; background: var(--surface); transform: skewX(-15.7deg); transition: background-color .15s; }
.cmd button:hover::before { background: var(--cobalt); }
.cmd button:hover { color: var(--on-cobalt); }
.cmd button svg { width: 13px; height: 13px; fill: currentColor; }
.cmd button:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.cmd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--m-pri); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.cmd:focus-within::after { transform: scaleX(1); }

/* Tags and fields are square. */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--surface-2); color: var(--ink); font: 700 12px/1.4 var(--text); font-stretch: 82%; text-transform: uppercase; letter-spacing: .05em; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip.pri { background: var(--cobalt); color: var(--on-cobalt); }
.chip.off { background: transparent; color: var(--ink-2); border-color: var(--line); }
.chip.off:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.field { width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s; }
.field:focus { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--cobalt); }
.field::placeholder { color: var(--ink-2); }

/* A day's focus: the share of its exercises that goes to each muscle. */
.wb { display: flex; gap: 2px; height: 22px; }
.wb span { background: var(--cobalt); color: var(--on-cobalt); font: 700 11.5px/22px var(--text); font-stretch: 85%; padding: 0 6px; white-space: nowrap; overflow: hidden; min-width: 0; }
.wb.thin { height: 6px; }
.wb.thin span { padding: 0; }
.wkbar { display: inline-flex; gap: 2px; vertical-align: middle; }
.wkbar i { width: 9px; height: 13px; background: var(--line); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.wkbar i.on { background: var(--m-pri); }
.ini { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--ink); color: var(--bg); font: italic 800 12.5px/1 var(--display); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.ini.g { background: var(--cobalt); color: var(--on-cobalt); font: 700 12.5px/1 var(--num); }

/* Dialogs */
.modal { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: none; place-items: center; padding: 24px; }
.modal.open { display: grid; }
.dlg { width: 560px; max-width: 100%; max-height: 100%; overflow: auto; background: var(--surface); border: 2px solid var(--ink); padding: 24px; box-shadow: 0 30px 60px -24px rgba(5, 7, 11, .6); animation: rise .28s var(--ease); }
.dlg h2 { font-size: 21px; margin-bottom: 8px; }
.dlg > p { color: var(--ink-2); margin-bottom: 16px; }
.dlg footer { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.credit { font-size: 12px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
