/* The People's Music School: a denim wall, chalk stencil, one brass stamp. Order: chrome, shared pieces, bare elements. */
:root {
  --the-denim: #4F6276;
  --the-shade: #3C4C5E;
  --the-slate: #15202B;
  --the-chalk: #ECE6D6;
  --the-brass: #C4A15A;
  --the-gleam: #F3DB9E;
  --the-stencil: 'Saira Stencil One', 'Arial Black', Impact, sans-serif;
  --the-voice: 'Red Hat Text', 'Helvetica Neue', Arial, sans-serif;
  --the-seam: 1rem;
  --the-edge: clamp(1rem, 4.2vw, 3.6rem);
  --the-breath: clamp(2.5rem, 9vh, 6.5rem);
  --the-quick: 120ms ease;
  --the-lift: -0.1875rem;
}
/* colour use: chalk is all reading text on the wall; --the-slate only on brass or a pale print edge; --the-brass for underlines, dots, stamp; --the-gleam is brass lit enough for small type (AA) */

/* ---------- chrome ---------- */

/* keyboard jump link: .the-jump */
.the-jump {
  position: absolute; left: var(--the-edge); top: -6rem; z-index: 40;
  padding: 0.7rem 1rem;
  background: var(--the-brass); color: var(--the-slate);
}
.the-jump:focus { top: 0.25rem; }

/* header: .the-lintel > a.the-name (stamp svg + school name) + a.the-visit + the phone's a.the-ring-up */
.the-lintel {
  order: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 2.75rem;
  padding-inline: var(--the-edge);
  background: var(--the-shade);
  font-size: 0.9375rem;
}
.the-name {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-width: 0; min-height: 2.75rem;
  line-height: 1.25;
  text-decoration: none;
}
.the-name svg { flex: none; width: 1.75rem; height: 1.75rem; }
.the-name span { min-width: 0; overflow-wrap: anywhere; }
.the-visit { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* binder tabs, sticky: nav.the-binder > ul.the-tabs > li > a.the-tab; the current one is .the-tab-on */
.the-binder {
  order: 2;
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: flex-end;
  padding-left: calc(var(--the-edge) - 0.9rem);
  background: var(--the-shade);
}
.the-tabs {
  position: relative;
  display: flex; flex: 1; gap: 0.35rem;
  min-width: 0; margin: 0; padding: 0.4rem 1rem 0 0;
  list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.the-tabs::-webkit-scrollbar { display: none; }
.the-tab {
  display: block;
  min-height: 2.75rem; padding: 0.7rem 1.15rem 0.65rem;
  font-size: 0.9375rem; line-height: 1.4; white-space: nowrap;
  text-decoration: none;
  clip-path: polygon(0.6rem 0, calc(100% - 0.6rem) 0, 100% 100%, 0 100%);
  transition: transform var(--the-quick), color var(--the-quick);
}
.the-tab:hover, .the-tab:focus-visible {
  transform: translateY(var(--the-lift));
  color: var(--the-gleam);
}
.the-tab:focus-visible {
  outline: none;
  text-decoration: underline 0.125rem var(--the-brass); text-underline-offset: 0.3em;
}
.the-tab-on, .the-tab-on:hover, .the-tab-on:focus-visible {
  transform: none;
  background: var(--the-denim); color: var(--the-gleam);
}

/* the phone's call control, in the header's top right corner on its solid ground: a.the-ring-up (shown under 48rem) */
.the-ring-up {
  display: none; align-items: center; flex: none;
  min-height: 2.75rem; padding: 0;
  color: var(--the-gleam);
  font-size: 0.9375rem;
  text-decoration: underline 0.125rem var(--the-brass); text-underline-offset: 0.3em;
}

/* cookie band, in the flow under the tabs so it pushes the page down: #tracking > p + .the-choices */
#tracking {
  order: 3;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0 1.5rem;
  min-height: 2.5rem; padding: 0 var(--the-edge);
  border-top: 0.125rem solid var(--the-denim);
  background: var(--the-shade);
  font-size: 0.9rem; line-height: 1.35;
}
#tracking[hidden], #note[hidden] { display: none; }
#tracking p { flex: 1 1 14rem; margin: 0; padding-block: 0.35rem; }
.the-choices { display: flex; gap: 1.75rem; }
.the-choices button, .the-fine button {
  min-height: 2.75rem;
  text-decoration: underline; text-underline-offset: 0.25em;
}
.the-choices button:hover, .the-fine button:hover { text-decoration: underline 0.125rem var(--the-brass); }

/* the offer, a large brass stamp pressed into the lower right (a 132px stamp in the corner on phones): #note > p.the-offer + a + button */
#note {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 30;
  display: grid; place-content: center; justify-items: center; gap: 0.2rem;
  width: 18rem; aspect-ratio: 1; padding: 2.75rem;
  text-align: center;
  visibility: hidden; opacity: 0;
  transform: translateY(1.5rem) rotate(-8deg) scale(1.08);
  transition: transform var(--the-quick), opacity var(--the-quick), visibility var(--the-quick);
}
#note.is-in { visibility: visible; opacity: 1; transform: rotate(-8deg); }
.the-offer {
  margin: 0;
  font: 400 1rem/1.2 var(--the-stencil);
  text-transform: lowercase; text-wrap: balance;
}
#note a { padding-block: 0.3rem; font-size: 0.9rem; line-height: 1.3; }
#note a:hover { text-decoration: underline 0.125rem var(--the-slate); }
#note button {
  width: 2.75rem; height: 2.75rem;
  font: 400 1.125rem/1 var(--the-stencil);
}
#note :focus-visible { outline-color: var(--the-slate); }

