/* repcrowd.com: a gym scoreboard. Black ground, white condensed numerals, one red. */
:root {
  --ground: #0a0a0a;
  --panel: #151515;
  --line: #2a2a2a;
  --ink: #f2f2f2;
  --muted: #a3a3a3;
  --red: #e4141e;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  padding-inline: 20px;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { max-width: 100%; }

.wrap { max-width: 960px; margin-inline: auto; }
.prose { max-width: 68ch; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 800 1.5rem/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
nav.site { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 500; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.02; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(3rem, 11vw, 6.5rem); font-weight: 800; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; }
h1 em, h2 em { font-style: normal; color: var(--red); }

.eyebrow { font: 600 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

main { display: grid; gap: 72px; padding-block: 56px 80px; }
section { display: grid; gap: 20px; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 46ch; margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font: 700 1rem/1 var(--body); text-decoration: none; color: var(--ink);
}
.button.primary { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.button.primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.soon {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px dashed var(--muted); color: var(--ink); font: 700 1rem/1 var(--body);
}
.button.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* The rank ladder is the product: seven steps, each a real daily target. */
.ladder { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.ladder div {
  display: grid; align-content: end; justify-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px;
}
.ladder b { font: 800 clamp(1.4rem, 5vw, 2.4rem)/1 var(--display); }
.ladder small { font: 500 0.78rem/1.2 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.ladder div:nth-child(1) { min-height: 64px; }
.ladder div:nth-child(2) { min-height: 78px; }
.ladder div:nth-child(3) { min-height: 92px; }
.ladder div:nth-child(4) { min-height: 106px; }
.ladder div:nth-child(5) { min-height: 120px; }
.ladder div:nth-child(6) { min-height: 134px; }
.ladder div:nth-child(7) { min-height: 148px; }
.ladder div:last-child { border-color: var(--red); }
.ladder div:last-child b { color: var(--red); }
.caption { font-size: 0.9rem; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { display: grid; gap: 8px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.step p { margin: 0; color: var(--muted); }

.prose h2 { margin-top: 40px; font-size: 1.6rem; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #d6d6d6; }
.prose ul { padding-left: 1.2em; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }

footer.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .ladder { gap: 4px; }
  .ladder div { padding: 8px 2px; }
  .ladder small { font-size: 0.68rem; }
  main { gap: 56px; padding-block: 40px 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
