/* =========================================================================
   Chalkline Climbing + Fitness — demo gym site.

   Concrete grey walls, chalk white copy, and headings set in the colours of
   the holds. Colour is the whole identity here, so it has a job: every hue
   below belongs to a class, and the same class is the same colour on the
   schedule, in the class list and in a member's booking history.

   Deliberately nothing like carterlong.net (deep petrol, blue and green),
   Northline (pale ice and navy) or Emberline (warm bone and charcoal). Three
   demos that share a look are one demo shown three times.

   Contrast was measured, not eyeballed. Every hold colour below clears 4.5:1
   as text on all four concrete surfaces, and every control border clears 3:1.
   That is why the greys are dark: bright saturated colour on mid grey fails,
   and the fix is always the background, never the colour.
   ========================================================================= */

:root{
  --slab:#3b3f45;         /* the page */
  --wall:#33373d;         /* header, footer, banded sections */
  --deep:#2a2e33;         /* the deepest panel, and inputs */
  --riser:#41464d;        /* a card lifted off the page */

  --chalk:#f2f5f7;        /* 9.67:1 on slab, 8.69:1 on riser */
  --dust:#b8c0c8;         /* 5.76:1 on slab, 5.17:1 on riser */
  --edge:#8f97a0;         /* control borders. 3.58:1 on slab, 3.22:1 on riser */
  --line:#4c525a;         /* hairlines, decorative */
  --line-2:#585f68;
  --ink:#14181d;          /* text on a hold-coloured fill. 12.34:1 on yellow */

  /* The holds. Ordered the way a gym tapes them, light to dark in feel. */
  --h-yellow:#ffd23f;
  --h-lime:#a8e05f;
  --h-cyan:#45d9e8;
  --h-blue:#8cc0ff;
  --h-violet:#bfaeff;
  --h-pink:#ffa3cf;
  --h-coral:#ff9d91;
  --h-orange:#ffab63;

  --hue:var(--h-yellow);  /* whatever the current section is tinted with */
  --bad:#ff9d91;
  --good:#a8e05f;

  --wrap:1200px;
  --display:Anton,'Arial Narrow',system-ui,sans-serif;
  --cond:'Barlow Condensed','Arial Narrow',system-ui,sans-serif;
  --sans:Barlow,system-ui,-apple-system,sans-serif;

  --ease:cubic-bezier(.2,.8,.25,1);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--slab);color:var(--chalk);
  font:400 17px/1.62 var(--sans);
  -webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;min-height:100vh;
  overflow-x:hidden;
}
main{flex:1}

h1,h2{font-family:var(--display);font-weight:400;margin:0;line-height:.94;letter-spacing:.004em;text-transform:uppercase}
h3,h4{font-family:var(--cond);font-weight:700;margin:0;line-height:1.1;letter-spacing:.01em}
h1{font-size:clamp(2.9rem,7.4vw,5.6rem);color:var(--chalk)}
h2{font-size:clamp(2rem,4.4vw,3.4rem);color:var(--hue)}
h3{font-size:1.35rem;color:var(--chalk)}
h4{font-size:1.05rem;text-transform:uppercase;letter-spacing:.06em;color:var(--dust)}
p{margin:0 0 1.05rem}
p:last-child{margin-bottom:0}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--h-cyan);outline-offset:3px;border-radius:2px}
[hidden]{display:none !important}

/* Section tints. Each page sets its own run of colours, and a class keeps the
   same hue everywhere it appears. */
.t-yellow{--hue:var(--h-yellow)} .t-lime{--hue:var(--h-lime)}
.t-cyan{--hue:var(--h-cyan)}     .t-blue{--hue:var(--h-blue)}
.t-violet{--hue:var(--h-violet)} .t-pink{--hue:var(--h-pink)}
.t-coral{--hue:var(--h-coral)}   .t-orange{--hue:var(--h-orange)}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem;position:relative}
.wrap.narrow{max-width:820px}
.wrap.mid{max-width:1000px}
.section{padding:5rem 0}
.section.tight{padding:3rem 0}
.section.banded{background:var(--wall);border-block:1px solid var(--line)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;background:var(--h-yellow);color:var(--ink);padding:.7rem 1.1rem;z-index:100;font-family:var(--cond);font-weight:700}
.skip:focus{left:0;top:0}