/* footer: footer.the-ground > svg.the-plan + .the-legend (ol.the-sites) + .the-contact (address.the-office, .the-fine, .the-small) + p.the-lines */
.the-ground {
  order: 5;
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: var(--the-breath) var(--the-edge) 1.5rem;
  background: var(--the-shade);
  font-size: 1rem;
}
.the-sites { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.the-sites li {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  column-gap: 0.6rem; align-items: baseline;
  padding-block: 0.4rem;
  line-height: 1.35;
}
.the-sites a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.the-number { font: 400 1.25rem/1 var(--the-stencil); color: var(--the-gleam); }
.the-where { font-size: 0.9rem; }
.the-contact { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.the-office { font-style: normal; line-height: 1.45; overflow-wrap: anywhere; }
.the-office > span { display: block; }
.the-office > .the-stencil-small { margin-bottom: 0.75rem; }
.the-office > .the-where { margin-top: 0.5rem; }
.the-office a { display: flex; align-items: center; min-height: 2.75rem; width: fit-content; }
.the-fine {
  display: flex; flex-wrap: wrap; gap: 0 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
}
.the-fine a, .the-fine button { display: inline-flex; align-items: center; min-height: 2.75rem; }
.the-small { margin: 0; font-size: 0.9rem; }
/* the closing line of six questions: one row, the voice, no underlines until pressed */
.the-lines {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 0 2rem;
  margin: 0; padding-top: 0.5rem;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.4;
}
.the-lines a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.the-lines a:hover, .the-lines a:focus-visible {
  text-decoration: underline 0.125rem var(--the-brass); text-underline-offset: 0.25em;
}

/* chrome breakpoints: the footer folds, the phone wraps the tabs and keeps a 132px stamp */
@media (max-width: 56rem) {
  .the-ground { grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); }
  .the-contact { grid-column: 1 / -1; }
}
@media (max-width: 47.9rem) {
  .the-name span { white-space: normal; }
  .the-visit { display: none; }
  .the-ring-up { display: flex; }
  .the-binder {
    position: relative;
    padding-inline: calc(var(--the-edge) - 0.8rem);
  }
  .the-tabs { flex-wrap: wrap; padding-right: 0; overflow: visible; }
  .the-tabs > li { min-width: 0; max-width: 100%; }
  .the-tab { padding-inline: 0.8rem; white-space: normal; overflow-wrap: anywhere; }
  .the-ground { grid-template-columns: minmax(0, 1fr); }
  .the-plan { max-width: 13rem; }
  /* the offer stays a 132px brass stamp in the clear bottom corner of the first window, well inside the edge */
  #note {
    right: 1.25rem; bottom: 1.25rem; left: auto;
    display: grid; place-content: center; justify-items: center; gap: 0.1rem;
    width: 8.25rem; aspect-ratio: 1; padding: 0.85rem;
    border-radius: 50%;
    text-align: center;
    transform: translateY(140%) rotate(-8deg) scale(1.08);
  }
  #note.is-in { transform: rotate(-8deg); }
  #note table { display: none; }
  .the-offer {
    font: 400 0.9rem/1.12 var(--the-voice); text-transform: none;
    text-wrap: pretty; overflow-wrap: anywhere; hyphens: auto;
  }
  #note a { padding-block: 0.15rem; font-size: 0.9rem; line-height: 1.12; }
  /* the close, a small brass knob on the stamp's rim, its own solid ground, a full 44px to press */
  #note button {
    position: absolute; top: auto; left: auto; right: -0.4rem; bottom: -0.4rem;
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    background: var(--the-brass); color: var(--the-slate);
    box-shadow: inset 0 0 0 0.125rem var(--the-slate);
    font: 400 1rem/1 var(--the-stencil);
  }
}

