/* The new inkhorn.store: a light, neutral bookstore. Inkhorn's teal, gold and cream are accents. */
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --teal: #073C4D;
  --teal-hover: #0B4F66;
  --teal-tint: #EDF3F4;
  --gold: #DFA14C;
  --gold-text: #875812;
  --gold-tint: #FBF2E4;
  --cream: #F4EFE6;
  --cream-2: #FAF8F3;
  --ink: #111111;
  --ink-2: #5C5C5C;
  --ink-3: #8D8D8D;
  --line: #E8E5DF;
  --line-2: #F0EEE9;
  --bg: #FFFFFF;
  --danger: #B42318;
  --radius: 18px;
  --wrap: 1240px;
  --gutter: 32px;
  --shadow-cover: 0 1px 1px rgba(0,0,0,.05), 0 14px 30px -16px rgba(0,0,0,.38);
  --shadow-pop: 0 20px 60px -20px rgba(10,30,40,.35), 0 2px 8px rgba(0,0,0,.06);
}
@media (max-width: 720px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- the preview note ---------- */
.preview-note { background: var(--gold-tint); color: var(--gold-text); font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 48px; position: relative; text-align: center; }
.preview-note__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 30px; font-size: 20px; line-height: 1; color: var(--gold-text); }
.preview-note__close:hover { background: rgba(135,88,18,.1); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); }
.top__bar { height: 70px; display: flex; align-items: center; gap: 28px; }
.top__logo { display: flex; align-items: center; flex: none; }
.top__logo img { height: 25px; width: auto; }
.top__nav { display: flex; gap: 4px; align-items: center; }
.top__nav > a, .top__navbtn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .15s, background .15s; }
.top__nav > a:hover, .top__navbtn:hover, .dd.is-open > .top__navbtn { color: var(--ink); background: var(--cream-2); }
.top__nav > a.is-on, .top__navbtn.is-on { color: var(--ink); font-weight: 600; }
.top__navbtn .icon { width: 15px; height: 15px; margin-right: -3px; transition: transform .2s; }
.top__search { flex: 1; min-width: 0; max-width: 420px; margin-left: auto; position: relative; }
.search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line-2); transition: border-color .15s, background .15s, box-shadow .15s; }
.search:focus-within { background: #fff; border-color: var(--line); box-shadow: 0 0 0 4px var(--teal-tint); }
.search input { flex: 1; width: 0; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search__clear { width: 26px; height: 26px; border-radius: 26px; margin-right: -6px; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--ink-2); flex: none; }
.search__clear:hover { background: #DCD7CE; color: var(--ink); }
.search__clear .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.search__clear[hidden] { display: none; }
.search input::placeholder { color: var(--ink-3); }
.search .icon { color: var(--ink-3); }
.top__end { display: flex; align-items: center; gap: 8px; flex: none; }
.top__link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.top__link:hover { color: var(--ink); background: var(--cream-2); }
.avatar { width: 38px; height: 38px; border-radius: 38px; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.avatar--btn { transition: box-shadow .15s; }
.avatar--btn:hover, .dd.is-open > .avatar--btn { box-shadow: 0 0 0 4px var(--teal-tint); }
.avatar--sm { width: 40px; height: 40px; font-size: 15px; background: var(--cream); color: var(--teal); }
.top__cart { position: relative; width: 40px; height: 40px; border-radius: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.top__cart:hover { background: var(--cream-2); color: var(--ink); }
.top__cart .badge { position: absolute; top: 1px; right: -1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 19px; background: var(--gold); color: #1B1408; font-size: 11.5px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; animation: pop .25s cubic-bezier(.2,.9,.3,1.3); }
.top__icon { width: 40px; height: 40px; border-radius: 40px; display: none; align-items: center; justify-content: center; color: var(--ink); }
.top__icon:hover { background: var(--cream-2); }
.results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 8px; z-index: 50; }
.results__item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.results__item:hover, .results__item.is-on { background: var(--cream-2); }
.results__item img { width: 36px; aspect-ratio: 2/3; border-radius: 3px; object-fit: cover; }
.results__t { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.results__s { font-size: 13px; color: var(--ink-2); }
.results__all { display: block; padding: 10px 8px 6px; font-size: 14px; font-weight: 600; color: var(--teal); }
.results__none { padding: 14px 10px; color: var(--ink-2); font-size: 14.5px; }
.mnav { display: none; }

/* narrower laptops: the search folds into an icon so the links, the cart and Sign in keep their room */
@media (max-width: 1100px) {
  .top__search { display: none; }
  .top__search.is-open { display: block; position: absolute; left: 0; right: 0; top: 70px; max-width: none; padding: 10px var(--gutter) 12px; background: #fff; border-bottom: 1px solid var(--line-2); margin: 0; }
  .top__search.is-open .results { left: var(--gutter); right: var(--gutter); }
  .top__icon { display: inline-flex; }
  .top__link .label { display: none; }
  .top__link { padding: 0; width: 40px; justify-content: center; }
  .top__end { margin-left: auto; }
}
@media (max-width: 980px) {
  .top__nav { display: none; }
  .top__bar { gap: 12px; }
}
@media (max-width: 720px) {
  .top__bar { height: 62px; }
  .top__logo img { height: 22px; }
  .top__search { display: none; }
  .top__search.is-open { display: block; position: absolute; left: 0; right: 0; top: 62px; max-width: none; padding: 10px var(--gutter) 12px; background: #fff; border-bottom: 1px solid var(--line-2); margin: 0; }
  .top__search.is-open .results { left: var(--gutter); right: var(--gutter); }
  .top__icon { display: inline-flex; }
  .top__link .label { display: none; }
  .top__link { padding: 0; width: 40px; justify-content: center; }
  .top__end { margin-left: auto; }
  .top__signin { height: 36px; padding: 0 14px; font-size: 14.5px; }
}
@media (max-width: 980px) {
  .mnav { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 12px; scrollbar-width: none; }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--cream-2); font-size: 14px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); }
  .mnav a.is-on { background: var(--teal); color: #fff; border-color: var(--teal); }
}

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: background .15s, transform .1s, box-shadow .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-hover); }
.btn--secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--secondary:hover { border-color: #CFCAC0; background: var(--cream-2); }
.btn--quiet { color: var(--teal); padding: 0 12px; }
.btn--quiet:hover { background: var(--teal-tint); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; gap: 7px; }
.btn--block { width: 100%; }
.btn--danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: #CFCAC0; color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--cream); color: var(--ink-2); }
.tag--new { background: var(--gold-tint); color: var(--gold-text); }
.tag--own { background: var(--teal-tint); color: var(--teal); }
.tag--coll { background: var(--teal-tint); color: var(--teal); }
.tag--coll .icon { width: 14px; height: 14px; }
a.tag:hover { filter: brightness(.97); }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.kicker--gold { color: var(--gold-text); }
.link { color: var(--teal); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
.section { padding: 64px 0 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section__title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.section__sub { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.section__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; color: var(--teal); white-space: nowrap; }
.section__more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .section { padding-top: 44px; } .section__title { font-size: 23px; } }

/* ---------- hero ---------- */
.hero { margin-top: 28px; background: var(--cream); border-radius: 32px; padding: 56px 64px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; overflow: hidden; }
.hero__title { margin: 14px 0 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.hero__sub { margin: 10px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.hero__by { margin: 16px 0 0; font-size: 16px; color: var(--ink-2); }
.hero__by a { color: var(--ink); font-weight: 600; }
.hero__desc { margin: 18px 0 0; max-width: 520px; color: var(--ink-2); font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__price { margin: 22px 0 0; font-size: 15px; color: var(--ink-2); display: flex; gap: 18px; flex-wrap: wrap; }
.hero__price strong { color: var(--ink); font-weight: 700; }
.hero__actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero__cover { width: min(300px, 80%); border-radius: 6px; box-shadow: 0 2px 2px rgba(0,0,0,.05), 0 34px 60px -26px rgba(0,0,0,.5); transition: opacity .25s; }
.hero__picks { margin-top: 30px; display: flex; gap: 12px; align-items: center; }
.hero__picks span { font-size: 13.5px; color: var(--ink-3); font-weight: 500; margin-right: 4px; }
.hero__pick { width: 44px; border-radius: 4px; overflow: hidden; opacity: .55; transition: opacity .15s, transform .15s; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); }
.hero__pick:hover { opacity: .9; transform: translateY(-2px); }
.hero__pick.is-on { opacity: 1; outline: 2px solid var(--teal); outline-offset: 3px; }
.hero__pick img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
/* the home hero: the cover runs from the top of the text to the bottom of the thumbnails (Gift, November 9) */
@media (min-width: 981px) {
  .hero--book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 56px; }
  .hero--book .hero__main { display: flex; flex-direction: column; align-items: flex-start; min-height: 600px; }
  .hero--book .kicker { line-height: 1; }
  .hero--book .hero__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero--book .hero__picks { margin-top: auto; padding-top: 28px; }
  .hero--book .hero__stage { position: relative; min-height: 0; }
  .hero--book .hero__stage a { position: absolute; inset: 0; display: flex; justify-content: center; }
  .hero--book .hero__cover { height: 100%; width: auto; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
}
@media (min-width: 981px) and (max-width: 1239px) { .hero--book { padding: 48px 44px; gap: 40px; } }
@media (min-width: 1240px) { .hero--book .hero__main { min-height: 644px; } }
@media (max-width: 1279px) { .hero__picks span { display: none; } }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px 40px; gap: 26px; }
  .hero__stage { order: -1; min-height: 0; }
  .hero__stage a { display: flex; justify-content: center; width: 100%; }
  .hero__cover { width: 220px; max-width: 62%; }
}
@media (max-width: 720px) {
  .hero { margin-top: 16px; border-radius: 26px; padding: 28px 22px 32px; }
  .hero__picks { gap: 8px; margin-top: 24px; }
  .hero__picks span { display: none; }
  .hero__pick { width: 30px; }
}

/* ---------- book cards ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 24px) / 6); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.rail { position: relative; }
.rail__btn { position: absolute; top: 36%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 46px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: 0 12px 26px -12px rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .15s, transform .15s; }
.rail__btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.rail__btn--prev { left: -23px; }
.rail__btn--next { right: -23px; }
.rail__btn[hidden] { display: none; }
@media (hover: none), (max-width: 720px) { .rail__btn { display: none !important; } }
@media (max-width: 1100px) { .row { grid-auto-columns: calc((100% - 4 * 20px) / 4.6); gap: 20px; } }
@media (max-width: 720px) { .row { grid-auto-columns: 40%; gap: 16px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); } }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.card__art { position: relative; display: block; border-radius: 6px; }
.card__art img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-cover); background: var(--cream); transition: transform .2s, box-shadow .2s; }
.card:hover .card__art img { transform: translateY(-4px); box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 22px 34px -16px rgba(0,0,0,.42); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.card__badges .tag { height: 22px; font-size: 11.5px; padding: 0 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.card__play { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 40px; background: rgba(255,255,255,.95); color: var(--teal); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); transition: transform .15s, background .15s; }
.card__play:hover { transform: scale(1.06); background: #fff; }
.card__play .icon { width: 17px; height: 17px; margin-left: 2px; }
.card__play.is-playing .icon { margin-left: 0; }
.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.card__title { font-weight: 600; font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__by { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.card__price { font-weight: 700; }
.card__price small { font-weight: 500; color: var(--ink-2); font-size: 13.5px; }
.card__formats { display: flex; gap: 6px; color: var(--ink-3); }
.card__formats .icon { width: 16px; height: 16px; }
.card__own { font-size: 13.5px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 5px; }
.card__actions { margin-top: 10px; display: flex; gap: 8px; }
.card__actions .btn { flex: 1; height: 38px; padding: 0 10px; font-size: 14px; }

/* ---------- promo cards ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.promo { border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; position: relative; overflow: hidden; }
.promo--cream { background: var(--cream-2); border: 1px solid var(--line-2); }
.promo--teal { background: var(--teal); color: #fff; }
.promo--teal .kicker { color: rgba(255,255,255,.62); }
.promo__title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; max-width: 420px; }
.promo__text { margin: 0; color: var(--ink-2); max-width: 440px; }
.promo--teal .promo__text { color: rgba(255,255,255,.78); }
.promo__actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; }
.promo--teal .btn--primary { background: #fff; color: var(--teal); }
.promo--teal .btn--primary:hover { background: var(--cream); }
.promo__art { position: absolute; right: 28px; bottom: -36px; display: flex; gap: 10px; transform: rotate(-8deg); opacity: .95; }
.promo__art img { width: 76px; border-radius: 4px; box-shadow: 0 12px 26px -10px rgba(0,0,0,.6); }
@media (max-width: 1100px) { .promo__art { display: none; } }
@media (max-width: 720px) { .promo { padding: 26px; border-radius: 24px; min-height: 0; } .promo__title { font-size: 23px; } }

/* ---------- collections ---------- */
.colls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) { .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .colls { grid-template-columns: 1fr; gap: 18px; }
  .colls--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
  .colls--row::-webkit-scrollbar { display: none; }
  .colls--row > * { scroll-snap-align: start; }
}
.coll { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.coll:hover { border-color: #D8D3CA; box-shadow: 0 18px 36px -26px rgba(0,0,0,.4); }
.coll__art { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--cream); padding: 22px 28px; overflow: hidden; }
.coll__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.coll__meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; min-height: 26px; }
.coll__name { margin: 2px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.coll__name a::after { content: ''; position: absolute; inset: 0; border-radius: 26px; }
.coll__blurb { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.coll__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; color: var(--teal); }
.coll:hover .coll__go { text-decoration: underline; text-underline-offset: 3px; }
.fan { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.fan img { width: 31%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; margin: 0 -5%; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 16px 28px -14px rgba(0,0,0,.5); transform: rotate(var(--r)) translateY(var(--y)); transition: transform .3s cubic-bezier(.2,.9,.3,1); }
.fan--1 img { width: 36%; margin: 0; }
.fan--2 img { width: 33%; margin: 0 -3%; }
.fan--4 img { width: 27%; margin: 0 -4.4%; }
.coll:hover .fan img { transform: rotate(calc(var(--r) * 1.5)) translateY(calc(var(--y) - 4%)); }
.fan--lg { min-height: 360px; }
.fan--lg img { width: 40%; max-width: 230px; }
.fan--lg.fan--4 img { width: 33%; }
.fan--lg.fan--1 img { width: 62%; max-width: 280px; }
.hero--coll .hero__stage { min-height: 400px; }
.hero__note { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.seg--coll { margin-top: 24px; }
.hero--coll .hero__actions { margin-top: 14px; }
.hero--coll .kicker { display: block; }
.hero--coll .hero__desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hero__coll { margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.05); font-size: 14.5px; color: var(--ink-2); transition: background .15s; }
.hero__coll:hover { background: #fff; }
.hero__coll strong { color: var(--ink); font-weight: 600; }
.hero__coll .mini { width: 58px; }
.hero__coll .mini img { width: 24px; }
@media (max-width: 980px) { .fan--lg { min-height: 0; padding: 8px 0 4px; } .hero--coll .hero__stage { min-height: 0; } .fan--lg img { width: 30%; } .fan--lg.fan--1 img { width: 44%; } }
/* A collection's hero: the fanned covers span the text beside them, from the top of the label to the last line
   (Gift, November 10). fitFan() scales the fan to the text; the covers overlap a little more so it fits the width.
   Below 1240 pixels there isn't the width for that, so the covers sit above the text instead. */
@media (min-width: 1240px) {
  .hero--coll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .hero--coll .hero__stage, .hero--coll .fan--lg { min-height: 0; }
  .hero--coll .fan--4 img { margin: 0 -10%; }
  .hero--coll .fan--3 img { margin: 0 -9%; }
}
@media (min-width: 981px) and (max-width: 1239px) {
  .hero--coll { grid-template-columns: minmax(0, 1fr); padding: 44px 48px 48px; gap: 28px; }
  .hero--coll .hero__stage { order: -1; min-height: 0; }
  .hero--coll .fan--lg { min-height: 0; padding: 8px 0 4px; }
  .hero--coll .fan--lg img { width: 24%; max-width: 190px; }
  .hero--coll .fan--lg.fan--1 img { width: 30%; }
}

/* ---------- authors ---------- */
.authors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .authors { grid-template-columns: 1fr; } }
/* An author's photo spans the text beside it: from the top of the name's capitals to the baseline of the last line
   (Gift, November 10). text-box trims the space above and below the text, so the row is exactly that tall. */
.author { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; padding: 24px; border-radius: 26px; border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.author:hover { border-color: #D8D3CA; box-shadow: 0 16px 34px -24px rgba(0,0,0,.3); }
.author__photo { position: relative; }
.author__photo img, .ahero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 18px; background: var(--cream); }
.author__text, .ahero__text, .hero--coll .hero__text { text-box: trim-both cap alphabetic; }
.ahero { margin-top: 26px; display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 40px; }
.ahero__photo { position: relative; }
.ahero__photo img { border-radius: 24px; }
.ahero__role { margin: 0; color: var(--gold-text); font-size: 15px; font-weight: 600; }
.ahero__name { margin-top: 14px; }
.ahero__bio { margin: 16px 0 0; max-width: 720px; }
@media (max-width: 900px) {
  .ahero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ahero__photo { width: 148px; height: 180px; }
}
.author__name { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.author__role { margin: 4px 0 0; color: var(--gold-text); font-size: 14px; font-weight: 600; }
.author__bio { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.author__count { margin-top: 12px; display: block; font-weight: 600; font-size: 14.5px; color: var(--teal); }
.author__count .icon { vertical-align: -3px; margin-left: 2px; }
@media (max-width: 560px) { .author { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; } .author__photo { width: 96px; height: 116px; } }

/* ---------- catalogue tools ---------- */
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tools__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px 0; }
.tools__chips::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 4px; background: var(--cream-2); border: 1px solid var(--line-2); border-radius: 999px; flex: none; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg--block { display: flex; width: 100%; }
.seg--block button { flex: 1; height: 40px; }
.seg--gift button { height: auto; min-height: 46px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; border-radius: 18px; }
.seg--gift { border-radius: 22px; }
.seg--gift button small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.seg--gift button.is-on small { color: var(--ink-2); }
.seg button.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
/* ---------- the site's own dropdowns ---------- */
.dd { position: relative; flex: none; }
.dd__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s; }
.dd__btn:hover, .dd.is-open > .dd__btn { border-color: #CFCAC0; background: var(--cream-2); }
.dd__k { color: var(--ink-3); font-weight: 500; }
.dd__btn .icon--sort { display: none; color: var(--ink-3); }
@media (max-width: 720px) { .dd__k { display: none; } .dd__btn .icon--sort { display: block; } .dd__btn { padding-left: 14px; } }
.dd__btn .icon { width: 16px; height: 16px; color: var(--ink-2); transition: transform .2s; }
.dd.is-open > [data-act="dd"] .icon--chev { transform: rotate(180deg); }
.dd__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 228px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 70; animation: ddIn .16s cubic-bezier(.2,.9,.3,1); transform-origin: top left; }
.dd__menu[hidden] { display: none; }
.dd__menu--right { left: auto; right: 0; transform-origin: top right; }
.dd__menu a, .dd__menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; transition: background .12s; }
.dd__menu a:hover, .dd__menu button:hover, .dd__menu a:focus-visible, .dd__menu button:focus-visible { background: var(--cream-2); outline: none; }
.dd__menu .icon--sm { color: var(--ink-2); }
.dd__opt .icon { margin-left: auto; color: var(--teal) !important; visibility: hidden; }
.dd__opt[aria-selected="true"] { font-weight: 600; }
.dd__opt[aria-selected="true"] .icon { visibility: visible; }
.dd__who { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; line-height: 1.35; }
.dd__who strong { font-size: 15px; }
.dd__who span { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.dd__sep { height: 1px; background: var(--line-2); margin: 4px 6px; }
.dd__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px 6px; }
.dd__menu--acct { min-width: 260px; }
.dd__menu--coll { width: 390px; padding: 8px; }
.dd__menu .dd__coll { gap: 14px; padding: 10px 12px; }
.dd__coll strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.dd__coll small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.dd__menu .dd__all { margin-top: 6px; border-top: 1px solid var(--line-2); border-radius: 0 0 12px 12px; color: var(--teal); font-weight: 600; justify-content: space-between; }
.dd__menu .dd__all .icon { color: var(--teal); }
.mini { display: flex; flex: none; width: 66px; padding-right: 2px; }
.mini img { width: 28px; aspect-ratio: 2/3; border-radius: 3px; object-fit: cover; box-shadow: 0 3px 8px -3px rgba(0,0,0,.45); margin-right: -10px; outline: 1.5px solid #fff; }
.mini img:nth-child(2) { transform: translateY(-2px); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.count { color: var(--ink-3); font-size: 14.5px; margin: -14px 0 22px; }
@media (max-width: 720px) {
  .tools .dd { order: 1; margin-left: auto; }
  .tools__chips { order: 2; flex: 1 1 100%; }
}
.empty { text-align: center; padding: 64px 20px; color: var(--ink-2); }
.empty__icon { width: 64px; height: 64px; border-radius: 64px; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); margin-bottom: 14px; }
.empty__title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--ink); }
.empty p { margin: 0 auto; max-width: 420px; }
.empty .btn { margin-top: 20px; }

/* ---------- value props ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
@media (max-width: 980px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; gap: 18px; } }
.value { display: flex; gap: 14px; }
.value__icon { width: 44px; height: 44px; border-radius: 44px; background: var(--cream); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.value__t { font-weight: 700; font-size: 15.5px; }
.value__s { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }

/* ---------- book page ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); padding: 22px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 14px; height: 14px; }
.pdp { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; padding-top: 22px; align-items: start; }
@media (max-width: 980px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.pdp__stage { background: var(--cream); border-radius: 32px; padding: 52px 40px 30px; display: flex; flex-direction: column; align-items: center; gap: 26px; position: sticky; top: 94px; }
@media (max-width: 980px) { .pdp__stage { position: static; padding: 36px 24px 24px; border-radius: 28px; } }
.pdp__cover { width: min(300px, 72%); border-radius: 6px; box-shadow: 0 2px 2px rgba(0,0,0,.05), 0 30px 52px -24px rgba(0,0,0,.5); }
@media (max-width: 720px) { .pdp__cover { width: min(220px, 60%); } }
.pdp__samples { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pdp__samples .btn { background: rgba(255,255,255,.75); }
.pdp__samples .btn:hover { background: #fff; }
.pdp__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pdp__title { margin: 14px 0 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.pdp__sub { margin: 10px 0 0; font-size: 20px; line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.pdp__by { margin: 14px 0 0; font-size: 16px; color: var(--ink-2); }
.pdp__by a { color: var(--teal); font-weight: 600; }
.pdp__by a:hover { text-decoration: underline; text-underline-offset: 3px; }
.formats { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formats--one { grid-template-columns: 1fr; max-width: 360px; }
@media (max-width: 480px) { .formats { grid-template-columns: 1fr; } }
.format { position: relative; text-align: left; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; transition: border-color .15s, background .15s, box-shadow .15s; }
.format:hover { border-color: #CFCAC0; }
.format.is-on { border-color: var(--teal); background: var(--teal-tint); box-shadow: 0 0 0 1px var(--teal) inset; }
.format__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 40px; background: var(--cream); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.format.is-on .format__icon { background: #fff; }
.format__name { font-weight: 700; font-size: 16px; }
.format__detail { font-size: 14px; color: var(--ink-2); grid-column: 2; }
.format__price { grid-row: span 2; font-weight: 700; font-size: 18px; }
/* the ebook and audiobook together: a third choice under the two formats (Gift, November 10) */
.format--both { grid-column: 1 / -1; }
.format__price s { display: block; text-align: right; font-size: 13.5px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.format__detail .save { color: var(--teal); font-weight: 700; }
.both-icons { display: inline-flex; align-items: center; gap: 1px; }
.format__icon .both-icons .icon { width: 16px; height: 16px; }
.format__owned { grid-row: span 2; font-size: 13.5px; font-weight: 600; color: var(--teal); display: flex; align-items: center; gap: 5px; }
.format__incart { grid-column: 2; font-size: 13.5px; font-weight: 600; color: var(--teal); display: flex; align-items: center; gap: 5px; }
.format__incart .icon { width: 15px; height: 15px; }
.buy { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy .btn--primary { min-width: 260px; height: 54px; font-size: 16.5px; }
@media (max-width: 480px) { .buy .btn--primary { width: 100%; min-width: 0; } }
.assure { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; }
.assure span { display: inline-flex; gap: 6px; align-items: center; }
.assure .icon { width: 15px; height: 15px; color: var(--ink-3); }
.owned-note { margin-top: 22px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--teal-tint); color: var(--teal); font-weight: 500; font-size: 15px; }
.pdp__block { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line-2); }
.pdp__block h2 { margin: 0 0 14px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.prose { color: #2A2A2A; font-size: 16.5px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose.is-clamped { max-height: 11.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.details dt { color: var(--ink-2); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
.chapters { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.chapter { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.chapter:first-child { border-top: 0; }
.chapter__n { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.chapter__k { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.chapter__t { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.chapter__free { margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--teal); }
.chapter__free .icon { width: 14px; height: 14px; }
.chapter__end { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.chapters__more { display: block; width: 100%; padding: 14px; text-align: center; border-top: 1px solid var(--line-2); font-weight: 600; color: var(--teal); font-size: 15px; }
.chapters__more:hover { background: var(--cream-2); }
.reviews-empty { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; background: var(--cream-2); border: 1px solid var(--line-2); }
@media (max-width: 560px) { .reviews-empty { flex-wrap: wrap; } }
.stars { display: inline-flex; gap: 3px; color: #D9D4CA; }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.stars .icon.is-on { color: var(--gold); }
.review { padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.review__top { display: flex; align-items: center; gap: 14px; }
.review__top .grow { flex: 1; min-width: 0; }
.review__who { font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review__badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--teal); background: var(--teal-tint); padding: 3px 10px 3px 8px; border-radius: 999px; }
.review__badge .icon { width: 14px; height: 14px; }
.review__meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.review__meta .icon { width: 15px; height: 15px; }
.review__text { margin: 14px 0 0; color: #2A2A2A; font-size: 16px; line-height: 1.65; white-space: pre-line; }
.review__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.rate { display: flex; gap: 4px; }
.rate button { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #D9D4CA; transition: color .12s, transform .12s, background .12s; }
.rate button:hover { background: var(--cream-2); transform: scale(1.06); }
.rate button.is-on { color: var(--gold); }
.rate .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; }

/* ---------- forms, sign in ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field__label { font-size: 14px; font-weight: 600; }
.input { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
textarea.input { height: 96px; padding: 12px 16px; resize: none; line-height: 1.5; }
.hint { font-size: 13.5px; color: var(--ink-3); }
.error { font-size: 14px; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 70px); }
.auth__brand { background: var(--teal); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.auth__pitch { margin: auto 0; }
.auth__brand h2 { margin: 0; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 460px; }
.auth__brand p { margin: 16px 0 0; color: rgba(255,255,255,.75); max-width: 420px; font-size: 17px; }
.auth__covers { display: flex; gap: 16px; margin: 40px 0; }
.auth__covers img { width: 31%; max-width: 150px; border-radius: 5px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.auth__covers img:nth-child(2) { transform: translateY(26px); }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); background: #fff; }
.auth__card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.auth__card h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.auth__card .lead { margin: -4px 0 6px; color: var(--ink-2); }
.provider { height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; border: 1px solid var(--line); background: #fff; transition: background .15s, border-color .15s; }
.provider:hover { background: var(--cream-2); border-color: #CFCAC0; }
.provider--apple { background: #000; color: #fff; border-color: #000; }
.provider--apple:hover { background: #222; border-color: #222; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.codebox { display: flex; gap: 8px; justify-content: space-between; }
.codebox input { width: 100%; height: 60px; text-align: center; font-size: 26px; font-weight: 700; border-radius: 14px; border: 1px solid var(--line); outline: none; }
.codebox input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.fine { font-size: 13.5px; color: var(--ink-3); text-align: center; }
.note-box { padding: 12px 14px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-text); font-size: 13.5px; text-align: center; }
.note-box--wide { padding: 18px 20px; font-size: 14.5px; text-align: left; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; min-height: 0; } .auth__brand { display: none; } .auth__panel { padding: 40px var(--gutter) 64px; } }

/* ---------- library, account, thanks ---------- */
.page-head { padding: 40px 0 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); }
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 20px; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; gap: 20px; } }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.side a { padding: 10px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.side a:hover { background: var(--cream-2); color: var(--ink); }
.side a.is-on { background: var(--cream); color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; } .side a { flex: none; } }
.panel { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #fff; margin-bottom: 20px; scroll-margin-top: 96px; }
.panel h2 { margin: 0 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.panel > p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.panel--danger { border-color: #F1D2CF; }
.profile { display: flex; gap: 18px; align-items: center; }
.profile .avatar { width: 64px; height: 64px; font-size: 24px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin-top: 20px; font-size: 15px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.orders td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.orders tr:last-child td { border-bottom: 0; }
.orders .book { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.orders .book img { width: 36px; aspect-ratio: 2/3; border-radius: 3px; object-fit: cover; }
.orders .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .orders .hide-sm { display: none; } }
.thanks { max-width: 640px; margin: 0 auto; padding: 64px 0 20px; text-align: center; }
.thanks__check { width: 72px; height: 72px; border-radius: 72px; background: var(--teal-tint); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.thanks h1 { margin: 20px 0 8px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.thanks > p { margin: 0 auto; color: var(--ink-2); max-width: 480px; }
.receipt { margin: 30px 0 0; text-align: left; border: 1px solid var(--line); border-radius: 22px; padding: 8px 22px; }
.receipt__row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.receipt__row:last-child { border-bottom: 0; }
.receipt__row img { width: 44px; aspect-ratio: 2/3; border-radius: 3px; object-fit: cover; box-shadow: 0 6px 12px -8px rgba(0,0,0,.4); }
.receipt__row .grow { flex: 1; min-width: 0; }
.receipt__t { font-weight: 600; }
.receipt__s { font-size: 14px; color: var(--ink-2); }
.receipt__total { font-weight: 700; }
.thanks__actions { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(17,17,17,.42); animation: fade .2s ease; }
.modal__box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 28px; box-shadow: var(--shadow-pop); padding: 28px; animation: pop .22s cubic-bezier(.2,.9,.3,1.1); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal__head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.modal__x { width: 36px; height: 36px; border-radius: 36px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; flex: none; }
.modal__x:hover { background: var(--cream); }
.modal__body { display: flex; flex-direction: column; gap: 16px; }
.line { display: flex; gap: 14px; align-items: center; }
.line img { width: 54px; aspect-ratio: 2/3; border-radius: 4px; object-fit: cover; box-shadow: 0 8px 16px -10px rgba(0,0,0,.45); }
.line .grow { flex: 1; min-width: 0; }
.line__t { font-weight: 700; line-height: 1.25; }
.line__s { font-size: 14px; color: var(--ink-2); }
.bill { border-radius: 18px; background: var(--cream-2); border: 1px solid var(--line-2); padding: 6px 16px; }
.bill__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.bill__row:last-child { border-bottom: 0; }
.bill__row--total { font-weight: 700; font-size: 16px; }
.bill__row--save { color: var(--teal); font-weight: 600; }
.bill__row button { color: var(--ink-3); width: 28px; height: 28px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; }
.bill__row button:hover { background: var(--cream); color: var(--ink); }
.addon { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed #D6D1C7; color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; }
.addon:hover { border-color: var(--teal); background: var(--teal-tint); }
.addon .plus { width: 30px; height: 30px; border-radius: 30px; background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.addon .grow { flex: 1; }
.addon small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.paying { padding: 34px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--ink-2); text-align: center; }
.spinner { width: 34px; height: 34px; border-radius: 34px; border: 3px solid var(--teal-tint); border-top-color: var(--teal); animation: spin .8s linear infinite; }
.done { text-align: center; padding: 6px 0 2px; }
.done .thanks__check { width: 60px; height: 60px; }
.done h3 { margin: 16px 0 6px; font-size: 22px; font-weight: 700; }
.done p { margin: 0 0 18px; color: var(--ink-2); }
@media (max-width: 640px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__box { max-width: none; border-radius: 26px 26px 0 0; max-height: 92vh; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: up .26s cubic-bezier(.2,.9,.3,1); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 78; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(17,17,17,.42); animation: fade .2s ease; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slide .28s cubic-bezier(.2,.9,.3,1); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line-2); }
.drawer__head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.drawer__head h2 span { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 26px; background: var(--cream); font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px; }
.drawer__foot { border-top: 1px solid var(--line-2); padding: 18px 24px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; background: #fff; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.drawer__total strong { font-size: 19px; }
.drawer__total small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 32px; color: var(--ink-2); }
.drawer__empty h3 { margin: 4px 0 6px; font-size: 21px; color: var(--ink); }
.drawer__empty p { margin: 0 0 22px; max-width: 320px; }
.citem { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line-2); }
.citem:last-child { border-bottom: 0; }
.citem.is-new { animation: flash 2s ease; }
.citem__art img { width: 56px; aspect-ratio: 2/3; border-radius: 4px; object-fit: cover; box-shadow: 0 8px 16px -10px rgba(0,0,0,.5); }
.citem__t { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem__t:hover { text-decoration: underline; text-underline-offset: 3px; }
.citem__s, .citem__gift { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.citem__gift { color: var(--gold-text); font-weight: 600; }
.citem__s .icon, .citem__gift .icon { width: 15px; height: 15px; }
.citem__add { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; border: 1.5px dashed #D6D1C7; font-size: 13px; font-weight: 600; color: var(--teal); }
.citem__add:hover { border-color: var(--teal); background: var(--teal-tint); }
.citem__end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 15px; }
.citem__end s { margin-top: -6px; font-size: 13px; color: var(--ink-3); }
.citem__save { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--teal); }
.citem__s .both-icons .icon { width: 14px; height: 14px; }
.drawer__saved { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
/* discount codes, made in the manager (Gift, November 10) */
.codeopen { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 12px; }
.codeopen .icon { width: 16px; height: 16px; }
.codeform { display: flex; gap: 8px; margin-bottom: 8px; }
.codeform .input { flex: 1; min-width: 0; height: 42px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.codeform .input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.codeform .btn { height: 42px; }
.codeform__err { margin: 0 0 10px; font-size: 13.5px; color: var(--danger, #B42318); }
.codeline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--teal); margin-bottom: 8px; }
.codeline > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.codeline .icon { width: 16px; height: 16px; }
.codeline__end { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.codeline .link { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.citem__x { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 2px 0; }
.citem__x:hover { color: var(--danger); }
@keyframes slide { from { transform: translateX(48px); opacity: .5; } }
@keyframes flash { 0%, 35% { background: var(--gold-tint); } 100% { background: rgba(251,242,228,0); } }
@media (max-width: 640px) { body.cart-open .toast { bottom: auto; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -16px); } body.cart-open .toast.is-on { transform: translate(-50%, 0); } }

/* ---------- the sample reader ---------- */
.reader { background: #FBF9F5; min-height: 100vh; }
.reader__bar { position: sticky; top: 0; z-index: 30; background: rgba(251,249,245,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.reader__bar .wrap { height: 64px; display: flex; align-items: center; gap: 16px; }
.reader__title { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__title small { display: block; font-weight: 500; font-size: 12.5px; color: var(--gold-text); letter-spacing: .06em; text-transform: uppercase; }
.reader__col { max-width: 680px; margin: 0 auto; padding: 56px var(--gutter) 40px; font-size: 19px; line-height: 1.7; color: #1D2427; }
.reader__col p { margin: 0 0 1em; }
.reader__col li { margin: 0 0 .5em 1.2em; }
.reader__ch { margin: 2.4em 0 1.2em; }
.reader__ch:first-child { margin-top: 0; }
.reader__ch small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.reader__ch h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.reader__col h3 { font-size: 21px; line-height: 1.3; margin: 1.6em 0 .6em; font-weight: 700; }
.reader__end { margin: 48px 0 0; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-align: center; }
.reader__end h3 { margin: 0 0 6px; font-size: 22px; }
.reader__end p { margin: 0 0 18px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.reader__end .row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- the listening bar ---------- */
.player { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; width: min(920px, calc(100% - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; animation: up .25s ease; }
.player[hidden] { display: none; }
.player__book { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__book img { width: 42px; aspect-ratio: 2/3; border-radius: 4px; object-fit: cover; box-shadow: 0 6px 12px -8px rgba(0,0,0,.4); }
.player__t { font-weight: 600; font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__s { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__mid { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 330px; }
.player__controls { display: flex; align-items: center; gap: 14px; }
.player__skip { width: 36px; height: 36px; border-radius: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); position: relative; }
.player__skip:hover { background: var(--cream-2); color: var(--ink); }
.player__skip span { position: absolute; font-size: 8.5px; font-weight: 700; top: 13.5px; }
.player__play { width: 42px; height: 42px; border-radius: 42px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; }
.player__play:hover { background: var(--teal-hover); }
.player__play .icon { width: 18px; height: 18px; }
.player__time { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.player__track { flex: 1; height: 4px; border-radius: 4px; background: var(--line); position: relative; cursor: pointer; }
.player__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--teal); }
.player__end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.player__x { width: 36px; height: 36px; border-radius: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.player__x:hover { background: var(--cream-2); }
.player__over { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px 2px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
@media (max-width: 860px) {
  .player { grid-template-columns: minmax(0, 1fr) auto auto; bottom: 10px; padding: 10px 10px 12px 12px; gap: 6px 8px; border-radius: 20px; }
  .player__mid { width: auto; }
  .player__time, .player__skip, .player__end .btn { display: none; }
  .player__line { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; margin-top: -2px; }
  .player__line div { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); }
}
@media (min-width: 861px) { .player__line { display: none; } }
body.has-player .foot { padding-bottom: 110px; }

/* ---------- mobile buy bar ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; transform: translateY(110%); transition: transform .25s ease; }
.buybar.is-on { transform: none; }
.buybar[hidden] { display: none; }
.buybar__t { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.buybar__cart { width: 40px; height: 40px; border-radius: 40px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; background: #fff; }
.buybar__cart.is-in { color: var(--teal); border-color: var(--teal); background: var(--teal-tint); }
.buybar__t strong { display: block; color: var(--ink); font-size: 16px; }
@media (min-width: 981px) { .buybar { display: none !important; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.has-player .toast { bottom: 108px; }

/* ---------- footer ---------- */
.foot { margin-top: 88px; background: var(--cream-2); border-top: 1px solid var(--line-2); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; gap: 28px; } }
.foot__brand img { height: 24px; width: auto; }
.foot__brand p { margin: 14px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 300px; }
.foot h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot li a, .foot li button { color: var(--ink-2); font-size: 15px; text-align: left; }
.foot li a:hover, .foot li button:hover { color: var(--ink); }
.foot__app { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.foot__app strong { display: block; font-size: 15.5px; }
.foot__app span { display: block; color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 30px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-3); }

/* ---------- small helpers ---------- */
.mt-0 { margin-top: 0; }
.only-sm { display: none; }
@media (max-width: 720px) { .only-sm { display: initial; } .hide-sm { display: none !important; } }

/* ---------- sales (Gift, November 10): a lower price for a while, no code needed ---------- */
.drawer__savings { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.drawer__savings .drawer__saved { margin-bottom: 0; }
.tag--sale { background: var(--teal); color: #fff; }
.tag--sale .icon { width: 14px; height: 14px; }
a.tag--sale:hover { filter: none; background: var(--teal-hover); }
.card__badges .tag--sale { box-shadow: 0 2px 8px rgba(7,60,77,.28); }
.card__price--sale { color: var(--teal); }
.card__price s { font-weight: 500; font-size: 13px; line-height: 1; color: var(--ink-3); }
@media (max-width: 560px) { .card__was { display: none; } }
.hero__price s { font-size: 14px; line-height: 1; color: var(--ink-3); }
.kicker__sale { color: var(--teal); }
/* the home page's band for a sale, under the hero: 24px away, like the store's other boxed cards */
.section--sales { padding-top: 24px; }
.salebands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.saleband { display: flex; align-items: center; gap: 32px; padding: 34px 40px; border-radius: 28px; background: var(--teal); color: #fff; }
.saleband__text { flex: 1; min-width: 0; text-box: trim-both cap alphabetic; }
.saleband .kicker { display: block; color: var(--gold); }
.saleband__title { margin: 12px 0 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.saleband__sub { margin: 8px 0 0; font-size: 16px; color: rgba(255,255,255,.78); }
/* the covers run from the top of the label to the last line (fitBands sets their height) */
.saleband__art { display: flex; flex: none; gap: 10px; }
.saleband__art img { height: 88px; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); }
.saleband .btn--primary { flex: none; background: #fff; color: var(--teal); }
.saleband .btn--primary:hover { background: var(--cream); }
.saleband .btn .icon { width: 16px; height: 16px; margin-right: -4px; }
@media (max-width: 860px) {
  .saleband { flex-wrap: wrap; gap: 22px; padding: 28px; }
  .saleband__art { display: none; }
  .saleband .btn--primary { width: 100%; }
}
@media (max-width: 720px) { .saleband { border-radius: 24px; padding: 26px; } .saleband__title { font-size: 23px; } }

/* ---------- the real store (November 11): loading, reviews, the reader and the audiobook player ---------- */
.boot { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.boot p { color: var(--ink-2); text-align: center; padding: 0 var(--gutter); }
.boot a { color: var(--teal); text-decoration: underline; }
.cover-gap { display: inline-block; width: 40px; aspect-ratio: 2/3; border-radius: 4px; background: var(--cream-2); }

.reviews { display: grid; gap: 14px; }
.reviews-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.reviews-sum strong { font-size: 18px; }
.reviews-sum .grow { flex: 1; }
.review--mine { border-color: var(--teal); }
.review__reply { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--cream-2); font-size: 15px; line-height: 1.55; }
.review__reply strong { display: block; font-size: 13px; color: var(--gold-text); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.review__reply p { margin: 0; white-space: pre-line; }

.card__progress { margin-top: 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; }

.reader__tools { display: flex; gap: 6px; }
.reader__tools .btn { min-width: 40px; padding: 0 10px; }
.reader__col { transition: font-size .15s ease; }
.reader__nav { display: flex; justify-content: space-between; gap: 12px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 15px; }
.reader__nav .btn { max-width: 48%; }
.reader__nav .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc { display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; margin: 0 -8px; }
.toc__item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.35; }
.toc__item:hover { background: var(--cream-2); }
.toc__item.is-on { background: var(--teal-tint); color: var(--teal); font-weight: 600; }
.toc__item small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 2px; }
@media (max-width: 720px) { .reader__tools .btn--sm[data-act="r-size"] { min-width: 34px; padding: 0 6px; } }

.player__chap[disabled] { opacity: .35; pointer-events: none; }
.player__rate { min-width: 52px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  /* the whole audiobook keeps its skip buttons on phones; chapters and speed are on wider screens and the lock screen */
  .player--full .player__skip:not(.player__chap) { display: flex; }
  .player--full .player__controls { gap: 6px; }
}
.help { display: grid; gap: 18px; max-width: 760px; }
.help .panel p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.6; }
.help .panel p:last-child { margin-bottom: 0; }
.help .panel h2 { margin: 0 0 12px; }
