:root {
  --fn-gold: #d6a441;
  --fn-gold-bright: #efc65f;
  --fn-ink: #080808;
  --fn-panel: #101010;
  --fn-text: #f5f1e8;
  --fn-muted: #f5f5f5;
  --fn-line: rgba(214, 164, 65, .3);
}

.music-theory-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--fn-ink);
}

.lesson-hero-media {
  position: relative;
  display: flex;
  min-height: clamp(650px, 82vh, 900px);
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 164, 65, .68);
  isolation: isolate;
}

.lesson-hero-media__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: grayscale(.12) contrast(1.12) brightness(.68);
  transform: scale(1.02);
}

.lesson-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .7) 42%, rgba(0, 0, 0, .22) 76%, rgba(0, 0, 0, .1)),
    linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .58));
}

.lesson-hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 34%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

.lesson-hero-overlay {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(1440px, 100%);
  margin: 0 auto;
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem);
}

.lesson-hero-overlay__content {
  width: min(820px, 70vw);
}

.lesson-hero-overlay__kicker {
  display: inline-flex;
  margin: 0 0 1.25rem !important;
  padding: .42rem .75rem;
  border: 1px solid rgba(214, 164, 65, .58);
  border-radius: 999px;
  color: var(--fn-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lesson-hero-overlay__content h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--fn-text);
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .9;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .74);
}

.lesson-hero-overlay__content h1::after {
  content: "";
  display: block;
  width: 82px;
  height: 3px;
  margin: 1.35rem 0 1.2rem;
  background: var(--fn-gold);
}