/* ---------- shared pieces ---------- */

/* one screen of a page: section.the-band (the container every piece inside measures); .the-band-tight drops its top padding */
.the-band { container: band / inline-size; padding-block: var(--the-breath); }
.the-band-tight { padding-top: 0; }

/* salon hang: .the-wall, 24 columns edge to edge; place each child with --the-hang (columns) and --the-rung (rows); under 44rem two columns, --the-narrow places */
.the-wall {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: var(--the-seam);
  align-items: start;
}
.the-wall > * {
  grid-column: var(--the-hang, 1 / -1); grid-row: var(--the-rung, auto);
  min-width: 0;
}

/* film print, bare: figure.the-print > img (+ figcaption.the-label); .the-print-tall / -square / -wide or --the-shape set the ratio, .the-print-fill fills its grid cell */
.the-print { margin: 0; transition: transform var(--the-quick); }
.the-print img {
  display: block; width: 100%; height: auto;
  aspect-ratio: var(--the-shape, 3 / 2);
  object-fit: cover;
}
.the-print-tall { --the-shape: 2 / 3; }
.the-print-square { --the-shape: 1 / 1; }
.the-print-wide { --the-shape: 16 / 9; }
.the-print-fill, .the-print-fill img { height: 100%; }
/* a print inside a link shifts 2px on hover and focus; .the-print-on holds the same shift from script */
a:hover > .the-print, a:focus-visible > .the-print, .the-print-on { transform: translate(0.125rem, -0.125rem); }
/* one chalk line under a print: figcaption.the-label */
.the-label { padding: 0.5rem 0.75rem 0; font-size: 0.95rem; line-height: 1.4; }

/* stencil headline, lower case, chalk: .the-stencil (40-56px), .the-stencil-big (the home h1 words), .the-stencil-small (caption heads), .the-stencil-ink over a pale print edge */
.the-stencil, .the-stencil-big, .the-stencil-small {
  margin: 0;
  font-family: var(--the-stencil); font-weight: 400;
  line-height: 1.1; text-transform: lowercase; text-wrap: balance;
}
.the-stencil { font-size: clamp(1.75rem, 1.1rem + 2.9vw, 3.5rem); }
.the-stencil-big { font-size: clamp(2rem, 6vw, 5.25rem); }
.the-stencil-small { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); line-height: 1.2; }
.the-stencil-ink { color: var(--the-slate); }

