.readerPage {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  margin: auto;
  background: #fdfcf5;
  color: #233e31;
  padding: 12px 18px;
}
.readerHead,
.readerControls,
.paging,
.lookupTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.readerHead {
  padding: 6px 0 16px;
}
.readerHead strong {
  font: 600 20px Georgia, serif;
}
.readerPage button,
.readerControls select {
  border: 1px solid #c8d3c2;
  border-radius: 8px;
  background: #f2f4e9;
  color: #234632;
  padding: 9px 12px;
  min-height: 42px;
}
.readerControls {
  padding: 8px 0;
  border-block: 1px solid #d6dfcf;
}
.readerControls label {
  font-size: 13px;
}
.readerControls select {
  max-width: 45vw;
}
.paper {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.paging {
  padding: 8px 0;
  font-size: 14px;
}
.lookup {
  position: fixed;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  bottom: 70px;
  background: #fffef7;
  width: min(440px, 94vw);
  max-height: 45dvh;
  overflow: auto;
  border: 1px solid #bdcabb;
  border-radius: 13px;
  box-shadow: 0 6px 30px #233a3130;
  padding: 18px;
}
.lookup small {
  color: #647762;
  letter-spacing: 1px;
}
.lookup h2 {
  font: normal 26px Georgia;
  margin: 10px 0;
}
.lookup p {
  margin: 10px 0 14px;
}
.lookup button {
  font-size: 14px;
}
.lookupTop button {
  font-size: 20px;
}

* {
  box-sizing: border-box;
}
:root {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: #223d31;
  background: #f8f8f2;
  font-synthesis: none;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid #c88737;
  outline-offset: 3px;
}
button {
  color: inherit;
}
header {
  background: #fcfcf7;
  border-bottom: 1px solid #d9ded2;
}
.top,
.home {
  max-width: 1220px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 72px);
}
.top {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 5vw;
}
.brand {
  font: 600 24px Georgia, serif;
  letter-spacing: -1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo {
  display: grid;
  place-items: center;
  background: #244b39;
  color: #fff5dd;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.top nav,
.mobileNav {
  display: flex;
  gap: 6px;
}
nav button,
.profile,
.profileList button,
.textButton,
footer button {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
nav button {
  padding: 11px 14px;
  border-radius: 8px;
  color: #59665b;
  font-size: 14px;
  font-weight: 600;
}
nav [aria-current] {
  background: #e7eddf;
  color: #254831;
}
.profiles {
  margin-left: auto;
  position: relative;
}
.profile {
  font-weight: 600;
  font-size: 14px;
}
.avatar {
  width: 31px;
  height: 31px;
  background: #e5e9d5;
  border: 1px solid #cfd7bb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 16px Georgia;
}
.profileList {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 40px;
  padding: 5px;
  background: white;
  border: 1px solid #cdd6c9;
  border-radius: 9px;
  min-width: 140px;
  box-shadow: 0 6px 20px #12241818;
}
.profileList button {
  width: 100%;
  padding: 10px;
  justify-content: space-between;
}
.home {
  padding-top: 44px;
  padding-bottom: 34px;
}
.titleRow,
.sectionTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.titleRow {
  margin-bottom: 28px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.titleBlock h1 {
  font: 500 clamp(36px, 4.4vw, 58px) / 1.1 Georgia, serif;
  letter-spacing: -2.6px;
}
.titleBlock p {
  margin-top: 9px;
  color: #626d62;
  font-size: 15px;
}
.primary,
.secondary,
.readBtn {
  border-radius: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.primary {
  background: #294e3b;
  color: #fff;
  border: 1px solid #294e3b;
}
.secondary {
  background: transparent;
  border: 1px solid #b5c4b6;
}
.hero {
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46% 54%;
  background: #203e32;
  min-height: 255px;
}
.heroText {
  padding: 30px clamp(22px, 3vw, 43px);
  color: #f9f8e9;
  align-self: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
}
.heroText .eyebrow {
  color: #d8dfb8;
}
.hero h2 {
  font: normal clamp(35px, 4vw, 54px) / 1.04 Georgia, serif;
  letter-spacing: -1.8px;
  margin: 18px 0 10px;
  overflow-wrap: anywhere;
}
.hero p {
  font-size: 14px;
  color: #e2e6d7;
  line-height: 1.55;
}
.readBtn {
  background: #f1f0d8;
  color: #203d30;
  border: 0;
  margin-top: 22px;
}
.readBtn svg:last-child {
  margin-left: 9px;
}
.landscape {
  background: #a8b399 url('/garden.png') center/cover;
}
.below {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.shelf,
.learn,
.panel {
  background: #fdfdf7;
  border: 1px solid #d9ded0;
  border-radius: 12px;
  padding: 24px;
}
.sectionTitle h2 {
  font: 500 25px/1.2 Georgia, serif;
  letter-spacing: -0.8px;
}
.sectionTitle > span {
  color: #697360;
  font-size: 12px;
}
.bookRow {
  margin-top: 16px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #e2e6d9;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: none;
  text-align: left;
}
.cover {
  width: 56px;
  height: 77px;
  background: linear-gradient(130deg, #687e69, #214232);
  color: #fff;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  border-radius: 2px 5px 5px 2px;
  box-shadow: inset 3px 0 0 #17291d55;
  overflow: hidden;
}
.artCover {
  background: linear-gradient(0deg, #1c382d 4%, transparent 72%),
    url('/garden.png') center/cover;
}
.cover span {
  padding: 5px;
  font: 11px/1.1 Georgia;
}
.bookInfo {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.bookInfo strong {
  font: 600 20px Georgia;
  overflow-wrap: anywhere;
}
.bookInfo small {
  color: #657261;
}
.bookType {
  font: 600 9px/1.6 sans-serif;
  letter-spacing: 0.8px;
  background: #eaf0e1;
  color: #486347;
  border: 1px solid #dce3d5;
  border-radius: 3px;
  justify-self: start;
  padding: 0 5px;
  margin-top: 3px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
  color: #526949;
}
.stats > div {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
}
.stats > div + div {
  border-left: 1px solid #dbe0d2;
  padding-left: 16px;
}
.stats strong {
  font: 30px Georgia;
  color: #253e30;
}
.stats span {
  grid-column: 1/3;
  font-size: 12px;
  color: #616d61;
}
.textButton {
  font-size: 13px;
  font-weight: 650;
  padding: 6px 0;
}
.textButton svg {
  margin-left: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dce1d4;
  margin-top: 30px;
  padding: 16px 0;
  font-size: 12px;
  color: #687468;
}
footer span {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #718c62;
}
footer button {
  font-size: 12px;
  padding: 7px 0;
}
.demoNote,
.panel p {
  color: #586757;
  line-height: 1.6;
}
.demoNote {
  font-size: 13px;
}
.panel .sectionTitle {
  margin-bottom: 18px;
}
.word {
  border-top: 1px solid #d9dfd2;
  padding: 15px 0;
}
.word strong {
  font: 600 23px Georgia;
}
.word em {
  font: italic 16px Georgia;
  color: #586957;
}
.train {
  max-width: 700px;
  margin: auto;
  text-align: center;
  padding: 36px 22px;
}
.train .eyebrow {
  justify-content: center;
  margin-bottom: 24px;
}
.train h2 {
  font: normal 36px Georgia;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.train h3 {
  font: normal 23px Georgia;
}
.train button {
  margin-top: 16px;
}
.grades {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.error {
  padding: 12px;
  border: 1px solid #ba8174;
  background: #fff0e5;
  color: #6d2b25;
  border-radius: 8px;
  margin: 10px 0;
}
.mobileNav {
  display: none;
}
@media (max-width: 780px) {
  .top {
    gap: 16px;
  }
  .top nav {
    gap: 0;
  }
  .top nav button {
    padding: 10px 8px;
  }
  .below {
    grid-template-columns: 1.18fr 1fr;
    gap: 14px;
  }
  .shelf,
  .learn {
    padding: 18px;
  }
  .hero {
    grid-template-columns: 50% 50%;
  }
}
@media (max-width: 620px) {
  .top {
    height: 62px;
  }
  .top nav {
    display: none;
  }
  .brand {
    font-size: 22px;
  }
  .home {
    padding-top: 26px;
    padding-bottom: 85px;
  }
  .titleRow {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 19px;
  }
  .titleBlock h1 {
    font-size: 39px;
  }
  .titleBlock p {
    font-size: 14px;
  }
  .hero {
    display: flex;
    flex-direction: column-reverse;
  }
  .landscape {
    height: 145px;
    background-position: center 54%;
  }
  .heroText {
    align-self: stretch;
    padding: 22px;
  }
  .heroText h2 {
    margin-top: 12px;
    font-size: 37px;
  }
  .readBtn {
    margin-top: 16px;
  }
  .below {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
  .sectionTitle h2 {
    font-size: 24px;
  }
  .mobileNav {
    display: flex;
    position: fixed;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fcfcf7;
    border-top: 1px solid #d9ded2;
    justify-content: space-around;
    padding: 5px 5px max(5px, env(safe-area-inset-bottom));
  }
  .mobileNav button {
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    min-width: 26%;
    padding: 6px 10px;
  }
  .profile {
    padding-right: 0;
  }
  .train h2 {
    font-size: 30px;
  }
}
