:root {
  color-scheme: light;
  --surface-0: #f3f2ee;
  --surface-1: #fcfcfb;
  --surface-2: #eceae4;
  --line: #e2e0d9;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #77756f;
  --flash: #2a78d6;
  --redpoint: #eb6834;
  --unsent: #c9c7bf;
  --seq-1: #cde2fb;
  --seq-2: #86b6ef;
  --seq-3: #3987e5;
  --seq-4: #1c5cab;
  --seq-5: #104281;
  --accent: #2a78d6;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-0: #121211;
    --surface-1: #1a1a19;
    --surface-2: #262624;
    --line: #2f2f2c;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #8f8e86;
    --flash: #3987e5;
    --redpoint: #d95926;
    --unsent: #4a4a46;
    --seq-1: #184f95;
    --seq-2: #256abf;
    --seq-3: #3987e5;
    --seq-4: #6da7ec;
    --seq-5: #b7d3f6;
    --accent: #3987e5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #121211;
  --surface-1: #1a1a19;
  --surface-2: #262624;
  --line: #2f2f2c;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #8f8e86;
  --flash: #3987e5;
  --redpoint: #d95926;
  --unsent: #4a4a46;
  --seq-1: #184f95;
  --seq-2: #256abf;
  --seq-3: #3987e5;
  --seq-4: #6da7ec;
  --seq-5: #b7d3f6;
  --accent: #3987e5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font: 400 15px/1.5 "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
}
a { color: inherit; text-decoration-color: var(--text-muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.top { padding: 40px 0 8px; }
.eyebrow { margin: 0 0 4px; color: var(--text-muted); font-size: 13px; letter-spacing: .02em; }
h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 88px);
  line-height: .9;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.02em;
}
h2 { margin: 0; font-size: 17px; font-weight: 700; font-variation-settings: "wdth" 110; }
.sub { margin: 4px 0 0; color: var(--text-secondary); font-size: 13.5px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.byline { margin: 6px 0 20px 4px; font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.byline a { color: var(--text-primary); font-weight: 700; }
.climbers { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 14px; }
.climbers[hidden] { display: none; }
.climbers a { font-size: 15px; font-weight: 700; color: var(--text-muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.climbers a:hover { color: var(--text-primary); }
.climbers a[aria-current="page"] { color: var(--text-primary); border-bottom-color: var(--accent); }
.climbers a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrapped-link {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 12px 20px 12px 14px; border-radius: 999px; text-decoration: none;
  background: #F5FF00; color: #141414; font-weight: 800; font-size: 16px; font-variation-settings: "wdth" 110;
}
.wrapped-link::before { content: ""; width: 22px; height: 22px; border-radius: 50% 42% 55% 48%; background: #E60F77; box-shadow: inset 0 0 0 7px #E60F77, inset 0 0 0 11px #141414; }
.wrapped-link:hover { background: #fffb7a; }
.wrapped-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.filters button {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-1); color: var(--text-secondary);
}
.filters button:hover { color: var(--text-primary); border-color: var(--text-muted); }
.filters button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface-1); border-color: var(--text-primary); }
.filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface-1); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { color: var(--text-secondary); font-size: 13px; }
.stat .value { font-size: 34px; font-weight: 700; line-height: 1.15; font-variation-settings: "wdth" 110; }
.stat .note { color: var(--text-muted); font-size: 12.5px; }
.stat.hero .value { font-size: 52px; }

.card { background: var(--surface-1); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card-head { margin-bottom: 14px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.chart svg { display: block; overflow: visible; max-width: 100%; height: auto; }
.chart text, #calendar text { fill: var(--text-muted); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* calendar */
#calendar svg { display: block; }
#calendar rect.day { rx: 2.5px; }
#calendar rect.day.on { cursor: default; }
.cal-key { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.cal-key i { width: 11px; height: 11px; border-radius: 2.5px; display: inline-block; }

/* session strips */
#strips { display: grid; gap: 2px; }
.strip { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.strip:first-child { border-top: 0; }
.strip .when { font-size: 13px; line-height: 1.25; }
.strip .when b { display: block; font-weight: 600; }
.strip .when span { color: var(--text-muted); font-size: 12px; }
.strip .holds { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px; }
.hold {
  width: 16px; height: 16px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(127 127 127 / .45);
}
.hold.open { background: transparent !important; box-shadow: inset 0 0 0 2px var(--c); opacity: .55; }
.hold.flash { box-shadow: inset 0 0 0 1px rgb(127 127 127 / .45), 0 0 0 2px var(--surface-1), 0 0 0 3.5px var(--text-secondary); margin: 0 2px; }
.strip .count { font-size: 13px; color: var(--text-secondary); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip-more { margin-top: 10px; font: inherit; font-size: 13.5px; font-weight: 600; background: none; border: 1px solid var(--line); color: var(--text-secondary); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.strip-more:hover { color: var(--text-primary); }
.strips-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); margin: -4px 0 10px; }
.strips-key span { display: inline-flex; gap: 6px; align-items: center; }
.strips-key .hold { --c: #888; background: #888; }

/* table */
.table-card summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
.table-card summary::-webkit-details-marker { display: none; }
.table-card summary h2::before { content: "▸ "; color: var(--text-muted); }
.table-card[open] summary h2::before { content: "▾ "; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--text-secondary); font-weight: 600; }
td.num, th.num { text-align: right; }

.tip {
  position: fixed; z-index: 10; pointer-events: none;
  background: var(--text-primary); color: var(--surface-1);
  font-size: 12.5px; line-height: 1.4; padding: 7px 10px; border-radius: 8px;
  max-width: 240px; box-shadow: 0 4px 16px rgb(0 0 0 / .2);
}
.tip b { font-weight: 700; }

.foot { color: var(--text-muted); font-size: 13px; padding-bottom: 40px; }
.empty { color: var(--text-muted); font-size: 14px; padding: 24px 0; }

@media (max-width: 560px) {
  .card { padding: 16px; }
  .strip { grid-template-columns: 1fr auto; }
  .strip .holds { grid-column: 1 / -1; grid-row: 2; }
  .stat .value { font-size: 28px; }
  .stat.hero .value { font-size: 40px; }
}
