/* The opening spread and its original story illustration. */
.discovery-site {--night:#173e41;--amber:#ffdda1;--paper:#fffaf0;--forest:#255257;--rule:#cfdacf;background:#fffdf7;color:#223f3f}
.discovery-site .wrap {max-width:1216px;padding-inline:clamp(18px,4.5vw,64px)}
.discovery-site .header {background:#fffdf7}
.discovery-site .header .wordmark em {color:#4d715c}
.discovery-site .inbox-nav {border:1px solid #a9b9aa;border-radius:2rem;padding:.45rem .85rem}
.discovery-site .discovery-label,.discovery-site .shelf-meta {font:700 .82rem/1.45 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#426458;margin:0 0 .75rem}
.nightstand {background:radial-gradient(ellipse at 82% 35%,#315a55 0,transparent 48%),#173e41;color:#fff9e9}
.nightstand-inner {display:grid;grid-template-columns:1.03fr 1fr;gap:clamp(1.6rem,5vw,4.5rem);align-items:center;padding-block:clamp(2.4rem,5vw,5rem)}
.nightstand-copy {min-width:0}
.nightstand .nightstand-copy>.discovery-label {color:#ffdda1}
.nightstand h1 {font:500 clamp(3.1rem,5.3vw,4.55rem)/1.03 Georgia,serif;letter-spacing:-.055em;margin:.1em 0 .35em;color:#fff9e9}
.nightstand h1 em {color:#ffdda1;font-weight:400;font-style:italic}
.nightstand-lead {font-size:clamp(1.02rem,1.6vw,1.15rem);line-height:1.55;color:#e2ebe1;max-width:43ch;margin:0}
.nightstand-actions {display:flex;align-items:center;gap:.85rem 1.4rem;flex-wrap:wrap;margin-top:1.65rem}
.discovery-button {display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.7em 1.2em;border-radius:.55rem;font-weight:700;text-decoration:none;text-align:center;line-height:1.35}
.sun-button {background:#ffdda1;color:#193e3c}
.sun-button:hover {background:#fff0c9}
.ink-button {background:#245356;color:white}
.ink-button:hover {background:#173e41}
.nightstand-link,.shelf-action {font-weight:650;text-underline-offset:.25em;text-decoration-thickness:1px}
.nightstand-link {color:#fff3d6}
.nightstand-book {display:block;position:relative;isolation:isolate;background:#fff8e9;border:1px solid #ded2b5;border-radius:.6rem .9rem .9rem .6rem;padding:clamp(.6rem,1.3vw,.95rem);color:#263e3d;text-decoration:none;box-shadow:4px 5px 0 #e6d8b6,6px 8px 0 #9a9379,0 16px 38px #0c26296e}
.nightstand-book>img {display:block;width:100%;height:auto;aspect-ratio:820/544;object-fit:contain;background:#f5efdf;border-radius:.25rem}
.nightstand-caption {padding:.8rem .6rem .3rem}
.nightstand-caption .discovery-label {margin:0;font-size:.77rem;color:#526c57}
.nightstand-caption h2 {font:500 clamp(1.4rem,2.5vw,2.15rem)/1.15 Georgia,serif;letter-spacing:-.035em;margin:.18em 0;color:#233b36}
.nightstand-caption p:last-child {font-size:.98rem;line-height:1.45;margin:0;color:#435751}
.nightstand-book:hover h2,.shelf-card a:hover,.title-list a:hover {text-decoration:underline;text-underline-offset:.14em}
.discovery-site :focus-visible {outline:3px solid #ab5631;outline-offset:4px}
.nightstand :focus-visible {outline-color:#ffdda1}
.inbox-band {background:#f6e7c9;border-bottom:1px solid #e0d1b2;color:#263f39}
.inbox-inner,.shelf-heading,.filter-bar {display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.inbox-inner {padding-block:1.65rem}
.inbox-band .discovery-label {margin:0 0 .2rem;color:#63522d}
.inbox-band h2 {font:500 clamp(1.55rem,3vw,2.35rem)/1.16 Georgia,serif;margin:0 0 .3rem}
.inbox-band p:last-child {margin:0;max-width:63ch;line-height:1.52}
.inbox-band a {flex-shrink:0}
.discovery-section {padding-block:clamp(2.6rem,5vw,4.6rem)}
.shelf-heading {align-items:end;margin-bottom:1.35rem}
.shelf-heading h2 {margin:.1rem 0;font-size:clamp(2rem,3.3vw,3rem)}
.shelf-heading .discovery-label {margin:0}
.discovery-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.9rem,2vw,1.6rem)}
.discovery-site .shelf-card {display:flex;flex-direction:column;border-radius:.7rem;border:1px solid #dedfd1;background:#fffdf7;overflow:hidden;box-shadow:none}
.discovery-site .shelf-card[hidden] {display:none}
.shelf-cover {background:#e6ece1;display:grid;place-items:center;padding:1rem;height:clamp(195px,22vw,260px)}
.shelf-card:nth-child(3n + 2) .shelf-cover {background:#f5e6d9}
.shelf-card:nth-child(3n + 3) .shelf-cover {background:#e6edf0}
.shelf-cover img {display:block;max-width:100%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(2px 3px 3px #2d3b3b30)}
.shelf-copy {padding:1rem 1.15rem 1.2rem;display:flex;flex:1;flex-direction:column;align-items:flex-start}
.shelf-copy h3 {margin:.1rem 0 .5rem;font-size:1.45rem;color:#253f3e}
.shelf-copy h3 a {text-decoration:none}
.discovery-site .shelf-copy .shelf-meta {margin:0;font-size:.78rem}
.shelf-copy>p:not(.shelf-meta) {font-size:.97rem;line-height:1.55;margin:0 0 1rem}
.shelf-copy .shelf-action {margin-top:auto}
.title-directory {padding-bottom:2.3rem}
.title-directory details {border-block:1px solid var(--rule);padding:.8rem 0}
.title-directory summary {font-weight:650;font-size:1.1rem;cursor:pointer;padding:.3rem}
.catalog-intro {background:#e7efdf;border-bottom:1px solid #d0ddc9;padding-block:clamp(2.1rem,5vw,4rem)}
.catalog-intro h1 {font-size:clamp(2.5rem,5vw,4rem);margin:.2rem 0 .6rem}
.catalog-intro p:last-of-type {max-width:60ch;font-size:1.12rem;margin:0}
.catalog-intro .discovery-label {margin:0}
.filter-bar {justify-content:flex-start;flex-wrap:wrap;gap:.6rem 1rem;margin-bottom:1.3rem}
.filter-bar label {font-weight:700}
.filter-bar select {font:inherit;padding:.45rem .75rem;background:white;border:1px solid #91a99c;border-radius:.35rem}
.filter-bar .shelf-action {margin-left:auto}
.age-jumps {display:flex;flex-wrap:wrap;gap:.5rem;margin:1.3rem 0 0}
.age-jumps a {background:#fffdf7;border:1px solid #b0c3ad;padding:.45rem .9rem;border-radius:1.2rem;text-decoration:none;font-weight:650}
.age-jumps a:hover {border-color:#385951}
.story-index {padding-block:2.2rem}
.age-shelf {scroll-margin-top:1.5rem;border-bottom:1px solid var(--rule);padding:1rem 0}
.age-shelf h2 {font-size:2rem;margin:0 0 .7rem}
.title-list {padding:0;list-style:none;columns:2;column-gap:3rem}
.title-list li {break-inside:avoid;padding:.4rem 0;line-height:1.5}
.title-list a {color:#264d47;text-underline-offset:.15rem}
.title-list span {margin-left:.25rem;color:#53695d;font-size:.9rem;white-space:nowrap}
.signup-status .catalog-intro h2 {font-size:clamp(1.55rem,3vw,2.1rem);margin-top:1rem}
.signup-status .catalog-intro .discovery-button {margin-top:1.3rem}
.signup-view .inner-hero {background:#e7efdf}
.signup-view .inner-hero h1 {max-width:18ch;font-size:clamp(2.45rem,5.5vw,4rem)}
.signup-view .inner-hero .lead {color:#344e42}
.signup-view #lsh-parent-signup input[type=email],.signup-view #lsh-parent-signup select {font:inherit;border:1px solid #92a89a;border-radius:.4rem}
@media (max-width:850px) {
  .nightstand-inner {gap:1.4rem;grid-template-columns:1fr 1fr}
  .nightstand h1 {font-size:clamp(2.65rem,5.9vw,3.4rem)}
  .discovery-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  .discovery-site .header nav {gap:.9rem}
}
@media (max-width:640px) {
  .nightstand-inner {grid-template-columns:1fr;padding-block:1.8rem 2.1rem}
  .nightstand h1 {font-size:clamp(2.55rem,10vw,3.35rem)}
  .nightstand-actions {margin-top:1rem}
  .nightstand-book {max-width:480px;width:100%;justify-self:center}
  .nightstand-book>img {max-height:225px;object-fit:cover}
  .inbox-inner,.shelf-heading {align-items:flex-start;flex-direction:column;gap:.7rem}
  .inbox-inner {padding-block:1.4rem}
  .discovery-cards {grid-template-columns:1fr}
  .shelf-cover {height:210px}
  .title-list {columns:1}
  .filter-bar .shelf-action {margin-left:0}
}
