/* Gym Product Review — ember on graphite.
   Palette and motion per docs/superpowers/specs/2026-08-20-gym-product-review-design.md §15. */

:root {
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --bg-page: #ffffff;
  --bg-alt: #fbfaf9;
  --bg-inset: #faf8f6;
  --bg-deep: #16130f;

  --text: #16130f;
  --text-2: #2c2621;
  --text-dim: #57504a;
  --text-mute: #9a938c;

  --border: #e9e5e0;
  --border-strong: #d2ccc4;

  --ember: #d9482a;
  --ember-bright: #f2643f;
  --ember-deep: #a03318;
  --ember-tint: rgba(217, 72, 42, 0.08);

  --verified: #0f6e6a;
  --verified-bg: #eafaf8;

  --link: #1b4f8f;
  --link-hover: #123a6d;

  --wrap: 1340px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

/* ---- masthead ---- */
.masthead {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  z-index: 10;
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.brand .mark { color: var(--ember); }
.nav { display: flex; gap: 22px; font-size: 0.94rem; }
.nav a { color: var(--text-dim); text-decoration: none; transition: color 0.15s ease; }
.nav a:hover { color: var(--ember); }

/* ---- hero ---- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 20ch;
}
.lede { font-family: var(--font-serif); font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--text-2); max-width: var(--measure); margin: 0; }

/* ---- sections ---- */
section { padding: 56px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -0.02em; margin: 0 0 10px; }
h3 { font-size: 1.06rem; margin: 30px 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.prose p, .prose li { font-family: var(--font-serif); color: var(--text-2); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 30px; }
.pillar { border: 1px solid var(--border); border-left: 3px solid var(--ember); border-radius: 3px; padding: 22px; background: var(--bg-alt); }
.pillar h3 { margin: 0 0 8px; font-size: 1.02rem; }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--text-dim); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.scroll { overflow-x: auto; margin: 20px 0; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }
td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
cite { display: block; font-size: 0.82rem; color: var(--text-mute); font-style: normal; }

.note {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--verified);
  background: var(--verified-bg);
  border-radius: 3px;
  padding: 18px 20px;
  margin: 26px 0;
}
.note strong { color: var(--verified); }
.note p { margin: 0; font-size: 0.95rem; }

footer { background: var(--bg-deep); color: #b8b0a8; padding: 42px 0; font-size: 0.9rem; }
footer a { color: #e8e2db; }
footer .wrap > * + * { margin-top: 10px; }

/* ---- motion, matching PSR behaviour ---- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .masthead { backdrop-filter: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 38px; }
  section { padding: 40px 0; }
  .nav { gap: 15px; font-size: 0.88rem; }
}