/* a question heading that breaks the hang, 14 columns between prints: h2.the-stencil.the-question */
.the-question { --the-hang: 6 / span 14; padding-block: 0.5rem; }

/* wall caption set straight on the denim: .the-chalk > .the-stencil-small + p (60 words at most), no fill, no border */
.the-chalk { max-width: 34rem; padding-block: 0.5rem; }
.the-chalk > p { margin: 0.6rem 0 0; }

/* page opening inside the first window: .the-wall.the-ask > h1.the-stencil + p.the-scene + figure.the-print */
.the-ask { grid-template-rows: 1fr auto; padding-top: clamp(1.25rem, 4vh, 2.5rem); }
.the-ask > .the-stencil { --the-hang: 2 / span 13; --the-rung: 1; align-self: end; }
.the-ask > .the-scene { --the-hang: 2 / span 11; --the-rung: 2; }
.the-ask > .the-print { --the-hang: 15 / -1; --the-rung: 1 / span 2; --the-narrow: 1 / -1; }
.the-ask > .the-print img { aspect-ratio: var(--the-shape, 4 / 5); max-height: min(66vh, 34rem); }
/* the scene sentence that opens every answer: p.the-scene */
.the-scene {
  max-width: 36rem; margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); line-height: 1.5;
}

/* case-lid marking, one stencil line across 14 columns (program, story and contact pages): .the-marking */
.the-marking {
  --the-hang: 6 / span 14;
  margin: 0;
  font: 400 clamp(1.25rem, 0.8rem + 2.2vw, 2.75rem)/1.15 var(--the-stencil);
  letter-spacing: 0.02em; text-transform: lowercase; overflow-wrap: anywhere;
}

/* brass stamp, the only round thing: a.the-stamp > span.the-stamp-word + strong.the-stamp-sum + span.the-stamp-word; 132px at -8deg, place it over a print edge; --the-sum sizes the figure */
.the-stamp, #note {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #CFAE68, var(--the-brass) 58%, #B8954F);
  color: var(--the-slate);
  box-shadow: inset 0 0 0 0.25rem var(--the-brass), inset 0 0 0 0.4rem var(--the-slate),
    inset 0 0 0 0.55rem var(--the-brass), inset 0 0 0 0.62rem var(--the-slate);
}
.the-stamp {
  position: relative; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 0.15rem;
  width: 8.25rem; aspect-ratio: 1;
  line-height: 1; text-align: center; text-decoration: none;
  transform: rotate(-8deg);
}
.the-stamp-word { font-size: 0.9rem; letter-spacing: 0.05em; }
.the-stamp-sum {
  color: inherit;
  font: 400 var(--the-sum, 2.6rem)/1 var(--the-stencil);
  text-shadow: 0.05rem 0.04rem 0 rgba(21, 32, 43, 0.28);
}
.the-stamp:hover .the-stamp-word, .the-stamp:focus-visible .the-stamp-word { text-decoration: underline; }

/* an action: a.the-brass, a stencil word with a brass underline 2px under the baseline; never a filled button */
.the-brass {
  display: inline-block; padding-block: 0.6rem;
  font: 400 clamp(1.125rem, 1rem + 0.5vw, 1.5rem)/1.25 var(--the-stencil);
  text-transform: lowercase;
  text-decoration: underline 0.125rem var(--the-brass); text-underline-offset: 0.22em;
  transition: color var(--the-quick);
}
.the-brass:hover, .the-brass:focus-visible { color: var(--the-gleam); }

/* plain facts of a program, rows the width of their column and no rules: dl.the-tally > div > dt + dd */
.the-tally { container: tally / inline-size; margin: 0; }
.the-tally > div { padding-block: 0.55rem; }
.the-tally dt { font-size: 0.95rem; color: var(--the-gleam); }
.the-tally dd { margin: 0; }
@container tally (min-width: 30rem) {
  .the-tally > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline; }
}

