/* TOKENS: generated from arcbeat/brand/tokens.css; edit there, then run tools/sync_tokens.py */
/* Arcbeat design tokens. One source for the app (app/src/tokens.css is a symlink to this file) and the landing page
   (tools/sync_tokens.py copies this block into arcbeat-site between the TOKENS markers). Change values here only.
   Chalk is the body, ember is the music. The greys are warmed toward the room and light enough to read.
   Revised 2026-09-14; the two text greys lifted a step on 2026-12-02 (Christophe: the grey text "is not easy to read against a
   black / dark background"): sand is what a teacher reads, dim is for counts and labels only, never a sentence or a fact.
   See brand/arcbeat-design-guide.html for roles, contrast and rules. */
:root{
  /* surfaces */
  --ink:#17120F;            /* the page: a warm near-black room */
  --panel:#211A16;          /* cards, inputs */
  --lift:#2B2420;           /* the lit card: the current zone */
  --rule:#3A302A;           /* hairlines, borders, ticks */
  /* the body and the music */
  --chalk:#F3EEE5;          /* the body: headings, primary text, the sequence lane, chosen poses, the landing pose name */
  --ember:#DE6D48;          /* the music: the music line, drops, the landing state, one filled action per screen beside Play */
  --ember-soft:rgba(222,109,72,.14);   /* the tokenised ember fill: the current build-up on the arc; draw.js also lays ember at .06, .09 and .45 */
  --clay:#B26C4E;           /* ember held back: waveform bed, dashed return lines, inactive build-up outlines; never text */
  /* text greys */
  --sand:#D4CDC4;           /* reading text beside chalk: ledes, facts, hints, captions, card details, the reason beside a track like it (11.8:1 on ink; #B4ACA3 until 2026-12-02) */
  --dim:#B4ACA3;            /* marks, not sentences: counts, axis labels, eyebrow labels, footers, step numbers, the AI tag border (8.3:1 on ink; #948C84 until 2026-12-02) */
  --ink-soft:#2C1F19;       /* the second line inside a filled control */
  /* type */
  --serif:'Iowan Old Style','Palatino Linotype',Palatino,Georgia,serif;   /* the teacher's notebook: headings, the pose panel, the readout; never on the canvas */
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;   /* the interface */
  /* the type scale: seven steps; nothing in between */
  --t-11:11px;              /* tick labels, tiny tags */
  --t-12:12.5px;            /* captions, hints, card details, eyebrows */
  --t-14:14px;              /* interface text, lists, chips */
  --t-16:16px;              /* reading text, the bar */
  --t-18:18px;              /* ledes */
  --t-22:22px;              /* section headings, the library card name */
  --t-30:30px;              /* the page heading, the readout, the pose */
  --t-display:clamp(34px,5.4vw,56px);   /* the landing page headline only */
  /* spacing */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:22px; --s-6:32px;
  --radius:6px; --radius-sm:4px; --radius-pill:14px;
}
/* /TOKENS */

/* The site's one stylesheet (2026-11-29): the home page, the playlists page, the build-up page and the why page share it.
   The science page keeps its own. Each page links it as /site.css?v=N: raise N when this file changes, since the host
   lets a browser keep a file for ten minutes and a page must never meet last week's styles. */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ink);color:var(--chalk);font-family:var(--sans);-webkit-font-smoothing:antialiased;line-height:1.5}
.wrap{max-width:960px;margin:0 auto;padding:0 22px}
header{display:flex;align-items:center;justify-content:space-between;padding:26px 0 0}
.mark{display:flex;align-items:center;gap:10px;text-decoration:none}
.mark svg{width:30px;height:30px}
.mark span{font-weight:800;font-size:17px;letter-spacing:.13em;color:var(--chalk)}
.mark span b{color:var(--ember);font-weight:800}
/* every link reads in the palette, chalk and underlined, unless a rule below says otherwise (nav, footer, the controls): the
   browser's own blue and purple never show */
