:root {
  --paper: #fdf3e1;
  --surface: #fffaf2;
  --ink: #2f2924;
  --muted: #6d6258;
  --line: #ddccb7;
  --accent: #a86616;
  --accent-strong: #764408;
  --radius-card: 1.25rem;
  --shadow-card: 0 0.75rem 2rem rgb(74 49 21 / 8%);
  --content: 74rem;
  --app-header-height: 4rem;
  --radius-control: 0.875rem;
  --surface-tint: #f7e6ca;
  --surface-strong: #eadcc7;
  --on-accent: #fffaf2;
  --editorial-font: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Next", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: clip;
  background: var(--paper);
}

html {
  min-width: 320px;
  scroll-behavior: auto;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
}

button, a.wp-btn {
  min-height: 44px;
}

button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 8;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem max(1rem, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
}

.brand, .grown-up-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand {
  gap: 0.5rem;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand span { color: var(--accent); font-size: 1.35rem; }

.grown-up-link {
  flex: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-size: 0.875rem;
  white-space: nowrap;
}

.grown-up-link[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--surface-tint);
  color: var(--accent-strong);
}

.app-layout { width: 100%; }

main {
  width: min(100% - 2rem, var(--content));
  min-width: 0;
  margin: 0 auto;
  padding: 1.5rem 0 calc(2rem + env(safe-area-inset-bottom));
}

main[tabindex="-1"]:focus,
main[tabindex="-1"]:focus-visible {
  outline: none;
}

.loading-view { display: grid; gap: 0.8rem; }

.loading-view span {
  display: block;
  height: 5rem;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
}

.noscript {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

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

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 11vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

p { line-height: 1.55; }

.eyebrow, .story-access {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.welcome-view,
.learn-view,
.courses-view,
.course-view,
.lesson-preview,
.lesson-story-view,
.lesson-pause-view,
.lesson-activities-view,
.lesson-finished-view,
.grown-ups-view {
  display: grid;
  min-width: 0;
  gap: 1.5rem;
}

.learn-view { gap: clamp(1.2rem, 3vw, 2rem); }

.learn-heading {
  position: relative;
  display: grid;
  min-height: clamp(18rem, 52vw, 25rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.35rem, 5vw, 2.5rem);
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: #1d2731;
  box-shadow: 0 0.55rem 0.9rem rgb(46 35 22 / 16%);
}

.learn-heading-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.learn-heading::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(18 23 30 / 92%) 0%, rgb(18 23 30 / 78%) 38%, rgb(18 23 30 / 26%) 67%, rgb(18 23 30 / 8%) 100%);
  content: "";
}

.learn-heading-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(58%, 34rem);
  gap: 0.65rem;
  color: #fffaf2;
  text-shadow: 0 0.15rem 0.8rem rgb(0 0 0 / 24%);
}
.learn-heading .eyebrow { color: #ffd978; }
.learn-heading h1 { max-width: 13ch; color: #fffaf2; font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.035em; }
.learn-heading-copy > p:last-child { max-width: 32rem; margin: 0; color: rgb(255 250 242 / 88%); font-size: 1.02rem; }

.learn-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.15rem, 4vw, 1.75rem);
  border: 1px solid #ddc38e;
  border-radius: 1.35rem;
  background: #fff2cf;
  box-shadow: var(--shadow-card);
}

.learn-continue-copy { display: grid; min-width: 0; gap: 0.3rem; }
.learn-continue h2 { font-family: var(--editorial-font); }
.learn-continue p { max-width: 52rem; margin: 0; color: var(--muted); }

