/* The public main page (beta.html). Layout and components were carried across from the main-page prototype
   (prototype/feature/discover-save-return, handed off November 21, 2026), cut down to the declarations the page
   uses, and moved onto the design tokens: every color and corner radius comes from tokens.css (DESIGN.md).
   The rules keep the prototype's order, because later ones refine earlier ones. accessibility.css loads last
   with `:root body … !important` rules; the #main-page id outranks them. */
* {
  box-sizing: border-box;
}
body {
  margin: 0px;
}
h1,
h2,
h3,
p {
  margin-top: 0px;
  margin-bottom: 0px;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1 em {
  display: block;
  font-weight: 400;
}
h2 {
  max-width: 600px;
}
.wrap {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  width: calc(100% - 96px);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.header nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  align-items: center;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  padding-top: 24px;
}
.hero-copy > p {
  max-width: 505px;
  margin-top: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.copy p {
  max-width: 490px;
  margin-top: 22px;
  color: var(--bm-ink);
}
.copy .minor {
  color: var(--bm-muted);
}
.budget {
  display: grid;
  align-items: center;
  background-color: var(--bm-success);
  border-radius: var(--bm-radius-panel);
  padding-right: 48px;
  padding-left: 48px;
}
.signup {
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  margin-top: 80px;
  border-top-style: solid;
  border-top-color: var(--bm-panel-sage);
  display: grid;
}
footer {
  justify-content: space-between;
}
@media (max-width: 750px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header nav {
    font-size: var(--bm-type-small);
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .signup {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
.split > * {
  min-width: 0px;
}
.hero .button {
  display: none;
}
.hero {
  padding-bottom: 11px;
}
.shelf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.shelf-stage {
  grid-template-columns: 46px minmax(0px, 1fr) 46px;
  align-items: center;
  gap: 12px;
  display: grid;
  background-color: var(--bm-block-night);
  border-top-left-radius: var(--bm-radius-image);
  border-top-right-radius: var(--bm-radius-image);
  padding-top: 24px;
  padding-right: 14px;
  padding-left: 14px;
}
.shelf-books {
  display: flex;
  align-items: flex-end;
}
.book {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}
.book img {
  height: 180px;
  display: block;
}
.ledge {
  height: 12px;
  background-image: linear-gradient(var(--bm-block-sage), var(--bm-muted));
  border-bottom-right-radius: var(--bm-radius-control);
  border-bottom-left-radius: var(--bm-radius-control);
  box-shadow: color-mix(in srgb, var(--bm-ink) 9.4%, transparent) 0px 9px 14px;
}
.demo {
  border-radius: var(--bm-radius-panel);
  padding: 24px;
  background-color: var(--bm-surface-warm);
}
.demo-title {
  font-weight: 600;
  margin-bottom: 20px;
}
.small-covers {
  margin-bottom: 20px;
}
.small-covers img {
  height: 130px;
}
.reading-choice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reading-choice span {
  padding: 8px 13px;
  border-radius: var(--bm-radius-panel);
  font-size: var(--bm-type-small);
  border-style: solid;
  border-color: var(--bm-line);
}
.note-paper {
  background-color: var(--bm-paper);
  border-left-style: solid;
  border-left-color: var(--bm-shelf-highlight);
}
.note-paper span {
  font-size: 12px;
}
.discover-demo {
  color: var(--bm-paper);
}
.discover-demo .demo-title {
  margin-bottom: 7px;
}
.discover-demo .small-covers {
  border-bottom-style: solid;
  border-bottom-color: var(--bm-block-sage);
  overflow: hidden;
}
.discover-demo .small-covers img {
  height: 155px;
}
.discover-demo p {
  color: var(--bm-paper);
}
.budget {
  margin-top: 25px;
}
.signup {
  color: var(--bm-paper);
  display: block;
  border-top: 0px;
  border-radius: var(--bm-radius-panel);
  margin-top: 76px;
}
.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 750px) {
  .brand {
    gap: 6px;
  }
  .header nav {
    gap: 0px;
  }
  .hero {
    gap: 26px;
    padding-top: 28px;
    padding-bottom: 30px;
  }
  .shelf-stage {
    grid-template-columns: 30px minmax(0px, 1fr) 30px;
    gap: 6px;
  }
  .shelf-books,
  .book img {
    height: 155px;
  }
  .signup-inner {
    grid-template-columns: 1fr;
  }
}
.hero {
  min-height: 400px;
}
.shelf-section {
  padding-bottom: 14px;
}
.shelf-stage {
  display: block;
  padding-top: 22px;
  padding-right: 0px;
  padding-left: 0px;
  overflow: hidden;
}
.chapter {
  position: relative;
  overflow: hidden;
}
.chapter .story {
  padding-top: 25px;
  padding-bottom: 25px;
}
.chapter .split {
  gap: 40px;
}
.chapter .copy h2 {
  letter-spacing: -0.5px;
}
.question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 22px;
  padding-bottom: 22px;
}
.question-grid > .story {
  padding-top: 24px;
  padding-right: 35px;
  padding-left: 35px;
  border-radius: var(--bm-radius-panel);
  width: 100%;
  overflow: hidden;
}
.question-grid > .story .split {
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
  width: 100%;
}
.question-grid .copy p {
  color: var(--bm-ink);
}
.thoughts .demo {
  background-color: initial;
  padding: 0px;
}
.thoughts .demo-title {
  color: var(--bm-paper);
  font-size: 22px;
}
.thoughts .note-paper {
  border-left-width: 7px;
  border-left-color: var(--bm-gold);
}
.thoughts .note-paper span {
  color: var(--bm-muted);
}
.thoughts .reading-choice {
  margin-top: 36px;
}
.thoughts .reading-choice span {
  background-color: var(--bm-paper);
  color: var(--bm-ink);
  border-width: 0px;
  border-style: none;
  border-color: currentcolor;
}
.discovery {
  background-color: var(--bm-paper);
}
.discovery .split {
  grid-template-columns: 0.85fr 1.15fr;
  gap: 55px;
}
.discovery .discover-demo {
  padding: 22px;
  background-color: var(--bm-panel-night);
  border-radius: var(--bm-radius-panel);
}
.discovery .discover-demo .demo-title {
  font-weight: normal;
  font-size: 32px;
  line-height: normal;
}
.discovery .small-covers {
  margin-top: 25px;
}
.discovery .small-covers img {
  height: 205px;
}
.discovery .small-covers {
  border-color: var(--bm-block-tan);
  border-bottom-width: 9px;
}
.possibilities {
  background-color: var(--bm-panel-straw);
}
.possibilities .budget {
  color: var(--bm-ink);
  padding: 18px 0px;
  background-color: transparent;
  border-radius: 0;
  margin-top: 0px;
}
.people .split {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 45px;
}
.people .social-story {
  background-color: var(--bm-gold);
  padding-top: 20px;
}
.lend {
  background-color: var(--bm-paper);
}
.signup {
  max-width: none;
  padding: 20px max(48px, 50% - 600px);
  width: 100%;
  margin-top: 0px;
  border-radius: 0;
}
.signup-inner {
  gap: 60px;
}
@media (max-width: 750px) {
  .hero {
    min-height: 0px;
  }
  .shelf-section {
    padding-bottom: 18px;
  }
  .chapter .story {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .chapter .split {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  .question-grid {
    grid-template-columns: 1fr;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .question-grid > .story {
    padding-top: 18px;
    padding-right: 24px;
    padding-left: 24px;
  }
  .question-grid > .story .split {
    gap: 25px;
  }
  .thoughts .demo-title {
    font-size: 20px;
  }
  .discovery .discover-demo {
    padding: 24px;
  }
  .discovery .discover-demo .demo-title {
    font-size: 29px;
  }
  .possibilities .budget {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .signup {
    padding: 22px 20px;
  }
  .signup-inner {
    gap: 28px;
  }
}
.structured-notes .chapter-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--bm-panel-sage);
}
.structured-notes .note-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.structured-notes .note-meta span {
  background-color: var(--bm-chip-gold);
  color: var(--bm-ink);
  border-radius: var(--bm-radius-card);
  padding: 4px 10px;
}
.thoughts .structured-notes .chapter-note p {
  margin-top: 12px;
  color: var(--bm-ink);
}
.thoughts .structured-notes {
  padding: 20px 22px;
}
@media (max-width: 750px) {
  .thoughts .structured-notes {
    padding: 25px;
  }
}
.small-covers img {
  flex-shrink: 0;
}
.stats-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.format-caption {
  color: var(--bm-paper);
  font-size: 15px;
}
.remember-scene {
  order: 1;
  margin-top: auto;
}
.question-grid .copy .minor {
  margin-top: 16px;
}
.growth-scene {
  position: relative;
  padding: 50px 28px 12px;
}
.taste-tags {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.taste-tags span {
  padding: 7px 11px;
  background-color: var(--bm-chip);
  border-radius: var(--bm-radius-image);
  color: var(--bm-panel-night);
  font-size: 12px;
}
.handoff-art {
  overflow: hidden;
  max-width: 100%;
  border-top-left-radius: var(--bm-radius-image);
  border-top-right-radius: var(--bm-radius-image);
  aspect-ratio: 620 / 215;
}
.handoff-art img {
  display: block;
}
.possibilities .budget {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 750px) {
  .format-caption {
    font-size: var(--bm-type-small);
  }
  .stats-scene {
    padding-top: 0px;
    padding-bottom: 8px;
  }
  .possibilities .budget {
    grid-template-columns: 1fr;
  }
}
.shelf-stage {
  background-color: transparent;
  padding-top: 0px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#main-page a {
  text-decoration-line: none;
}
#main-page .button {
  cursor: pointer;
}
#main-page .hero-signup {
  display: inline-flex;
}
#main-page #beta-email {
  min-height: 48px;
  margin-bottom: 14px;
}
#main-page a:focus-visible,
#main-page button:focus-visible,
#main-page .shelf-books:focus-visible {
  outline: var(--bm-ink) solid 3px;
  outline-offset: 4px;
}
#main-page .button,
#main-page button.button {
  border-style: none !important;
  border-radius: var(--bm-radius-panel) !important;
}
#main-page .question-grid {
  row-gap: 10px;
}
#main-page .question-grid > .story {
  margin-right: 0px;
  margin-left: 0px;
  align-self: stretch;
  display: grid;
  grid-row-start: span 2;
  grid-template-rows: subgrid;
  row-gap: 10px;
  padding-bottom: 20px;
}
#main-page .question-grid > .story .split {
  display: contents;
}
#main-page .question-grid .copy {
  align-self: start;
}
#main-page .question-grid .remember-scene {
  margin-top: 0px;
}
#main-page .question-grid .remember-scene {
  align-self: start;
}
.possibilities .budget {
  gap: 32px;
}
.possibilities .budget-copy h2 {
  margin-bottom: 20px;
}
.possibilities .smart-shopping-art {
  width: 100%;
  height: auto;
  border-radius: var(--bm-radius-panel);
}
@media (max-width: 750px) {
  .possibilities .budget {
    gap: 20px;
  }
  .possibilities .budget-copy h2 {
    margin-bottom: 14px;
  }
}
.next-read-shelves {
  background-color: var(--bm-paper);
  border-radius: var(--bm-radius-image);
  padding: 14px 18px;
}
.next-read-shelf + .next-read-shelf {
  margin-top: 17px;
}
.next-read-shelf h3 {
  margin-bottom: 9px;
  font-weight: 700 !important;
}
.next-read-covers {
  display: flex;
  border-bottom-style: solid;
  border-bottom-color: var(--bm-shelf-face-light);
  box-shadow: var(--bm-shelf-bottom) 0px 4px 3px -3px;
}
.next-read-covers figure {
  min-width: 0px;
}
.next-read-covers img {
  width: 59px;
}
.next-read-covers figcaption {
  font-weight: 700;
  font-size: 10px;
  text-wrap-mode: nowrap;
  color: var(--bm-muted);
  margin-top: 5px;
}
@media (max-width: 750px) {
  .next-read-shelves {
    padding: 17px 15px;
  }
}
.reading .growth-scene {
  padding: 0px;
}
.reading-goal-preview {
  background-color: var(--bm-paper);
  padding: 18px;
  border-radius: var(--bm-radius-panel);
}
.reading-goal-preview h3 {
  margin-bottom: 20px;
  font-weight: 700 !important;
}
.goal-preview-item {
  --goal-color: var(--bm-teal);
}
.goal-preview-item + .goal-preview-item {
  margin-top: 24px;
}
.goal-preview-plum {
  --goal-color: var(--bm-plum);
}
.goal-preview-gold {
  --goal-color: var(--bm-gold-dark);
}
.goal-preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.goal-preview-heading h4 {
  font-size: 17px;
  line-height: 1.3;
  margin-top: 0px;
  margin-bottom: 0px;
}
.goal-preview-heading strong {
  font-size: 20px;
  color: var(--goal-color);
  text-wrap-mode: nowrap;
}
.goal-preview-item p {
  color: var(--bm-muted);
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}
.goal-preview-bar {
  height: 17px;
  background-color: var(--bm-chip);
  border-radius: var(--bm-radius-card);
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 10px;
}
.goal-preview-bar span {
  display: block;
  height: 100%;
  border-radius: var(--bm-radius-card);
  background: var(--goal-color);
}
.goal-preview-caption {
  color: var(--bm-muted);
  margin-top: 20px !important;
}
@media (max-width: 750px) {
  .reading-goal-preview {
    padding: 20px;
  }
  .goal-preview-heading h4 {
    font-size: var(--bm-type-control);
  }
}
.project-group-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--bm-radius-panel);
}
.projects .copy p + p {
  margin-top: 18px;
}
body#main-page > .header {
  border-bottom: 1px solid var(--bm-line);
  padding-bottom: 10px;
}
body#main-page .main-intro-menu > span:first-child {
  border-bottom-style: solid;
  border-bottom-color: var(--bm-teal);
}
body#main-page {
  color: var(--bm-ink);
  background-color: var(--bm-paper);
}
body#main-page h1,
body#main-page h2,
body#main-page h3 {
  font-weight: 700;
}
body#main-page h1 em {
  font-style: normal;
  font-weight: 700;
}
body#main-page .header {
  min-height: 76px;
  max-width: 1280px;
  gap: 20px;
  width: calc(100% - 56px);
}
body#main-page .brand {
  font-weight: 700;
}
body#main-page .button,
body#main-page button.button {
  background-color: var(--bm-gold) !important;
  border-color: var(--bm-gold) !important;
  color: var(--bm-ink) !important;
  border-radius: var(--bm-radius-control) !important;
}
body#main-page .hero img {
  border-radius: var(--bm-radius-image);
}
body#main-page .shelf-stage {
  position: relative;
}
body#main-page .shelf-stage::after {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  border-radius: var(--bm-radius-cover) var(--bm-radius-cover) var(--bm-radius-cover)
    var(--bm-radius-cover);
  border-top-style: solid;
  border-top-color: var(--bm-shelf-top);
  border-bottom-style: solid;
  border-bottom-color: var(--bm-shelf-bottom);
}
body#main-page .book img {
  object-fit: contain;
}
body#main-page .together,
body#main-page .reading,
body#main-page .signup {
  background-color: var(--bm-panel-night);
}
body#main-page .thoughts {
  background-color: var(--bm-panel-slate);
}
body#main-page .together .copy h2,
body#main-page .together .copy p,
body#main-page .reading .copy h2,
body#main-page .reading .copy p,
body#main-page .thoughts .copy h2,
body#main-page .thoughts .copy p,
body#main-page .signup h2 {
  color: var(--bm-paper) !important;
}
body#main-page .questions {
  background-color: var(--bm-paper);
}
body#main-page .question-grid > .story:first-child {
  background-color: var(--bm-gold);
}
body#main-page .question-grid > .story:last-child {
  background-color: var(--bm-panel-sage);
}
body#main-page .main-library-summary {
  width: 390px;
  max-width: 100%;
  background-color: var(--bm-paper);
  border-width: 1px;
  border-style: solid;
  border-color: var(--bm-line);
  padding: 16px;
  border-radius: var(--bm-radius-image);
  border-radius: var(--bm-radius-panel);
}
body#main-page .main-library-summary h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
body#main-page .main-library-summary h3 img {
  width: 28px;
  height: 30px;
}
body#main-page .main-library-summary h3:not(:first-child) {
  margin-top: 22px;
  margin-bottom: 12px;
}
body#main-page .main-format-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 15px;
}
body#main-page .mini-wood-shelf {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
  border-bottom-style: solid;
  border-bottom-color: var(--bm-shelf-face-dark);
  box-shadow: var(--bm-shelf-bottom) 0px 3px 0px;
}
body#main-page .mini-wood-shelf img {
  height: 34px;
  object-fit: contain;
}
body#main-page .main-ownership-card {
  align-items: center;
  gap: 20px;
  background-color: var(--bm-paper);
  border-radius: var(--bm-radius-card);
  display: flex;
}
body#main-page .main-copy-status {
  display: inline-block;
  background-color: var(--bm-success);
  color: var(--bm-paper);
  border-radius: var(--bm-radius-image);
  font-size: var(--bm-type-small);
  font-weight: 700;
  padding: 6px 12px;
}
body#main-page .handoff-art {
  height: 245px;
  background-color: var(--bm-paper);
  aspect-ratio: auto;
}
body#main-page .handoff-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body#main-page .main-loan-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background-color: var(--bm-paper);
  border-width: 1px;
  border-style: solid;
  border-color: var(--bm-line);
  border-bottom-right-radius: var(--bm-radius-card);
  border-bottom-left-radius: var(--bm-radius-card);
  padding: 14px;
}
body#main-page .main-loan-card > img {
  height: 125px;
  object-fit: contain;
}
body#main-page .main-loan-card p {
  margin-top: 10px;
  margin-bottom: 10px;
}
@media (max-width: 750px) {
  body#main-page .header {
    width: calc(100% - 32px);
    min-height: 68px;
  }
  body#main-page .main-library-summary {
    padding: 20px;
  }
  body#main-page .main-format-row {
    font-size: var(--bm-type-small);
  }
  body#main-page .main-ownership-card {
    gap: 14px;
  }
  body#main-page .handoff-art {
    height: 210px;
  }
  body#main-page .main-loan-card {
    padding: 16px;
    gap: 16px;
  }
}
body#main-page h1,
body#main-page h2,
body#main-page h3,
body#main-page .shelf-top p {
  color: var(--bm-teal) !important;
}
body#main-page .shelf-section > .ledge {
  display: none;
}
body#main-page .main-reading-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 10px;
  text-align: center;
}
body#main-page .main-reading-status strong {
  display: block;
  color: var(--bm-teal);
  font-size: 23px;
  line-height: 1.2;
}
body#main-page .main-reading-status span {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 4px;
}
body#main-page .main-format-row > strong {
  flex-shrink: 0;
}
body#main-page .main-format-row > span:not(.mini-wood-shelf) {
  min-width: 0px;
}
body#main-page .shelf-stage {
  padding-bottom: 22px;
  overflow: visible;
}
body#main-page .shelf-stage::before {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 19px;
  background-image: linear-gradient(175deg, var(--bm-shelf-highlight), var(--bm-shelf-top));
  clip-path: polygon(8px 0px, calc(100% - 8px) 0px, 100% 100%, 0px 100%);
  pointer-events: none;
}
body#main-page .shelf-stage::after {
  bottom: 0px;
  height: 20px;
  background-image:
    repeating-linear-gradient(
      2deg,
      color-mix(in srgb, var(--bm-paper) 3.5%, transparent) 0px,
      color-mix(in srgb, var(--bm-paper) 3.5%, transparent) 1px,
      transparent 2px,
      transparent 8px
    ),
    linear-gradient(var(--bm-shelf-face-light), var(--bm-shelf-face-dark));
  box-shadow:
    var(--bm-shelf-highlight) 0px 1px inset,
    color-mix(in srgb, var(--bm-shelf-bottom) 20%, transparent) 0px -2px inset,
    color-mix(in srgb, var(--bm-shelf-bottom) 24%, transparent) 0px 7px 9px -6px;
  border-top: 0px;
  border-bottom: 0px;
}
body#main-page .shelf-books {
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
body#main-page .shelf-books::-webkit-scrollbar {
  display: none;
}
body#main-page .main-intro-menu {
  gap: 8px;
  flex-wrap: wrap;
  color: var(--bm-teal-dark);
  min-width: 0px;
}
body#main-page .main-intro-menu > span {
  padding: 10px 9px;
  text-wrap-mode: nowrap;
}
body#main-page .main-intro-menu > span:first-child {
  background-color: var(--bm-surface-warm);
  border-radius: var(--bm-radius-control);
}
body#main-page .main-intro-menu i {
  font-size: 12px;
  font-style: normal;
  margin-left: 5px;
}
@media (max-width: 750px) {
  body#main-page .header {
    gap: 10px;
  }
  body#main-page .main-intro-menu {
    gap: 2px;
    width: 100%;
  }
  body#main-page .main-intro-menu > span {
    padding: 8px 7px;
  }
}
body#main-page .shelf-books {
  justify-content: center;
  overflow: hidden !important;
  scroll-snap-type: none;
}
body#main-page .shelf-books .book[hidden] {
  display: none !important;
}
body#main-page .location-example-card {
  padding: 14px;
  display: block;
}
body#main-page .location-example-card > p {
  margin-top: 8px;
  margin-bottom: 16px;
}
body#main-page .book-location-examples {
  display: grid;
  gap: 12px;
}
body#main-page .book-location-examples article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bm-panel-sage);
}
body#main-page .book-location-examples article:last-child {
  border-bottom-style: none;
  border-bottom-color: currentcolor;
  padding-bottom: 0px;
}
body#main-page .book-location-examples img {
  width: 46px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}