a{color:var(--chalk);text-decoration:underline;text-underline-offset:3px}
nav{display:flex;align-items:center}
nav a{color:var(--sand);text-decoration:none;font-size:14px;margin-left:22px}
nav a:hover,nav a[aria-current]{color:var(--chalk)}
/* the way into the app, on every page: outlined, since a page's one filled control is its own */
nav a.open{color:var(--chalk);border:1px solid var(--rule);border-radius:4px;padding:7px 13px}
nav a.open:hover{border-color:var(--sand)}
.hero{padding:64px 0 34px}
h1{font-family:var(--serif);font-weight:400;font-size:clamp(34px,5.4vw,56px);line-height:1.1;letter-spacing:-.01em;margin:0 0 20px;max-width:18ch}
h1.long{font-size:clamp(26px,3.6vw,38px);line-height:1.15;max-width:26ch}   /* a heading that is a sentence, on the why page */
.lede{font-size:clamp(17px,2vw,20px);color:var(--sand);max-width:52ch;margin:0 0 26px}
.lede em{font-style:normal;color:var(--chalk)}
.cta{display:inline-block;background:var(--ember);color:#17120F;text-decoration:none;font-weight:600;font-size:16px;padding:13px 22px;border-radius:4px}
.cta.ghost{background:transparent;color:var(--chalk);border:1px solid var(--rule)}
.cta:focus-visible{outline:2px solid var(--chalk);outline-offset:2px}
/* under the first screen's button: what it costs and what it asks, which the old page said nowhere near the top */
.act{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.free{color:var(--sand);font-size:15px;margin:0}
.or{color:var(--dim);font-size:15px;margin:14px 0 0}
.or a{color:var(--sand)}
figure{margin:0}
figure svg{width:100%;height:auto;display:block}
figcaption{font-size:14px;color:var(--sand);margin:10px 0 0;line-height:1.5;max-width:70ch}
.lbl{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--sand);font-weight:600;margin:0 0 10px}
.sect{border-top:1px solid var(--rule);padding:56px 0 48px}
h2{font-family:var(--serif);font-weight:400;font-size:clamp(26px,3.4vw,36px);line-height:1.15;margin:0 0 16px;max-width:24ch}
.p{color:var(--sand);font-size:17px;line-height:1.6;max-width:60ch;margin:0 0 16px}
.p em{font-style:normal;color:var(--chalk)}
.more{margin:22px 0 0;font-size:16px;display:flex;gap:6px 26px;flex-wrap:wrap}
.more a{font-weight:600}

/* One song, as its map draws it (generated by arcbeat/tools/site/home_blocks.mjs): the line is the music, so the ember,
   stretched to the row's width with a stroke that does not scale; a dot on every break, the big one larger, placed by
   percentages so they stay round at any width. */
.strip{position:relative;display:block;height:44px}
.strip.tall{height:104px;margin-top:22px}   /* the first screen's song, drawn large on the app's own scale: a taller picture of the same line, never a steeper one */
.strip svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.strip path{fill:none;stroke:var(--ember);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.strip .bk{position:absolute;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:var(--ember)}
.strip .bk.big{width:14px;height:14px;margin:-7px 0 0 -7px;box-shadow:0 0 0 2px var(--panel)}
.strip .at{position:absolute;top:-20px;transform:translateX(-50%);font-size:13px;font-weight:600;color:var(--chalk)}
.song{background:var(--panel);border:1px solid var(--rule);border-radius:8px;padding:16px 18px 14px;max-width:620px;margin:0 0 26px}
.song-head{display:flex;justify-content:space-between;align-items:baseline;gap:4px 16px;flex-wrap:wrap}
.song-head p{margin:0;color:var(--sand);font-size:14px}
.song-head b{font-family:var(--serif);font-weight:400;font-size:22px;color:var(--chalk);margin-right:6px}
.song figcaption{color:var(--sand);font-size:15px;margin:10px 0 0}
.song figcaption em{font-style:normal;color:var(--chalk);font-weight:600}

/* three ways in, named by what she came for */
.ways{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0 0}
.way{background:var(--panel);border:1px solid var(--rule);border-radius:8px;padding:20px;display:flex;flex-direction:column}
.way h3{font-family:var(--serif);font-weight:400;font-size:21px;line-height:1.2;margin:0 0 10px}
.way p{color:var(--sand);font-size:15px;line-height:1.55;margin:0 0 16px;flex:1}
.way a{font-weight:600;font-size:16px}
.wideonly{display:none}
@media(min-width:900px){.wideonly{display:block}}

/* rows of a playlist's map, as text a phone can read (the picture of the whole page comes out as dust there): on a
   computer the map's own five columns, on a phone a row is a small card */
.map{margin:26px 0 0;border-top:1px solid var(--rule)}
.map-head,.map-row{display:grid;grid-template-columns:1.25fr 2.1fr 2.6fr 2.2fr .55fr;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--rule)}
.map-head{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);font-weight:600;padding:9px 0}
.map-row .mb{font-size:14px;color:var(--sand)}
.map-row .ms b{display:block;font-family:var(--serif);font-weight:400;font-size:19px;line-height:1.2}
.map-row .ms i{display:block;font-style:normal;font-size:13px;color:var(--sand);margin-top:2px}
.map-row .mg{font-size:15px;color:var(--sand)}
.map-row .mg b{color:var(--chalk);font-weight:700;font-size:17px}
.map-row .mg .also{display:block;font-style:normal;font-size:13px;color:var(--sand);margin-top:2px}
.map-row .mw{font-size:15px;color:var(--sand)}
.sync{display:inline-block;white-space:nowrap;font-size:13px;font-weight:600;color:var(--chalk);margin-left:6px}
.sync::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ember);margin-right:6px;vertical-align:1px}
.map .strip .bk.big{box-shadow:0 0 0 2px var(--ink)}
.map-foot{font-size:14px;color:var(--sand);line-height:1.55;max-width:74ch;margin:12px 0 0}
.map-foot em{font-style:normal;color:var(--chalk);font-weight:600}