.eyebrow{font-family:var(--cond);font-weight:700;font-size:.9rem;text-transform:uppercase;letter-spacing:.18em;color:var(--hue);margin:0 0 .9rem}
.muted{color:var(--dust)}
.lede{font-size:19px;color:var(--dust);max-width:60ch}
.tabular{font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1}
.stack>*+*{margin-top:1rem}

/* -------------------------------------------------------------- the wall */
/* Scattered holds, drawn rather than photographed. No request, no licence,
   and it survives being resized in a way a photo of a wall does not. */
.wall-tex{position:absolute;inset:0;pointer-events:none;overflow:hidden;
  /* Holds are ellipses on a rotated axis, not dots. A circle reads as a bullet
     point; an ellipse at an angle reads as something bolted to a wall. */
  mask-image:linear-gradient(100deg,transparent 0 42%,#000 60%);
  -webkit-mask-image:linear-gradient(100deg,transparent 0 42%,#000 60%);
}
.wall-tex i{position:absolute;display:block;border-radius:50%;opacity:.9;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.22)}
/* Bolted in a plausible spread rather than a grid. The sizes are the sizes a
   gym actually uses: a few jugs, a lot of mid, a scattering of crimps. */
.wall-tex i:nth-child(1){left:44%;top:14%;width:46px;height:34px;background:var(--h-violet);transform:rotate(-18deg)}
.wall-tex i:nth-child(2){left:58%;top:36%;width:30px;height:30px;background:var(--h-yellow)}
.wall-tex i:nth-child(3){left:70%;top:9%;width:54px;height:38px;background:var(--h-cyan);transform:rotate(24deg)}
.wall-tex i:nth-child(4){left:52%;top:64%;width:26px;height:20px;background:var(--h-coral);transform:rotate(-40deg)}
.wall-tex i:nth-child(5){left:82%;top:52%;width:44px;height:32px;background:var(--h-lime);transform:rotate(12deg)}
.wall-tex i:nth-child(6){left:64%;top:80%;width:34px;height:26px;background:var(--h-orange);transform:rotate(-8deg)}
.wall-tex i:nth-child(7){left:90%;top:24%;width:22px;height:22px;background:var(--h-pink)}
.wall-tex i:nth-child(8){left:76%;top:68%;width:18px;height:14px;background:var(--h-blue);transform:rotate(30deg)}
.wall-tex i:nth-child(9){left:47%;top:44%;width:16px;height:12px;background:var(--h-lime);transform:rotate(52deg)}
.wall-tex i:nth-child(10){left:86%;top:86%;width:38px;height:28px;background:var(--h-yellow);transform:rotate(-26deg)}
.wall-tex i:nth-child(11){left:94%;top:62%;width:20px;height:26px;background:var(--h-violet);transform:rotate(8deg)}
.wall-tex i:nth-child(12){left:68%;top:52%;width:14px;height:14px;background:var(--h-chalk,#f2f5f7)}
/* Bolt lines. A real wall is panels, and the seams are the only straight
   thing on it. */
.wall-tex::after{content:'';position:absolute;inset:0;
  background-image:linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:120px 120px;background-position:20px 0}
/* The concrete itself. Two crossed gradients read as a poured wall at any
   size, which a tiled bitmap does not. */
.crete{background-image:
  repeating-linear-gradient(93deg, rgba(255,255,255,.014) 0 2px, transparent 2px 9px),
  repeating-linear-gradient(2deg, rgba(0,0,0,.03) 0 1px, transparent 1px 7px);}

/* ------------------------------------------------------------- the chrome */
.site-header{position:sticky;top:0;z-index:50;background:var(--wall);border-bottom:1px solid var(--line)}
.site-header>.wrap{display:flex;align-items:center;gap:1.4rem;min-height:70px}
.mark{font-family:var(--display);font-size:1.5rem;letter-spacing:.02em;text-transform:uppercase;text-decoration:none;line-height:1;white-space:nowrap}
/* The wordmark is taped like a route: every letter a different hold. It is the
   one place the colours are decorative rather than meaningful, and it is the
   reason the rest of the palette can afford to be strict. */
.mark i{font-style:normal}
.mark i:nth-child(1){color:var(--h-yellow)} .mark i:nth-child(2){color:var(--h-lime)}
.mark i:nth-child(3){color:var(--h-cyan)}   .mark i:nth-child(4){color:var(--h-blue)}
.mark i:nth-child(5){color:var(--h-violet)} .mark i:nth-child(6){color:var(--h-pink)}
.mark i:nth-child(7){color:var(--h-coral)}  .mark i:nth-child(8){color:var(--h-orange)}
.mark i:nth-child(9){color:var(--h-yellow)}

.nav{margin-left:auto;display:flex;align-items:center;gap:1.5rem}
.nav a:not(.btn){font-family:var(--cond);font-weight:600;font-size:1.05rem;text-transform:uppercase;letter-spacing:.07em;
  color:var(--dust);text-decoration:none;padding:.4rem 0;border-bottom:2px solid transparent}
.nav a:not(.btn):hover{color:var(--chalk)}
.nav a:not(.btn)[aria-current]{color:var(--chalk);border-bottom-color:var(--h-yellow)}

.nav-toggle{display:none}
.nav-label{display:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--cond);font-weight:700;font-size:1.05rem;text-transform:uppercase;letter-spacing:.07em;
  background:var(--h-yellow);color:var(--ink);border:2px solid var(--h-yellow);
  padding:.62rem 1.25rem;text-decoration:none;cursor:pointer;
  transition:transform .12s var(--ease),background .16s,box-shadow .16s}
.btn:hover{background:#ffdd6b;border-color:#ffdd6b;transform:translateY(-1px)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent;color:var(--chalk);border-color:var(--edge)}
.btn.ghost:hover{background:rgba(255,255,255,.06);border-color:var(--chalk);color:var(--chalk)}
.btn.small{padding:.4rem .8rem;font-size:.92rem}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}

.site-footer{background:var(--deep);border-top:1px solid var(--line);padding:3.2rem 0 2rem;margin-top:auto}
.site-footer .cols{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:2.4rem}
.site-footer h4{margin-bottom:.7rem}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:.4rem;color:var(--dust)}
.site-footer a{color:var(--dust);text-decoration:none}
.site-footer a:hover{color:var(--chalk);text-decoration:underline}
.site-footer .base{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  margin-top:2.4rem;padding-top:1.4rem;border-top:1px solid var(--line);color:var(--dust);font-size:.9rem}
/* The disclosure. It is in the footer of every page rather than a banner at
   the top, because a banner is the first thing a visitor learns to ignore. */
.notreal{border:1px dashed var(--line-2);padding:.75rem 1rem;margin-bottom:1.8rem;color:var(--dust);font-size:.92rem}
.notreal b{color:var(--h-yellow);font-weight:600}

/* --------------------------------------------------------------- the hero */
.hero{position:relative;padding:5.5rem 0 4.5rem;background:var(--wall);border-bottom:1px solid var(--line);overflow:hidden}
.hero .wrap{position:relative;z-index:1}
.hero h1{max-width:16ch}
.hero h1 em{font-style:normal;color:var(--h-yellow)}
.hero p{max-width:52ch;font-size:19px;color:var(--dust);margin-top:1.4rem}
.actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:2rem}

