/* rush.hartii.org: the same autumn palette as hartiilabs.com/rush (--ed-rush-* in the Labs tokens). */
:root {
  --bark: #1a0d08; --bark-2: #2a150c; --bark-3: #3a1e11; --rule: #5a3420;
  --cream: #f6e6c8; --cream-2: #d9bf98; --amber: #f2a43a; --amber-hover: #ffb955; --on-amber: #1a0d08; --rust: #e0602a; --loss: #ff9b85;
  --serif: 'Iowan Old Style', 'Source Serif 4', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bark); color: var(--cream); font-family: var(--sans); }
.page { max-width: 1100px; margin: 0 auto; padding: 24px 20px 48px; }
.art { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--bark-2); aspect-ratio: 1672 / 941; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.head { margin-top: 32px; max-width: 760px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
h1 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; line-height: 1.03; letter-spacing: -.02em; }
.lede { margin: 16px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--cream-2); }
.lede b { color: var(--amber); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.primary { background: var(--amber); color: var(--on-amber); }
.btn.primary:hover { background: var(--amber-hover); }
.btn.quiet { color: var(--cream); border-color: var(--rule); }
.btn.quiet:hover { background: var(--bark-3); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.live { display: grid; grid-template-columns: 1fr 1.4fr 1fr; margin-top: 32px; background: var(--bark-2); border: 1px solid var(--rule); border-radius: 14px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 24px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat.pool { background: var(--bark-3); }
.label { font-size: 14px; font-weight: 600; color: var(--cream-2); }
.big { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; min-height: 44px; }
.pool .big { font-size: clamp(42px, 5vw, 64px); }
.big small { font-family: var(--sans); font-size: 17px; color: var(--cream-2); }
.amber { color: var(--amber); }
.small { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cream-2); }
.warn { color: var(--loss); font-size: 14px; }
h2 { margin: 48px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.text { margin: 12px 0 0; max-width: 68ch; line-height: 1.6; color: var(--cream-2); }
.text a, .foot a { color: var(--amber); }
.tablewrap { margin-top: 16px; overflow-x: auto; border-top: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { padding: 12px 12px 12px 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--cream-2); border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.num { text-align: right; }
td.amber { font-weight: 700; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
pre { margin: 16px 0 0; padding: 16px 20px; overflow-x: auto; background: var(--bark-2); border: 1px solid var(--rule); border-left: 3px solid var(--amber); border-radius: 10px; font-size: 15px; line-height: 1.7; color: var(--cream); }
.how .small { margin-top: 16px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; }
@media (max-width: 820px) { .live { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; border-top: 1px solid var(--rule); } }
@media (max-width: 600px) {
  .page { padding-top: 16px; }
  h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .btn { width: 100%; }
  .hide-sm { display: none; }
  pre { font-size: 12px; padding: 12px; white-space: pre-wrap; }
}

/* Backdrop: the event art blurred and darkened with a heavy maple-leaf fall (same as hartiilabs.com/rush). */
:root { --leaf-1: #b3261e; --leaf-2: #d9531e; --leaf-3: #ee8a2b; --leaf-4: #f2b34a; }
.page { position: relative; z-index: 1; }
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop-img { position: absolute; inset: -6%; background: var(--bark) url('/hartii-rush-960.jpg') center / cover no-repeat; filter: blur(18px) saturate(1.15) brightness(0.5); transform: scale(1.08); }
.backdrop-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bark) 45%, transparent), color-mix(in srgb, var(--bark) 70%, transparent) 55%, color-mix(in srgb, var(--bark) 88%, transparent)); }
.leaves { position: absolute; inset: 0; }
.leaf { position: absolute; top: 0; left: var(--x); width: var(--size); height: var(--size); will-change: transform; animation: fall var(--dur) linear var(--delay) infinite; }
.leaf .shape { display: block; width: 100%; height: 100%; -webkit-mask: url('/leaf.svg') center / contain no-repeat; mask: url('/leaf.svg') center / contain no-repeat; animation: sway var(--sway) ease-in-out var(--delay) infinite alternate; }
.tone-1 { background: var(--leaf-1); } .tone-2 { background: var(--leaf-2); } .tone-3 { background: var(--leaf-3); } .tone-4 { background: var(--leaf-4); }
@keyframes fall { from { transform: translate3d(0, -12vh, 0); } to { transform: translate3d(var(--drift), 112vh, 0); } }
@keyframes sway { from { transform: rotate(-35deg) translateX(-14px) scaleX(1); } 50% { transform: rotate(10deg) translateX(6px) scaleX(0.6); } to { transform: rotate(40deg) translateX(16px) scaleX(1); } }
@media (max-width: 640px) { .leaf:nth-child(n+31) { display: none; } }
@media (prefers-reduced-motion: reduce) { .leaf, .leaf .shape { animation: none; } .leaf { transform: translate3d(0, calc(var(--size) * 9), 0); } .leaf:nth-child(n+17) { display: none; } }
h1, .lede, .eyebrow, h2, .text, .small { text-shadow: 0 1px 2px var(--bark), 0 0 14px var(--bark); }
