/* manifesto.css: styles used only by this part of the site, loaded after site.css (inc/layout.php). Split from site.css in v61.
   Tokens, base and shared parts stay in site.css. DESIGN.md describes them. */
.mani-head { margin-bottom: var(--space-5); }
.mani h1.is-locked, .mani h2.is-locked { white-space: nowrap; text-wrap: nowrap; }
.mani-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.mani-row > * { min-width: 0; }
.mani-main { max-width: var(--measure); }
.mani-prose > * + * { margin-top: var(--space-3); }
.mani-date { color: var(--muted-on-night); }
.mani-side > * + * { margin-top: var(--space-3); }
.mani-part { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.mani-part > * { min-width: 0; }
.mani-stats { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: 0; margin-bottom: var(--space-4); }
.mani-stats .stat + .stat { padding-top: var(--space-3); border-top: 1px solid var(--muted-on-night); }
/* A key: a slab in the colour of its note, with an ink outline and a white side wall. Struck, it travels into its own shadow like every key of the site. */
.mani-key { --d: var(--drop); display: grid; margin-left: var(--drop); margin-bottom: var(--drop); padding: var(--space-4) var(--space-3); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--radius-m); box-shadow: calc(var(--d) * -1) var(--d) 0 var(--white);
  transform: translate(calc(var(--d) - var(--drop)), calc(var(--drop) - var(--d))); transition: transform var(--fast) var(--ease-press), box-shadow var(--fast) var(--ease-press); }
.mani-key > * { --drop-color: var(--ink); --ground: var(--mani-tone); min-width: 0; }
.mani-key.is-live:hover { --d: calc(var(--drop) / 2); }
.mani-key.is-struck { --d: 0px; }
.mani-key-text { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: var(--step-2); line-height: 1.05; letter-spacing: -0.01em; overflow-wrap: break-word; }
.mani-key.is-short .mani-key-text { font-size: var(--step-3); line-height: 1; }
.mani-keep { white-space: nowrap; }
/* A word of a key that sounds is pressed: it goes narrow, sinks a little and springs back. Its place in the line is held, so no other word moves. */
.mani-word { display: inline-block; white-space: nowrap; transform-origin: left center; transition: font-stretch var(--slow) var(--ease-bounce), transform var(--slow) var(--ease-bounce); }
.mani-word.is-struck { font-stretch: 50%; transform: translateY(0.06em); transition: font-stretch var(--fast) var(--ease-press), transform var(--fast) var(--ease-press); }
/* The last band: the five notes of the scale climb on paper, and the way in */
.mani-finale > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.mani-finale > .wrap > * { min-width: 0; }
.mani-scale { width: 100%; max-width: 30rem; height: auto; overflow: visible; }
.mani-scale-dot { stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.mani-scale-dot.tone-0 { fill: var(--tone-0); } .mani-scale-dot.tone-1 { fill: var(--tone-1); } .mani-scale-dot.tone-2 { fill: var(--tone-2); } .mani-scale-dot.tone-3 { fill: var(--tone-3); } .mani-scale-dot.tone-4 { fill: var(--tone-4); }
.mani-finale h2 { font-size: var(--step-4); }
.mani-finale-text > * + * { margin-top: var(--space-4); }
.mani-finale.is-arrived .mani-scale-dot { animation: bloom var(--slow) var(--ease-bounce) backwards; animation-delay: calc(var(--i) * 110ms); }
@media (min-width: 600px) { .mani-key { padding: var(--space-5); } }
/* Wide screens: heading left, text right. The heading stays in view while its text scrolls. The keys take ten of twelve columns, left and right in turn. */
@media (min-width: 900px) {
  .mani-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-6); align-items: start; }
  .mani-row > .mani-main { grid-column: 2; }
  .mani-part { gap: var(--space-6); margin-top: var(--space-7); }
  .mani-intro { margin-top: var(--space-6); }
  .mani-key { width: calc(100% / 12 * 10 - var(--drop)); }
  .mani-key.is-right { margin-left: auto; }
  .mani-key-text { font-size: var(--step-3); line-height: 1; }
  .mani-key.is-short .mani-key-text { font-size: var(--step-4); line-height: 0.95; }
  .mani-finale > .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-6); }
  .mani-finale-text { grid-column: 1; grid-row: 1; }
  .mani-scale { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (min-width: 900px) and (min-height: 34rem) { .mani-side > h2 { position: sticky; top: calc(var(--header-now, var(--header)) + var(--space-4)); } }
/* Manifesto on phones, since v55: the five keys one step smaller, so no sentence stands as a column of single words;
   the date closer to the headline; the five notes of "Join us" smaller; the mail key on one line. */
@media (max-width: 599.98px) {
  .mani-head { margin-bottom: var(--space-3); }
  .mani-key { padding: var(--space-4); }
  .mani-key-text { font-size: var(--step-1); line-height: 1.15; }
  .mani-key.is-short .mani-key-text { font-size: var(--step-2); line-height: 1.05; }
  .mani-scale { max-width: 15rem; }
  .mani-finale .btn-row .btn { font-size: var(--step--1); padding-inline: 1em; }
}
