/* 01 Start: the silent count-in, then the guide in reading order. */

/* The first screen: .Countin > .Countin-stage (the three fragments of the h1, the photograph, the gap, the says) + .Season. */
.Countin {
  display: flex;
  flex-direction: column;
  min-block-size: calc(100svh - 3.75rem);
  margin-block-end: var(--space-between-sections);
}
.Countin-stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(0.75rem, 3vh, 1.75rem) var(--space-at-the-page-edge) 1.25rem;
}
.Countin-words { display: contents; }
.Countin-music, .Countin-lessons, .Countin-place {
  display: block;
  color: var(--colour-of-the-pale-ink);
  font: 400 clamp(1.875rem, 1rem + 4.6vw, 5.75rem) / 1.08 var(--face-for-the-opening);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.Countin-music { order: 1; align-self: start; }
.Countin-lessons { order: 2; align-self: end; text-align: end; }
.Countin-photo { order: 3; aspect-ratio: 16 / 10; }
.Countin-place {
  order: 4;
  align-self: start;
  inline-size: fit-content;
  padding-block-end: calc(var(--thickness-of-the-bar) + var(--space-above-the-bar));
  background: linear-gradient(var(--colour-of-the-ochre), var(--colour-of-the-ochre)) no-repeat 0 100% / 100% var(--thickness-of-the-bar);
}
.Countin-state { font-size: 0.55em; }
.Countin-gap { order: 5; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.Countin-gap .Count { --size-of-a-beat: 1.125rem; }
.Countin-slogan { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); font-weight: 500; font-variation-settings: "wght" 500; line-height: 1.1; }
.Countin-says { order: 6; display: grid; justify-items: start; gap: 0.875rem; max-inline-size: 30rem; }
.Countin-says p { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.4; }

@media (min-width: 64em) {
  .Countin-stage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr auto auto;
    gap: 0.75rem var(--space-between-columns);
  }
  .Countin-music { grid-column: 1 / 7; grid-row: 1; }
  /* The photograph fills the step between the fragments: it runs right to the lane that holds
     'lessons' and down to the row directly above 'in Westfield'. */
  .Countin-photo {
    grid-column: 2 / 9;
    grid-row: 2 / 5;
    align-self: stretch;
    min-block-size: 0;
    aspect-ratio: auto;
  }
  .Countin-lessons { grid-column: 9 / 13; grid-row: 2; justify-self: end; }
  .Countin-gap { grid-column: 9 / 13; grid-row: 3; align-self: center; }
  .Countin-says { grid-column: 9 / 13; grid-row: 4; align-self: end; }
  .Countin-place { grid-column: 1 / 13; grid-row: 5; align-self: end; }
}

/* The ochre band at the foot of the first screen: its space is held from the start, the colour wipes across once. */
.Season { min-block-size: 3.5rem; }
.Season-link {
  display: block;
  padding: 0.875rem var(--space-at-the-page-edge);
  background: var(--colour-of-the-ochre);
  color: var(--colour-of-the-ink);
  font: 400 clamp(1.125rem, 0.9rem + 1.2vw, 1.75rem) / 1.2 var(--face-for-the-opening);
  text-decoration: none;
  animation: Season-wipe var(--time-of-the-wipe) var(--ease-with-weight) 500ms both;
}
.Season-link:hover { text-decoration: underline; text-decoration-thickness: 0.1875rem; }
@keyframes Season-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (max-width: 47.99em) {
  .Season-link { padding-inline-end: 11rem; }
}

/* The pinned call key on phones: an opaque ochre ground of its own, cut to the stepped shoulder, so the page passes beneath it. */
@media (max-width: 47.99em) {
  .Dial {
    background: var(--colour-of-the-ochre);
    clip-path: polygon(0 0, calc(100% - var(--depth-of-the-step)) 0, calc(100% - var(--depth-of-the-step)) var(--depth-of-the-step), 100% var(--depth-of-the-step), 100% 100%, 0 100%);
  }
  .Dial:focus-visible { outline-color: var(--colour-of-the-ink); outline-offset: -0.25rem; }
  /* The count beside the slogan stands at the slogan's cap height on a phone, not above it. */
  .Countin-gap { gap: 0.625rem; }
  .Countin-gap .Count {
    --size-of-a-beat: 0.5rem;
    padding-block-start: 0.15rem;
    border-block-end-width: 0.1875rem;
  }
}