.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:26px 0 0}
.card{background:var(--panel);border:1px solid var(--rule);border-radius:8px;padding:22px}
.pl{display:grid;grid-template-columns:1.7fr 1fr;gap:18px;margin:26px 0 0;align-items:start}
.pl.nopic{grid-template-columns:1fr}
.pl.nopic .pl-links{grid-template-columns:repeat(3,1fr)}
.pl-page img{display:block;width:100%;height:auto;border-radius:6px;border:1px solid var(--rule)}
.pl-card h3{margin:0 0 4px}
.pl-in{color:var(--sand);font-size:14px;margin:0 0 14px}
.pl-about{color:var(--sand);font-size:14px;margin:-6px 0 14px;line-height:1.5}
.pl + .pl{margin-top:22px}
.pl-links{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.pl-links a{color:var(--chalk);font-weight:600;font-size:16px}
.pl-links span{display:block;color:var(--sand);font-size:14px}
.pl-rest{margin-top:26px}
.card.solo{max-width:64ch;margin:26px 0 0}
.card h3{font-family:var(--serif);font-weight:400;font-size:21px;margin:0 0 10px}
.card p{color:var(--sand);font-size:15px;line-height:1.55;margin:0}
.card p em{font-style:normal;color:var(--chalk)}
.works{margin:30px 0 6px}
svg.spotify{width:104px;height:auto;display:block;margin:0 auto 14px}
.steps{counter-reset:s;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0 0}
.step{border-top:2px solid var(--ember);padding-top:14px}
.step h3{font-size:16px;font-weight:600;margin:0 0 8px}
.step h3::before{counter-increment:s;content:counter(s) " · ";color:var(--ember)}
.step p{color:var(--sand);font-size:15px;line-height:1.55;margin:0}
.two{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin:26px 0 0}
.two h3{font-family:var(--serif);font-weight:400;font-size:22px;margin:0 0 8px}
.two h3 span{color:var(--ember)}
.facts{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:10px}
.facts li{display:flex;gap:14px;align-items:baseline;font-size:17px;color:var(--sand)}
.facts li b{color:var(--ember);font-family:var(--serif);font-weight:400;font-size:22px;min-width:96px;white-space:nowrap}
.facts li em{font-style:normal;color:var(--chalk)}
.facts.legend li b{min-width:158px;font-size:20px;color:var(--chalk)}   /* a map's own words, read once: the names are the body's, not the music's */

/* the two drawn figures (the arc of a class, one build-up) and the explorer's picture */
.fl{font:600 13px var(--sans);fill:#F3EEE5}
.anim{margin-top:34px}
.anim svg{overflow:visible}
.seg{transition:opacity .25s}
.dot{transition:r .25s}
.sl{font:600 12px var(--sans);text-anchor:middle}
.ph{font:12px var(--sans);fill:var(--dim)}
.tm{font:12px var(--sans);fill:var(--dim)}
/* the explorer's picture (generated by arcbeat/tools/site/explore_figure.mjs): the tracks of a class as dots along the
   class's line. The line is the music, so the ember; a track is a dot in sand, fainter when it is not mapped yet;
   the track the picture is on and the ones like it turn chalk, with chalk lines between them. */
.xfill{fill:var(--ember);opacity:.16}
.xfloor,.xstems line{fill:none;stroke:var(--clay);stroke-width:1;opacity:.5}
.xline{fill:none;stroke:var(--ember);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.xstops circle{fill:var(--ember);stroke:#17120F;stroke-width:1.5}
.xdots circle{fill:var(--sand);opacity:.62;transition:fill .5s,opacity .5s}
.xdots circle.w{fill:var(--dim);opacity:.4}
.xdots circle.on{fill:var(--chalk);opacity:1}
#xl line{stroke:var(--chalk);stroke-width:1.3;opacity:0;transition:opacity .6s}
#xl line.on{opacity:.5}
#xring{fill:none;stroke:var(--chalk);stroke-width:1.6;opacity:0;transition:opacity .4s}
#xring.on{opacity:1}
.xname{font-size:10px;letter-spacing:.1em;text-transform:uppercase}
.xcap{font-size:15px;color:var(--sand);line-height:1.6;margin:14px 0 0;min-height:4.9em;max-width:70ch}
.xcap b{font-family:var(--serif);font-weight:400;font-size:21px;color:var(--chalk)}
.xcap em{font-style:normal;font-weight:600;color:var(--chalk)}

.final{text-align:center;padding:64px 0 40px;border-top:1px solid var(--rule)}
.final h2{max-width:none;margin-left:auto;margin-right:auto}
.final .p{margin:0 auto 22px}
.final .cta{margin-top:6px}
footer{border-top:1px solid var(--rule);padding:22px 0 40px;color:var(--dim);font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;line-height:1.9}
footer a{color:var(--sand);text-decoration:none}
footer a:hover{color:var(--chalk)}
footer small{display:block;line-height:1.5;margin-top:4px}

@media(max-width:720px){
  .grid,.steps,.two,.pl,.ways,.pl.nopic .pl-links{grid-template-columns:1fr}
  .hero{padding:40px 0 28px} .sect{padding:44px 0 38px}
  /* on a phone the bar is the mark and the way into the app; the pages are in the footer */
  nav a:not(.open){display:none} nav a.open{margin-left:0}
  .lede{margin-bottom:22px} .song{padding:14px 14px 12px;margin-bottom:22px} .song-head b{display:block;margin:0 0 2px}
  .strip.tall{height:88px}
  .act .cta{flex:1 1 100%;text-align:center}
  /* a row of the map as a small card: the block over the song, the shape, then the big one and the wrap named */
  .map-head{display:none}
  .map-row{grid-template-columns:1fr auto;gap:6px 14px;padding:14px 0}
  .map-row .mb{grid-column:1/-1;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--sand);font-weight:600}
  .map-row .ms,.map-row .mh{grid-column:1/-1}
  .map-row .mh{margin:4px 0 2px}
  .map-row .mg::before,.map-row .mw::before{content:attr(data-l) " ";font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);font-weight:600;margin-right:4px}
  .map-row .mw{text-align:right;white-space:nowrap}
  .facts li{flex-direction:column;gap:2px} .facts li b{min-width:0}
  /* the two figures at a phone's width are drawn at about a third of their size, so their words came out at 4 to 6
     pixels (2026-10-12): the words that carry the picture go to 30 units, about 11 pixels there, and the ones that
     would then run into each other (half the class's phases, the zone lane, the drops' times, the pose counts) go */
  figure svg{overflow:visible} .ph,.sl{font-size:30px} .minor{display:none} .sl.edge{text-anchor:end}
  figure:not(.anim) .ph{transform:translateY(10px)}
  #buildup .fl,#buildup .ds,#buildup .ph{display:none} #buildup .dl{font-size:30px!important}
  #buildup .tm{font-size:30px} #big{font-size:36px!important} #small{font-size:30px!important}
  /* at that size the times ran into the foot of the line and the readout into the times: each moves down a little, and
     the caption makes room for what now hangs under the picture */
  #buildup .tm{transform:translate(0,282px)} #buildup svg > g:last-of-type{transform:translate(900px,342px)} #small{transform:translateY(14px)}
  #buildup figcaption{margin-top:34px}
  footer{display:block} footer span{display:block} footer span + span{margin-top:10px}
}