.lesson-hero-overlay__content > p:not(.lesson-hero-overlay__kicker) {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.lesson-content-wrap {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(4rem, 7vw, 6.5rem) 1rem 0;
  background:
    linear-gradient(rgba(8, 8, 8, .92), rgba(8, 8, 8, .97)),
    url("../images/backgrounds/blackhex.webp") center top / 1500px auto repeat-y;
}

.lesson-content-wrap::before {
  content: "Foundations lesson";
  display: block;
  width: min(920px, 100%);
  margin: 0 auto 1rem;
  color: var(--fn-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.lesson-section {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 0 0 clamp(4.5rem, 7vw, 6rem);
  border: 0;
  background: transparent;
  overflow: visible;
}

.lesson-section + .lesson-section {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid var(--fn-line);
}

.lesson-section::before,
.lesson-section::after {
  content: none;
}

.lesson-section > h2:first-child {
  max-width: 16ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--fn-gold-bright);
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .96;
}

.lesson-section > h2:first-child::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 1rem;
  background: var(--fn-gold);
}

.lesson-section > h2:not(:first-child) {
  max-width: 24ch;
  margin: clamp(3rem, 6vw, 5rem) 0 1rem;
  padding: 0;
  border: 0;
  color: var(--fn-gold-bright);
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.lesson-section h3 {
  margin: 2.25rem 0 .65rem;
  color: var(--fn-gold-bright);
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -.01em;
}

.lesson-section p,
.lesson-section ul {
  max-width: 76ch;
  color: var(--fn-muted);
  font-size: clamp(.98rem, 1.1vw, 1.06rem);
  line-height: 1.75;
  text-align: left;
}

.lesson-section p {
  margin: .5rem 0 0;
}

.lesson-section p + p {
  margin-top: .8rem;
}

.lesson-section ul {
  margin: .8rem 0 0;
  padding-left: 1.25rem;
}

.lesson-section li {
  margin: .3rem 0;
  text-align: left;
}

.lesson-section li::marker {
  color: var(--fn-gold);
}

.lesson-section strong {
  color: var(--fn-text);
  font-weight: 650;
}

.lesson-inline-link,
.lesson-def-link {
  color: var(--fn-gold-bright);
  font-weight: 700;
  text-decoration-color: rgba(214, 164, 65, .48);
  text-underline-offset: .18em;
}

.lesson-inline-link:hover,
.lesson-inline-link:focus-visible,
.lesson-def-link:hover,
.lesson-def-link:focus-visible {
  color: #fff0b8;
}

.lesson-image-figure {
  width: min(860px, 100%);
  margin: 1.6rem 0 2rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lesson-image-figure--fretboard {
  width: min(920px, 100%);
}

.lesson-image {
  display: block;
  width: 100%;
  height: auto;
}

.lesson-section .tab-tool {
  width: min(920px, 100%);
  max-width: none;
  margin: 1.4rem 0 2rem;
}

.lesson-section .tab-tool__card {
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--fn-line);
  border-radius: 8px;
  background: #0e0e0e;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .3);
}

.lesson-section .tab-tool__eyebrow {
  margin: 0 0 .25rem;
  color: var(--fn-gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lesson-section .tab-tool__card > h3 {
  margin: 0 0 1rem;
  color: var(--fn-text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.lesson-section .tab-tool__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.lesson-section .tab-tool__tempo {
  width: auto !important;
}

.lesson-section .tab-tool__meta {
  max-width: none;
  margin: 0;
  color: rgba(245, 241, 232, .66);
  font-size: .82rem;
  line-height: 1.4;
  white-space: nowrap;
}

.lesson-section .tab-tool__transport {
  margin-left: auto;
}

.lesson-section .tab-grid {
  border-color: rgba(214, 164, 65, .24);
  border-radius: 5px;
}

.lesson-gap-top {
  margin-top: 1.5rem !important;
}

.lesson-gap-both {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.lesson-gap-after {
  margin-bottom: 1rem !important;
}

.lesson-rhythm-count {
  margin: 1rem 0 !important;
  color: var(--fn-gold-bright) !important;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.1rem, 2.3vw, 1.55rem) !important;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.35 !important;
}

.lesson-time-signature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0 2rem;
}

.lesson-time-signature-icon {
  display: inline-flex;
  min-width: 64px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: .4rem .7rem;
  border: 1px solid rgba(214, 164, 65, .52);
  border-radius: 5px;
  color: #171109;
  background: var(--fn-gold);
  font-weight: 800;
}

.lesson-time-signatures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  width: 100%;
  margin: 1.4rem 0 0;
}

.lesson-time-signature-item,
.lesson-subdivision-player {
  padding: 1.25rem;
  border: 1px solid var(--fn-line);
  border-radius: 8px;
  background: #0e0e0e;
}

.lesson-time-signature-title,
.lesson-subdivision-player__title {
  margin: 0 !important;
  color: var(--fn-gold-bright) !important;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  font-weight: 500;
}

.lesson-time-signature-item .lesson-rhythm-count,
.lesson-subdivision-player .lesson-rhythm-count {
  font-size: clamp(.9rem, 1.6vw, 1.1rem) !important;
  letter-spacing: .035em;
}

.lesson-audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.lesson-play-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border: 1px solid var(--fn-gold);
  border-radius: 6px;
  color: #171109;
  background: var(--fn-gold);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.lesson-stop-button {
  color: var(--fn-text);
  border-color: rgba(214, 164, 65, .42);
  background: #161616;
}

.lesson-play-button:hover,
.lesson-play-button:focus-visible {
  color: #171109;
  border-color: #f5dda0;
  background: #e0b65d;
  outline: none;
  transform: translateY(-2px);
}

.lesson-play-button[disabled] {
  opacity: .42;
  cursor: default;
  transform: none;
}

.lesson-note-length-list,
.lesson-note-examples {
  display: grid;
  width: min(760px, 100%);
  margin: 1.2rem 0 1.5rem !important;
  padding: 0 !important;
  gap: 0;
  list-style: none;
}

.lesson-note-length-list li,
.lesson-note-examples li {
  margin: 0;
  padding: .72rem 0;
  border-bottom: 1px solid rgba(214, 164, 65, .22);
  color: var(--fn-text);
}

.lesson-note-length-list li:first-child,
.lesson-note-examples li:first-child {
  border-top: 1px solid rgba(214, 164, 65, .22);
}

.lesson-note-length-list strong,
.lesson-note-examples strong {
  color: var(--fn-gold-bright);
  font-weight: 700;
}

.lesson-subdivision-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  width: 100%;
  margin: 1.5rem 0 0;
}

.rhythm-pattern {
  width: min(760px, 100%);
  margin: 1.35rem 0 1.7rem;
  padding: 1rem;
  border: 1px solid var(--fn-line);
  border-left: 3px solid var(--fn-gold);
  background: rgba(14, 14, 14, .86);
}

.rhythm-pattern__title {
  margin: 0 0 .75rem !important;
  color: var(--fn-gold-bright) !important;
  font-family: "Cal Sans", sans-serif;
  font-size: 1.1rem !important;
  font-weight: 500;
}

.rhythm-pattern__row {
  display: grid;
  grid-template-columns: 74px repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(214, 164, 65, .2);
}

.rhythm-pattern__row--eighth {
  grid-template-columns: 74px repeat(8, minmax(0, 1fr));
}

.rhythm-pattern__row strong,
.rhythm-pattern__row span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: .3rem;
  border-right: 1px solid rgba(214, 164, 65, .16);
  color: var(--fn-text);
  font-size: .9rem;
  text-align: center;
}

.rhythm-pattern__row strong {
  justify-content: start;
  padding-left: 0;
  color: var(--fn-gold-bright);
}

.rhythm-pattern__row span:last-child {
  border-right: 0;
}

.rhythm-pattern__row + .rhythm-pattern__row span {
  color: var(--fn-gold-bright);
  font-size: 1rem;
  font-weight: 800;
}

.rhythm-strum-pattern {
  width: min(860px, 100%);
  margin: 1.4rem 0 1.75rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(245, 241, 232, .16);
  border-radius: 12px;
  background: #050505;
}

.rhythm-strum-pattern__title {
  margin: 0 0 1.35rem !important;
  color: var(--fn-gold-bright) !important;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem) !important;
  font-weight: 500;
}

.rhythm-strum-pattern__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(.35rem, 1.25vw, .9rem);
}