body#main-page .book-location-examples strong {
  display: block;
}
body#main-page .book-location-examples span {
  display: block;
  font-size: 14px;
  color: var(--bm-teal);
  margin-top: 3px;
}
body#main-page .book-location-examples small {
  display: block;
  font-size: 12px;
  color: var(--bm-muted);
  margin-top: 3px;
}
@media (max-width: 750px) {
  body#main-page .location-example-card {
    padding: 18px;
  }
}
body#main-page .lend .copy h3 {
  margin-top: 24px;
}
body#main-page .lend .copy h3 + p {
  margin-top: 10px;
}
body#main-page .next-read-covers {
  padding-right: 8px;
  padding-bottom: 12px;
  padding-left: 8px;
  position: relative;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 0px;
  box-shadow: none;
}
body#main-page .next-read-covers::before {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 12px;
  background-image: linear-gradient(175deg, var(--bm-shelf-highlight), var(--bm-shelf-top));
  clip-path: polygon(5px 0px, calc(100% - 5px) 0px, 100% 100%, 0px 100%);
}
body#main-page .next-read-covers::after {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: 13px;
  border-bottom-right-radius: var(--bm-radius-cover);
  border-bottom-left-radius: var(--bm-radius-cover);
  background-image:
    repeating-linear-gradient(
      2deg,
      color-mix(in srgb, var(--bm-paper) 4%, transparent) 0px,
      color-mix(in srgb, var(--bm-paper) 4%, transparent) 1px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(var(--bm-shelf-face-light), var(--bm-shelf-face-dark));
  box-shadow:
    var(--bm-shelf-highlight) 0px 1px inset,
    color-mix(in srgb, var(--bm-shelf-bottom) 33.3%, transparent) 0px 5px 6px -4px;
}
body#main-page .next-read-covers figure {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin: 0px;
}
body#main-page .next-read-covers img {
  height: 105px;
  max-width: 78px;
  object-fit: contain;
  width: auto;
}
body#main-page .next-read-covers figcaption {
  order: -1;
  margin-bottom: 4px;
  line-height: 14px;
  margin-top: 0px;
}
body#main-page .mini-wood-shelf {
  position: relative;
  padding-bottom: 9px;
  align-items: flex-end;
  border-bottom: 0px;
  box-shadow: none;
}
body#main-page .mini-wood-shelf::before {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 6px;
  background-image: linear-gradient(var(--bm-shelf-highlight), var(--bm-shelf-top));
}
body#main-page .mini-wood-shelf::after {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: 6px;
  background-image: linear-gradient(var(--bm-shelf-face-light), var(--bm-shelf-face-dark));
  box-shadow: color-mix(in srgb, var(--bm-ink) 20%, transparent) 0px 2px 2px;
}
@media (max-width: 750px) {
  body#main-page .next-read-covers {
    gap: 12px;
    padding-left: 4px;
    padding-right: 4px;
  }
  body#main-page .next-read-covers img {
    height: 92px;
    max-width: 65px;
  }
}
body#main-page .question-grid > .story {
  overflow: visible;
  border-radius: var(--bm-radius-panel);
}
body#main-page .thoughts .note-paper {
  border-left: 0px !important;
  border-radius: var(--bm-radius-panel) !important;
}
body#main-page .thoughts .note-paper {
  border-radius: var(--bm-radius-image) !important;
  border-radius: var(--bm-radius-panel) !important;
}
body#main-page .discovery .small-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  align-items: end;
  gap: 6px;
  position: relative;
  padding-right: 8px;
  padding-bottom: 16px;
  padding-left: 8px;
  overflow: visible;
  border-bottom: 0px !important;
  border-top-color: currentcolor !important;
  border-right-color: currentcolor !important;
  border-left-color: currentcolor !important;
}
body#main-page .discovery .small-covers img {
  max-width: 100%;
  object-fit: contain;
  align-self: end;
  width: 100% !important;
  height: auto !important;
}
body#main-page .discovery .small-covers::before {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 15px;
  background-image: linear-gradient(175deg, var(--bm-shelf-highlight), var(--bm-shelf-top));
  clip-path: polygon(5px 0px, calc(100% - 5px) 0px, 100% 100%, 0px 100%);
}
body#main-page .discovery .small-covers::after {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  height: 16px;
  border-bottom-right-radius: var(--bm-radius-cover);
  border-bottom-left-radius: var(--bm-radius-cover);
  background-image:
    repeating-linear-gradient(
      2deg,
      color-mix(in srgb, var(--bm-paper) 4%, transparent) 0px,
      color-mix(in srgb, var(--bm-paper) 4%, transparent) 1px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(var(--bm-shelf-face-light), var(--bm-shelf-face-dark));
  box-shadow:
    var(--bm-shelf-highlight) 0px 1px inset,
    color-mix(in srgb, var(--bm-ink) 46.7%, transparent) 0px 5px 7px -4px;
  bottom: 0px;
}
body#main-page .shelf-stage::before {
  height: 16px;
}
body#main-page .shelf-books {
  position: relative;
  z-index: 2;
}
body#main-page .next-read-covers::before {
  height: 13px;
}
body#main-page .discovery .small-covers::before {
  height: 14px;
}
body#main-page .mini-wood-shelf::before {
  height: 5px;
}
body#main-page .next-read-covers figure,
body#main-page .discovery .small-covers img,
body#main-page .mini-wood-shelf img {
  position: relative;
  z-index: 2;
}
body#main-page .book img,
body#main-page .next-read-covers img,
body#main-page .discovery .small-covers img {
  transform: perspective(700px) rotateY(9deg);
  transform-origin: left bottom;
  border-top-left-radius: var(--bm-radius-cover);
  border-top-right-radius: var(--bm-radius-cover);
  border-bottom-right-radius: var(--bm-radius-cover);
  box-shadow:
    var(--bm-panel-tan) 2px 0px 0px,
    var(--bm-muted) 4px 0px 0px,
    color-mix(in srgb, var(--bm-ink) 33.3%, transparent) 8px -4px 8px;
}
body#main-page .mini-wood-shelf img {
  box-shadow:
    var(--bm-panel-tan) 1px 0px 0px,
    var(--bm-muted) 2px 0px 0px,
    color-mix(in srgb, var(--bm-ink) 26.7%, transparent) 3px -2px 3px;
}
body#main-page .people {
  background-color: var(--bm-panel-plum);
}
body#main-page .people .copy h2 {
  color: var(--bm-paper) !important;
}
body#main-page .people .copy p {
  color: var(--bm-paper) !important;
}
body#main-page .people .social-story {
  background-color: var(--bm-plum);
  border-radius: var(--bm-radius-panel);
}
body#main-page .people .social-story {
  overflow: hidden;
  border-radius: var(--bm-radius-image);
  padding-top: 0px !important;
  background-color: transparent !important;
  border-radius: var(--bm-radius-panel);
}
body#main-page .people .social-story img {
  display: block;
  width: 100%;
  border-radius: var(--bm-radius-image);
}
body#main-page .lend .copy p,
body#main-page .lend .copy p.minor {
  color: var(--bm-ink) !important;
}
body#main-page {
  --panel-depth: 14px;
  --image-lift: 0 5px 14px color-mix(in srgb, var(--bm-ink) 16.1%, transparent);
}
body#main-page .main-library-summary {
  box-shadow: var(--panel-depth) var(--panel-depth) 0 var(--bm-gold);
  border-radius: var(--bm-radius-panel);
}
body#main-page .question-grid > .story {
  box-shadow: var(--panel-depth) var(--panel-depth) 0 var(--bm-block-sage);
  border-radius: var(--bm-radius-panel);
}
body#main-page .reading-goal-preview {
  box-shadow: var(--panel-depth) var(--panel-depth) 0 var(--bm-block-tan);
  border-radius: var(--bm-radius-panel);
}
body#main-page .discovery .discover-demo {
  box-shadow: var(--panel-depth) var(--panel-depth) 0 var(--bm-block-mint);
  border-radius: var(--bm-radius-panel);
}
body#main-page .thoughts .note-paper {
  box-shadow: var(--panel-depth) var(--panel-depth) 0 var(--bm-block-night);
  border-radius: var(--bm-radius-panel) !important;
}
body#main-page .hero.library > img {
  width: auto;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  justify-self: center;
  box-shadow: var(--image-lift);
  height: auto;
  border-radius: var(--bm-radius-panel);
}
body#main-page .people .social-story {
  box-shadow: var(--image-lift) !important;
  border-radius: var(--bm-radius-panel);
}
body#main-page .people .social-story img,
body#main-page .project-group-art img,
body#main-page .handoff-art {
  border-radius: var(--bm-radius-panel);
}
body#main-page .project-group-art img,
body#main-page .handoff-art {
  box-shadow: var(--image-lift);
}
@media (max-width: 750px) {
  body#main-page {
    --panel-depth: 7px;
  }
  body#main-page .hero.library > img {
    max-height: 295px;
  }
}
body#main-page .projects {
  background-color: var(--bm-panel-tan);
}
body#main-page .question-grid {
  column-gap: 46px;
}
@media (max-width: 750px) {
  body#main-page .question-grid {
    row-gap: 38px;
  }
}
body#main-page .shelf-top {
  flex-wrap: wrap;
  gap: 8px;
}
:root body#main-page .shelf-books {
  gap: 6px !important;
}
:root body.main-theme.main-theme > header .brand {
  text-wrap-mode: nowrap;
  color: var(--bm-teal) !important;
}
:root body.main-theme.main-theme > header .brand img {
  object-fit: contain;
  width: 40.3px !important;
  height: 40.3px !important;
}
@media (max-width: 750px) {
  :root body.main-theme.main-theme > header {
    padding-top: 12px;
    padding-right: 16px;
    padding-left: 16px;
    flex-wrap: wrap;
  }
  :root body.main-theme.main-theme > header .brand img {
    width: 36px !important;
    height: 36px !important;
  }
}
:root body#main-page.main-theme button[type='submit'] {
  background-color: var(--bm-orange) !important;
  border-color: var(--bm-orange) !important;
  color: var(--bm-ink) !important;
}
@layer prototype-footer {
  body.main-theme footer {
    color: var(--bm-ink) !important;
    border-color: var(--bm-line) !important;
  }
  body.main-theme footer * {
    color: var(--bm-ink) !important;
  }
  body.main-theme footer a {
    text-underline-offset: 3px;
  }
}
@layer main-type {
  body.main-theme,
  body.main-theme *,
  body.main-theme ::before,
  body.main-theme ::after {
    font-family: var(--bm-font) !important;
  }
  body.main-theme h1 {
    font-size: var(--bm-type-title) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.5px !important;
  }
  body.main-theme h2 {
    font-size: var(--bm-type-section) !important;
    line-height: 1.12 !important;
    letter-spacing: normal !important;
  }
  body.main-theme .question-grid .copy h2 {
    font-size: var(--bm-type-subsection) !important;
  }
  body.main-theme .lend .copy h3 {
    font-size: var(--bm-type-section) !important;
    line-height: 1.12 !important;
  }
  body.main-theme h3 {
    font-size: var(--bm-type-card) !important;
    line-height: 1.2 !important;
  }
  body.main-theme p {
    font-size: var(--bm-type-body) !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
  }
  body.main-theme :is(button, input, select, textarea, label) {
    line-height: 1.4 !important;
  }
  body.main-theme :is(button, label:not(.consent)) {
    font-weight: 700 !important;
  }
  body.main-theme :is(.shelf-top > p:not(.shelf-key)) {
    font-size: var(--bm-type-lead) !important;
    line-height: 1.25 !important;
  }
  body.main-theme :is(.main-intro-menu) {
    font-size: 17px !important;
    font-weight: 700 !important;
  }
  body.main-theme header .brand {
    font-size: var(--bm-type-brand) !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
  }
  @media (max-width: 750px) {
    body.main-theme h1 {
      letter-spacing: -0.7px !important;
    }
    body.main-theme header .brand {
      font-size: var(--bm-type-brand) !important;
    }
  }
}

