/* splitrep.app. The palette is pwa/data/tokens.json's (dark and light);
 * hue is for meaning, so the only colour here is the wordmark's REP, the
 * brand's one deliberate exception (design/04 "The brand"). */
@font-face {
  font-family: "Oswald SplitRep";
  src: url("gen/oswald-bold.subset.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #08090b; --card: #0c0e12; --stroke: #1b1f27; --stroke2: #2b313b;
  --fg: #eef1f6; --muted: #7e8794; --faint: #4a515c; --onFg: #08090b;
  --up: #25e07a; --hold: #f5b31a; --miss: #ff445a;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not(.dark) {
    --bg: #eef1f5; --card: #ffffff; --stroke: #dde2e9; --stroke2: #c3cad4;
    --fg: #14171c; --muted: #5a6270; --faint: #98a1ad; --onFg: #ffffff;
    /* here --up/--hold/--miss colour WORDS: the app's ink values (upInk #0a7a45,
       holdInk; design/04), not its brighter marks (light up #0f9a55) */
    --up: #0a7a45; --hold: #844f0b; --miss: #db0629;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 32px 16px 48px; overflow-x: hidden;
}
main { max-width: 560px; margin: 0 auto; }
main.wide { max-width: none; }   /* the home page: full bleed (design/26) */
.wordmark {
  font-family: "Oswald SplitRep", "Oswald", "Arial Narrow", sans-serif; font-weight: 700;
  letter-spacing: 0.03em; font-size: 22px; text-decoration: none; color: var(--fg);
}
.wordmark b { color: var(--up); font-weight: 700; }
.home { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.home .wordmark { font-size: 48px; line-height: 1; }
.lede { color: var(--muted); font-size: 18px; margin: 0; }
.kick { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 28px 0 4px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; overflow-wrap: anywhere; }
.sum { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: 16px; padding: 4px 16px; margin: 0 0 12px; }
.card h2 { font-size: 15px; margin: 12px 0 4px; overflow-wrap: anywhere; }
.card ul { list-style: none; margin: 0 0 12px; padding: 0; }
.card li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--stroke); font-size: 15px; }
.card ul:first-child li:first-child { border-top: 0; }   /* one workout: no heading above it */
.card li span:first-child { overflow-wrap: anywhere; }
.card li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mine { color: var(--muted); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--stroke2); background: transparent; color: var(--fg);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--fg); color: var(--onFg); border-color: var(--fg); }
.note { color: var(--muted); font-size: 14px; margin: 8px 0; }
.err { color: var(--miss); }
.warn { color: var(--hold); font-size: 14px; }
footer { margin-top: 32px; color: var(--faint); font-size: 13px; }
[hidden] { display: none !important; }
.doc h1 { margin-top: 4px; }
.doc h2 { font-size: 17px; margin: 28px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin: 0 0 8px; }