/* Numbers that open a heading, and the owner's sentences set in his own voice. */
.Heading-number { font-weight: 400; font-variation-settings: "wght" 400; }
.Choose-said p, .Learn-said {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  font-variation-settings: "wght" 500;
  line-height: 1.3;
}
.Choose-said { margin: 0; }

/* 02 Choose how to play: the piano with its blurb beside it (.Choices-lead), then the two
   text-only choices; all three blurbs stand on the photograph's foot, so the row closes together. */
.Choices { display: grid; gap: 2rem var(--space-between-columns); margin-block-start: 1rem; }
.Choices-option { display: grid; align-content: start; gap: 0.75rem; }
.Choices-option h3, .Ages-class h3 { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); font-weight: 500; font-variation-settings: "wght" 500; line-height: 1.2; }
.Choices-link { justify-self: start; min-block-size: 2.75rem; display: inline-flex; align-items: center; font-weight: 500; font-variation-settings: "wght" 500; }
.Choices-link:hover { background: var(--colour-of-the-ochre); color: var(--colour-of-the-ink); }
@media (min-width: 40em) {
  .Choices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .Choices-lead {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto;
    column-gap: var(--space-between-columns);
  }
  .Choices-lead > .Photo { grid-column: 1; grid-row: 1 / -1; align-self: end; }
  .Choices-lead > h3 { grid-column: 2; grid-row: 2; }
  .Choices-lead > p { grid-column: 2; grid-row: 3; }
  .Choices-lead > .Choices-link { grid-column: 2; grid-row: 4; }
}
@media (min-width: 64em) {
  .Choices { grid-template-columns: minmax(0, 7fr) minmax(0, 2.5fr) minmax(0, 2.5fr); }
  .Choices-lead { grid-column: auto; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); }
}

/* Check the age group: two reading columns beside the guitar, a note for adults in the margin.
   The crop is square and every column sits on its foot, so the row closes as one block. */
.Ages-margin { margin-block-start: 1.5rem; }
.Ages-pair { display: grid; gap: 2rem var(--space-between-columns); align-content: end; }
.Ages-class { display: grid; align-content: end; gap: 0.625rem; }
.Ages-name { font-weight: 500; font-variation-settings: "wght" 500; background: none; border: 0; }
.Ages-name a { background: none; border: 0; }
.Ages-act { padding-block-start: 0.5rem; }
.Ages-tall { aspect-ratio: 1 / 1; }
@media (min-width: 40em) { .Ages-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56em) {
  .Ages .Spread-story, .Ages .Spread-side { align-self: end; }
}

/* 03 Learn your part: the heading and the story are one block (the heading sits on its text as
   it does in 'Ask about performing'), the violin in the first lane, the rehearsal in the last,
   the pull line across two. */
.Learn { gap: 1rem var(--space-between-columns); }
@media (min-width: 56em) {
  .Learn-story { grid-column: 5 / 9; grid-row: 1; }
  .Learn-band { grid-column: 9 / 13; grid-row: 1; }
  .Learn-private {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
    align-self: stretch;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .Learn-private .Photo-frame { aspect-ratio: auto; }
  .Learn-pull { grid-column: 5 / 13; grid-row: 2; }
  .Learn-more { grid-column: 5 / 9; grid-row: 3; }
}
.Learn-pull { padding-block: 0.75rem; }

/* Ask about performing: the set list across two lanes, the difference in the third. */
.Perform-photo .Photo-frame { aspect-ratio: 16 / 9; }
@media (min-width: 56em) {
  .Perform-photo { grid-column: 1 / 9; }
  .Perform-words { grid-column: 9 / 13; }
}

/* 04 Get started: the case, the three prompts, and the actions as one stack of tabs on a
   shared left edge, footed with the pull line. */
.Begin-say, .Begin-act { display: grid; align-content: start; gap: 1rem; }
.Begin-act { gap: 0.5rem; justify-items: stretch; }
.Begin-act .Key {
  inline-size: 100%;
  justify-content: flex-start;
  text-align: start;
  font-weight: 500;
  font-variation-settings: "wght" 500;
}
.Begin-hours { padding-block-start: 0.25rem; font-size: var(--size-of-small-type); line-height: 1.4; }
.Begin-prompts { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); line-height: 1.3; }
@media (min-width: 56em) {
  .Begin-photo { grid-column: 1 / 5; }
  .Begin-say { grid-column: 5 / 9; }
  .Begin-act { grid-column: 9 / 13; align-self: end; }
}

/* Reduced motion: the band is already across. */
@media (prefers-reduced-motion: reduce) {
  .Season-link { animation: none; }
}
