:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --ink: #152338;
  --muted: #526170;
  --navy: #101d31;
  --line: #dad9d0;
  --mint: #d4f0d9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
body > main { flex: 1; }
a { display: inline-block; color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #a46d00; outline-offset: 5px; }
.wrap { width: min(76rem, calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .5rem .8rem; background: white; color: var(--ink); }
.skip:focus { transform: none; }
.masthead { background: var(--navy); color: var(--paper); border-bottom: 1px solid #ffffff20; }
.header-inner, .foot-inner { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: .9rem 1.4rem; }
.header-inner nav, .foot-inner nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .92rem; }
.header-inner nav a, .foot-inner nav a { text-decoration: none; }
.header-inner nav a:hover, .foot-inner nav a:hover { text-decoration: underline; }
.wordmark { display: inline-flex; gap: .38em; align-items: center; font-weight: 730; letter-spacing: -.045em; font-size: 1.26rem; text-decoration: none; white-space: nowrap; }
.wordmark > span:last-child { font-weight: 450; }
.mark { flex: 0 0 auto; position: relative; display: inline-block; width: 1.25rem; height: .85rem; margin-right: .15rem; }
.mark::before, .mark::after { content: ""; width: .58rem; height: .77rem; border: 1.5px solid currentColor; border-radius: .15rem .18rem .12rem; position: absolute; top: .04rem; left: 0; transform: skewY(13deg); }
.mark::after { left: auto; right: 0; transform: skewY(-13deg); }
.hero { overflow: hidden; color: var(--paper); background: radial-gradient(ellipse at 73% 30%, #213957, transparent 55%), var(--navy); }
.hero-inner { position: relative; display: grid; align-items: center; grid-template-columns: 1fr .9fr; min-height: 28rem; padding-block: 4.1rem; }
.hero-copy { z-index: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
.hero h1, .category-copy h1, .standard h1 { font: 400 clamp(3.15rem, 6.8vw, 6.1rem)/.99 var(--serif); letter-spacing: -.065em; }
.hero h1 em { color: var(--mint); font-weight: inherit; }
.hero p, .category-copy p { margin-top: 1.35rem; max-width: 31rem; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero p { color: #d6e1e9; }
.button { display: inline-block; border-radius: 999px; padding: .75rem 1.18rem; font-weight: 670; text-decoration: none; margin-top: 1.65rem; }
.primary { background: var(--mint); color: var(--navy); }
.primary:hover { background: #effff1; }
.secondary { border: 1px solid #687381; }
.secondary:hover { background: white; }
.hero-art { position: relative; align-self: stretch; min-height: 20rem; overflow: hidden; border-radius: .68rem; }
.hero-art img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art::after { content: ""; position: absolute; inset: 0; border: 1px solid #d5ead538; border-radius: inherit; pointer-events: none; }
.shelf-section { padding-block: 3.4rem 4.6rem; scroll-margin-top: 1rem; }
.shelf-section h2, .standard h2 { font: 400 clamp(1.8rem, 3vw, 2.65rem)/1.15 var(--serif); letter-spacing: -.04em; }
.shelf-grid { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
.shelf-grid li { min-width: 0; }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fffdfa; border: 1px solid var(--line); border-radius: .68rem; overflow: hidden; box-shadow: 0 3px 5px #1723380a; }
.card:hover { border-color: #5f7478; box-shadow: 0 6px 14px #1723381a; }
.card-copy { padding: .93rem 1rem 1.16rem; }
.card h3 { font: 700 1.26rem/1.15 var(--serif); letter-spacing: -.025em; }
.card:hover h3 { text-decoration: underline; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: .4rem; }
.mystery { --tile: #254253; }
.fantasy { --tile: #31466d; }
.romance { --tile: #65384d; }
.adventure { --tile: #315648; }
.history { --tile: #5d4633; }
.horror { --tile: #453958; }
.contemporary { --tile: #2a5260; }
.children { --tile: #6a4b28; }
.teen { --tile: #583f71; }
.folklore { --tile: #3f513a; }
.shelf-art { position: relative; overflow: hidden; background: #223044; }
.card .shelf-art { aspect-ratio: 2.05; }
.shelf-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.category-hero { background: var(--tile); color: var(--paper); overflow: hidden; }
.category-header { position: relative; min-height: 20rem; padding-block: 1.5rem 3.4rem; }
.category-header .shelf-art { position: absolute; width: min(60vw, 46rem); height: 100%; top: 0; right: 0; background: var(--tile); pointer-events: none; }
.category-header .shelf-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tile) 0%, transparent 48%, transparent 80%, var(--tile) 100%); }
.category-copy { position: relative; z-index: 1; max-width: 60%; padding-top: 2.6rem; }
.category-copy h1 { font-size: clamp(2.9rem, 6.35vw, 5.8rem); }
.category-copy p { color: #fff8ef; }
.crumb { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .9rem; }
.category-hero .crumb { position: relative; z-index: 1; }
.more { margin-top: 2.4rem; }
.more h2 { font-size: 1.48rem; }
.more ul { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.more a { display: block; padding: .5rem .8rem; text-decoration: none; border-radius: .36rem; border: 1px solid #9da7a4; }
.more a:hover { background: white; text-decoration: underline; }
.popular-empty { margin-top: 1rem; padding-block: .9rem; color: var(--muted); }
.popular-empty a { margin-top: .75rem; }
.book-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
  gap: .85rem; margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.book-list .book-list-card { display: flex; align-items: flex-start; gap: clamp(.75rem, 2vw, 1.2rem); height: 100%; padding: clamp(.75rem, 2vw, 1.2rem); }
.book-list-copy { min-width: 0; }
.book-list-copy h3 { font: 650 clamp(1.1rem, 2vw, 1.45rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.book-list-rank { display: block; margin-bottom: .2rem; color: var(--muted); font: 650 .82rem/1.3 var(--sans); }
.book-list-category { display: block; margin-top: .32rem; color: var(--muted); font-size: .85rem; }
.book-list p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.catalog-tools {
  display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1rem;
  margin-bottom: 1.5rem;
}
.catalog-search { flex: 1 1 26rem; }
.catalog-search label { display: block; margin-bottom: .3rem; color: var(--ink); font-weight: 650; }
.catalog-search .book-search { padding-bottom: 0; }
.catalog-tools > .button { margin-top: 0; padding: .5rem .9rem; }
.book-index { scroll-margin-top: 1rem; }
.book-index-letters { display: flex; flex-wrap: wrap; gap: 0 .35rem; margin-block: .65rem 1.15rem; }
.book-index-letters a { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: 999px; }
.book-index-letters a:hover { background: #e6ecdf; }
.book-index-groups { columns: 17rem 3; column-gap: 1.55rem; }
.book-index-letter { break-inside: avoid; padding: .6rem 0 .8rem; }
.book-index-letter h3 { font-size: 1.05rem; padding-block: .35rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.book-index-letter ul { list-style: none; margin: .2rem 0 0; padding: 0; }
.book-index-letter li a { display: block; padding-block: .42rem; color: var(--ink); overflow-wrap: anywhere; }
.standard { max-width: 51rem; padding-block: 2rem 4.4rem; }
.standard h1 { margin: 1.65rem 0 1.25rem; font-size: clamp(2.85rem, 6vw, 4.65rem); }
.standard h2 { font-size: 1.85rem; margin-top: 1.8rem; margin-bottom: .55rem; }
.standard p { max-width: 43rem; }
.foot { background: #e9e8df; border-top: 1px solid var(--line); }
.book-search { display: flex; gap: .5rem; max-width: 76rem; padding-bottom: .9rem; }
.book-search input { flex: 1; min-width: 0; max-width: 26rem; border-radius: 999px; padding: .52rem .95rem; border: 1px solid #9aacbd; background: #fffdfa; color: var(--ink); font: inherit; }
.book-search button, .analytics-dialog button { border: 1px solid var(--line); border-radius: 999px; padding: .46rem .95rem; background: var(--mint); color: var(--ink); font: inherit; cursor: pointer; }
:is(.wishlist-display, .wishlist-list, .idea-grid) > .promotion-break:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
.promotion-break:has(> .house-promotion[hidden]) { display: none; }
.house-promotion { margin-block: clamp(1.2rem, 3vw, 2.5rem); }
.promotion-panel {
  max-width: 42rem; padding: .75rem; border: 1px solid #d5d3ca; border-radius: 1rem;
  background: #fbf8f0; color: var(--ink); font: 1rem/1.45 var(--sans);
}
.house-promotion .promotion-feature {
  display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.35rem);
  height: auto; padding: 0; border: 0; background: transparent; text-decoration: none;
}
.promotion-feature:hover strong { text-decoration: underline; }
.house-promotion .promotion-feature img {
  flex: 0 0 auto; width: clamp(4.6rem, 13vw, 8rem); height: auto;
  aspect-ratio: 1; object-fit: contain; border-radius: .72rem;
}
.promotion-stores { display: flex; flex-wrap: wrap; gap: .2rem .55rem; margin-top: .55rem; }
.promotion-stores a[data-promotion-store] {
  display: inline-flex; align-items: center; width: auto; min-height: 44px; height: auto;
  padding: 0; border: 0; border-radius: .45rem; background: transparent;
}
.promotion-stores a[data-promotion-store] img {
  display: block; width: auto; height: 40px; aspect-ratio: auto; border-radius: 0; object-fit: contain;
}
/* Align the visible badge edges, accounting for Google Play's 41 px transparent border. */
.promotion-stores a[data-promotion-store="android"] img {
  --badge-padding: calc(40px * 41 / 168);
  height: calc(40px * 250 / 168);
  margin: calc(-1 * var(--badge-padding));
  pointer-events: none;
}
.promotion-copy { display: grid; gap: .2rem; min-width: 0; }
.promotion-studio { color: var(--muted); font-size: .76rem; }
.promotion-copy strong { font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.2; }
.promotion-description { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.reading-page .house-promotion .promotion-feature img { width: clamp(4.4rem, 10vw, 6.25rem); }
.reading-prose-short-lead > .reading-art { width: min(100%, 28rem); }
@media (min-width: 42rem) {
  .reading-prose-short-lead { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 1rem; }
  .reading-prose-short-lead > .reading-art { grid-column: 1; grid-row: 1 / 3; align-self: start; }
  .reading-prose-short-lead > .house-promotion { grid-column: 2; grid-row: 1; margin-block: 0; }
  .reading-prose-short-lead > p { grid-column: 2; grid-row: 2; }
}
.reading-page { max-width: 51rem; padding-block: 2rem 3rem; }
.book-list-cover { display: block; width: min(34%, 9.375rem); height: auto; flex: none; border-radius: .65rem; }
.reading-page h1 { line-height: 1.1; margin-top: 1.2rem; }
.reading-prose { font: 1.15rem/1.8 var(--serif); }
.reading-prose p + p { margin-top: 1.1em; }
.reading-progress { color: var(--muted); margin-block: .8rem 1rem; }
.reading-art { margin: 1.35rem 0; }
.reading-art img { display: block; width: 100%; height: auto; border-radius: .85rem; }
.reading-navigation { display: flex; gap: .45rem; flex-wrap: wrap; }
.reading-navigation [aria-disabled="true"] { color: var(--muted); opacity: .68; }
.chapter-index { margin-block: .5rem 1.25rem; }
.chapter-index > summary { width: fit-content; min-height: 2.75rem; color: var(--muted); padding-block: .55rem; cursor: pointer; }
.chapter-index > summary:hover { color: var(--ink); text-decoration: underline; }
.chapter-index ol { list-style: none; margin: .35rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.chapter-index a {
  display: flex; justify-content: space-between; align-items: baseline; min-height: 2.75rem;
  gap: .75rem; padding-block: .5rem; text-decoration: none; border-bottom: 1px solid var(--line);
}
.chapter-index a:hover { text-decoration: underline; }
.chapter-index a[aria-current] { font-weight: 700; }
.chapter-link-label { min-width: 0; }
.chapter-number { color: var(--muted); white-space: nowrap; }
.chapter-link-title { overflow-wrap: anywhere; }
.chapter-page-number { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.reading-pagination { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1.65rem; }
.reading-pagination .button { margin-top: 0; }
.reading-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; max-width: 100%; }
.reading-jump label { color: var(--muted); }
.reading-jump input {
  width: 5rem; min-width: 0; min-height: 2.75rem; padding: .42rem .55rem;
  border: 1px solid #687381; border-radius: .65rem; background: #fffdfa; color: var(--ink); font: inherit;
}
.reading-jump button { min-height: 2.75rem; padding: .43rem .78rem; color: var(--ink); cursor: pointer; font: inherit; font-weight: 670; }
.reading-jump-error { flex-basis: 100%; color: #874331; font-size: .9rem; }
.book-search-results { padding-left: 1.25rem; }
.book-search-results li { margin-top: 1.15rem; padding-block-end: .9rem; border-bottom: 1px solid var(--line); }
.standard .book-search-results h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.search-match-excerpt { border-left: 2px solid #a6b2ad; padding-inline-start: .7rem; }
.search-match-page { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.book-search-results mark { border-radius: .18em; padding-inline: .12em; background: #f5daa0; color: var(--ink); }
.search-result-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: 1.4rem; }
.search-result-navigation .button { margin-top: 0; padding: .5rem .85rem; }
.analytics-choice { color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 999px; font: inherit; padding: .15rem .65rem; cursor: pointer; }
.analytics-dialog { width: min(28rem, 90vw); border: 1px solid var(--line); border-radius: .9rem; padding: 1.3rem; background: var(--paper); color: var(--ink); }
.analytics-dialog form { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.analytics-dialog::backdrop { background: #142033a0; }
.analytics-dialog[data-first-visit] {
  position: fixed; z-index: 5; inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto; margin: 0;
  box-shadow: 0 .35rem 1.75rem #101d312e; max-height: calc(100dvh - 2rem); overflow-y: auto;
}
@media (max-width: 64rem) { .shelf-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.4rem); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.6rem .9rem; }
  .hero-art { width: 100%; min-height: 0; aspect-ratio: 2; margin-top: 1.5rem; }
  .hero h1 { font-size: clamp(3.15rem, 11vw, 4.8rem); }
  .shelf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .72rem; }
  .shelf-section { padding-block: 2.5rem 3.1rem; }
  .card-copy { padding: .72rem .78rem 1rem; }
  .card h3 { font-size: 1.14rem; }
  .category-header { min-height: 15rem; padding-bottom: 2.55rem; }
  .category-copy { max-width: 100%; padding-top: 1.6rem; }
  .category-header .shelf-art { position: relative; width: 100%; height: auto; aspect-ratio: 2.35; margin-top: 1.45rem; border-radius: .55rem; }
  .category-header .shelf-art::after { display: none; }
  .header-inner nav, .foot-inner nav { gap: .5rem .9rem; }
}
@media (max-width: 24rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .foot-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (prefers-reduced-motion: no-preference) and (any-hover: hover) {
  :is(a, button, summary, select, textarea, input:not([type="hidden"]), [role="button"], [role="tab"]):not(:disabled, [aria-disabled="true"]) {
    --lift: -.12rem;
    --squash: .985;
    --stretch: 1.025;
    --wiggle: .65deg;
    transition: transform 190ms ease-out;
  }

  :is(a, button, summary, select, textarea, input:not([type="hidden"]), [role="button"], [role="tab"]):not(:disabled, [aria-disabled="true"]):hover {
    animation: hover-spring 440ms both;
  }

  .card { --lift: -.23rem; --squash: .997; --stretch: 1.012; --wiggle: .25deg; }
  .button { --lift: -.15rem; --squash: .975; --stretch: 1.045; --wiggle: .5deg; }
  .card .shelf-art img { transition: transform 560ms cubic-bezier(.22, .75, .23, 1); }
  .card:hover .shelf-art img { transform: scale(1.065); }

  @keyframes hover-spring {
    0% { transform: translateY(0) scale(1); }
    22% { transform: translateY(.05rem) scale(var(--squash), var(--stretch)); }
    54% { transform: translateY(calc(var(--lift) * 1.45)) rotate(var(--wiggle)) scale(var(--stretch), var(--squash)); }
    77% { transform: translateY(calc(var(--lift) * .7)) rotate(calc(var(--wiggle) * -.45)) scale(1); }
    100% { transform: translateY(var(--lift)) scale(1); }
  }
}

.idea-section { margin-top: 2.3rem; }
.idea-intro { max-width: 44rem; margin-top: .65rem; color: var(--muted); }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.1rem 0 0; }
.idea-art { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: #e9e8df; }
.idea-page { padding-block: 1.65rem 4rem; }
.idea-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(1.1rem, 4vw, 3.5rem); align-items: start; margin-top: 1.4rem; }
.idea-layout > .idea-art { border-radius: .7rem; }
.idea-copy h1 { font: 400 clamp(2.55rem, 5vw, 4.5rem)/1.02 var(--serif); letter-spacing: -.055em; }
.idea-promotion-rail .house-promotion { margin-block: 1.5rem; }
@media (min-width: 78rem) {
  .idea-page { width: min(94rem, calc(100% - 5rem)); }
  .idea-layout { padding-inline-end: 17rem; }
  .idea-copy { position: relative; }
  .idea-promotion-rail { position: absolute; inset-inline-start: calc(100% + 1.75rem); top: 0; width: 15.25rem; }
  .idea-layout .idea-promotion-rail .house-promotion { margin: 0; }
  .idea-promotion-rail .promotion-feature { align-items: start; flex-direction: column; gap: .65rem; }
  .idea-promotion-rail .promotion-feature img { width: 6rem; }
}
.idea-synopsis { margin-top: 1rem; }
.idea-synopsis p + p { margin-top: .8rem; }
.idea-people { display: grid; grid-template-columns: minmax(0, max-content) 1fr; gap: .18rem .75rem; font-size: .93rem; margin: 1.25rem 0; }
.idea-people dt { font-weight: 650; }
.idea-people dd { margin: 0; }
.interest { margin-top: 1.6rem; padding: clamp(.95rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: .65rem; background: #fffdfa; scroll-margin-top: 1rem; }
.interest h2 { font: 400 1.6rem/1.2 var(--serif); }
.interest > p { margin-top: .35rem; }
.vote-status { font-weight: 650; }
.vote-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: .85rem; }
.vote-confirmed { display: inline-flex; align-items: center; gap: .45rem; color: #145530; }
.vote-confirmed span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #dbefdf; color: #145530; }
.form-error { color: #922e24; font-weight: 650; }
.interest button { font: inherit; font-weight: 700; border: 1px solid #61846a; cursor: pointer; }
.interest button:not(:disabled):active { background: #b9debf; }
.interest button:disabled { background: #f0f1eb; border-color: #d2d8ce; color: #4b5851; cursor: default; }
.email-fields { display: grid; gap: .4rem; margin-top: .8rem; font-size: .9rem; }
.email-fields > label:first-child { font-weight: 640; }
.email-fields input[type="email"] { display: block; min-width: 0; width: 100%; border: 1px solid #7b8a8e; border-radius: .3rem; padding: .55rem .65rem; font: inherit; font-size: 1rem; color: var(--ink); background: white; }
.email-consent { display: flex; align-items: flex-start; gap: .42rem; }
.email-consent input { margin: .38rem 0 0; flex-shrink: 0; }
.email-fields a { width: fit-content; }
@media (max-width: 47.5rem) { .idea-layout { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) and (any-hover: hover) {
  .idea-card .idea-art { transition: transform 460ms cubic-bezier(.22, .75, .23, 1); }
  .idea-card:hover .idea-art { transform: scale(1.035); }
  .email-fields input[type="email"] { --squash: 1; --stretch: 1.007; --lift: -.05rem; --wiggle: 0deg; }
}

.wishlist { border-top: 1px solid var(--line); }
.wishlist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.25rem; list-style: none; padding: 0; margin-block: 1.3rem 0; }
.wishlist-list li { min-width: 0; }
.wishlist-list a { display: grid; grid-template-columns: 1.9rem min(13.5rem, 42%) minmax(0, 1fr); gap: .8rem; align-items: center; height: 100%; padding-block: .75rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.wishlist-rank { align-self: start; padding-top: .25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wishlist-title { display: block; font: 650 clamp(1.12rem, 2vw, 1.4rem)/1.25 var(--serif); overflow-wrap: anywhere; }
.wishlist-category { display: block; margin-top: .32rem; color: var(--muted); font-size: .85rem; }
.wishlist-excerpt { display: block; margin-top: .4rem; color: var(--muted); font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.wishlist-list a:hover .wishlist-title { text-decoration: underline; }
.wishlist-list img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: .45rem; }
@media (max-width: 58rem) { .wishlist-list { grid-template-columns: 1fr; } }
@media (max-width: 32rem) {
  .wishlist-list a { grid-template-columns: 1.75rem minmax(0, 1fr); gap: .6rem; }
  .wishlist-list img, .wishlist-copy { grid-column: 2; }
  .wishlist-list img { width: min(100%, 13.5rem); }
}

.library-shelves {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 1rem;
  background: radial-gradient(ellipse at 81% 24%, #e5e8d9, transparent 61%),
              radial-gradient(ellipse at 9% 76%, #f0e4d4, transparent 65%), var(--paper);
}
.shelf-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; forced-color-adjust: none; }
.shelf-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
@media (forced-colors: active) { .shelf-backdrop { display: none; } }

.contact-email { margin-inline-start: .2rem; }
.contact-widget { max-width: 46rem; padding-bottom: 1.4rem; }
.contact-widget > summary { width: fit-content; cursor: pointer; font-weight: 650; text-underline-offset: .2em; padding-block: .45rem; }
.contact-widget > summary:hover { text-decoration: underline; }
.contact-widget > p { margin-top: .45rem; }
.contact-form { display: grid; gap: .75rem; margin-top: .8rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.contact-form label { display: grid; gap: .25rem; font-size: .92rem; font-weight: 650; }
.contact-form :is(input:not([type="hidden"]), textarea) {
  display: block; width: 100%; min-width: 0;
  border: 1px solid #7b8a8e; border-radius: .36rem;
  color: var(--ink); background: #fffdfa;
  font: 1rem/1.45 var(--sans); padding: .55rem .65rem;
}
.contact-form textarea { resize: vertical; }
.contact-form p { font-size: .85rem; color: var(--muted); }
.contact-form button { justify-self: start; margin-top: 0; color: var(--ink); font: 650 .92rem var(--sans); background: #fffdfa; cursor: pointer; }
@media (max-width: 33rem) { .contact-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) and (any-hover: hover) {
  .contact-form :is(input, textarea) { --lift: -.05rem; --squash: 1; --stretch: 1.007; --wiggle: 0deg; }
}
@media (max-width: 43rem) {
  .foot-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem .5rem; }
  .foot-inner a[href^="mailto:"] { white-space: nowrap; }
}

.hero { --hero-light: #213957; --hero-dark: #101d31; --hero-accent: #d4f0d9;
  background: radial-gradient(ellipse at 80% 30%, var(--hero-light) 0%, transparent 68%), var(--hero-dark); }
.hero-theme-mystery { --hero-light: #253b4f; --hero-dark: #101d31; --hero-accent: #cbe9e3; }
.hero-theme-speculative { --hero-light: #3c3b67; --hero-dark: #181c34; --hero-accent: #e4dfff; }
.hero-theme-romance { --hero-light: #56313e; --hero-dark: #2d1b2c; --hero-accent: #ffded9; }
.hero-theme-adventure { --hero-light: #314a43; --hero-dark: #182b2c; --hero-accent: #e4f0c5; }
.hero-theme-historical { --hero-light: #594833; --hero-dark: #2d2927; --hero-accent: #fae4c0; }
.hero-theme-horror { --hero-light: #343449; --hero-dark: #171927; --hero-accent: #e9def9; }
.hero-theme-contemporary { --hero-light: #385362; --hero-dark: #172d3d; --hero-accent: #d4eaf5; }
.hero-theme-children { --hero-light: #4f533c; --hero-dark: #29342f; --hero-accent: #fbe7b5; }
.hero-theme-teen { --hero-light: #504063; --hero-dark: #242237; --hero-accent: #f0def9; }
.hero-theme-folklore { --hero-light: #3d4f42; --hero-dark: #22332e; --hero-accent: #e5edcc; }

.hero-inner { gap: clamp(1.3rem, 3vw, 2.75rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { max-width: 13ch; font-size: clamp(3.05rem, 5.4vw, 5.35rem); text-wrap: balance; }
.hero .hero-tagline { margin: 0 0 .8rem; color: var(--hero-accent); font-size: .88rem; font-weight: 670; letter-spacing: .045em; }
.hero .hero-subtitle { margin-top: 1rem; color: #e6eaf0; }
.hero .primary { background: var(--hero-accent); }
.hero .primary:hover { background: #fffdf5; }
.hero-art { min-height: 0; align-self: center; isolation: isolate; width: 100%; aspect-ratio: 3 / 2; border-radius: .8rem; background: #0b1420; }
.hero-scene, .hero-inset { position: absolute; overflow: hidden; }
.hero-scene { inset: 0; }
.hero-scene::after { position: absolute; content: ""; inset: 0; pointer-events: none; background: linear-gradient(108deg,#111a2b44,transparent 55%), linear-gradient(0deg,#07132245,transparent 48%); }
.hero-inset { z-index: 1; border: 1px solid #f8f0db99; box-shadow: 0 .55rem 2rem #0008; }
.hero-inset::after { position: absolute; content: ""; inset: 0; pointer-events: none; background: linear-gradient(25deg,#0d152c29,transparent 54%); }
.hero-composition-1 .hero-inset { width: 39%; height: 47%; right: 5%; bottom: 9%; border-radius: .45rem; transform: rotate(-5deg); }
.hero-composition-2 .hero-inset { width: 34%; aspect-ratio: 1; left: 7%; bottom: 9%; border-radius: 50%; }
.hero-composition-3 .hero-inset { width: 34%; height: 87%; right: 6%; top: 7%; border-radius: 45% 45% .3rem .3rem; }
.hero-composition-4 .hero-inset { width: 47%; height: 49%; left: 7%; bottom: 10%; transform: rotate(5deg); border: .3rem solid #f9f0db; border-radius: .15rem; }
.hero-composition-5 .hero-scene { right: 27%; }
.hero-composition-5 .hero-inset { right: 0; width: 41%; height: 100%; border: 0; border-left: 1px solid #f8f0db85; }
.hero-composition-6 .hero-inset { width: 43%; height: 53%; top: 8%; right: 6%; border-radius: 1rem .2rem 1rem .2rem; transform: rotate(3deg); }
.hero-composition-7 .hero-inset { width: 47%; height: 45%; bottom: 7%; right: 7%; border-radius: 5rem 5rem .4rem .4rem; }
.hero-composition-8 .hero-inset { width: 34%; height: 72%; left: 8%; top: 14%; border: .27rem solid #f9f0dbd8; border-radius: .3rem; transform: rotate(-8deg); }
.hero-composition-9 .hero-inset { width: 75%; height: 33%; bottom: 7%; left: 12.5%; border-radius: .34rem; }
.hero-composition-10 .hero-inset { width: 43%; aspect-ratio: 1; right: 5%; top: 12%; border-radius: 50% 50% 50% .5rem; }

@media (max-width: 43rem) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 2.3rem 1.35rem; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 10.7vw, 4.5rem); }
  .hero-art { margin-top: 0; }
}
@media (max-height: 31rem) and (min-width: 43.01rem) {
  .hero-inner { min-height: 0; padding-block: 1.45rem; }
  .hero h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); }
}

.bookstore-view .shelf-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.85rem, 2.2vw, 1.6rem);
  row-gap: clamp(1.25rem, 3vw, 2.4rem);
}
.shelf-item { grid-column: span var(--shelf-span); }
.shelf-span-3 { --shelf-span: 3; }
.shelf-span-4 { --shelf-span: 4; }
.shelf-span-5 { --shelf-span: 5; }
.shelf-span-6 { --shelf-span: 6; }
.shelf-span-7 { --shelf-span: 7; }
.shelf-span-8 { --shelf-span: 8; }
.shelf-span-9 { --shelf-span: 9; }

.bookstore-view .shelf-item .card { position: relative; height: auto; border-radius: .85rem; }
.bookstore-view .shelf-item .card-copy { padding: clamp(.75rem, 2vw, 1.55rem); }
.bookstore-view .shelf-item .card h3 { font-size: clamp(1.21rem, 2vw, 1.85rem); overflow-wrap: anywhere; }
.bookstore-view .shelf-item .card p { max-width: 27rem; }
.bookstore-view .shelf-treatment-scene .card {
  isolation: isolate; justify-content: end; min-height: clamp(13rem, 20vw, 22rem);
  color: #fffaf2; background: var(--tile); border-color: #15233833;
}
.bookstore-view .shelf-treatment-scene .shelf-art {
  position: absolute; inset: 0; z-index: -1; aspect-ratio: auto;
}
.bookstore-view .shelf-treatment-scene .shelf-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 18%, #0a15222c 34%, #0b142eef 85%, #0c142b 100%);
}
.bookstore-view .shelf-treatment-scene .card h3 { font-size: clamp(1.4rem, 2.45vw, 2.5rem); }
.bookstore-view .shelf-treatment-scene .card p { color: #f0ebdf; }

.bookstore-view .shelf-treatment-folio .card { background: #fffdf6; border-color: #a799866b; }
.bookstore-view .shelf-treatment-folio .shelf-art {
  margin: .48rem .48rem 0; border-radius: .52rem .52rem .24rem .24rem; aspect-ratio: 2.4;
}
.bookstore-view .shelf-treatment-folio .card-copy { border-left: .18rem solid var(--tile); margin-inline-start: .45rem; }

.bookstore-view .shelf-treatment-print .card { border: 1px solid #a7998654; background: #f8f1e5; }
.bookstore-view .shelf-treatment-print .shelf-art { aspect-ratio: 1.68; }
.bookstore-view .shelf-treatment-print .card-copy { background: #f8f1e5; }
.bookstore-view .shelf-treatment-print { margin-top: clamp(.35rem, 1.6vw, 1.35rem); }

.bookstore-view .shelf-treatment-side .card {
  display: grid; grid-template-columns: .87fr 1.13fr; min-height: clamp(9.4rem, 13.5vw, 14.5rem);
  background: var(--tile); color: white;
}
.bookstore-view .shelf-treatment-side .shelf-art { aspect-ratio: auto; min-height: 100%; }
.bookstore-view .shelf-treatment-side .card-copy { align-self: center; }
.bookstore-view .shelf-treatment-side .card p { color: #fff9f0; }

.bookstore-alcove .shelf-heading, .bookstore-counter .shelf-heading,
.bookstore-display-table .shelf-heading { justify-content: flex-start; gap: .75rem 1.35rem; }
.bookstore-gallery .shelf-heading, .bookstore-book-wall .shelf-heading { margin-inline-start: clamp(0rem, 5vw, 4rem); }

.wishlist-display {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.5rem); align-items: start;
}
.wishlist-display li { grid-column: span 4; }
.wishlist-display-pair li:nth-child(1) { grid-column: span 7; }
.wishlist-display-pair li:nth-child(2) { grid-column: span 5; margin-top: 1.75rem; }
.wishlist-display-trio li:nth-child(1), .wishlist-display-trio li:nth-child(4),
.wishlist-display-trio li:nth-child(5) { grid-column: span 6; }
.wishlist-display-trio li:nth-child(2), .wishlist-display-trio li:nth-child(3) { grid-column: span 3; margin-top: 1.2rem; }
.wishlist-display-solo li:nth-child(1) { grid-column: 1 / -1; }
.wishlist-display-solo li:nth-child(2), .wishlist-display-solo li:nth-child(3),
.wishlist-display-solo li:nth-child(19), .wishlist-display-solo li:nth-child(20) { grid-column: span 6; }
.wishlist-display a {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .72rem;
  height: auto; padding: .44rem; border: 1px solid #d9cec0; border-radius: .85rem;
  background: #fffaf1; box-shadow: 0 3px 9px #28201c10;
}
.wishlist-display a:hover { border-color: #97816a; }
.wishlist-display a img { display: block; width: 100%; min-width: 0; border-radius: .5rem; aspect-ratio: 3/2; }
.wishlist-display .wishlist-rank {
  position: absolute; z-index: 1; inset: .88rem auto auto .88rem; min-width: 2.05rem; height: 2.05rem;
  padding: 0 .43rem; align-content: center; text-align: center;
  border-radius: 999px; background: #111e2fe8; color: #fff9ef;
}
.wishlist-display .wishlist-copy { display: block; padding: .05rem .48rem .6rem; }
.wishlist-display .wishlist-title { font-size: clamp(1.15rem, 2vw, 1.75rem); }
.wishlist-display li:nth-child(n+7):nth-child(3n+1) { margin-top: .72rem; }
.wishlist-display-solo li:first-child a {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center;
  gap: clamp(.75rem, 3vw, 2rem);
}
.wishlist-display-solo li:first-child .wishlist-title { font-size: clamp(1.65rem, 3.1vw, 2.7rem); }
.wishlist-display-solo li:first-child .wishlist-copy { padding-inline-end: clamp(.75rem, 2vw, 1.8rem); }

@media (min-width: 61rem) {
  :is(.bookstore-gallery,.bookstore-counter,.bookstore-book-wall) .hero-copy { grid-area: 1 / 2; }
  :is(.bookstore-gallery,.bookstore-counter,.bookstore-book-wall) .hero-art { grid-area: 1 / 1; }
}
@media (max-width: 61rem) {
  .wishlist-display { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wishlist-display li:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .wishlist-display-solo li:first-child { grid-column: 1 / -1; }
  .bookstore-view .shelf-treatment-side .card { grid-template-columns: 1fr; }
  .bookstore-view .shelf-treatment-side .shelf-art { aspect-ratio: 2.3; }
}
@media (max-width: 43rem) {
  .bookstore-view .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .78rem; }
  .bookstore-view .shelf-item { grid-column: span 1; }
  .bookstore-view :is(.shelf-span-7,.shelf-span-8,.shelf-span-9) { grid-column: 1 / -1; }
  .bookstore-view .shelf-treatment-scene .card { min-height: 13.5rem; }
  .bookstore-view .shelf-treatment-print { margin-top: .35rem; }
  .bookstore-view .shelf-item .card p { font-size: .86rem; }
  .wishlist-display { grid-template-columns: 1fr; }
  .wishlist-display li:nth-child(n) { grid-column: 1 / -1; }
  .wishlist-display-solo li:first-child a { display: flex; align-items: stretch; }
}

/* Category shelves keep rank order as card sizes and frames change. */
.category-books :is(.book-list, .wishlist-list, .idea-grid) { align-items: start; }
.category-books :is(.book-list, .wishlist-list, .idea-grid) > li { min-width: 0; }
.category-books .book-list .book-list-card, .category-books .idea-grid .idea-card {
  height: auto; gap: clamp(.75rem, 1.7vw, 1.3rem);
}
.category-books #popular-books .book-list-cover { width: min(100%, 15rem); }
.category-books #popular-books :is(.category-frame-feature, .category-frame-reverse) .book-list-cover {
  width: min(100%, 20rem);
}
.category-books .category-frame-feature .book-list-card {
  background: color-mix(in srgb, var(--tile) 9%, #fffdfa);
  border-color: color-mix(in srgb, var(--tile) 23%, var(--line));
  border-radius: 1.15rem;
}
.category-books .category-frame-reverse .book-list-card {
  flex-direction: column-reverse;
  background: #fffdfa;
  border-radius: .65rem 1.35rem 1.35rem .65rem;
  border-bottom: 3px solid color-mix(in srgb, var(--tile) 55%, var(--line));
}
.category-books :is(.category-frame-folio, .category-frame-ruled) .book-list-card {
  border-top-color: color-mix(in srgb, var(--tile) 25%, var(--line));
}
.category-books .category-frame-ruled .book-list-card {
  background: transparent; border-width: 1px 0 0; box-shadow: none;
}
.category-books .category-frame-ruled .book-list-card:hover { background: #fffdfa; }

.category-books #wishlist .wishlist-list > li:not(.promotion-break) > a {
  grid-template-columns: 1.6rem minmax(0, 1fr); align-items: start; height: auto;
  padding: .8rem .75rem; border-radius: .75rem;
}
.category-books #wishlist .wishlist-list img, .category-books #wishlist .wishlist-copy { grid-column: 2; }
.category-books #wishlist .wishlist-list img { width: min(100%, 13.5rem); }
.category-books #wishlist :is(.category-frame-folio, .category-frame-reverse) img { border-radius: .3rem; }
.category-books #wishlist .category-frame-folio img { width: min(100%, 12rem); }
.category-books #wishlist .category-frame-feature > a {
  background: color-mix(in srgb, var(--tile) 8%, #fffdfa);
  border: 1px solid color-mix(in srgb, var(--tile) 20%, var(--line));
}
.category-books #wishlist .category-frame-reverse > a {
  background: #fffdfa;
  border: 1px solid var(--line); border-bottom: 2px solid color-mix(in srgb, var(--tile) 42%, var(--line));
}
.category-books #wishlist .category-frame-ruled > a { border-radius: 0; }
.category-books #wishlist .wishlist-list > li:not(.promotion-break) > a:hover { background: #fffdfa; }

.category-books .idea-grid .idea-card { gap: 0; }
.category-books .idea-grid .category-span-3 .idea-art { aspect-ratio: 6 / 5; }
.category-books .idea-grid .category-span-5 .idea-art { aspect-ratio: 17 / 10; }
.category-books .idea-grid .category-frame-ruled .idea-card {
  background: transparent; border-width: 0 0 1px; border-radius: .65rem .65rem 0 0; box-shadow: none;
}
.category-books .idea-grid .category-frame-ruled .card-copy { padding-inline: .35rem; }

@media (min-width: 36rem) {
  .category-books #popular-books :is(.category-frame-feature, .category-frame-reverse) .book-list-card {
    align-items: center;
  }
  .category-books #popular-books .category-frame-feature .book-list-card { flex-direction: row; }
  .category-books #popular-books .category-frame-reverse .book-list-card { flex-direction: row-reverse; }
  .category-books #popular-books :is(.category-frame-feature, .category-frame-reverse) .book-list-cover {
    width: min(53%, 22rem); min-width: 15rem;
  }
  .category-books #wishlist .wishlist-list > li.category-frame-feature > a {
    grid-template-columns: 1.6rem min(41%, 13.5rem) minmax(0, 1fr); align-items: center;
  }
  .category-books #wishlist .wishlist-list > li.category-frame-reverse > a {
    grid-template-columns: 1.6rem minmax(0, 1fr) min(41%, 13.5rem); align-items: center;
  }
  .category-books #wishlist :is(.category-frame-feature, .category-frame-reverse) img { width: 100%; grid-row: 1; }
  .category-books #wishlist .category-frame-reverse img { grid-column: 3; }
  .category-books #wishlist .category-frame-feature .wishlist-copy { grid-column: 3; grid-row: 1; }
  .category-books #wishlist .category-frame-reverse .wishlist-copy { grid-column: 2; grid-row: 1; }
}

@media (min-width: 58rem) {
  .category-books :is(.book-list, .wishlist-list, .idea-grid) {
    grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.6rem);
  }
  .category-books .category-span-3 { grid-column: span 3; }
  .category-books .category-span-4 { grid-column: span 4; }
  .category-books .category-span-5 { grid-column: span 5; }
  .category-books .category-span-6 { grid-column: span 6; }
  .category-books .category-span-7 { grid-column: span 7; }
  .category-books .category-span-8 { grid-column: span 8; }
  .category-books .category-span-12 { grid-column: 1 / -1; }
}

.bookstore-view #popular-books .book-list { align-items: start; gap: clamp(.85rem, 2vw, 1.5rem); }
.bookstore-view #popular-books .book-list-card { height: auto; padding: 0; gap: 0; }
.bookstore-view #popular-books .book-list-cover { width: 100%; border-radius: 0; }
.bookstore-view #popular-books .book-list-copy { padding: .9rem 1rem 1rem; }
.bookstore-view #popular-books .book-list > li:first-child .book-list-card {
  background: #f1ebdf; border-radius: 1.08rem;
}
.bookstore-view #popular-books .book-list > li:nth-child(4n + 2) .book-list-card {
  border-radius: .58rem 1rem 1rem .58rem;
}
@media (min-width: 61.001rem) {
  .bookstore-view #popular-books .book-list { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bookstore-view #popular-books .book-list > li { grid-column: span 4; }
  .bookstore-view #popular-books .book-list > :is(li:first-child, li:nth-child(5)) { grid-column: span 7; }
  .bookstore-view #popular-books .book-list > :is(li:nth-child(2), li:nth-child(6)) { grid-column: span 5; }
  .bookstore-view #popular-books .book-list > :is(li:nth-child(3), li:nth-child(4)) { grid-column: span 6; }
  :is(.bookstore-gallery, .bookstore-stacks) #popular-books .book-list > li:first-child { grid-column: span 8; }
  :is(.bookstore-gallery, .bookstore-stacks) #popular-books .book-list > li:nth-child(2) { grid-column: span 4; }
}
@media (min-width: 43.001rem) and (max-width: 61rem) {
  .bookstore-view #popular-books .book-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bookstore-view #popular-books .book-list > li:first-child { grid-column: 1 / -1; }
  .bookstore-view #popular-books .book-list > li:first-child .book-list-card {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center;
  }
}
