:root {
  color-scheme: light;
  --ink: #141c31;
  --muted: #4f5c68;
  --paper: #f7f4e8;
  --surface: #ffffff;
  --surface-soft: #edf6f0;
  --surface-warm: #fffaf0;
  --sun: #f0b13f;
  --coral: #c3483a;
  --leaf: #236f53;
  --sky: #2f6f9f;
  --blue-soft: #e8f1f7;
  --rose-soft: #faece7;
  --gold-soft: #fff3d7;
  --line: #d9ded2;
  --shadow: 0 18px 44px rgba(20, 28, 49, 0.13);
  --shadow-soft: 0 10px 28px rgba(20, 28, 49, 0.09);
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-label: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 28, 49, 0.1);
  background: rgba(247, 244, 232, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--sun);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(540px, 72svh, 690px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98) 0%, rgba(237, 246, 240, 0.96) 54%, rgba(232, 241, 247, 0.98) 100%),
    linear-gradient(90deg, rgba(240, 177, 63, 0.2), rgba(35, 111, 83, 0.14));
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20, 28, 49, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 28, 49, 0.038) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08));
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--sun), var(--coral), var(--leaf), var(--sky));
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 62px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 900;
  font-family: var(--font-label);
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8.4vw, 7.1rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 650px;
}

.title-line {
  display: block;
}

.hero-copy .lede {
  max-width: 590px;
  margin-bottom: 28px;
  color: #2d3648;
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface-warm);
  font-family: var(--font-label);
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 28, 49, 0.14);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: none;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.proof-pill {
  padding: 9px 12px;
  border: 1px solid rgba(20, 28, 49, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #273044;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-visual {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cover-stage {
  position: relative;
  min-height: 370px;
}

.hero-cover {
  position: absolute;
  display: grid;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(20, 28, 49, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 46px rgba(20, 28, 49, 0.2);
}

.hero-cover img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.hero-cover-1 {
  top: 72px;
  left: 0;
  z-index: 1;
  width: clamp(126px, 14vw, 180px);
  transform: rotate(-4deg);
}

.hero-cover-2 {
  top: 8px;
  left: 50%;
  z-index: 3;
  width: clamp(160px, 17vw, 220px);
  transform: translateX(-50%);
}

.hero-cover-3 {
  top: 94px;
  right: 0;
  z-index: 2;
  width: clamp(126px, 14vw, 180px);
  transform: rotate(4deg);
}

.hero-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(20, 28, 49, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-path span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px;
  border-radius: 6px;
  background: #f8fbf5;
  color: #273044;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.section {
  padding: 74px 0;
}

#books {
  padding-top: 32px;
}

.section[id],
.book-card[id] {
  scroll-margin-top: 88px;
}

.section.surface {
  background: var(--surface);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.section-header h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.author-copy p + p {
  margin-top: 14px;
}

.book-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}

.book-chooser {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -8px 0 32px;
}

.chooser-item {
  display: grid;
  position: relative;
  gap: 8px;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.chooser-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: var(--sun);
  content: "";
}

.chooser-item:nth-child(2)::before {
  background: var(--sky);
}

.chooser-item:nth-child(3)::before {
  background: var(--coral);
}

.chooser-item:nth-child(4)::before {
  background: var(--leaf);
}

.chooser-item:hover,
.chooser-item:focus-visible {
  border-color: var(--sky);
  box-shadow: 0 16px 36px rgba(20, 28, 49, 0.12);
  transform: translateY(-1px);
}

.chooser-item span {
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.chooser-item strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.chooser-item small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.chooser-item em {
  align-self: end;
  color: var(--sky);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.book-visual {
  display: grid;
  height: 350px;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 248, 231, 0.85), rgba(237, 247, 242, 0.92)),
    #f1e6d4;
}

.book-card:nth-child(2) .book-visual {
  background:
    linear-gradient(145deg, rgba(232, 241, 247, 0.95), rgba(255, 255, 255, 0.86)),
    var(--blue-soft);
}

.book-card:nth-child(3) .book-visual {
  background:
    linear-gradient(145deg, rgba(250, 236, 231, 0.96), rgba(255, 255, 255, 0.86)),
    var(--rose-soft);
}

.book-card:nth-child(4) .book-visual {
  background:
    linear-gradient(145deg, rgba(237, 246, 240, 0.98), rgba(255, 250, 240, 0.86)),
    var(--surface-soft);
}

.book-cover {
  width: auto;
  max-width: min(230px, 82%);
  max-height: 300px;
  border-radius: 4px;
  box-shadow: 0 18px 34px rgba(20, 28, 49, 0.26);
  object-fit: contain;
}

.book-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e3f1ea;
  color: #185f47;
  font-size: 0.76rem;
  font-weight: 900;
  font-family: var(--font-label);
  text-transform: uppercase;
}