/* Open or closed, right now, computed in the gym's own time zone. */
.pill{display:inline-flex;align-items:center;gap:.55rem;border:1px solid var(--line-2);
  padding:.35rem .8rem;font-family:var(--cond);font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;font-size:.92rem;color:var(--dust)}
.pill .dot{width:9px;height:9px;background:var(--edge);border-radius:50%;flex:none}
.pill.open .dot{background:var(--h-lime)}
.pill.open{color:var(--chalk);border-color:var(--h-lime)}
.pill.shut .dot{background:var(--h-coral)}

/* -------------------------------------------------------------- the stats */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.stat{background:var(--slab);padding:1.6rem 1.4rem}
.stat b{display:block;font-family:var(--display);font-size:2.9rem;line-height:.9;color:var(--hue)}
.stat b small{font-family:var(--cond);font-weight:600;font-size:1.05rem;color:var(--dust);letter-spacing:.02em}
/* Direct children only. A descendant selector here also catches the <span>
   wrapping the figure inside the <b>, which breaks "$104" onto two lines and
   is invisible until you look at a rendered page. */
.stat>span{display:block;font-family:var(--cond);font-weight:600;text-transform:uppercase;letter-spacing:.09em;
  font-size:.9rem;color:var(--dust);margin-top:.5rem}
.stats>*:nth-child(1){--hue:var(--h-yellow)} .stats>*:nth-child(2){--hue:var(--h-cyan)}
.stats>*:nth-child(3){--hue:var(--h-lime)}   .stats>*:nth-child(4){--hue:var(--h-violet)}

