/* Cōrra website: the Race Bib world from the app. Grey race-day page, Tyvek
   bib white, bib black, Big Shoulders numerals, cause bands in the charity's
   colour. Light only, like the app. */
:root {
  color-scheme: light;
  --page: #E3E4E7;
  --bib: #FBFBF8;
  --ink: #0E0E0F;
  --ink-2: #3F4248;
  --ink-3: #55585E;
  --line: rgba(14, 14, 15, 0.10);
  --line-strong: rgba(14, 14, 15, 0.18);
  --pin: #D3D6DA;
  --pin-rim: #868A91;
  --cause: #1F5FD1;
  --easy: #157238;
  --long: #8F5A00;
  --race: #B42D22;
  --numerals: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}
a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cause); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--numerals); font-weight: 900; font-size: 26px; letter-spacing: 2px; text-decoration: none; }
.top nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* The bib */
.bib { background: var(--bib); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; position: relative; }
.band { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #fff; background: var(--cause); min-height: 44px; }
.band .logo { width: 28px; height: 28px; border-radius: 6px; background: #fff; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.band .logo img { width: 24px; height: 24px; object-fit: contain; }
.band .title { font-size: 14px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band .detail { margin-left: auto; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.88); white-space: nowrap; }
.face { position: relative; padding: 28px 20px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pin { position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--pin); box-shadow: inset 0 0 0 2px var(--pin-rim); }
.pin.l { left: 10px; } .pin.r { right: 10px; }
.number { font-family: var(--numerals); font-weight: 900; line-height: 0.95; letter-spacing: -1px; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.number .unit { font-weight: 800; letter-spacing: 0; }
.perf { position: relative; height: 2px; margin: 0 10px; border-top: 2px dashed var(--line-strong); }
.perf::before, .perf::after { content: ''; position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--page); }
.perf::before { left: -16px; } .perf::after { right: -16px; }
.tear { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; padding: 12px 16px 14px; }
.tear b { display: block; font-family: var(--numerals); font-weight: 800; font-size: 26px; line-height: 1.1; }
.tear span { font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: 12px; font: 600 17px/1 inherit; font-family: inherit; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--ink); color: var(--bib); }
.btn.primary:hover { background: #2B2C2F; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.block { width: 100%; }

footer { padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 600ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