.rhythm-strum-pattern__step {
  display: grid;
  justify-items: center;
  gap: .65rem;
  min-width: 0;
  color: rgba(245, 241, 232, .67);
  font-size: clamp(.7rem, 1.25vw, .9rem);
  text-align: center;
}

.rhythm-strum-pattern__count {
  color: var(--fn-text);
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
}

.rhythm-strum-pattern__stroke {
  display: grid;
  width: clamp(2.35rem, 5vw, 4.2rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #171109;
  background: #e2ad3b;
  font-size: clamp(1.25rem, 2.8vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
}

.rhythm-strum-pattern__stroke--miss {
  border: 3px dashed rgba(245, 241, 232, .25);
  background: transparent;
}

.rhythm-strum-pattern__key {
  margin: 1.35rem 0 0 !important;
  color: rgba(245, 241, 232, .75) !important;
  font-size: clamp(.78rem, 1.25vw, .95rem) !important;
  line-height: 1.55 !important;
}

.lesson-practice-steps {
  display: grid;
  width: min(760px, 100%);
  margin: 1.3rem 0 1.5rem !important;
  padding: 0 !important;
  counter-reset: rhythm-practice;
  list-style: none;
}

.lesson-practice-steps li {
  position: relative;
  min-height: 54px;
  margin: 0;
  padding: .8rem .75rem .8rem 3.35rem;
  border-bottom: 1px solid rgba(214, 164, 65, .22);
}

.lesson-practice-steps li:first-child {
  border-top: 1px solid rgba(214, 164, 65, .22);
}

.lesson-practice-steps li::before {
  content: counter(rhythm-practice);
  counter-increment: rhythm-practice;
  position: absolute;
  top: .7rem;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--fn-gold);
  border-radius: 50%;
  color: #171109;
  background: var(--fn-gold);
  font-weight: 800;
}

.lesson-time-signature-figure {
  width: min(540px, 100%);
}

.lesson-summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  width: min(680px, 100%);
  margin: 3rem 0 0;
}

