:root {
  color-scheme: light;
  --paper: #faf8ef;
  --white: #fffefa;
  --ink: #202048;
  --muted: #595772;
  --violet: #3a2a9c;
  --violet-soft: #e9e4ff;
  --yellow: #ffcf48;
  --line: #e0dccf;
  --green: #1e6049;
  --red: #8b3826;
  --outline: #5641c3;
  font-family: Arial, "Arial Hebrew", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-inline-size: 300px; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 4px;
}
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
button svg { display: block; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1176px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 77px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  border: 0;
  padding: 0;
  background: none;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  color: white;
  border-radius: 11px;
  background: var(--violet);
  width: 39px;
  height: 39px;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-period { color: var(--violet); }
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav button, .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 100px;
  padding: 8px 17px;
  font-weight: 700;
}
.main-nav button[aria-current], .main-nav button:hover, .ghost:hover { background: var(--violet-soft); color: var(--violet); }
.nav-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding-inline: 4px;
  border-radius: 50px;
  background: var(--violet);
  color: white;
  font-size: 0.8125rem;
}
.course-language {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: .875rem;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7560cf; }

.home { padding-block-start: 31px; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  min-height: 448px;
  padding: 38px clamp(34px, 5vw, 72px);
  background: var(--yellow);
  border-radius: 28px;
  isolation: isolate;
}
.hero-kicker { margin-bottom: 14px; color: #422c92; font-size: 1.05rem; font-weight: 800; }
.hero h1 {
  font-size: clamp(68px, 7.35vw, 112px);
  line-height: .91;
  letter-spacing: -.075em;
  margin-block-end: 20px;
}
.title-period { color: var(--violet); padding-inline-start: .034em; }
.hero-desc { font-size: 1.18rem; line-height: 1.56; max-width: 363px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 750;
  text-align: center;
  line-height: 1.2;
}
.button.dark { background: var(--violet); color: #fff; }
.button.dark:hover { background: #2a1e78; }
.button.secondary { background: var(--violet-soft); color: var(--violet); }
.button.secondary:hover { background: #dcd3ff; }
.button[disabled] { opacity: .46; }
.hero-action { margin-block-start: 23px; }
.play-glyph {
  inline-size: 0;
  block-size: 0;
  border-block: 5px solid transparent;
  border-inline-start: 8px solid currentColor;
  direction: ltr;
}
.hero-art {
  width: 100%;
  aspect-ratio: 1.29;
  border-radius: 20px;
  position: relative;
  background: var(--violet);
  box-shadow: -12px 13px 0 var(--violet);
  transform: rotate(-3deg);
}
.hero-art img { height: 100%; object-fit: cover; border-radius: inherit; }
.hero-word {
  position: absolute;
  inset-block-end: 10%;
  inset-inline-end: 8%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 14px 13px 17px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 5px 15px #23215133;
  transform: rotate(3deg);
}
.hero-word:hover { transform: rotate(0deg); }
.hero-word-copy { display: grid; gap: 4px; text-align: start; font-size: .91rem; }
.hero-word-copy strong { font-size: 1.2rem; }
.speaker-circle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
}
.speaker-circle svg { width: 21px; height: 21px; }

.topic-section { margin-block: 49px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-end: 20px;
}
.section-heading h2, .method h2 { font-size: clamp(1.9rem, 3.7vw, 2.7rem); letter-spacing: -.052em; line-height: 1.05; }
.section-heading p, .method p { color: var(--muted); line-height: 1.45; margin-top: 8px; }
.overview { display: flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 700; color: var(--violet); }
.overview-track { width: 55px; height: 7px; border-radius: 20px; background: #ded6f7; overflow: hidden; }
.overview-fill { height: 100%; background: var(--violet); border-radius: inherit; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 0;
  background: var(--white);
  overflow: hidden;
  text-align: start;
}
.topic-card:hover { border-color: var(--violet); }
.topic-card img { aspect-ratio: 2.06; object-fit: cover; }
.topic-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 17px; }
.topic-titles { display: grid; gap: 5px; }
.topic-titles strong { font-size: clamp(1.22rem, 2.25vw, 1.5rem); letter-spacing: -.02em; }
.topic-titles span { color: var(--muted); line-height: 1.35; }
.topic-cta {
  background: var(--violet-soft);
  border-radius: 100px;
  color: var(--violet);
  padding: 9px 12px;
  font-weight: 700;
  font-size: .875rem;
}
.topic-card:nth-child(2) .topic-cta { background: #e5efce; color: #36542a; }
.topic-card:nth-child(3) .topic-cta { background: #ffebbe; color: #674517; }
.topic-card:hover .topic-cta { outline: 1px solid currentColor; }
.method {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) 2fr;
  gap: 32px;
  align-items: center;
  padding: 30px;
  border: 1px solid #d9d1f6;
  border-radius: 22px;
  background: #f2edff;
}
.method ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px 24px; list-style: none; padding: 0; margin: 0; }
.method li { display: flex; gap: 9px; align-items: flex-start; }
.method li > div { display: grid; gap: 4px; line-height: 1.3; }
.method li div span { color: var(--muted); }
.step-index { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--violet); color: white; font-weight: 700; }

.workspace { max-width: 850px; min-height: 68vh; padding-block-start: 32px; }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.lesson-top .ghost { padding-inline: 12px; }
.lesson-topic { font-weight: 800; }
.lesson-progress { display: grid; gap: 10px; margin-block-end: 21px; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; font-size: .88rem; color: var(--muted); text-align: center; }
.progress-steps span { position: relative; padding-block-start: 10px; }
.progress-steps span::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 12px; background: #ded9ec; }
.progress-steps [aria-current], .progress-steps .done { color: var(--violet); font-weight: 700; }
.progress-steps [aria-current]::before, .progress-steps .done::before { background: var(--violet); }
.lesson-panel { border: 1px solid var(--line); border-radius: 22px; background: var(--white); padding: clamp(18px, 4vw, 36px); }
.lesson-panel h1 { font-size: clamp(1.75rem, 4vw, 2.45rem); line-height: 1.12; letter-spacing: -.045em; }
.lesson-panel p { color: var(--muted); line-height: 1.5; }
.prompt { margin-block: 8px 22px; }
.prompt:empty { margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: center; margin-block-start: 18px; }
.feature-img { aspect-ratio: 1.3; object-fit: cover; border-radius: 16px; }
.phrase-zone { display: grid; align-content: center; justify-items: start; gap: 11px; }
.phrase { font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.25rem); line-height: 1.1; }
.phrase-zone p { font-size: 1.05rem; }
.sound-button { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; border: 0; border-radius: 10px; background: var(--violet-soft); color: var(--violet); font-weight: 700; padding: 9px 13px; }
.sound-button svg { width: 21px; height: 21px; }
.sound-button:hover { background: #ded4fc; }
.answer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-actions { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 25px; }
.lesson-actions .button { margin-inline-start: auto; }
.lesson-actions .button:first-child:last-child { margin-inline-start: 0; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 16px; }
.choice { min-width: 0; padding: 3px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); text-align: start; }
.choice img { aspect-ratio: 1.1; object-fit: cover; border-radius: 9px; }
.choice:hover { border-color: var(--violet); }
.choice[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-soft); }
.choice.correct { border-color: var(--green); }
.choice.incorrect { border-color: var(--red); }
.text-choices { display: grid; gap: 8px; margin-block-start: 15px; }
.text-choices .choice { min-height: 48px; padding: 9px 13px; text-align: left; }
.dialogue { display: grid; gap: 9px; }
.dialogue-label { color: var(--muted); font-size: .95rem; }
.feedback { min-height: 1.5em; margin-block-start: 12px; font-weight: 700; }
.feedback.good { color: var(--green); }
.feedback.bad { color: var(--red); }
.review-hero { display: grid; gap: 14px; padding-block: 26px; }
.review-list { display: grid; gap: 10px; padding: 0; margin-block: 19px; list-style: none; }
.review-list li { padding: 11px 13px; background: var(--paper); border-radius: 8px; }
.summary { display: grid; gap: 14px; }
.summary-row { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 25px; margin-block-start: 38px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer span:first-child { color: var(--violet); font-size: 1.25rem; font-weight: 800; }
.toast { position: fixed; inset: auto 16px 18px; margin-inline: auto; width: fit-content; max-width: 92vw; z-index: 2; padding: 12px 16px; border-radius: 11px; background: var(--ink); color: white; }

@media (max-width: 930px) {
  .hero { min-height: 392px; }
  .topic-info { grid-template-columns: 1fr; }
  .topic-cta { justify-self: start; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-row { min-height: 65px; display: flex; justify-content: space-between; gap: 8px; }
  .brand { font-size: 26px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .main-nav { gap: 2px; }
  .main-nav button { padding-inline: 10px; font-size: .9rem; }
  .course-language { display: none; }
  .home { padding-block-start: 17px; }
  .hero { grid-template-columns: 1fr; gap: 29px; border-radius: 22px; padding: 25px 22px 31px; }
  .hero h1 { font-size: clamp(55px, 14.4vw, 89px); margin-block-end: 14px; }
  .hero-desc { font-size: 1rem; }
  .hero-kicker { margin-block-end: 11px; }
  .hero-action { margin-block-start: 17px; }
  .hero-art { width: calc(100% - 11px); margin-inline-start: 4px; aspect-ratio: 1.63; box-shadow: -7px 9px 0 var(--violet); }
  .hero-word { inset-block-end: 8%; inset-inline-end: 5%; padding: 8px 10px; gap: 9px; }
  .hero-word-copy { font-size: .82rem; }
  .hero-word-copy strong { font-size: 1rem; }
  .speaker-circle { width: 33px; height: 33px; }
  .speaker-circle svg { width: 17px; height: 17px; }
  .topic-section { margin-block: 38px; }
  .topic-grid { grid-template-columns: 1fr; gap: 12px; }
  .topic-card { grid-template-columns: 106px minmax(0, 1fr); grid-template-rows: auto; min-height: 115px; }
  .topic-card img { height: 100%; min-height: 115px; aspect-ratio: auto; }
  .topic-info { padding: 12px; gap: 8px; }
  .topic-cta { padding: 6px 10px; }
  .method { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .method ol { grid-template-columns: 1fr; }
  .workspace { padding-block-start: 16px; }
  .feature { grid-template-columns: 1fr; gap: 15px; }
  .feature-img { aspect-ratio: 1.65; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s, border-color .15s, transform .15s; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 23px; }
.hero-actions .hero-action { margin-block-start: 0; }
.hero-secondary { background: transparent; border-color: #54421a55; }
.hero-secondary:hover { background: #ffe48c; }
.featured-section { margin-block-start: 49px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.featured-card {
  grid-template-columns: minmax(105px, .85fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr;
  min-height: 200px;
  background: #ebe5ff;
  border-color: #dcd1fc;
}
.featured-card:nth-child(2) { background: #f9e7b9; border-color: #efdaa2; }
.featured-card img { height: 100%; min-height: 200px; object-fit: cover; aspect-ratio: auto; }
.featured-card .topic-info { padding: 19px; grid-template-columns: 1fr; }
.featured-card .topic-cta { justify-self: start; background: var(--violet); color: white; }
.featured-card:nth-child(2) .topic-cta { background: #302143; color: white; }
.featured-card .topic-titles strong { font-size: clamp(1.4rem, 2.9vw, 2.13rem); line-height: 1.1; }
.featured-card .topic-titles .topic-track { color: #493c8e; font-size: .86rem; font-weight: 700; }
.featured-card:nth-child(2) .topic-titles .topic-track { color: #705316; }
.topic-titles .topic-count { font-size: .85rem; }
.topic-info { align-content: center; }
.topic-section .section-heading { margin-block-end: 13px; }
.topic-section { scroll-margin-block-start: 22px; }
.track-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 17px; }
.filter {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  padding: 8px 15px;
  font-weight: 700;
}
.filter[aria-pressed="true"], .filter:hover { color: var(--violet); border-color: #cbc1ed; background: var(--violet-soft); }
.sound-button[aria-pressed="true"], .hero-word[aria-pressed="true"] .speaker-circle { background: var(--violet); color: white; }
.learning-note { margin-block: 20px 0; padding: 13px 16px; border-radius: 12px; border: 1px solid #e0d9f8; background: #f5f0ff; }
.learning-note .sound-button { margin-block-start: 8px; }
.lesson-example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
}
.lesson-example strong { display: inline-block; }
.lesson-example p { font-size: .95rem; }
.typed-recall { width: 100%; }
.typed-recall summary { padding: 10px 2px; cursor: pointer; font-weight: 700; color: var(--violet); }
.typed-recall form { display: grid; justify-items: start; gap: 8px; margin-block-start: 8px; }
.typed-recall .feedback:empty { display: none; }
.typed-recall label, .search-label { font-weight: 700; }
.typed-recall input, #dictionary-query {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c5bcda;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}
.typed-recall input:focus-visible, #dictionary-query:focus-visible, summary:focus-visible { outline: 3px solid var(--outline); outline-offset: 2px; }
.dialogue .sound-button { justify-self: start; }
.dictionary .search-label { display: inline-block; margin-block-end: 8px; }
.dictionary .dictionary-count { margin-block: 15px 8px; }
.dictionary-list { list-style: none; padding: 0; margin: 0; }
.dictionary-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding-block: 11px;
  border-block-start: 1px solid var(--line);
}
.dictionary-photo { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; }
.dictionary-term { display: grid; justify-items: start; gap: 3px; overflow-wrap: anywhere; }
.dictionary-term strong { font-size: 1.13rem; }
.dictionary-topic { color: var(--muted); font-size: .84rem; }
.dictionary-audio { display: flex; flex-wrap: wrap; gap: 6px; }
.dictionary-audio .sound-button { min-height: 44px; }

@media (max-width: 680px) {
  .main-nav button { padding-inline: 9px; }
  .hero-actions { margin-block-start: 17px; }
  .hero-actions .button { padding-inline: 14px; }
  .featured-section { margin-block-start: 38px; }
  .featured-grid { grid-template-columns: 1fr; gap: 12px; }
  .featured-card { grid-template-columns: minmax(112px, 1fr) minmax(0, 1.46fr); min-height: 139px; }
  .featured-card img { min-height: 139px; }
  .featured-card .topic-info { padding: 12px; }
  .dictionary-item { grid-template-columns: 52px minmax(0, 1fr); gap: 7px 10px; }
  .dictionary-photo { width: 52px; height: 52px; }
  .dictionary-audio { grid-column: 2; }
}
@media (max-width: 360px) {
  .nav-count { min-width: 18px; }
  .main-nav button { padding-inline: 6px; gap: 4px; }
}
