:root {
  --ink: #171717;
  --text: #4f4c4b;
  --muted: #7c7471;
  --paper: #f6f7f3;
  --white: #ffffff;
  --peach: #f3d9cf;
  --peach-strong: #dfa896;
  --blue: #b8dfe6;
  --blue-strong: #82c6d1;
  --coral: #e95738;
  --coral-dark: #b83b25;
  --line: rgba(23, 23, 23, 0.12);
  --shadow: 0 12px 28px rgba(29, 31, 32, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 62px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 28px;
}

.course-header,
.lesson-header {
  padding: 0 32px 64px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.topbar {
  min-height: 72px;
  max-width: 1160px;
  margin: 0 auto 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
  color: #8d5d50;
  font-weight: 900;
  text-decoration: none;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.topbar__links a {
  color: #56514f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.topbar__links a:hover {
  color: var(--ink);
}

.dashboard-hero,
.lesson-hero {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
}

.dashboard-hero__copy,
.lesson-hero__copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 11px;
  color: #8d5d50;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  max-width: 680px;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 800;
}

.dashboard-hero h1 span {
  display: block;
  margin-top: 4px;
  color: var(--peach-strong);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
}

.lead {
  max-width: 670px;
  margin: 22px 0 28px;
  color: var(--text);
  font-size: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid #cbd0c9;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 31, 32, 0.11);
}

.button--primary {
  border-color: var(--blue-strong);
  background: var(--blue);
}

.button--dark {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
}

.button--outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.cover-stack {
  position: relative;
  width: 100%;
  min-height: 410px;
}

.cover-stack__item {
  position: absolute;
  width: 225px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cover-stack__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cover-stack__item--1 {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}

.cover-stack__item--2 {
  top: 24px;
  right: 0;
  transform: rotate(3deg);
}

.cover-stack__item--3 {
  bottom: 0;
  left: 12px;
  transform: rotate(3deg);
}

.cover-stack__item--4 {
  right: 10px;
  bottom: 8px;
  transform: rotate(-3deg);
}

main {
  padding: 58px 32px 86px;
}

.section {
  width: min(1080px, 100%);
  margin: 0 auto 78px;
}

.section-title {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-title > p:last-child:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.access-section {
  margin-bottom: 54px;
}

.access-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.access-summary h2 {
  font-size: 30px;
}

.access-count {
  flex: 0 0 auto;
  color: var(--coral-dark);
  font-size: 38px;
  font-weight: 900;
}

.module-list {
  display: grid;
  gap: 14px;
}

.module-row {
  display: grid;
  grid-template-columns: 64px 210px minmax(0, 1fr) 176px;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.module-row:nth-child(even) {
  border-top: 5px solid var(--blue-strong);
}

.module-row:nth-child(odd) {
  border-top: 5px solid var(--peach-strong);
}

.module-row.is-locked {
  box-shadow: none;
  opacity: 0.67;
}

.module-row__number {
  color: var(--peach-strong);
  font-size: 32px;
  font-weight: 900;
  text-align: center;
}

.module-row__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: #f2eeeb;
}

.module-row__copy {
  min-width: 0;
}

.module-row__copy h3 {
  font-size: 27px;
}

.module-row__copy > p:not(.eyebrow) {
  margin: 10px 0;
  color: var(--text);
}

.module-row__copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.module-row__action {
  justify-self: end;
}

.locked-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f0f1ed;
  font-size: 14px;
  font-weight: 900;
}

.locked-label--light {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.bonus-band,
.video-band,
.homework-band {
  width: calc(100% + 64px);
  margin-left: -32px;
}

.bonus-band {
  margin-bottom: 78px;
  padding: 58px 32px;
  color: var(--white);
  background: var(--ink);
}

.bonus-band__inner {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: end;
}

.bonus-band .eyebrow {
  color: var(--peach-strong);
}

.bonus-copy {
  max-width: 750px;
}

.bonus-copy p:last-child {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
}

.study-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.study-note > p {
  margin: 0;
  color: var(--text);
  font-size: 19px;
}

.module-switcher {
  display: inline-flex;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f3ef;
}

.module-switcher a,
.module-switcher span {
  width: 38px;
  min-width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.module-switcher span {
  opacity: 0.4;
}

.module-switcher a.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 5px rgba(29, 31, 32, 0.12);
}

.lesson-hero {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.lesson-hero h1 {
  max-width: 690px;
  font-size: 56px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.lesson-cover {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lesson-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.lesson-cover figcaption {
  margin: 11px 5px 3px;
  color: var(--muted);
  font-size: 13px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.outcome-item {
  min-width: 0;
  padding: 20px 18px 4px 0;
  border-right: 1px solid var(--line);
}

.outcome-item + .outcome-item {
  padding-left: 18px;
}

.outcome-item:last-child {
  border-right: 0;
}

.outcome-item span {
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
}

.outcome-item p {
  margin: 9px 0 0;
  color: var(--text);
}

.video-band {
  margin-bottom: 78px;
  padding: 64px 32px;
  color: var(--white);
  background: #222522;
}

.video-band__inner {
  margin-bottom: 0;
}

.section-title--inverse .eyebrow {
  color: var(--peach-strong);
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.practice-player {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.practice-progress {
  height: 6px;
  background: #ebede8;
}

.practice-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 180ms ease;
}

.practice-viewport {
  padding: 22px;
}

.practice-step {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.practice-step__visual {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f1ee;
}

.practice-step__visual img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.practice-step__content {
  min-width: 0;
  padding: 8px 8px 8px 0;
}

.practice-step__content > p:not(.eyebrow) {
  margin: 14px 0 20px;
  color: var(--text);
}

.note-field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 900;
}

.note-field textarea {
  width: 100%;
  resize: vertical;
  padding: 13px;
  border: 1px solid #c7ccc4;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
}

.note-field textarea:focus {
  border-color: var(--blue-strong);
  outline: 3px solid rgba(130, 198, 209, 0.22);
}

.practice-navigation {
  min-height: 70px;
  padding: 12px 22px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.practice-navigation > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.homework-band {
  margin-bottom: 78px;
  padding: 52px 32px;
  background: var(--peach);
}

.homework-band__inner {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.homework-band__inner > p {
  margin: 0;
  color: #3e3836;
  font-size: 20px;
}

.materials-list {
  display: grid;
  gap: 12px;
}

.material-row {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr) minmax(220px, 0.8fr) 28px;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.material-row > span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  color: #7e5145;
  background: var(--peach);
  font-size: 12px;
  font-weight: 900;
}

.material-row small {
  color: var(--muted);
}

.material-row b {
  font-size: 20px;
}

.completion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.locked-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.locked-page__inner {
  width: min(620px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--peach-strong);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.locked-page h1 {
  font-size: 46px;
}

.locked-page p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: var(--text);
  font-size: 19px;
}

@media (max-width: 960px) {
  .dashboard-hero,
  .lesson-hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
  }

  .module-row {
    grid-template-columns: 48px 170px minmax(0, 1fr);
  }

  .module-row__action {
    grid-column: 3;
    justify-self: start;
  }

  .practice-step {
    grid-template-columns: 1fr;
  }

  .practice-step__visual img {
    max-height: none;
  }

  .topbar__links--lesson {
    display: none;
  }
}

@media (max-width: 740px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .course-header,
  .lesson-header {
    padding: 0 20px 46px;
  }

  .topbar {
    min-height: 0;
    margin-bottom: 34px;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  .dashboard-hero,
  .lesson-hero {
    grid-template-columns: 1fr;
  }

  .cover-stack {
    min-height: 360px;
  }

  .cover-stack__item {
    width: 47%;
  }

  .lesson-cover {
    width: min(430px, 100%);
  }

  main {
    padding: 44px 14px 64px;
  }

  .bonus-band,
  .video-band,
  .homework-band {
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .module-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .module-row__cover {
    grid-column: 2;
  }

  .module-row__copy,
  .module-row__action {
    grid-column: 2;
  }

  .bonus-band__inner,
  .study-note,
  .homework-band__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcome-item:nth-child(2) {
    border-right: 0;
  }

  .outcome-item:nth-child(n + 3) {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .material-row {
    grid-template-columns: 1fr 28px;
  }

  .material-row > span,
  .material-row strong,
  .material-row small {
    grid-column: 1;
  }

  .material-row b {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1,
  .lesson-hero h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 24px;
  }

  .lead {
    font-size: 18px;
  }

  .dashboard-hero,
  .lesson-hero,
  .dashboard-hero__copy,
  .lesson-hero__copy {
    width: 100%;
    min-width: 0;
  }

  .button {
    width: 100%;
  }

  .cover-stack {
    min-height: 300px;
  }

  .module-row {
    padding: 14px;
  }

  .module-row__number {
    font-size: 24px;
  }

  .access-summary {
    align-items: flex-start;
  }

  .access-summary h2 {
    font-size: 25px;
  }

  .access-count {
    font-size: 28px;
  }

  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .outcome-item,
  .outcome-item + .outcome-item {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .outcome-item:nth-child(n + 3) {
    margin-top: 0;
    border-top: 0;
  }

  .practice-viewport {
    padding: 10px;
  }

  .practice-step__content {
    padding: 8px;
  }

  .video-links .button {
    width: 100%;
  }

  .completion-row {
    align-items: stretch;
    flex-direction: column;
  }

  .locked-page__inner {
    padding: 28px 22px;
  }

  .locked-page h1 {
    font-size: 36px;
  }
}
