/* TeamStarWolf design-system sheet: the rules only /system uses (token swatches, type specimens, chip rows, lockups with clear space, rules). No colours here: every value is a token. */

/* Sheet layout and specimen heads. */
.sheet { display: grid; gap: 40px; }
.spec { display: grid; gap: 14px; }
.spec > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: var(--t-18); font-weight: 600; letter-spacing: -0.01em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sys-lead { display: grid; gap: 10px; }

/* Token swatches: each swatch is scoped to one theme with .theme-dark or .theme-light, so both themes show side by side. */
.sw { width: 30px; height: 18px; border: 1px solid var(--line-2); border-radius: 4px; flex: none; }
.sw-cell { display: inline-flex; align-items: center; gap: 10px; }
.sw-bg { fill: var(--bg); } .sw-bg-2 { fill: var(--bg-2); } .sw-bg-3 { fill: var(--bg-3); }
.sw-fg { fill: var(--fg); } .sw-fg-2 { fill: var(--fg-2); } .sw-muted { fill: var(--muted); }
.sw-line { fill: var(--line); } .sw-line-2 { fill: var(--line-2); }
.sw-accent { fill: var(--accent); } .sw-signal { fill: var(--signal); }
.sw-green { fill: var(--green); } .sw-amber { fill: var(--amber); } .sw-red { fill: var(--red); } .sw-grey { fill: var(--grey); }
.sw-stage-bg { fill: var(--stage-bg); } .sw-stage-fg { fill: var(--stage-fg); } .sw-stage-muted { fill: var(--stage-muted); }

/* Type scale specimens. */
.scale { list-style: none; display: grid; }
.scale li { display: grid; grid-template-columns: 48px 110px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.scale li:first-child { border-top: 0; }
.scale .px { font-family: var(--mono); font-size: var(--t-13); color: var(--accent); }
.scale .role { font-family: var(--mono); font-size: var(--t-12); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.scale .spec-text { min-width: 0; overflow-wrap: anywhere; }
.s36 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.s28 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.s22 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.s18 { font-size: 18px; font-weight: 600; }
.s16 { font-size: 16px; }
.s14 { font-size: 14px; color: var(--fg-2); }
.s13 { font-size: 13px; color: var(--muted); }
.s12 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Chip rows and the toggle samples. */
.chip-rows { display: grid; gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-row .eyebrow { width: 96px; }
.toggle.sample { cursor: default; pointer-events: none; }

/* The three insignia lockups with their clear space (half the insignia's height), and the wolf tokens. */
.lockups { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lockup-box { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.lockup-box.on-stage { background: var(--stage-bg); color: var(--stage-fg); }
.lb-head { --cs: 20px; }
.on-stage { --cs: 70px; }
.lb-small { --cs: 12px; }
.clear { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; padding: var(--cs); outline: 1px dashed var(--line-2); outline-offset: -1px; border-radius: 6px; }
.on-stage .clear { outline-color: color-mix(in srgb, var(--wolf-hi) 40%, transparent); }
.on-stage .wordmark { color: var(--stage-fg); }
.on-stage .eyebrow, .on-stage .asof, .on-stage .cap { color: var(--stage-muted); }
.lockup-box .cap { font-size: var(--t-13); color: var(--muted); }
.lockup-box .tagline { white-space: normal; }
.lockup-box .mark-stage { width: min(260px, 100%); }
.wolf-tokens { display: flex; gap: 16px; flex-wrap: wrap; }
.wolf-tok { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--t-13); color: var(--fg-2); }
.f-hi { fill: var(--wolf-hi); } .f-1 { fill: var(--wolf-1); } .f-2 { fill: var(--wolf-2); }

/* The rules. */
.rules { padding-left: 1.5em; display: grid; gap: 8px; color: var(--fg-2); max-width: 72ch; }
.rules li::marker { font-family: var(--mono); color: var(--accent); font-weight: 600; }

/* Responsive: the type scale stacks at 900, the lockup tagline stays visible, the chip labels take their own line at 720. */
@media (max-width: 900px) {
  .lockup-box .tagline { display: block; }
  .scale li { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; }
  .scale .role { grid-column: 2; }
  .scale .spec-text { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .chip-row .eyebrow { width: 100%; }
  .lockup-box .mark-stage { width: min(180px, 100%); }
  .on-stage { --cs: 48px; }
}