/* === Parts only the real page has: Sign in, the signup page's form and thank-you, the email-verify panel. === */
#main-page .sign-in a {
  color: var(--bm-teal) !important;
  font-size: var(--bm-type-control);
  font-weight: 700;
}
#main-page :is(button, a.button):focus-visible,
#main-page :is(a, input):focus-visible {
  outline: 0.19rem solid var(--bm-teal) !important;
  outline-offset: 0.19rem;
}
#main-page .signup :is(button, a, input):focus-visible {
  outline-color: var(--bm-paper) !important;
}
#main-page button:disabled {
  background-color: var(--bm-surface-warm) !important;
  border-color: var(--bm-line) !important;
  color: var(--bm-muted) !important;
}
/* On the main page the band's button is as wide as its words, not the column. */
#main-page .signup-inner > a.button {
  justify-self: start;
}
/* The signup page (beta-signup.html) is this band on its own, with the form and then a thank-you. */
#main-page .signup h1 {
  margin: 0;
  color: var(--bm-paper) !important;
  font-size: var(--bm-type-section) !important;
}
#main-page #beta-thanks :is(h2, p, a) {
  color: var(--bm-paper) !important;
}
#main-page #beta-thanks h2 {
  margin: 0 0 0.75rem;
  font-size: var(--bm-type-card) !important;
}
#main-page :is(#beta-form, #beta-thanks)[hidden] {
  display: none;
}
#main-page .signup :is(p, label, a:not(.button), #beta-status, #username-availability-status) {
  color: var(--bm-paper) !important;
}
#main-page .signup .label {
  margin: 1rem 0 0;
  font-size: var(--bm-type-small) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}