.lesson-faq-disclosure {
  width: 100%;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  border-top: 1px solid var(--fn-line);
  border-bottom: 1px solid var(--fn-line);
}

.lesson-faq-disclosure > summary {
  position: relative;
  display: flex;
  min-height: 92px;
  align-items: center;
  padding: 1.25rem 4rem 1.25rem 0;
  color: var(--fn-gold-bright);
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
  list-style: none;
  cursor: pointer;
}

.lesson-faq-disclosure > summary::-webkit-details-marker {
  display: none;
}

.lesson-faq-disclosure > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: .5rem;
  color: var(--fn-gold);
  font-family: sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
}

.lesson-faq-disclosure[open] > summary::after {
  content: "−";
}

.lesson-faq-disclosure > summary:hover,
.lesson-faq-disclosure > summary:focus-visible {
  color: #fff0b8;
  outline: none;
}

.lesson-faq-disclosure > .faq-accordion {
  margin-top: 0;
  margin-bottom: 2rem;
}

.lesson-summary-actions .theory-hero__button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border: 1px solid #9f792e;
  border-radius: 8px;
  color: #f7f3ea;
  background: rgba(5, 5, 5, .74);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.lesson-summary-actions .theory-hero__button--primary {
  color: #171109;
  border-color: #efd58c;
  background: var(--fn-gold);
}

.lesson-summary-actions .theory-hero__button:hover,
.lesson-summary-actions .theory-hero__button:focus-visible {
  color: #171109;
  border-color: #f5dda0;
  background: #e0b65d;
  outline: none;
  transform: translateY(-3px);
}

.lesson-final-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  width: min(680px, 100%);
  margin: 3rem 0 0;
}

.lesson-final-actions .theory-hero__button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .75rem 1.25rem;
  border: 1px solid #9f792e;
  border-radius: 8px;
  color: #f7f3ea;
  background: rgba(5, 5, 5, .74);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.lesson-final-actions .theory-hero__button--primary {
  color: #171109;
  border-color: #efd58c;
  background: var(--fn-gold);
}

.lesson-final-actions .theory-hero__button:hover,
.lesson-final-actions .theory-hero__button:focus-visible {
  color: #171109;
  border-color: #f5dda0;
  background: #e0b65d;
  outline: none;
  transform: translateY(-3px);
}

.lesson-bottom-divider {
  display: none;
}

/* The page surface continues behind the transparent footer visualiser. */
.theory-lesson-page {
  background: var(--fn-ink);
}

.site-footer {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
}

.site-footer::before {
  content: none !important;
  display: none !important;
}

.site-footer > .audio-visualizer {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fn-gold);
  border-radius: 50%;
  color: #171109;
  background: var(--fn-gold);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.has-scroll-reveal .lesson-section > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .62s ease, transform .62s ease;
}