.book-body h3 {
  margin-bottom: 0;
  font-size: 1.22rem;
  line-height: 1.15;
}

.book-subtitle {
  margin-bottom: 0;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
}

.book-fit {
  margin-bottom: 0;
  padding: 12px;
  border-left: 4px solid var(--sky);
  border-radius: 6px;
  background: #eef7f6;
  color: #273148;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.book-summary {
  margin-bottom: 0;
  color: #3c4558;
}

.edition-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.edition-heading {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.edition-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-warm);
}

.edition-row.recommended-edition {
  border-color: rgba(40, 116, 86, 0.52);
  background: #f2fbf6;
}

.edition-label {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.15;
}

.edition-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: none;
}

.edition-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.edition-button {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf0;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.edition-button.secondary {
  background: var(--surface-warm);
  color: var(--ink);
}

.edition-button:hover,
.edition-button:focus-visible {
  border-color: var(--sky);
  transform: translateY(-1px);
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: #30394d;
  font-size: 0.94rem;
}

.feature-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  content: "";
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: end;
  padding-top: 4px;
}

.text-links a {
  color: var(--sky);
  font-weight: 900;
  text-decoration: none;
}

.text-links a:hover,
.text-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kids-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kids-option {
  display: grid;
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.kids-option-visual {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 240, 235, 0.95), rgba(237, 247, 242, 0.92)),
    #f1e6d4;
}

.kids-option-visual img {
  width: auto;
  max-width: min(150px, 82%);
  max-height: 210px;
  border-radius: 4px;
  box-shadow: 0 18px 34px rgba(20, 28, 49, 0.22);
  object-fit: contain;
}

.kids-option-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.kids-option-body h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.kids-option-body p {
  margin-bottom: 0;
  color: #30394d;
}

.kids-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.word-card {
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(20, 28, 49, 0.06);
}

.word-theme {
  margin-bottom: 20px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.word-card h3 {
  overflow-wrap: anywhere;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 2.05rem;
}

.word-translation {
  margin-bottom: 14px;
  color: var(--coral);
  font-weight: 900;
}

.word-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.approach-item {
  padding: 24px;
  border-top: 6px solid var(--sun);
  border-radius: 8px;
  background: var(--surface-warm);
  box-shadow: 0 8px 20px rgba(20, 28, 49, 0.06);
}

.approach-item:nth-child(2) {
  border-top-color: var(--coral);
}

.approach-item:nth-child(3) {
  border-top-color: var(--leaf);
}

.approach-item h3 {
  margin-bottom: 10px;
}

.approach-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.faq-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(20, 28, 49, 0.05);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.45fr);
  gap: 32px;
  align-items: center;
  padding: 36px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 177, 63, 0.96), rgba(255, 243, 215, 0.98) 58%, rgba(237, 246, 240, 0.95));
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.cta-band p {
  margin-bottom: 0;
  color: #273044;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: var(--surface-warm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
}

.footer-note {
  flex-basis: 100%;
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--surface-warm);
  font-weight: 800;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .cover-stage {
    min-height: 340px;
  }

  .hero-cover-1,
  .hero-cover-3 {
    width: 170px;
  }

  .hero-cover-2 {
    width: 210px;
  }

  .section-header,
  .cta-band {
    grid-template-columns: 1fr;
  }

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

  .kids-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.05));
  }

  .hero-inner {
    align-items: start;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    overflow: hidden;
    gap: 20px;
    padding: 34px 0 34px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.72rem, 11vw, 3.12rem);
    overflow-wrap: break-word;
  }

  .hero-copy .lede {
    width: 100%;
    max-width: 100%;
    font-size: 1.04rem;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    display: none;
  }

  .cover-stage {
    min-height: 178px;
  }

  .hero-cover {
    padding: 6px;
  }

  .hero-cover-1 {
    top: 48px;
    width: 88px;
  }

  .hero-cover-2 {
    top: 0;
    width: 114px;
  }

  .hero-cover-3 {
    top: 58px;
    width: 88px;
  }

  .hero-path {
    display: none;
  }

  .book-grid,
  .book-chooser,
  .kids-options,
  .words-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .kids-option {
    grid-template-columns: 1fr;
  }

  .book-chooser {
    margin: -4px 0 24px;
  }

  .chooser-item {
    min-height: auto;
    padding: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section[id],
  .book-card[id] {
    scroll-margin-top: 112px;
  }

  .book-visual {
    height: 286px;
  }

  .edition-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .edition-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .edition-button {
    width: 100%;
  }

  .cta-band {
    padding: 24px;
  }
}
