@font-face {
  font-family: "Fira Mono";
  src: url("/_immutable/f436b32cab0ba7cf7aabd39e798f7975/assets/fonts/FiraMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  font: 100%/1.6 ui-monospace, monospace;
  color: #353b34;
  background: #d4d6d1;
  --text-label: .76rem;
  --text-small: .875rem;
}
* { box-sizing: border-box; }
body { max-width: 56rem; margin: auto; padding: 0 clamp(1.2rem, 5vw, 4rem) 4rem; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
main { margin-top: 2.5rem; }
h1, h2 { line-height: 1.12; }
.page-intro > h1 { font-size: clamp(1.8rem, 6vw, 3.8rem); margin: .3em 0; }
.page-intro > h1, .guide h2 {
  font-family: "Fira Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: normal;
}
h2 { font-size: 1.35rem; }
p { max-width: 64ch; }
.page-intro > p { margin: 0; }
.label { display: block; font-size: var(--text-label); letter-spacing: .09em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 2rem 0; }
.button, .guide-try, .guide-play { padding: .55rem .9rem; }
.button, .guide-actions .is-selected { background: #353b34; color: #f2f3ee; text-decoration: none; }
.actions a:not(.button) .selection-arrow { display: none; }
.selection-arrow { margin-inline-start: .6ch; }
pre { overflow-x: auto; padding: 1rem; background: #e1e3dd; }

.guides-page { max-width: 77rem; }
.guides-intro { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.guides { padding: 0; list-style: none; counter-reset: guide; }
.guides li { counter-increment: guide; }
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
  border-top: 1px solid #abb0a6;
  padding: clamp(1.4rem, 4vw, 3rem) 0;
}
@media (min-width: 53rem) {
  .guide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.guide-stage {
  border: 1px solid #bac0b6;
  border-radius: .45rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 1px 1px, #a5ad9e70 .8px, transparent 1px) 0 0 / 1rem 1rem, #e1e3dd;
}
.guide-stage canvas, .guide-stage vimmer-preview { display: block; width: 100%; height: auto; }
.guide-stage [hidden] { display: none; }
.guide-copy { min-width: 0; }
.guide h2 { margin: 0 0 .7rem; font-size: clamp(1.25rem, 3vw, 1.9rem); }
.guide h2::before {
  display: block;
  content: "Lesson " counter(guide, decimal-leading-zero);
  color: #565e54;
  font-family: ui-monospace, monospace;
  font-size: var(--text-label);
  font-weight: normal;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.guide-copy > p { margin: 0 0 .9rem; }
.guide-script {
  display: block;
  background: #e1e3dd;
  padding: .55em .75em;
  border-left: 2px solid #9fa79a;
  overflow-wrap: anywhere;
}
.guide.is-practising :is(.guide-script, .guide-actions), .guide.is-practising .guide-copy > p { display: none; }
.guide-actions, .practice-sequence { display: flex; flex-wrap: wrap; gap: .45rem; }
.guide-actions { align-items: center; column-gap: 1rem; margin-top: 1rem; }
.guide-try {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.guides-page button:focus-visible, .guide-play:focus-visible, .guide h2:focus-visible, .practice:focus-visible { outline: 2px solid #424940; outline-offset: 3px; }
.practice { margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid #abb0a6; }
.practice p { margin: 0 0 .65rem; }
.practice-task { font-weight: bold; }
.practice-hint, .practice-status { font-size: var(--text-small); }
.practice-sequence { gap: .25rem; margin-bottom: .65rem; }
.practice-sequence kbd { font: inherit; text-align: center; min-width: 1.3rem; padding: 0 .15rem; background: #e1e3dd; }
.practice-sequence .is-entered { background: #bfc7b9; }
.practice-sequence .is-next { background: #353b34; color: #f2f3ee; }
.practice .practice-status { margin: .65rem 0 0; font-weight: bold; }