body.has-scroll-reveal .lesson-section > .is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .lesson-hero-media {
    min-height: clamp(660px, 92vh, 820px);
  }

  .lesson-hero-media__bg {
    object-position: 70% center;
  }

  .lesson-hero-media::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .83) 68%);
  }

  .lesson-hero-overlay {
    align-items: flex-end;
    padding: 2rem 1.15rem 3.5rem;
  }

  .lesson-hero-overlay__content {
    width: 100%;
  }

  .lesson-hero-overlay__content h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .lesson-content-wrap {
    padding-top: 3.25rem;
  }

  .lesson-section {
    padding-bottom: 3.75rem;
  }

  .lesson-section + .lesson-section {
    padding-top: 3.25rem;
  }

  .lesson-section > h2:first-child {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .lesson-section .tab-tool__transport {
    width: 100%;
    margin-left: 0;
  }

  .lesson-section .tab-tool__meta {
    white-space: normal;
  }

  .lesson-time-signatures,
  .lesson-subdivision-players,
  .lesson-summary-actions {
    grid-template-columns: 1fr;
  }

  .lesson-final-actions {
    grid-template-columns: 1fr;
  }

  .rhythm-strum-pattern__grid {
    gap: .3rem;
  }

  .rhythm-strum-pattern__step {
    gap: .45rem;
    font-size: .66rem;
  }

  .rhythm-strum-pattern__stroke {
    width: clamp(2rem, 10vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Speaker-cabinet footer for this page's amp experiment. */
.rhythm-orange .site-footer {
  padding: clamp(18px, 2.5vw, 32px);
  background:
    linear-gradient(#171412, #171412) left top / 28px 8px no-repeat,
    linear-gradient(#171412, #171412) left top / 8px 28px no-repeat,
    linear-gradient(#171412, #171412) right top / 28px 8px no-repeat,
    linear-gradient(#171412, #171412) right top / 8px 28px no-repeat,
    linear-gradient(#171412, #171412) left bottom / 28px 8px no-repeat,
    linear-gradient(#171412, #171412) left bottom / 8px 28px no-repeat,
    linear-gradient(#171412, #171412) right bottom / 28px 8px no-repeat,
    linear-gradient(#171412, #171412) right bottom / 8px 28px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #f18a46, #dc642b 50%, #ed8040) !important;
  box-shadow: inset 0 2px 0 rgba(255,225,188,.5), inset 0 -4px 12px rgba(86,30,9,.5);
}

.rhythm-orange .site-footer::before,
body.rhythm-orange .site-footer__content::before,
body.rhythm-orange .site-footer__content::after { content: none; }

body.rhythm-orange .site-footer__content {
  padding: clamp(1rem, 2vw, 2rem);
  border: 3px solid #9a4c25;
  border-radius: 0;
  background:
    repeating-linear-gradient(0deg, rgba(83, 67, 37, .16) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(83, 67, 37, .16) 0 1px, transparent 1px 4px),
    #d8c99b;
  box-shadow: inset 0 2px 8px rgba(68, 40, 16, .35);
}

.theory-lesson-page .lesson-content-wrap > .lesson-content-visualizer {
  position: relative;
  inset: auto;
  z-index: 2;
  display: flex;
  width: 100vw;
  max-width: none;
  height: 62px;
  margin: 0 0 0 calc(50% - 50vw) !important;
  padding: 0 clamp(.7rem, 2.2vw, 2.2rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.theory-lesson-page .lesson-content-wrap > .lesson-content-visualizer::before,
.theory-lesson-page .lesson-content-wrap > .lesson-content-visualizer::after { content: none !important; display: none !important; }

.rhythm-orange .site-footer p,
.rhythm-orange .site-footer a { color: #21180e; text-shadow: none; }
.rhythm-orange .site-footer a:hover,
.rhythm-orange .site-footer a:focus-visible { color: #773708; }
.rhythm-orange .site-footer__logo-link { background: #f7f2e4; border-color: #594b36; box-shadow: none; }
.rhythm-orange .site-footer__logo { filter: brightness(0); }
.rhythm-orange .site-footer__bottom { border-color: rgba(70, 51, 28, .4); }



@media (max-width:600px) { body.rhythm-orange .site-footer { padding:clamp(18px, 2.5vw, 32px); } }

@media (prefers-reduced-motion: no-preference) {
  .lesson-hero-overlay__kicker, .lesson-hero-overlay__content h1, .lesson-hero-overlay__content > p:not(.lesson-hero-overlay__kicker) { animation: rhythm-bounce-left 1.2s both; }
  .lesson-hero-overlay__content h1 { animation-delay: .15s; }
  .lesson-hero-overlay__content > p:not(.lesson-hero-overlay__kicker) { animation-delay: .3s; }
}
@keyframes rhythm-bounce-left {
  0% { opacity: 0; transform: translateX(-100px); }
  60% { opacity: 1; transform: translateX(18px); }
  80% { transform: translateX(-7px); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (min-width: 992px) { .rhythm-orange .orange-amp-experiment .amp-panel { padding-top: 2px; } }

.lesson-content-wrap--light {
  --fn-text: #171717;
  --fn-muted: #292929;
  --fn-gold-bright: #dfb44e;
  --fn-line: rgba(90,65,20,.3);
  background: linear-gradient(rgba(231,220,205,.72), rgba(231,220,205,.82)), url('../images/backgrounds/whitehex.webp') center top / 100% auto repeat-y;
}
.lesson-content-wrap--continued { background-size: auto, 100% auto; }
.lesson-content-wrap--continued::before { display: none; }
.lesson-content-wrap--light .lesson-time-signature-item,
.lesson-content-wrap--light .rhythm-pattern,
.lesson-content-wrap--light .tab-tool__card {
  --fn-text: #f5f1e8;
  --fn-muted: #f5f5f5;
  --fn-gold-bright: #efc65f;
  --fn-line: rgba(214,164,65,.3);
}
.lesson-content-wrap--light .lesson-inline-link { color:#765000; }
.rhythm-orange .lesson-hero-media + .seam-bridge-divider { background: linear-gradient(180deg, #a74617 0, #a74617 2px, #f18a46 2px, #dc642b 50%, #ed8040 calc(100% - 2px), #9b4118 calc(100% - 2px), #9b4118 100%); }


.time-signature-diagrams { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:1rem; margin:1.5rem 0; }
.time-signature-diagrams .lesson-time-signature-figure { width:100%; max-width:none; margin:0; }
@media (max-width:760px) { .time-signature-diagrams { grid-template-columns:1fr; } }

.lesson-note-length-list li { display:flex; align-items:center; gap:1rem; }
.note-length-symbol { flex:0 0 36px; width:36px; height:48px; color:#a97810; }

.rhythm-orange .lesson-hero-media + .seam-bridge-divider::after { filter: brightness(0); }

.rhythm-quiz { max-width:820px; margin:1.5rem 0; }
.rhythm-quiz__question { padding:1.25rem 0; border-top:1px solid var(--fn-line); }
.rhythm-quiz__question label { display:block; margin-bottom:.7rem; color:#fff; }
.rhythm-quiz__controls { display:flex; flex-wrap:wrap; gap:.6rem; }
.rhythm-quiz__controls input { flex:1 1 220px; min-width:0; padding:.7rem .8rem; border:1px solid #8c733c; border-radius:5px; background:#151515; color:#fff; font:inherit; }
.rhythm-quiz__controls button { padding:.7rem 1rem; border:1px solid #e8c376; border-radius:5px; background:#d6a441; color:#171109; font:inherit; cursor:pointer; }
.rhythm-quiz__controls :focus-visible { outline:2px solid #fff; outline-offset:3px; }
.lesson-section .rhythm-quiz__result { margin:.7rem 0 0; color:#fff; }
.rhythm-quiz__correct { color:#78e89a; }
.rhythm-quiz__wrong { color:#ff8181; }
.rhythm-quiz__icon { display:inline-flex; align-items:center; justify-content:center; width:1.5em; height:1.5em; margin-right:.4em; border:2px solid currentColor; border-radius:50%; font:700 1rem/1 system-ui,sans-serif; vertical-align:middle; }
.lesson-breadcrumb { padding:2rem 1rem 0; background: #e7dccd; color:#171717; }
.lesson-breadcrumb ol { display:flex; flex-wrap:wrap; gap:.45rem; width:min(920px,100%); margin:0 auto; padding:0; list-style:none; font-size:.85rem; }
.lesson-breadcrumb li + li::before { content:'/'; margin-right:.45rem; color:#6b5a3d; }
.lesson-breadcrumb a { color:#765000; text-decoration:underline; text-underline-offset:.15em; }
.lesson-breadcrumb a:focus-visible { outline:2px solid #765000; outline-offset:3px; }