#main-page #beta-form {
  display: grid;
  gap: 0.6rem;
}
#main-page #beta-form label {
  margin: 0;
}
#main-page #beta-form :is(input[type='text'], input[type='email']) {
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0.0625rem solid var(--bm-paper) !important;
  border-radius: var(--bm-radius-control) !important;
  background: var(--bm-paper);
  color: var(--bm-ink) !important;
}
#main-page #beta-form p {
  margin: 0;
  font-size: var(--bm-type-small) !important;
}
#main-page .consent {
  display: flex !important;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400 !important;
}
#main-page #beta-form button {
  justify-self: start;
  margin-top: 0.5rem;
}
/* Email-verification result shown above the page after a verify link. */
#main-page .verify-result {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border: 0.0625rem solid var(--bm-line);
  border-radius: var(--bm-radius-card);
  background: var(--bm-surface-warm);
}
#main-page .verify-result .entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#main-page .verify-result input {
  flex: 1 1 14rem;
  padding: 0.6rem 0.8rem;
  border: 0.0625rem solid var(--bm-muted) !important;
  border-radius: var(--bm-radius-control) !important;
}
#main-page footer.public-footer {
  border-color: var(--bm-line) !important;
}
#main-page footer.public-footer :is(p, .copyright) {
  color: var(--bm-muted) !important;
}
/* Teal on gold is 2.9:1, so the heading on the gold card is ink (the prototype used teal). */
#main-page .question-grid > .story:first-child h2 {
  color: var(--bm-ink) !important;
}
/* Phone: Sign in sits beside the logo, above the menu row. */
@media (max-width: 750px) {
  #main-page .header .sign-in {
    order: 1;
    margin-left: auto;
  }
  #main-page .header .main-intro-menu {
    order: 2;
  }
}