.account-view {
  display: grid;
  width: 100%;
  max-width: 62rem;
  min-width: 0;
  min-height: calc(100dvh - var(--app-header-height) - 5rem);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.5rem);
  margin-inline: auto;
}
.account-return-row { justify-self: start; }
.account-heading {
  display: grid;
  max-width: 50rem;
  gap: 0.35rem;
  padding-top: 0.15rem;
}
.account-heading h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); letter-spacing: -0.04em; }
.account-heading p:last-child { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.02rem; }
.account-content {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 1.1rem;
}
.account-panel {
  display: grid;
  min-width: 0;
  gap: 1.2rem;
  padding: clamp(1.4rem, 4.2vw, 2.4rem);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 92% 12%, rgb(244 198 125 / 23%) 0 14%, transparent 14.5%),
    var(--surface);
  box-shadow: 0 1.1rem 3rem rgb(74 49 21 / 10%);
}
.account-panel h2 { font-family: inherit; }
.account-panel p { margin: 0; color: var(--muted); }
.account-state-layout {
  min-height: clamp(18rem, 42vh, 23rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.56fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.account-state-copy { display: grid; min-width: 0; align-content: center; gap: 0.65rem; }
.account-state-copy h2 { max-width: 18ch; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.04; }
.account-state-copy > p:not(.eyebrow) { max-width: 42rem; text-wrap: pretty; }
.account-state-copy .account-inline-actions { margin-top: 0.55rem; }
.account-state-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  overflow: hidden;
  border-radius: 42% 58% 52% 48% / 45% 42% 58% 55%;
  background:
    radial-gradient(circle at 30% 24%, rgb(255 250 242 / 92%) 0 7%, transparent 7.5%),
    linear-gradient(145deg, #f8dfaa, #f2c678);
  box-shadow: inset 0 0 0 1px rgb(118 68 8 / 9%);
}
.account-state-visual::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 88%, rgb(118 68 8 / 10%) 0 22%, transparent 22.5%);
  content: "";
}
.account-state-visual img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 0.85rem 0.8rem rgb(118 68 8 / 14%));
}
.account-state-spark { position: absolute; color: #fffaf2; font-weight: 900; }
.account-state-spark-one { top: 16%; right: 13%; font-size: 1.2rem; }
.account-state-spark-two { bottom: 17%; left: 13%; font-size: 0.9rem; }
.account-inline-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.account-membership { gap: 1.25rem; }
.account-identity { display: flex; min-width: 0; align-items: start; justify-content: space-between; gap: 1rem; }
.account-identity > div { display: grid; min-width: 0; gap: 0.25rem; }
.account-identity h2 { overflow-wrap: anywhere; }
.account-membership-state { flex: 0 0 auto; padding: 0.55rem 0.75rem; border-radius: 999px; background: #edf3e8; color: #315f3c; font-size: 0.84rem; font-weight: 850; }
.account-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.account-plan > div { display: grid; align-content: center; gap: 0.25rem; min-height: 5.5rem; padding: 0.9rem 1rem; border-radius: 1rem; background: var(--surface-tint); }
.account-plan span { color: var(--muted); font-size: 0.88rem; }
.account-plan strong { color: var(--ink); font-size: 1.05rem; }
.account-date { background: #fff2cf !important; }
.account-paths { display: grid; gap: 0.75rem; }
.account-paths h3 { font-family: var(--editorial-font); font-size: 1.15rem; }
.account-paths ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.account-paths li { display: flex; min-height: 44px; align-items: center; gap: 0.65rem; padding: 0.65rem 0.75rem; border-radius: 0.85rem; background: #f4f0e7; }
.account-paths li > span { color: #39774a; font-weight: 900; }
.account-paths .account-empty-access { grid-column: 1 / -1; color: var(--muted); }
.account-membership > .wp-btn { justify-self: start; }
.account-action-status { min-height: 1.4em; color: var(--muted); font-size: 0.9rem; }
.account-footer { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; border-top: 1px solid var(--line); }
.account-footer-simple { justify-content: flex-start; }
.account-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.account-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 0.9rem; font-weight: 700; text-underline-offset: 0.18rem; }
.account-sign-out { justify-self: start; min-height: 44px; padding: 0.55rem 0; border: 0; background: transparent; color: #8a3e31; font: inherit; font-weight: 760; cursor: pointer; }

@media (max-width: 38.75rem) {
  .learn-heading { min-height: 27rem; align-items: start; border-radius: 1rem; }
  .learn-heading-scene { object-position: 62% 50%; }
  .learn-heading::after { background: linear-gradient(180deg, rgb(18 23 30 / 94%) 0%, rgb(18 23 30 / 78%) 40%, rgb(18 23 30 / 22%) 68%, rgb(18 23 30 / 8%) 100%); }
  .learn-heading-copy { width: 100%; }
  .learn-heading h1 { max-width: 12ch; font-size: clamp(2.15rem, 11vw, 3.1rem); }
  .learn-continue { display: grid; }
  .learn-continue .wp-btn { width: 100%; }
  .account-view { min-height: auto; }
  .account-heading { align-items: start; }
  .account-state-layout { min-height: auto; grid-template-columns: minmax(0, 1fr); }
  .account-state-visual { width: min(72vw, 12rem); justify-self: center; }
  .account-identity { display: grid; }
  .account-membership-state { justify-self: start; }
  .account-plan,
  .account-paths ul { grid-template-columns: minmax(0, 1fr); }
  .account-paths .account-empty-access { grid-column: auto; }
  .account-membership > .wp-btn { width: 100%; }
  .account-inline-actions { display: grid; }
  .account-inline-actions .wp-btn { width: 100%; }
  .account-footer { display: grid; padding-top: 0.35rem; }
}

.welcome-view {
  position: relative;
  isolation: isolate;
  min-height: min(37rem, calc(100dvh - 11rem));
  align-content: center;
  padding: clamp(1.5rem, 7vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.welcome-view > * { position: relative; z-index: 1; }

.welcome-view::before {
  position: absolute;
  top: -5rem;
  right: -3rem;
  z-index: 0;
  width: min(52vw, 24rem);
  aspect-ratio: 1;
  border-radius: 47% 53% 62% 38% / 42% 44% 56% 58%;
  background:
    radial-gradient(circle at 25% 26%, #fffaf2 0 7%, transparent 7.5%),
    radial-gradient(circle at 64% 62%, #f4c67d 0 11%, transparent 11.5%),
    radial-gradient(circle at 34% 75%, #d99136 0 8%, transparent 8.5%),
    var(--surface-tint);
  content: "";
}

.welcome-view > p:not(.eyebrow) { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.06rem; }
.welcome-view .wp-btn { justify-self: start; }

.wp-btn {
  --wp-btn-bg: var(--accent-strong);
  --wp-btn-color: var(--accent-strong);
  --wp-btn-border: var(--accent-strong);
  --wp-btn-fg: var(--on-accent);
  --wp-btn-focus: var(--accent);
}

.wp-btn.wp-btn-secondary {
  --wp-btn-bg: var(--surface);
  --wp-btn-color: var(--surface);
  --wp-btn-border: var(--line);
  --wp-btn-fg: var(--ink);
  --wp-btn-shadow: none;
}

.wp-course-card:active, .course-level-card:active, .lesson-card:active { transform: scale(0.985); }

.page-heading { display: grid; gap: 0.55rem; max-width: 46rem; }
.page-heading p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.page-heading h1 { font-size: clamp(2.2rem, 9vw, 4rem); }

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wp-course-card {
  --wp-card-padding: 1.2rem;
  width: 100%;
  min-width: 0;
  min-height: 29rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--course-color, var(--line)) 28%, var(--line));
  background: color-mix(in srgb, var(--course-color, var(--surface)) 4%, var(--surface));
  box-shadow: 0 0.9rem 2.5rem rgb(74 49 21 / 10%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wp-course-card:hover {
  border-color: color-mix(in srgb, var(--course-color, var(--accent)) 58%, var(--line));
  box-shadow: 0 1.1rem 2.8rem rgb(74 49 21 / 14%);
  transform: translateY(-2px);
}

.wp-course-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--course-color) 24%, var(--surface));
}

.wp-course-card-media::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0.5rem solid rgb(255 250 242 / 28%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.wp-course-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
  transition: opacity 180ms ease, transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wp-course-card-media.is-deferred img { opacity: 0; }
.wp-course-card-media.is-deferred.image-ready img { opacity: 1; }
.wp-course-card-media.image-error::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--course-color) 16%, var(--surface));
  color: var(--muted);
  content: "Illustration unavailable";
  font-size: 0.78rem;
  font-weight: 720;
}

.wp-course-card:hover .wp-course-card-media img { transform: scale(1.025); }

.wp-course-media-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgb(39 28 17 / 42%) 100%);
}

.wp-course-seal {
  position: absolute;
  right: 0.85rem;
  bottom: 0.8rem;
  z-index: 3;
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgb(255 250 242 / 58%);
  border-radius: 999px;
  background: rgb(47 41 36 / 72%);
  box-shadow: 0 0.35rem 1rem rgb(39 28 17 / 16%);
  color: #fffaf2;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.wp-course-seal > span {
  display: grid;
  width: 1.15rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 250 242 / 92%);
  color: var(--ink);
  font-size: 0.75rem;
}

.wp-course-card-body {
  min-height: 17.5rem;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--course-color) 16%, transparent) 0 12%, transparent 12.5%),
    radial-gradient(circle at 8% 94%, color-mix(in srgb, var(--course-color) 10%, transparent) 0 10%, transparent 10.5%),
    linear-gradient(145deg, color-mix(in srgb, var(--course-color) 5%, #fffaf2), #fffaf2 64%);
}
.wp-course-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.wp-course-card-levels { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wp-course-card-count { flex: none; color: var(--muted); font-size: 0.76rem; font-weight: 780; }
.wp-course-card-title { font-family: "Literata", Georgia, serif; font-size: 1.55rem; line-height: 1.08; }
.wp-course-card-description { color: var(--muted); line-height: 1.42; }
.wp-grown-up-note {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--course-color, var(--accent)) 22%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--course-color, var(--accent)) 11%, #fffaf2), #fffaf2 68%),
    var(--surface);
  box-shadow: inset 0.25rem 0 color-mix(in srgb, var(--course-color, var(--accent)) 72%, var(--accent));
}