/* long answer or policy text: .the-answer > h2 + p; it runs in two columns when its band is wide */
.the-answer { padding-inline: var(--the-edge); }
.the-answer h2 { margin: 1.75rem 0 0.6rem; break-after: avoid; }
.the-answer > :first-child { margin-top: 0; }
.the-answer p, .the-answer li { max-width: 40rem; }

/* the only divider on the site, a short chalk tick like a pencil mark on a door frame: .the-tick */
.the-tick { display: block; width: 2.5rem; height: 0.125rem; margin: 0; border: 0; background: var(--the-chalk); }

/* the way out at the end of every page: .the-door > p.the-stencil-small + a.the-brass links */
.the-door {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 2.5rem;
  padding: 0 var(--the-edge) var(--the-breath);
}
.the-door > p { flex: 1 1 100%; }

/* the chalk plan of Chicago (footer and sites page): svg.the-plan with .the-shore, .the-street, g.the-dot > circle.the-halo + circle + text; .the-dot-on shows the second ring */
.the-plan { display: block; width: 100%; height: auto; overflow: visible; }
.the-shore { fill: none; stroke: var(--the-chalk); stroke-width: 2; stroke-linecap: round; }
.the-street { fill: none; stroke: var(--the-chalk); stroke-width: 1; stroke-linecap: round; opacity: 0.3; }
.the-dot circle { fill: var(--the-brass); }
.the-dot .the-halo { fill: none; stroke: var(--the-brass); stroke-width: 1.5; visibility: hidden; }
.the-dot-on .the-halo { visibility: visible; }
.the-dot text { font-family: var(--the-stencil); fill: var(--the-chalk); }
/* wiring for the plan: inside any [data-the-plan], a link with data-the-site="2" lights [data-the-dot="2"] and shifts [data-the-print="2"] */

/* scroll utility, which hides nothing: a screen with data-the-answers="cost.html" lights that tab (.the-tab-on) while it crosses mid-window */

/* text for screen readers only: .the-unseen */
.the-unseen {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* how the pieces fold when their band is narrow: a two-column hang, type across both columns */
@container band (max-width: 44rem) {
  .the-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .the-wall > * { grid-column: var(--the-narrow, auto); grid-row: auto; }
  .the-wall > :not(.the-print) { grid-column: var(--the-narrow, 1 / -1); padding-inline: var(--the-edge); }
  .the-ask > .the-print img { aspect-ratio: 3 / 2; max-height: 46vh; }
}
@container band (min-width: 62rem) {
  .the-answer { columns: 2; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
}

/* ---------- bare elements ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  display: flex; flex-direction: column;
  min-height: 100vh; margin: 0;
  background: var(--the-denim); color: var(--the-chalk);
  font: 400 clamp(1.0625rem, 1rem + 0.25vw, 1.125rem)/1.6 var(--the-voice);
}
main { order: 4; flex: 1 0 auto; display: block; min-width: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--the-stencil); font-weight: 400;
  line-height: 1.1; text-transform: lowercase; text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.1rem + 2.9vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
img, svg { max-width: 100%; }
strong { font-weight: 400; color: var(--the-gleam); }
a { color: inherit; text-decoration-thickness: 0.0625rem; text-underline-offset: 0.2em; }
a:hover { text-decoration: underline 0.125rem var(--the-brass); }
button {
  padding: 0; border: 0; background: none;
  color: inherit; font: inherit;
  cursor: pointer;
}
:focus-visible { outline: 0.125rem solid var(--the-gleam); outline-offset: 0.1875rem; }
::selection { background: var(--the-brass); color: var(--the-slate); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

header :is(a, button), nav :is(a, button) { position: relative; z-index: 2; }
body, html {
  overflow-x: clip;
}
@media (min-width:1921px){html{font-size:calc(100vw/120)}}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
