/* Blossom garden walk. Tokens from /site.css. Base rules = text version; html.motion = the 3D walk. */
:root{
  --paper:#FFFAF0; --paper-2:#F5EEE2; --ink:#2E1A47; --ink-2:#5E4B73; --ink-3:#8F80A3;
  --plum:#5B3A86; --plum-deep:#43296A; --marigold:#F2B52B; --marigold-deep:#D99A12; --line:#E6DCCD;
  --display:"Fraunces",Georgia,serif; --body:"Karla",system-ui,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.55 var(--body)}
a{color:var(--plum);text-underline-offset:3px;text-decoration-thickness:1px}
h1,h2{font-family:var(--display);font-weight:400;letter-spacing:-.015em;line-height:1.04;margin:0 0 .4em;font-variation-settings:"SOFT" 50,"WONK" 0}
p{margin:0 0 .8em}
.skip{position:absolute;left:-999px;top:8px;z-index:30;background:var(--ink);color:#fff;padding:8px 12px;border-radius:6px}
.skip:focus{left:12px}
a:focus-visible,button:focus-visible{outline:2px solid var(--marigold);outline-offset:3px}

.top{position:fixed;inset:0 0 auto 0;z-index:20;display:flex;align-items:flex-start;gap:20px;padding:16px clamp(16px,3vw,36px);padding-top:max(16px,env(safe-area-inset-top));pointer-events:none;background:linear-gradient(var(--paper) 55%,rgba(255,250,240,0))}
.top>*{pointer-events:auto}
.brand{display:flex;align-items:center;gap:9px;font:500 21px var(--display);color:var(--ink);text-decoration:none;margin-right:auto;padding-top:2px}
.brand img{border-radius:6px;display:block}
.mode{font:600 13px var(--body);letter-spacing:.04em;color:var(--ink);background:none;border:0;border-bottom:1px solid currentColor;padding:5px 0;cursor:pointer;margin-top:3px}
.tally{display:none}

/* text version */
#gl,.shade{display:none}
main{max-width:1060px;margin:0 auto;padding:100px clamp(16px,4vw,40px) 80px}
.ch{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(20px,4vw,52px);align-items:center;padding:clamp(28px,5vw,56px) 0;border-top:1px solid var(--line)}
.ch:first-child{border-top:0}
.ch[data-side="r"] .still{order:2}
.still{margin:0;border-radius:3px;overflow:hidden;background:#1d1720;aspect-ratio:16/10}
.still img{display:block;width:100%;height:100%;object-fit:cover}
.no{font:600 12px var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3)}
.cap h1{font-size:clamp(38px,5.6vw,64px)}
.cap h2{font-size:clamp(28px,3.4vw,38px)}
.cap p{color:var(--ink-2)}
.cue{display:none}
.rounds{list-style:none;margin:10px 0 14px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 14px;font-size:13px;color:var(--ink-3);counter-reset:r}
.rounds li{counter-increment:r}
.rounds li::before{content:counter(r) " ";font:italic 500 13px var(--display);color:var(--marigold-deep)}
.days{display:none}
.acts{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:16px!important}
.btn{display:inline-flex;align-items:center;background:var(--marigold);color:var(--ink);border-radius:999px;padding:12px 20px;font:700 15.5px var(--body);text-decoration:none}
.btn:hover{background:var(--marigold-deep)}
.btn.plum{background:var(--plum);color:#fff}.btn.plum:hover{background:var(--plum-deep)}
.link{font-weight:700;color:var(--ink)!important}
.links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px!important}
.links a{font:700 14px var(--body);color:var(--ink);text-decoration:none;border:1px solid var(--ink);border-radius:999px;padding:8px 14px}
.links a:hover{background:var(--ink);color:var(--paper)}
@media (max-width:760px){.ch{grid-template-columns:1fr}.ch[data-side="r"] .still{order:0}.rounds{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- 3D walk ---------- */
html.motion body{background:#1d1720}
html.motion #gl{display:block;position:fixed;inset:0;width:100vw;height:100vh;height:100lvh;z-index:0}
html.motion .shade{display:block;position:fixed;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(20,14,24,.38) 0%,rgba(20,14,24,0) 46%),linear-gradient(0deg,rgba(20,14,24,.25),rgba(20,14,24,0) 30%)}
html.motion .top{background:none}
html.motion .brand,html.motion .mode{color:#FBF4E8}
html.motion main{max-width:none;padding:0;margin:0;position:relative;z-index:2}
html.motion .ch{display:block;height:250vh;padding:0;border:0}
html.motion .ch.intro{height:150vh}
html.motion .ch.end{height:170vh}
html.motion .still{display:none}
/* captions: quiet editorial text on the image, no boxes; a fine rule and a numbered kicker */
html.motion .cap{position:fixed;z-index:5;left:clamp(20px,6vw,92px);top:50%;width:min(430px,calc(100vw - 40px));opacity:0;visibility:hidden;color:#FBF4E8;text-shadow:0 1px 18px rgba(18,12,22,.55)}
html.motion .ch[data-side="r"] .cap{left:auto;right:clamp(20px,6vw,92px)}
html.motion .ch[data-side="r"] .shade{display:none}
html.motion .cap.on{visibility:visible}
html.motion .no{color:#E9D9B8;border-top:1px solid rgba(251,244,232,.45);padding-top:12px;display:inline-block}
html.motion .cap h1{font-size:clamp(44px,6vw,80px);color:#FFF8EC}
html.motion .cap h2{font-size:clamp(32px,3.4vw,46px);color:#FFF8EC}
html.motion .cap p{color:#F1E7D8;font-size:16.5px;line-height:1.55}
html.motion .cue{display:inline;font:600 12px var(--body);letter-spacing:.16em;text-transform:uppercase;color:#E9D9B8}
html.motion .rounds{color:#E3D6C4;font-size:12.5px}
html.motion .rounds li::before{color:#F2C46B}
html.motion .days{display:flex;list-style:none;padding:0;margin:14px 0 0;gap:6px}
html.motion .days li{flex:1;text-align:center;font:600 11px var(--body);letter-spacing:.08em;text-transform:uppercase;color:rgba(241,231,216,.55);padding-top:7px;border-top:2px solid rgba(241,231,216,.25);transition:color .3s,border-color .3s}
html.motion .days li.done{color:rgba(241,231,216,.85);border-color:rgba(241,231,216,.6)}
html.motion .days li.now{color:#FFF8EC;border-color:var(--marigold)}
html.motion .link{color:#FFF8EC!important}
html.motion .links a{color:#FFF8EC;border-color:rgba(251,244,232,.7);text-shadow:none;background:rgba(20,14,24,.18)}
html.motion .links a:hover{background:#FFF8EC;color:var(--ink)}
html.motion .btn{text-shadow:none}
/* tally (500 → 9) */
html.motion .tally{display:flex;flex-direction:column;align-items:flex-end;color:#FBF4E8;text-shadow:0 1px 14px rgba(18,12,22,.5);opacity:0;transition:opacity .8s;margin-top:2px}
html.motion .tally.on{opacity:1}
.tally .lab,.tally .sub{font:600 10.5px var(--body);letter-spacing:.16em;text-transform:uppercase;color:#E9D9B8}
.tally b{font:300 46px/1 var(--display);font-variant-numeric:tabular-nums;margin:3px 0 2px}
.tally .sub{max-width:220px;text-align:right;line-height:1.35}

@media (max-width:760px){
  html.motion .shade{background:linear-gradient(0deg,rgba(20,14,24,.72) 0%,rgba(20,14,24,.35) 38%,rgba(20,14,24,0) 62%)}
  html.motion .cap,html.motion .ch[data-side="r"] .cap{left:20px;right:20px;width:auto;top:auto;bottom:calc(22px + env(safe-area-inset-bottom))}
  html.motion .cap h1{font-size:40px}
  html.motion .cap h2{font-size:30px}
  html.motion .cap p{font-size:15px;line-height:1.48;margin-bottom:.5em}
  html.motion .rounds{display:none}
  html.motion .acts{margin-top:10px!important}
  html.motion .btn{padding:10px 16px;font-size:14.5px}
  html.motion .links a{font-size:13px;padding:7px 11px}
  .brand{font-size:19px}
  .tally b{font-size:32px}
  .tally .lab{display:none}
  .tally .sub{font-size:9.5px;max-width:140px}
  html.motion .top{gap:14px}
}
html.still-shot .top,html.still-shot main,html.still-shot .shade{display:none!important}

/* the first real entrants (from /api/roster) */
.roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:14px 0 6px}
.roster figure{margin:0;display:flex;gap:10px;align-items:flex-start}
.roster img{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:none;background:#3a2f3a}
.roster b{display:block;font:600 15px/1.2 var(--body);color:var(--ink)}
.roster span{display:block;font-size:12.5px;color:var(--ink-3)}
.roster em{display:block;font-style:normal;font-size:12.5px;line-height:1.35;color:var(--ink-2);margin-top:2px}
.count{font:600 12px var(--body)!important;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)!important}
html.motion .roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 12px;text-shadow:none}
html.motion .roster figure{flex-direction:column;gap:6px}
html.motion .roster img{width:52px;height:52px;box-shadow:0 0 0 1.5px rgba(251,244,232,.7)}
html.motion .roster b{color:#FFF8EC;font-size:13px;text-shadow:0 1px 10px rgba(18,12,22,.6)}
html.motion .roster span{color:#E3D6C4;font-size:11px}
html.motion .roster em{display:none}
html.motion .count{color:#E9D9B8!important}
@media (max-width:760px){
  html.motion .roster{display:flex;gap:6px;margin:8px 0 2px}
  html.motion .roster img{width:34px;height:34px}
  html.motion .roster b,html.motion .roster span{display:none}
}

/* legibility on any sky: a soft scrim travels with each caption and the tally */
html.motion .cap::before,html.motion .tally::before{content:"";position:absolute;inset:-70px -90px;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(22,15,26,.52),rgba(22,15,26,.28) 55%,rgba(22,15,26,0))}
html.motion .tally{position:relative}
html.motion .tally::before{inset:-30px -40px}
html.motion .shade{background:linear-gradient(0deg,rgba(20,14,24,.22),rgba(20,14,24,0) 28%)}
@media (max-width:760px){html.motion .cap::before{inset:-40px -30px -30px}}

.rounds li span{display:block;font-size:11.5px;opacity:.75}
html.motion #method{font-size:14.5px!important;opacity:.92}
html.motion .tally::before{inset:-18px -26px;background:radial-gradient(closest-side,rgba(22,15,26,.34),rgba(22,15,26,0))}