/* -------------------------------------------------------------- the cards */
.sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;margin-bottom:2.2rem}
.sechead p{margin:.7rem 0 0;color:var(--dust);max-width:58ch}
.sechead a{font-family:var(--cond);font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--hue);text-decoration:none}
.sechead a:hover{text-decoration:underline}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.2rem}
/* Four plans want four columns. At the 280px minimum they wrap to 3 + 1 and
   leave a hole the width of a card, which reads as a missing plan. */
.cards.four{grid-template-columns:repeat(auto-fit,minmax(248px,1fr))}
.cards>*{min-width:0}
.card{background:var(--riser);border:1px solid var(--line);padding:1.5rem;position:relative}
.card::before{content:'';position:absolute;left:-1px;top:-1px;bottom:-1px;width:4px;background:var(--hue)}
.card h3{margin-bottom:.5rem}
.card p{color:var(--dust);font-size:.98rem}

/* --------------------------------------------------------- capacity meter */
/* The number and the bar say the same thing on purpose. The bar is read in a
   glance across twenty sessions; the number is what you check before you
   commit. Neither is decorative. */
.meter{display:block;height:6px;background:var(--deep);border:1px solid var(--line);margin-top:.6rem;position:relative;overflow:hidden}
.meter i{position:absolute;inset:0 auto 0 0;background:var(--hue);width:calc(var(--pct,0) * 1%);display:block}
.js .meter i{width:0}
.js .in .meter i,.js .meter.in i{width:calc(var(--pct,0) * 1%);transition:width .85s var(--ease) calc(var(--i,0) * 45ms)}
.meter.hot i{background:var(--h-coral)}

/* ------------------------------------------------------------ the schedule */
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.6rem;align-items:center}
.filters .lab{font-family:var(--cond);font-weight:700;text-transform:uppercase;letter-spacing:.1em;font-size:.85rem;color:var(--dust);margin-right:.3rem}
/* Real radios under the chips, so the keyboard and a screen reader get a
   working radio group and the no-JS page still submits. */
.chip{position:relative}
.chip input{position:absolute;opacity:0;width:100%;height:100%;left:0;top:0;margin:0;cursor:pointer}
.chip span{display:block;font-family:var(--cond);font-weight:600;text-transform:uppercase;letter-spacing:.07em;font-size:.95rem;
  border:1px solid var(--edge);padding:.36rem .85rem;color:var(--dust);transition:.14s var(--ease)}
.chip input:checked+span{background:var(--chalk);border-color:var(--chalk);color:var(--ink)}
.chip input:focus-visible+span{outline:2px solid var(--h-cyan);outline-offset:2px}
.chip:hover span{color:var(--chalk);border-color:var(--chalk)}

/* 160px is not arbitrary: seven of them plus the gaps is exactly the content
   width at the 1200px wrap, so the whole week is on screen at a desk and the
   strip only turns into a scroller when it has to. A week you have to scroll
   to see is a week nobody looks past Wednesday of. */
.week{display:grid;grid-template-columns:repeat(7,minmax(160px,1fr));gap:1px;background:var(--line);
  border:1px solid var(--line);overflow-x:auto;scroll-snap-type:x mandatory}
/* A grid item defaults to min-width:auto, which means it refuses to be
   narrower than its widest child. Without this the seven columns force the
   whole page sideways instead of scrolling inside the strip. */
.week>*{min-width:0;scroll-snap-align:start}
.day{background:var(--slab);padding:0 0 .8rem;display:flex;flex-direction:column}
.day.past{opacity:.55}
.dh{padding:.7rem;border-bottom:1px solid var(--line);background:var(--wall)}
.dh .w{display:block;font-family:var(--cond);font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.82rem;color:var(--dust)}
.dh .d{display:block;font-family:var(--display);font-size:1.35rem;line-height:1.1;color:var(--chalk)}
.dh.today .d{color:var(--h-yellow)}
.dh .h{display:block;font-size:.8rem;color:var(--dust);margin-top:.15rem}
.day .none{padding:1.2rem .9rem;color:var(--dust);font-size:.9rem}
.day .shut{padding:1.2rem .9rem;color:var(--h-coral);font-family:var(--cond);font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.9rem}

.sess{display:block;width:100%;text-align:left;background:var(--riser);border:0;border-left:4px solid var(--hue);
  border-bottom:1px solid var(--line);padding:.65rem .7rem;position:relative;
  transition:background .14s var(--ease),transform .14s var(--ease)}