.wp-grown-up-note-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--course-color, var(--accent)) 16%, var(--surface));
  color: color-mix(in srgb, var(--course-color, var(--accent-strong)) 70%, var(--accent-strong));
  font-family: var(--editorial-font);
  font-size: 1.05rem;
  font-weight: 760;
}

.wp-grown-up-note-copy { display: grid; gap: 0.18rem; }

.wp-course-card-outcome {
  margin-top: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  color: var(--ink);
  line-height: 1.35;
}
.wp-course-card-outcome small { color: color-mix(in srgb, var(--course-color) 64%, var(--accent-strong)); font-size: 0.7rem; font-weight: 820; letter-spacing: 0.065em; text-transform: uppercase; }
.wp-course-card-outcome .wp-grown-up-note-copy > span { font-size: 0.9rem; }
.wp-course-card-action { margin-top: auto; color: var(--accent-strong); font-size: 0.86rem; font-weight: 800; }
.wp-course-card.economics { --course-color: #d99439; }
.wp-course-card.science { --course-color: #71aeb4; }
.wp-course-card.philosophy { --course-color: #a57ab0; }
.wp-course-card.values_relationships { --course-color: #c77968; }

.course-level-intro {
  max-width: 42rem;
  margin-top: -0.5rem;
  color: var(--muted);
}

.course-level-intro p { margin: 0; }

.course-level-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.course-level-card {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 11rem;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.15rem, 5vw, 1.75rem);
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent));
  border-radius: calc(var(--radius-card) + 0.25rem);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(255 250 242 / 76%), transparent 48%),
    #f5dfae;
  box-shadow: 0 0.8rem 2rem rgb(74 49 21 / 9%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease;
}

.course-level-card.deeper {
  border-color: #9bb4af;
  background:
    linear-gradient(145deg, rgb(255 250 242 / 68%), transparent 50%),
    #cdded8;
}

.course-level-card:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 1.1rem 2.8rem rgb(74 49 21 / 15%);
  transform: translateY(-2px);
}

