.landing {
  --leaf: #183b30;
  --ink: #19372e;
  --paper: #faf7ef;
  --linen: #eee8da;
  --sage: #e4eadc;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, sans-serif;
}
.landing * { box-sizing: border-box; }
.landing .wrap { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.landing main { width: auto; max-width: none; margin: 0; padding: 0; }
.landing h1, .landing h2, .landing h3 {
  color: inherit;
  font-family: Georgia, serif;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.landing h1 { font-size: clamp(40px, 5.4vw, 85px); line-height: .99; letter-spacing: -.06em; }
.landing h1 span { display: block; }
.landing h2 { font-size: clamp(33px, 4vw, 59px); line-height: 1.04; letter-spacing: -.04em; }
.landing h3 { font-size: clamp(24px, 2.7vw, 40px); line-height: 1.14; letter-spacing: -.025em; }
.landing p { margin: 1rem 0 0; }
.landing a { color: inherit; text-underline-offset: .23em; }
.landing a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.landing img { display: block; max-width: 100%; height: auto; }
.landing [hidden] { display: none; }
.landing-header, .landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  background: transparent;
  border: 0;
}
.landing .brand { min-width: max-content; font: 25px Georgia, serif; }
.landing .brand-logo { width: 36px; height: 36px; object-fit: contain; }
.landing nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 24px; }
.landing nav a { padding: 4px 0; font-size: 15px; }
.landing .store { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 650; }
.landing .store-ready img { width: auto; height: 44px; }
.landing .store-ready a { display: block; }
.hero-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: min(650px, 85vh); }
.hero-copy { align-content: center; background: var(--linen); padding: clamp(25px, 4.3vw, 74px); }
.hero-copy > p { max-width: 39ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 24px; }
.hero-actions a { font-size: 15px; }
.hero-art {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 11px;
  margin: 0;
  padding: 25px 16px 18px;
  background: var(--leaf);
  color: var(--paper);
}
.hero-art .app-shot { width: clamp(225px, 23vw, 325px); }
.hero-art figcaption { font-size: 14px; }
.reading, .faq { padding-block: clamp(55px, 8vw, 122px); }
.section-intro { max-width: 700px; margin: 0 auto 42px; }
.chapter-links { margin-top: 20px; }
.chapters { display: grid; gap: 14px; }
.chapter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--linen); padding: 25px clamp(24px, 7vw, 100px); gap: 20px; scroll-margin-top: 18px; }
.chapter:nth-child(even) { background: var(--sage); }
.chapter:nth-child(even) .chapter-copy { grid-column: 2; grid-row: 1; }
.chapter-copy p { max-width: 40ch; }
.chapter .app-shot { width: min(100%, 284px); justify-self: center; }
.practice .practice-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landing mark { background: #dbc891; color: var(--ink); padding-inline: .13em; }
.mid-store { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 25px; padding-bottom: clamp(40px, 6vw, 90px); }
.landing .mid-store p { margin: 0; }
.plans { background: var(--sage); padding-block: clamp(44px, 7vw, 100px); }
.editorial-grid { display: grid; grid-template-columns: .92fr 1fr 1fr; gap: 34px clamp(18px, 4vw, 64px); }
.editorial-grid h2 { grid-row: span 2; }
.faq h3 { font-size: clamp(21px, 2vw, 28px); }
.closing { color: var(--paper); background: var(--leaf); padding-block: 58px; }
.closing .store { margin-top: 18px; }
.landing-footer { min-height: 115px; }
@media (max-width: 920px) {
  .landing .wrap { width: calc(100% - 40px); }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .editorial-grid h2 { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .landing .wrap { width: calc(100% - 32px); }
  .landing-header { flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
  .landing-header nav { order: 3; width: 100%; }
  .landing .brand { font-size: 21px; }
  .landing-header .store { font-size: 13px; }
  .hero-panel, .chapter, .editorial-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 32px 20px; }
  .landing h1 { font-size: clamp(33px, 10vw, 56px); }
  .hero-art .app-shot { width: min(76%, 285px); }
  .chapter { padding: 24px 16px; }
  .chapter:nth-child(even) .chapter-copy { grid-column: auto; grid-row: auto; }
  .practice .practice-screens { grid-template-columns: 1fr; }
  .landing-footer { flex-wrap: wrap; }
}

.landing .skip-link { color: #fff; }
.landing-header, .landing-footer { max-width: none; }
.landing .mid-store { justify-content: flex-start; }
.landing a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .landing .landing-header { flex-direction: row; }
  .landing-header .brand-logo { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art .app-shot, .hero-art figcaption {
    animation: open-page .55s ease-out both;
  }
  .hero-copy > p { animation-delay: .09s; }
  .hero-copy > .hero-actions { animation-delay: .17s; }
  .hero-art .app-shot { animation-delay: .13s; }
  .hero-art figcaption { animation-delay: .22s; }
  .landing .turn-in { animation: open-page .48s ease-out both; }
  .landing .turn-in:nth-child(2) { animation-delay: .08s; }
  .landing .turn-in:nth-child(3) { animation-delay: .16s; }
}
@keyframes open-page {
  from { opacity: .25; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.allowances { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 0; }
.allowances div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.allowances dd { margin: 0; font: clamp(40px, 5vw, 68px)/1.1 Georgia, serif; }
.allowances dt { max-width: 15ch; line-height: 1.3; }


.landing .plan-detail { margin-top: 16px; padding: 0; border: 0; }
.landing .plan-detail summary { min-height: 44px; width: fit-content; padding-block: 8px; }
.landing .plan-detail p { padding-left: 0; color: inherit; }

.app-shot { display: block; }
.hero-art .app-shot img, .chapter .app-shot img { width: 100%; }

@media (max-width: 640px) {
  .landing-header > .store { display: none; }
  .landing-header .language-picker { margin-inline-start: auto; }
}

.landing .suggest-book-button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: var(--leaf);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.landing .chapter-copy > .suggest-book-button { margin-top: 20px; }
.landing .suggest-book-button:hover { background: var(--sage); }
.landing .suggest-book-button:focus-visible,
.landing .suggestion-dialog :is(input, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.landing .suggestion-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.landing .suggestion-dialog::backdrop { background: rgb(12 29 23 / .65); }
.landing .suggestion-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.landing .suggestion-dialog h2 { font-size: clamp(28px, 4vw, 38px); }
.landing .suggestion-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}
.landing .suggestion-dialog form { margin-top: 24px; }
.landing .suggestion-fields {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
}
.landing .suggestion-dialog label { display: block; font-weight: 650; }
.landing .suggestion-dialog .suggestion-email { margin-top: 16px; }
.landing .suggestion-dialog :is(input, select) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--muted);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.landing .suggestion-dialog .suggestion-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.landing .suggestion-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.landing .suggestion-submit { background: var(--leaf); color: var(--paper); }
.landing .suggestion-submit:hover { background: var(--ink); }
.landing .suggestion-submit:disabled { opacity: .65; cursor: wait; }
.landing .suggestion-status:empty { margin: 0; }
@media (max-width: 480px) {
  .landing .suggestion-fields { grid-template-columns: minmax(0, 1fr); }
}

.featured-books { padding-block: clamp(42px, 6vw, 88px) 0; }
.featured-books-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1.5rem clamp(.75rem, 1.6vw, 1.5rem);
  list-style: none;
  margin: clamp(20px, 3vw, 38px) 0 1.5rem;
  padding: 0;
}
.featured-books-grid .book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--linen);
}
.featured-books-grid a { display: block; text-decoration: none; }
.featured-books-grid a:hover .featured-book-title { text-decoration: underline; }
.featured-book-title {
  display: block;
  margin-block: .5rem .35rem;
  font: clamp(1rem, 1.55vw, 1.35rem)/1.2 Georgia, serif;
  overflow-wrap: anywhere;
}
.featured-book-level {
  display: inline-block;
  padding: .05rem .5rem;
  border-radius: 4px;
  background: var(--sage);
  font-size: .8rem;
  font-weight: 700;
}
.featured-books-all { font-weight: 650; }
@media (max-width: 1040px) {
  .featured-books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .featured-books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