.sess:hover:not([disabled]){background:#4a5058;transform:translateX(2px)}
.sess .t{font-family:var(--cond);font-weight:700;font-size:1rem;letter-spacing:.04em;color:var(--hue)}
.sess .n{display:block;font-weight:600;font-size:.95rem;line-height:1.22;margin:.1rem 0 .15rem;color:var(--chalk)}
.sess .c{display:block;font-size:.8rem;line-height:1.3;color:var(--dust)}
.sess .s{display:block;font-family:var(--cond);font-weight:600;text-transform:uppercase;letter-spacing:.06em;font-size:.78rem;margin-top:.45rem;color:var(--dust)}
.sess .s b{color:var(--chalk);font-weight:700}
/* Full sessions get taped off. The stripe is the same gesture a gym uses on a
   route that is out of service, and it survives being printed in greyscale,
   which a colour change on its own does not. */
.sess.full{background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px), var(--riser)}
.sess.full .s b{color:var(--h-coral)}
.sess[disabled]{opacity:.5;cursor:not-allowed}
.sess.picked{background:var(--chalk)}
.sess.picked .n,.sess.picked .c,.sess.picked .s,.sess.picked .s b{color:var(--ink)}
.sess.picked .t{color:var(--ink)}

/* -------------------------------------------------------------- the panel */
.panel{background:var(--riser);border:1px solid var(--line);padding:1.6rem}
.panel.deep{background:var(--deep)}
.panel h3{margin-bottom:.8rem}
.split{display:grid;grid-template-columns:1.35fr .95fr;gap:1.6rem;align-items:start}
.split>*{min-width:0}

.kv{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--line);font-size:.97rem}
.kv:last-child{border-bottom:0}
.kv dt{color:var(--dust);margin:0}
.kv dd{margin:0;text-align:right;font-weight:600}
dl.kvs{margin:0}

.tag{display:inline-block;font-family:var(--cond);font-weight:700;text-transform:uppercase;letter-spacing:.09em;
  font-size:.78rem;padding:.16rem .5rem;border:1px solid var(--hue);color:var(--hue)}
.tag.solid{background:var(--hue);color:var(--ink);border-color:var(--hue)}

/* --------------------------------------------------------------- the form */
.field{margin-bottom:1.05rem}
.field label{display:block;font-family:var(--cond);font-weight:700;text-transform:uppercase;letter-spacing:.09em;
  font-size:.85rem;color:var(--dust);margin-bottom:.35rem}
.field input,.field select,.field textarea{
  width:100%;background:var(--deep);border:1px solid var(--edge);color:var(--chalk);
  padding:.62rem .75rem;font:inherit;font-size:1rem;border-radius:0}