.course-level-card:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.course-level-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 3.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(47 41 36 / 12%);
  border-radius: 1rem;
  background: rgb(255 250 242 / 78%);
  color: var(--accent-strong);
  font-family: var(--editorial-font);
  font-size: 1.8rem;
  transform: rotate(-3deg);
}

.course-level-path {
  position: absolute;
  right: -0.5rem;
  bottom: -1.35rem;
  z-index: -1;
  width: 58%;
  height: 70%;
  border: 2px dashed rgb(118 68 8 / 23%);
  border-width: 2px 0 0 2px;
  border-radius: 75% 0 0;
  transform: rotate(-8deg);
}

.course-level-path::before,
.course-level-path::after,
.course-level-path > span {
  position: absolute;
  width: 0.65rem;
  aspect-ratio: 1;
  border: 2px solid rgb(118 68 8 / 28%);
  border-radius: 50%;
  background: rgb(255 250 242 / 78%);
  content: "";
}

.course-level-path::before { top: -0.42rem; left: -0.35rem; }
.course-level-path::after { top: -0.42rem; right: 10%; }
.course-level-path > span { top: 16%; left: 56%; }

.course-level-copy {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.course-level-eyebrow, .course-level-note {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.course-level-copy strong {
  font-family: var(--editorial-font);
  font-size: clamp(1.55rem, 6vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.course-level-copy > span:not(.course-level-eyebrow, .course-level-note) {
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.45;
}

.course-level-note { margin-top: 0.25rem; letter-spacing: 0; text-transform: none; }
.course-level-arrow { align-self: end; font-size: 1.5rem; font-weight: 800; }

.level-summary {
  position: sticky;
  top: calc(var(--app-header-height) + 0.5rem);
  z-index: 3;
  width: fit-content;
  max-width: 100%;
  margin: -0.5rem 0 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 0.4rem 1.2rem rgb(74 49 21 / 8%);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.25;
  backdrop-filter: blur(12px);
}

.empty-level {
  display: grid;
  max-width: 38rem;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.empty-level p { margin: 0; color: var(--muted); }

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  margin: 0 0 0.3rem;
  cursor: pointer;
}

.wp-return-button {
  min-height: 44px;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem 0.38rem 0.38rem;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 999px;
  background: linear-gradient(140deg, #fffdf7, #fff2d7);
  box-shadow: 0 0.22rem 0 color-mix(in srgb, var(--accent) 46%, #704410);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.wp-return-button-icon {
  display: grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.wp-return-button-label { padding-right: 0.08rem; }

.wp-return-button:hover {
  background: #fff8e9;
  box-shadow: 0 0.28rem 0 color-mix(in srgb, var(--accent) 60%, #704410);
  transform: translateY(-1px);
}

.wp-return-button:active {
  box-shadow: 0 0.1rem 0 color-mix(in srgb, var(--accent) 60%, #704410);
  transform: translateY(1px);
}

.wp-return-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 62%, #fff);
  outline-offset: 3px;
}

.course-view > .wp-btn { justify-self: start; }

.lesson-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.lesson-card {
  position: relative;
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 10rem;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(90deg, transparent 0 4.15rem, color-mix(in srgb, var(--accent) 16%, transparent) 4.15rem 4.2rem, transparent 4.2rem),
    repeating-linear-gradient(180deg, transparent 0 2.05rem, rgb(118 68 8 / 5%) 2.05rem 2.1rem),
    var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.lesson-card:hover { border-color: var(--accent); box-shadow: 0 1rem 2.5rem rgb(74 49 21 / 13%); }
.wp-lesson-ticket::before,
.wp-lesson-ticket::after {
  position: absolute;
  left: 4rem;
  width: 0.9rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.wp-lesson-ticket::before { top: -0.5rem; }
.wp-lesson-ticket::after { bottom: -0.5rem; }

.wp-lesson-ticket-index {
  display: grid;
  width: 3.05rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--accent-strong);
  font-family: var(--editorial-font);
  font-size: 1.15rem;
  font-weight: 780;
}

.wp-lesson-ticket-copy { display: grid; min-width: 0; gap: 0.42rem; padding-left: 0.1rem; }
.wp-lesson-ticket-copy > strong { font-family: var(--editorial-font); font-size: 1.25rem; line-height: 1.16; }
.wp-lesson-ticket-copy > span:last-child { color: var(--muted); line-height: 1.45; }
.wp-lesson-ticket-arrow { color: var(--accent-strong); font-size: 1.25rem; font-weight: 820; }

.lesson-preview, .lesson-pause-view, .lesson-activities-view, .lesson-finished-view {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 96% 3%, rgb(217 148 57 / 10%) 0 8%, transparent 8.5%),
    linear-gradient(165deg, #fffdf8, var(--surface));
  box-shadow: var(--shadow-card);
}

.lesson-preview > p:not(.eyebrow), .lesson-pause-view > p:not(.eyebrow), .lesson-activities-view > p:not(.eyebrow), .lesson-finished-view > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1.05rem; }

.lesson-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-facts li {
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem;
}

.teaching-preview { display: grid; gap: 0.65rem; margin: 0; }
.teaching-preview div { padding: 0.9rem 0.95rem; border-radius: 0.9rem; }
.teaching-preview dt { display: flex; align-items: center; gap: 0.55rem; color: var(--accent-strong); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.teaching-preview dd { margin: 0; font-family: var(--editorial-font); line-height: 1.45; }
.teaching-preview .wp-grown-up-note-mark { width: 1.65rem; border-radius: 0.5rem; font-size: 0.85rem; }

.detail-action { display: grid; justify-items: start; gap: 0.7rem; }
.detail-action p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.reader-head { display: grid; max-width: 46rem; gap: 0.4rem; }
.reader-head > p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; color: var(--muted); font-size: 0.86rem; font-weight: 720; }
.reader-head h1 { font-size: clamp(2rem, 8vw, 3.6rem); }

.story-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.story-progress li {
  height: 0.38rem;
  border-radius: 999px;
  background: var(--line);
}

.story-progress li[aria-current="step"] { background: var(--accent-strong); }

.page {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.lesson-art {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eadcc7;
}

.lesson-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 120ms ease;
}

.lesson-art.image-settled img { opacity: 1; }

.image-status, .image-unavailable p {
  margin: 0;
  align-self: center;
  justify-self: center;
  max-width: 24rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.image-status {
  position: absolute;
  inset: auto 1rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.page-copy { min-width: 0; padding: clamp(1.2rem, 5vw, 2.5rem); }
.page-copy h2 { font-family: var(--editorial-font); }
.page-copy p { max-width: 52ch; margin-bottom: 0; color: var(--ink); font-family: var(--editorial-font); font-size: clamp(1.0625rem, 3vw, 1.18rem); line-height: 1.6; white-space: pre-line; }

.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pager .wp-btn { min-width: 0; padding-inline: 0.7rem; }
.pager .wp-btn:last-child { justify-self: end; }
.pager > span { color: var(--muted); font-size: 0.86rem; font-weight: 720; text-align: center; }

.wp-activity-heading { display: grid; gap: 0.55rem; }
.wp-activity-heading p { margin: 0; }

.wp-activity-media {
  display: grid;
  min-height: 13rem;
  max-height: 22rem;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-card) - 0.1rem);
  background: var(--surface-tint);
}

.wp-activity-media img { width: 100%; height: 100%; max-height: 22rem; object-fit: contain; }

.wp-activity-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

.wp-activity-tab {
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.35rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--muted);
  font-weight: 780;
  cursor: pointer;
}

.wp-activity-tab[aria-selected="true"] {
  background: var(--surface);
  box-shadow: 0 0.2rem 0.8rem rgb(74 49 21 / 10%);
  color: var(--accent-strong);
}

.wp-activity-deck { min-width: 0; }
.wp-activity-prompt {
  --wp-card-padding: clamp(1.2rem, 5vw, 2rem);
  --wp-activity-inline-start: clamp(2.2rem, 7vw, 3.75rem);
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  justify-content: center;
  gap: 0.45rem;
  padding: var(--wp-card-padding);
  padding-inline-start: var(--wp-activity-inline-start);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  background:
    linear-gradient(90deg, transparent 0 calc(var(--wp-activity-inline-start) - 0.75rem), rgb(177 88 69 / 17%) calc(var(--wp-activity-inline-start) - 0.75rem) calc(var(--wp-activity-inline-start) - 0.7rem), transparent calc(var(--wp-activity-inline-start) - 0.7rem)),
    repeating-linear-gradient(180deg, transparent 0 2rem, rgb(118 68 8 / 7%) 2rem 2.06rem),
    linear-gradient(145deg, #fffdf7, #f9ecd5);
  box-shadow: 0 1rem 2.5rem rgb(74 49 21 / 11%);
}
.wp-mission-sheet::after {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.8rem;
  aspect-ratio: 1;
  border: 1px dashed rgb(118 68 8 / 26%);
  border-radius: 50%;
  content: "";
}
.wp-activity-prompt[hidden] { display: none; }
.wp-activity-prompt h2 { margin: 0.15rem 0 0; font-family: var(--editorial-font); font-size: clamp(1.65rem, 6vw, 2.35rem); }
.wp-activity-prompt > p:not(.wp-activity-feedback) { max-width: 34rem; margin: 0; color: var(--ink); font-family: var(--editorial-font); font-size: clamp(1.05rem, 3vw, 1.22rem); line-height: 1.55; }
.wp-activity-complete { align-self: flex-start; margin-top: 0.7rem; }
.wp-activity-feedback {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgb(118 68 8 / 16%);
  border-radius: 0.85rem;
  background: rgb(255 250 242 / 88%);
  color: var(--accent-strong);
  line-height: 1.45;
}
.wp-activity-feedback[hidden] { display: none; }
.wp-completion-stamp {
  flex: none;
  padding: 0.35rem 0.5rem;
  border: 2px solid #96704b;
  border-radius: 0.45rem;
  color: #79532f;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.bring-it-home {
  padding: 1.05rem;
  border-radius: calc(var(--radius-card) - 0.35rem);
}

.bring-it-home h2 { font-family: var(--editorial-font); font-size: 1.3rem; }
.bring-it-home p { margin-bottom: 0; color: var(--muted); }
.wp-finish-note { padding: 1.05rem; border-radius: 1rem; }
.wp-finish-note strong { font-family: var(--editorial-font); font-size: 1.1rem; }
.wp-finish-note p { margin: 0.25rem 0 0; color: var(--muted); }

.lesson-activities-view > .wp-btn, .lesson-pause-view > .wp-btn { justify-self: start; }
.status-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.grown-up-actions { display: grid; gap: 0.875rem; }

.grown-up-card {
  display: grid;
  min-height: 9rem;
  align-content: center;
  gap: 0.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
}

.grown-up-card strong { font-family: var(--editorial-font); font-size: 1.2rem; }
.grown-up-card span { color: var(--muted); line-height: 1.45; }
.grown-up-card.primary-card { border-color: var(--accent); background: var(--surface-tint); }

.status-view {
  display: grid;
  max-width: 40rem;
  gap: 1rem;
  margin: 8vh auto;
  padding: clamp(1.4rem, 6vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.status-view h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
.status-view > p:not(.story-access) { margin: 0; color: var(--muted); }

@media (min-width: 48rem) {
  .level-summary { position: static; }
  main { width: min(100% - 3rem, var(--content)); padding-top: 2.2rem; }

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

  .course-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-level-card { grid-template-columns: 4rem minmax(0, 1fr); align-content: center; }
  .course-level-arrow { grid-column: 2; justify-self: end; }

  .lesson-preview, .lesson-pause-view, .lesson-activities-view, .lesson-finished-view { padding: clamp(2rem, 6vw, 3.5rem); }
  .grown-up-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) and (max-width: 68.749rem) {
  .lesson-story-view { width: min(100%, 56rem); margin-inline: auto; }
  .page { grid-template-columns: minmax(0, 1fr); }
  .lesson-art { max-height: 32rem; }
  .page-copy { padding: 2rem clamp(2rem, 7vw, 4rem) 2.5rem; }
}

@media (min-width: 68.75rem) {
  :root { --editorial-font: "Literata", Georgia, serif; }

  .course-level-card {
    isolation: isolate;
    min-height: 15rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  }

  .course-level-card::before {
    position: absolute;
    inset: auto -3.5rem -4.5rem auto;
    z-index: -1;
    width: 11rem;
    aspect-ratio: 1;
    border-radius: 42% 58% 57% 43% / 47% 42% 58% 53%;
    background: rgb(255 250 242 / 52%);
    content: "";
    transform: rotate(-12deg);
  }

  .course-level-card.starter {
    background:
      radial-gradient(circle at 18% 18%, rgb(255 250 242 / 92%) 0 4%, transparent 4.5%),
      #f5dfae;
  }

  .course-level-card.deeper {
    background:
      radial-gradient(circle at 82% 18%, rgb(255 250 242 / 74%) 0 3.5%, transparent 4%),
      #cdded8;
  }

  .app-layout {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 2rem;
    width: min(100% - 3rem, calc(var(--content) + 12.5rem + 2rem));
    margin: 0 auto;
  }

  main { width: 100%; padding: 2.5rem 0 5rem; }
  .page { grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 0.95fr); }
  .lesson-art { align-self: center; }
  .page-copy { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .course-level-card { transition: none; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

main {
  width: min(100% - 1rem, 78rem);
  padding: 0.5rem 0 2.25rem;
}

.welcome-view,
.library-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0;
}

.welcome-view {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-view::before { content: none; }

.wonder-hero {
  position: relative;
  min-height: min(66dvh, 40rem);
  overflow: hidden;
  border: 1px solid #d5c3a8;
  border-radius: 1.5rem;
  background: #cde6d0;
  box-shadow: 0 1.2rem 3.5rem rgb(74 49 21 / 14%);
}

.wonder-hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 57%;
}

.wonder-hero-pals {
  position: absolute;
  right: clamp(0.5rem, 4vw, 4rem);
  bottom: clamp(0.2rem, 2vw, 1.25rem);
  z-index: 1;
  display: flex;
  width: min(48%, 32rem);
  align-items: end;
  justify-content: center;
  filter: drop-shadow(0 1rem 1.1rem rgb(28 22 15 / 28%));
}

.wonder-hero-pals img { width: 37%; min-width: 0; object-fit: contain; }
.wonder-hero-pals img:nth-child(2) { width: 32%; margin-left: -6%; }
.wonder-hero-pals img:nth-child(3) { width: 30%; margin-left: -5%; }

.wonder-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgb(34 28 22 / 76%) 0%, rgb(34 28 22 / 22%) 62%, transparent 100%);
  content: "";
}

.wonder-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(37rem, 94%);
  min-height: inherit;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1.35rem, 5vw, 4.5rem);
  color: #fffdf7;
  text-shadow: 0 2px 18px rgb(0 0 0 / 24%);
}

.wonder-hero-copy .wp-hero-badge {
  --wp-badge-bg: rgb(255 250 242 / 94%);
  --wp-badge-border: rgb(255 250 242 / 80%);
  --wp-badge-fg: #68410d;
  margin: 0;
  font-weight: 800;
  text-shadow: none;
}

.wonder-hero-copy h1 {
  max-width: 11ch;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(2.65rem, 7vw, 5.5rem);
  line-height: 0.98;
}

.wonder-hero-copy p {
  max-width: 35rem;
  margin: 0;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.55;
}

.wonder-hero-copy .wp-hero-action {
  --wp-btn-bg: #ffedbd;
  --wp-btn-color: #ffedbd;
  --wp-btn-border: #ffedbd;
  --wp-btn-fg: #3b2b1d;
  --wp-btn-focus: #fffaf2;
  --wp-btn-shadow: 0 4px 0 #b8761b;
  min-height: 48px;
  margin: 0;
  font-weight: 820;
  text-shadow: none;
}

.home-course-shelf {
  width: 100%;
  min-width: 0;
  padding: clamp(2rem, 5vw, 4rem) 0 1rem;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
  padding-inline: clamp(0.35rem, 1.5vw, 1rem);
}

.home-section-heading h2 {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.home-section-heading > p { max-width: 27rem; margin: 0; color: var(--muted); }

.embla,
.embla__viewport { width: 100%; min-width: 0; }
.embla__viewport { overflow: hidden; touch-action: pan-y pinch-zoom; }
.embla__container { display: flex; gap: 1rem; }
.embla__slide { flex: 0 0 min(82vw, 22rem); min-width: 0; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.carousel-control {
  display: grid;
  width: 46px;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.carousel-control:disabled { cursor: default; opacity: 0.36; }
.carousel-dots { display: flex; min-width: 4rem; justify-content: center; gap: 0.38rem; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 999px; background: #c7b49d; }
.carousel-dots span.active { width: 22px; background: var(--accent-strong); }

.library-view { gap: 1.5rem; }
.continue-card,
.empty-library {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #f4dfae;
  box-shadow: var(--shadow-card);
}
.continue-card h2,
.empty-library h2 { margin-top: 0.3rem; font-family: "Literata", Georgia, serif; }
.continue-card p,
.empty-library p { margin-bottom: 0; color: var(--muted); }
.library-free { display: grid; gap: 1rem; padding-top: 0.75rem; }
.library-free > header p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 38.75rem) {
  .grown-up-link { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; }
  .wonder-hero { min-height: 34rem; border-radius: 1.25rem; }
  .wonder-hero-scene { object-position: 62% 58%; }
  .wonder-hero-pals { right: -1.25rem; bottom: 9.5rem; width: 66%; }
  .wonder-hero::after { background: linear-gradient(0deg, rgb(34 28 22 / 82%) 0%, rgb(34 28 22 / 14%) 76%); }
  .wonder-hero-copy { align-content: end; padding: 1.3rem; }
  .wonder-hero-copy h1 { font-size: clamp(2.55rem, 13vw, 3.8rem); }
  .home-section-heading > p { display: none; }
  .continue-card,
  .empty-library { display: grid; align-items: start; }
}

@media (min-width: 48rem) {
  main { width: min(100% - 2rem, 78rem); padding-top: 1rem; }
  .embla__slide { flex-basis: calc((100% - 1rem) / 2); }
}

@media (min-width: 68.75rem) {
  main { width: min(100% - 3rem, 78rem); padding: 1.25rem 0 3rem; }
  .embla__slide { flex-basis: calc((100% - 2rem) / 3); }
}
