/* Shared WOD Tracker look: same tokens as public/index.html and the roadmap's global.css */
@font-face {
  font-family: "Noto Sans";
  src: url("fonts/noto-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Mono";
  src: url("fonts/noto-sans-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
:root {
  --bg: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --fg: #1f1b16;
  --fg-2: #5e554a;
  --muted: #736a5e;
  --line: rgba(31, 27, 22, 0.1);
  --accent: #b23a1e;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Noto Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --card: #1c1a18;
    --raised: #262421;
    --fg: #efe9de;
    --fg-2: #aaa398;
    --muted: #8a847a;
    --line: rgba(239, 233, 222, 0.08);
    --accent: #ef8a6c;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a, button, input { transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Site header, shared with the landing page and the roadmap */
header, main, footer { max-width: 48rem; margin: 0 auto; padding: 0 24px; }
header { display: flex; align-items: center; gap: 24px; height: 56px; border-bottom: 1px solid var(--line); }
header a { color: var(--fg-2); text-decoration: none; font-size: 15px; }
header a:hover, header a[aria-current] { color: var(--fg); }
header .home { color: var(--fg); font-weight: 600; font-size: 16px; margin-right: auto; }
header nav { display: flex; gap: 20px; }
main { padding-top: 40px; padding-bottom: 64px; }
footer { padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

h1 { font-size: 48px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 4px 0 8px; }
h2 { font-size: 20px; font-weight: 500; line-height: 1.3; margin: 40px 0 12px; }
h2 small { font: 400 13px var(--mono); color: var(--muted); margin-left: 4px; }
h3 { font-size: 14px; font-weight: 500; color: var(--fg-2); margin: 0 0 4px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li::marker { color: var(--muted); }
.crumb, .facts, .aliases, .lede, .version { color: var(--fg-2); margin: 0; }
.crumb { font-size: 14px; }
.crumb a { color: var(--fg-2); text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.facts { font: 400 14px var(--mono); color: var(--muted); }
.aliases { font-size: 14px; margin-top: 4px; }
.lede { font-size: 18px; line-height: 1.55; max-width: 40rem; }

/* Rx: the loads are the figure people come for, set large in mono */
.rx-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 40px 0 12px; }
.rx-head h2 { margin: 0; }
.units { display: inline-flex; padding: 2px; gap: 2px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; }
.units button {
  font: 400 13px var(--mono); height: 28px; padding: 0 12px; cursor: pointer;
  background: none; color: var(--fg-2); border: 0; border-radius: 6px;
}
.units button:hover { color: var(--fg); }
.units button[aria-pressed="true"] { background: var(--card); color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 12px; }
.rx { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.rx p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.targets { list-style: none; margin: 16px 0 0; padding: 0; }
.targets li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); }
.targets li:first-child { margin-top: 0; }
.what { text-transform: capitalize; color: var(--fg); }
.load { font-family: var(--mono); color: var(--fg-2); text-align: right; }
.q { font: 500 22px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }

/* Prescription reads like the whiteboard: rep lines in mono */
.prescription ul { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.prescription li + li { margin-top: 4px; }
.who { margin-bottom: 4px; }
.who strong { font-weight: 500; }
.sources ul { font-size: 14px; overflow-wrap: anywhere; }
.version { margin-top: 40px; font: 400 12px var(--mono); color: var(--muted); }

/* Index list */
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list a { color: var(--fg); font-weight: 500; text-decoration: none; justify-self: start; }
.list a:hover { color: var(--accent); }
.list span { color: var(--fg-2); font-size: 14px; line-height: 1.5; }

/* Search and movement pills */
.filter { margin: 32px 0 0; display: grid; gap: 12px; }
.filter label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.filter input {
  font: inherit; font-size: 15px; width: 100%; height: 40px; padding: 0 12px;
  background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 8px;
}
.filter input::placeholder { color: var(--muted); }
.filter input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .more, .clear {
  font: inherit; font-size: 14px; height: 28px; padding: 0 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 6px;
}
.pill:hover, .clear:hover { background: var(--raised); }
.pill small { font: 400 12px var(--mono); color: var(--muted); }
.pill[aria-pressed="true"] { background: var(--raised); border-color: var(--accent); color: var(--accent); }
.pill[aria-pressed="true"] small { display: none; }
.pill[aria-pressed="true"]::after { content: "\00d7"; }
.more { background: none; border-style: dashed; color: var(--fg-2); }
.more:hover { color: var(--fg); }
.filter .status, .filter .empty { color: var(--fg-2); margin: 0; font-size: 14px; }
.filter .status { font-family: var(--mono); font-size: 13px; }
.filter .status:empty { display: none; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 32px; }
  h1 { font-size: 36px; }
}

/* Glossary */
.glossary { margin: 0; border-top: 1px solid var(--line); }
.glossary dt { font-weight: 500; padding-top: 12px; scroll-margin-top: 16px; }
.glossary dd { margin: 4px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.glossary dt:target { color: var(--accent); }
.facts a { color: inherit; text-decoration-color: var(--line); }
.facts a:hover { color: var(--fg); }
.lede a { color: var(--accent); }