.field input:focus,.field select,.field textarea:focus{outline-offset:0}
.field textarea{min-height:96px;resize:vertical}
.field .hint{font-size:.85rem;color:var(--dust);margin-top:.3rem}
.field.bad input{border-color:var(--bad)}
.err{color:var(--bad);font-size:.88rem;margin-top:.3rem;font-weight:500}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.two{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.two>*{min-width:0}

.note{border-left:3px solid var(--hue);background:var(--wall);padding:.9rem 1.1rem;color:var(--dust);font-size:.95rem}
.note b{color:var(--chalk);font-weight:600}
.note.warn{--hue:var(--h-orange)}
.note.bad{--hue:var(--h-coral)}
.note.good{--hue:var(--h-lime)}

/* ------------------------------------------------------------- the ledger */
.ledger{width:100%;border-collapse:collapse;font-size:.95rem}
.ledger th{font-family:var(--cond);font-weight:700;text-transform:uppercase;letter-spacing:.09em;font-size:.82rem;
  color:var(--dust);text-align:left;padding:.5rem .7rem;border-bottom:1px solid var(--line-2)}
.ledger th.num,.ledger td.num{text-align:right}
.ledger td{padding:.7rem;border-bottom:1px solid var(--line);vertical-align:top}
.ledger tr:last-child td{border-bottom:0}
.ledger .d{color:var(--dust);white-space:nowrap;font-size:.88rem}
.ledger .ttl{font-weight:600}
.ledger .det{display:block;color:var(--dust);font-size:.87rem;margin-top:.15rem}
.ledger .up{color:var(--h-lime);font-weight:700}
.ledger .down{color:var(--h-coral);font-weight:700}
.ledger .bal{color:var(--dust);font-variant-numeric:tabular-nums}
.ledger tr.cycle td{background:var(--wall);border-bottom:1px solid var(--line-2)}
.ledger tr.cycle .ttl{color:var(--h-yellow)}

/* Two counters, drawn as what is left of what was granted. */
.gauges{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.4rem}
.gauge{background:var(--deep);border:1px solid var(--line);padding:1rem 1.1rem}
.gauge b{font-family:var(--display);font-size:2.6rem;line-height:.9;color:var(--hue);display:block}
.gauge b small{font-family:var(--cond);font-size:1.1rem;color:var(--dust);letter-spacing:.02em}
.gauge>span{display:block;font-family:var(--cond);font-weight:600;text-transform:uppercase;letter-spacing:.09em;font-size:.85rem;color:var(--dust);margin-top:.3rem}
.pips{display:flex;gap:4px;margin-top:.6rem}
.pips i{width:22px;height:8px;background:var(--line-2);display:block}
.pips i.on{background:var(--hue)}

/* --------------------------------------------------------------- reveals */
/* Gated on a .js class an inline head script sets and removes again if
   site.js never confirms. A scroll-driven reveal that cannot scroll leaves
   whole sections at opacity 0 forever, and that has happened on both of the
   other demos. */
.js .reveal{opacity:0;transform:translateY(14px)}
.js .reveal.in{opacity:1;transform:none;transition:opacity .55s var(--ease) calc(var(--i,0) * 55ms),transform .55s var(--ease) calc(var(--i,0) * 55ms)}

/* The rope. Pays out down the left edge of the window as the page scrolls.
   Fixed to the viewport rather than to a section, because a scroll timeline
   measures the document and a line that measures the document but is drawn
   inside a section is full at the top of one and empty at the top of the next.
   Degrades to a plain track wherever scroll timelines are unsupported, which
   is what a decoration should do. */
.route{position:fixed;left:0;top:0;bottom:0;width:3px;background:var(--line-2);z-index:40;display:none}
.js .route{display:block}
.route i{position:absolute;inset:0 0 auto 0;height:100%;transform-origin:top;transform:scaleY(1);
  background:linear-gradient(var(--h-yellow),var(--h-coral) 30%,var(--h-violet) 60%,var(--h-cyan))}
@supports (animation-timeline:scroll()){
  .route i{animation:pay-out linear both;animation-timeline:scroll(root block);transform:scaleY(0)}
}
@keyframes pay-out{from{transform:scaleY(0)}to{transform:scaleY(1)}}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
  .js .reveal{opacity:1;transform:none}
  .js .meter i{width:calc(var(--pct,0) * 1%)}
}

/* ------------------------------------------- the JavaScript / no-JS gate */
.js-flow{display:none}
.js .js-flow{display:block}
.js .btn.js-flow{display:inline-flex}
.js .flex.js-flow{display:flex}
.js .grid.js-flow{display:grid}
.js .nojs-flow{display:none}

/* ------------------------------------------------------------ responsive */
@media (max-width:900px){
  .split{grid-template-columns:1fr}
  .site-footer .cols{grid-template-columns:1fr 1fr}
  .week{grid-template-columns:repeat(7,minmax(210px,1fr))}
}
@media (max-width:720px){
  body{font-size:16px}
  .section{padding:3.4rem 0}
  .hero{padding:3.4rem 0 3rem}
  .nav-label{display:flex;align-items:center;justify-content:center;margin-left:auto;
    width:42px;height:38px;border:1px solid var(--edge);cursor:pointer}
  .nav-label span,.nav-label span::before,.nav-label span::after{
    display:block;width:18px;height:2px;background:var(--chalk);position:relative}
  .nav-label span::before,.nav-label span::after{content:'';position:absolute;left:0}
  .nav-label span::before{top:-6px} .nav-label span::after{top:6px}
  .nav{position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;
    background:var(--wall);border-bottom:1px solid var(--line);padding:.6rem 1.5rem 1.2rem;display:none;margin-left:0}
  .nav-toggle:checked~.nav{display:flex}
  .nav a:not(.btn){padding:.7rem 0;border-bottom:1px solid var(--line)}
  .nav .btn{margin-top:.8rem}
  .two{grid-template-columns:1fr}
  .gauges{grid-template-columns:1fr}
  .site-footer .cols{grid-template-columns:1fr}
  .route{display:none !important}
  /* The holds are masked to the right of the headline, and on a phone the
     right of the headline is the middle of the headline. Panel seams stay,
     the holds go. */
  .wall-tex i{display:none}
}
