/* Layout: a lamplit reading room. Ink-dark shelves, gold-leaf type, covers do the talking.
   One column on phones; cover + copy side by side from 760px. Single deliberate dark look. */
:root {
  --ink: #11141c;        /* page */
  --shelf: #191d28;      /* alternate bands */
  --vellum: #222837;     /* raised surfaces */
  --rule: #343b4d;
  --paper: #f1e9d8;      /* main text */
  --dim: #b7ae9c;        /* secondary text */
  --gold: #d8b25a;       /* accent */
  --gold-hi: #f2d690;
  --gold-ink: #241a06;   /* text on gold */
  --live: #8fcf9a;
  --soon: #e6b26a;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-label: "IM Fell English SC", "Iowan Old Style", Georgia, serif;

  --s-1: clamp(1rem, .96rem + .2vw, 1.1rem);
  --s-0: clamp(1.125rem, 1.08rem + .25vw, 1.25rem);   /* body: large for comfortable reading */
  --s1: clamp(1.35rem, 1.2rem + .6vw, 1.6rem);
  --s2: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem);
  --s3: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);

  --r: 6px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 var(--s-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: .18em; }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--s3); }
h2 { font-size: var(--s2); }
p { margin: 0; }
strong { color: #fff6e2; }

.wrap { max-width: 1160px; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 16px; }
.center { text-align: center; }

.eyebrow { font-family: var(--f-label); font-size: var(--s1); color: var(--gold); letter-spacing: .04em; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.lede { font-size: var(--s0, var(--s-0)); color: var(--dim); max-width: 62ch; }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.brand img { width: clamp(150px, 38vw, 210px); height: auto; }
.nav-desk { display: none; gap: 4px; }
.nav-desk a, .nav-mob nav a { color: var(--paper); text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: var(--r); }
.nav-desk a:hover, .nav-desk a[aria-current] { color: var(--gold-hi); background: var(--vellum); }
.nav-mob { position: relative; }
.nav-mob summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--rule); border-radius: var(--r); }
.nav-mob summary::-webkit-details-marker { display: none; }
.nav-mob summary span { display: block; width: 22px; height: 2px; background: var(--gold); transition: transform .2s; }
.nav-mob[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mob[open] summary span:nth-child(2) { opacity: 0; }
.nav-mob[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mob nav { position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px)); background: var(--vellum); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px; display: grid; box-shadow: 0 18px 40px rgb(0 0 0 / .45); }
.nav-mob nav a { padding: 14px; font-size: var(--s0, 1.2rem); }
.nav-mob nav a[aria-current] { color: var(--gold-hi); }
.nav-mob .nav-amz { color: var(--gold); border-top: 1px solid var(--rule); border-radius: 0; margin-top: 4px; }
@media (min-width: 820px) { .nav-desk { display: flex; } .nav-mob { display: none; } }

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 52px; padding: 12px 22px; border-radius: var(--r); font: 700 var(--s-0)/1.1 var(--f-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .12s, background .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-buy { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 6px 18px rgb(216 178 90 / .18); }
.btn-buy:hover { color: var(--gold-ink); background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { min-height: 46px; padding: 10px 16px; font-size: var(--s-1); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-block; font: 700 .78rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; border: 1px solid currentColor; }
.badge-live { color: var(--live); }
.badge-new { color: var(--gold-hi); }
.badge-soon { color: var(--soon); border-style: dashed; }

/* ---------- covers ---------- */
.cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px 5px 5px 3px; background: var(--c, var(--vellum));
  box-shadow: inset 4px 0 0 rgb(0 0 0 / .25), 0 2px 3px rgb(0 0 0 / .4), 0 18px 34px -10px rgb(0 0 0 / .7); }
.cover-type { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 9% 8%; color: var(--gold-hi);
  background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--c) 70%, #fff 8%), var(--c)); outline: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: -8px; }
.ct-kick { font: 700 .55em/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); opacity: .8; }
.ct-name { font: 700 1.9em/1 var(--f-display); margin-top: .35em; }
.ct-sub { font: .7em/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; margin-top: .3em; }
.ct-title { font: 500 1.05em/1.2 var(--f-display); color: var(--paper); margin-top: auto; margin-bottom: auto; }
.ct-foot { font: .6em/1 var(--f-label); letter-spacing: .12em; color: var(--paper); opacity: .7; }
.cover-card.cover-type { font-size: clamp(11px, 3vw, 15px); }
.cover-hero.cover-type { font-size: clamp(16px, 4.2vw, 24px); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; margin-top: 28px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; } }
.card-link { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.card-link .cover { transition: transform .25s ease, box-shadow .25s ease; }
.card-link:hover .cover { transform: translateY(-4px) rotate(-.6deg); }
.card-body { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.card-series { font-family: var(--f-label); color: var(--gold); font-size: var(--s-1); line-height: 1.2; }
.card-title { font: 700 var(--s1)/1.15 var(--f-display); }
.card-meta { color: var(--dim); font-size: var(--s-1); }
.card[hidden] { display: none; }

/* ---------- bands ---------- */
.band { padding-block: clamp(48px, 7vw, 88px); }
.band-alt { background: var(--shelf); border-block: 1px solid var(--rule); }
.band > .wrap > h2 + .lede, .band .eyebrow + h2, .band .eyebrow + h1 { margin-top: 10px; }
.band h2 + .lede, .band h1 + .lede { margin-top: 14px; }
.page-head h1 { margin-top: 8px; }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 96px); background:
  radial-gradient(60% 70% at 85% 35%, rgb(216 178 90 / .14), transparent 70%),
  radial-gradient(50% 60% at 10% 100%, rgb(107 34 53 / .25), transparent 70%); }
.hero[style] { background: linear-gradient(90deg, var(--ink) 30%, rgb(17 20 28 / .55)), var(--hero-img) center / cover no-repeat; }
.banner { width: 100%; aspect-ratio: 20 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-copy h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.6rem); font-weight: 500; }
.hero-feat { justify-self: center; width: min(320px, 78vw); display: grid; gap: 14px; text-decoration: none; color: var(--paper); transform: rotate(2deg); }
.hero-feat:hover { transform: rotate(0deg); }
.hero-feat { transition: transform .3s ease; }
.hero-feat-cap { display: flex; gap: 10px; align-items: center; justify-content: center; font-family: var(--f-display); font-size: var(--s1); flex-wrap: wrap; text-align: center; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }

.how { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; counter-reset: s; }
.how li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; font-size: var(--s0, 1.2rem); }
.how li::before { content: counter(s); font: 700 var(--s1)/1 var(--f-display); color: var(--gold-ink); background: var(--gold); width: 2em; height: 2em; flex: none; display: grid; place-items: center; border-radius: 50%; }
@media (min-width: 820px) { .how { grid-template-columns: repeat(3, 1fr); } }

.qr-note { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr-note > div:last-child { flex: 1 1 300px; display: grid; gap: 10px; min-width: 0; }
.qr-note p { color: var(--dim); max-width: 60ch; }
.qr-ico { width: 84px; height: 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; border: 2px solid var(--gold); border-radius: 8px; }
.qr-ico span { border: 5px solid var(--gold); border-radius: 3px; }
.qr-ico span:last-child { border: 0; background: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 9px); }

/* ---------- book page ---------- */
.book-hero { padding-block: clamp(28px, 6vw, 72px); background: radial-gradient(80% 90% at 20% 20%, color-mix(in srgb, var(--c) 55%, transparent), transparent 75%); }
.book-grid { display: grid; gap: 32px; align-items: start; }
.book-cover { width: min(340px, 72vw); justify-self: center; }
.book-info { display: grid; gap: 16px; min-width: 0; }
.book-sub { color: var(--dim); font-size: var(--s-0); }
.hook { font: 500 var(--s1)/1.35 var(--f-display); font-style: italic; color: var(--gold-hi); border-left: 3px solid var(--gold); padding-left: 16px; }
.buy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price { font: 700 var(--s2)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.price-cur { font-size: .6em; vertical-align: .55em; margin-right: 2px; }
.buy-meta { color: var(--dim); display: flex; gap: 10px; align-items: center; }
.note { font-size: var(--s-1); color: var(--soon); max-width: 52ch; }
.for { color: var(--dim); font-size: var(--s-1); }
@media (min-width: 760px) {
  .book-grid { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 56px; }
  .book-cover { width: 100%; position: sticky; top: 110px; }
}

.read-grid { display: grid; gap: 40px; margin-top: 8px; }
.prose { display: grid; gap: 1.05em; max-width: 64ch; min-width: 0; align-content: start; }
.prose h2 { margin-bottom: .1em; }
.closing { font: 500 var(--s1)/1.35 var(--f-display); font-style: italic; color: var(--gold-hi); }
.inside { background: var(--vellum); border: 1px solid var(--rule); border-radius: 10px; padding: 26px 22px; display: grid; gap: 18px; align-self: start; min-width: 0; }
.inside h2 { font-size: var(--s1); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 9px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.specs { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: var(--s-1); }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; text-align: right; font-weight: 700; }
@media (min-width: 900px) { .read-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }

.series-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.series-steps a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--paper); background: var(--ink); height: 100%; }
.series-steps a:hover { border-color: var(--gold); }
.series-steps li[aria-current] a { border-color: var(--gold); background: var(--vellum); }
.sn-no { font-family: var(--f-label); color: var(--gold); }
.sn-t { font: 700 var(--s0, 1.2rem)/1.2 var(--f-display); }

/* sticky buy bar on phones */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--shelf) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--rule);
  padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut-l); transform: translateY(110%); transition: transform .25s ease; }
.buy-bar.show { transform: none; }
.buy-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1160px; margin-inline: auto; }
.bb-t { display: grid; min-width: 0; }
.bb-title { font: 700 1rem/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-p { color: var(--dim); font-size: .9rem; }
@media (min-width: 760px) { .buy-bar { display: none; } }
body:has(.buy-bar) .site-foot { padding-bottom: 96px; }

/* ---------- series page ---------- */
.srows { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 28px; }
.srow { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 20px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.srow-body { display: grid; gap: 10px; min-width: 0; }
.srow h2 a { color: var(--paper); text-decoration: none; }
.srow h2 a:hover { color: var(--gold-hi); }
.srow p:not(.eyebrow) { color: var(--dim); }

/* ---------- filter chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 24px; scrollbar-width: none; }
.chip { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--rule); background: transparent; color: var(--paper); font: 700 var(--s-1)/1 var(--f-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); background: var(--shelf); padding-block: 48px 28px; margin-top: 0; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid > div { display: grid; gap: 14px; align-content: start; }
.foot-grid img { width: 170px; }
.foot-grid p { color: var(--dim); }
.foot-h { font-size: var(--s1); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { color: var(--paper); text-decoration: none; }
.foot-list a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot-fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 6px; color: var(--dim); font-size: .9rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-list { grid-template-columns: 1fr 1fr; } }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 99px; font-weight: 700; z-index: 40; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- look inside: gallery + lightbox ---------- */
.gallery { margin-top: 28px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gal-item { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.gal-item figcaption { color: var(--dim); font-size: var(--s-1); line-height: 1.35; }
.gal-inside { grid-column: 1 / -1; }
.gal-wrap { grid-column: 1 / -1; }
.gal-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--ink); cursor: zoom-in; }
.gal-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gal-btn:hover img { transform: scale(1.03); }
.gal-art .gal-btn, .gal-back .gal-btn { aspect-ratio: 3 / 4; }
@media (max-width: 699px) {
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gal-item, .gal-inside, .gal-wrap { grid-column: auto; scroll-snap-align: start; }
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
  .gal-inside, .gal-wrap { grid-column: span 2; }
  .gal-art .gal-btn { aspect-ratio: auto; height: calc(100% - 2em); }
  .gal-back { grid-row: 2; grid-column: 1; }
  .gal-back .gal-btn { aspect-ratio: auto; }
  .gal-back .gal-btn img, .gal-wrap .gal-btn img { object-fit: contain; }
}

.lightbox { width: min(1200px, 100vw); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; background: transparent; color: var(--paper); }
.lightbox::backdrop { background: rgb(5 7 12 / .92); }
.lightbox[open] { display: grid; gap: 12px; justify-items: center; padding: max(56px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 76dvh; width: auto; max-width: 100%; border-radius: 6px; }
.lightbox p { color: var(--dim); text-align: center; max-width: 60ch; }
.lb-close { position: fixed; top: max(10px, env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule); background: var(--vellum); color: var(--paper); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-nav { display: flex; gap: 12px; }

.peeks { margin-top: 28px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.peek { display: grid; text-decoration: none; color: var(--paper); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--vellum); }
.peek img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.peek:hover img { transform: scale(1.03); }
.peek-cap { display: grid; gap: 2px; padding: 14px 16px; }
.peek-t { font: 700 var(--s1)/1.2 var(--f-display); }

.seasons { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seasons figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
.seasons .gal-btn { aspect-ratio: 1; }
.seasons figcaption { font-family: var(--f-label); color: var(--gold); font-size: var(--s-1); }
@media (max-width: 560px) { .seasons { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; } .seasons figure { scroll-snap-align: start; } }

/* wide gallery (no cover painting): big sample spread, then pairs */
@media (min-width: 700px) {
  .gallery-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-wide .gal-inside { grid-column: 1 / -1; }
  .gallery-wide .gal-inside .gal-btn { max-height: 80vh; }
  .gallery-wide .gal-inside .gal-btn img { object-fit: contain; }
}
.gal-photo .gal-btn, .gal-note .gal-btn { aspect-ratio: 3 / 2; }

/* trivia cards */
.facts { margin-top: 28px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.fact { background: var(--vellum); border: 1px solid var(--rule); border-radius: 10px; padding: 24px 22px; display: grid; gap: 10px; align-content: start; }
.fact-topic { font-family: var(--f-label); color: var(--gold); font-size: var(--s-1); }
.fact-word { font-size: var(--s1); text-transform: uppercase; letter-spacing: .06em; }
.fact p:last-child { color: var(--paper); }

/* portrait book pages and full-width strips */
.gal-page .gal-btn { aspect-ratio: 3 / 4; background: #f4efe3; }
.gal-page .gal-btn img { object-fit: contain; }
@media (min-width: 700px) { .gal-wide { grid-column: 1 / -1; } }

/* "Coming soon to Amazon" pill: looks like the button's outline, clearly not clickable */
.amz-gate { display: contents; }
.btn-wait { background: transparent; color: var(--soon); border: 2px dashed color-mix(in srgb, var(--soon) 70%, transparent); cursor: default; }
.btn-wait:active { transform: none; }

/* gallery: big sample-spread photo on top, then pairs */
.gallery-wide .gal-art .gal-btn, .gallery-wide .gal-back .gal-btn { aspect-ratio: 3 / 4; height: auto; }
.gallery-wide .gal-art .gal-btn img { object-fit: cover; }

/* full-size sample pages */
.samples { margin-top: 28px; display: grid; gap: 22px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sample { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.sample .gal-btn { aspect-ratio: 8.25 / 11; background: #fbf8f1; box-shadow: 0 12px 28px -12px rgb(0 0 0 / .7); }
.sample .gal-btn img { object-fit: contain; }
.sample figcaption { color: var(--dim); font-size: var(--s-1); line-height: 1.35; }
@media (max-width: 699px) {
  .samples { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .sample { scroll-snap-align: start; }
}

/* gallery v3: 3 columns (sample spread spans 2 + back cover); 2 columns when there are photos */
@media (min-width: 700px) {
  .gallery:not(.gallery-wide) .gal-back { grid-row: auto; grid-column: auto; }
  .gallery:not(.gallery-wide) .gal-inside .gal-btn,
  .gallery:not(.gallery-wide) .gal-back .gal-btn,
  .gallery:not(.gallery-wide) .gal-wide .gal-btn { height: calc(100% - 2.6em); aspect-ratio: auto; }
  .gallery:not(.gallery-wide) .gal-wide { grid-column: span 2; }
  .gal-back .gal-btn img, .gal-wide .gal-btn img { object-fit: contain; }
}
@media (min-width: 700px) {
  .gallery:not(.gallery-wide):has(> .gal-item:nth-child(4):last-child):not(:has(.gal-inside)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gal-page .gal-btn { height: auto !important; aspect-ratio: 3 / 4 !important; }
}
.page-head h1 + .read-grid, .page-head h1 + .prose { margin-top: 28px; }
.page-head .wrap > h1 { margin-bottom: 4px; }
/* clearer close for the enlarged-picture view */
.lb-close { width:auto; height:auto; min-height:56px; padding:12px 24px; border-radius:999px; font:700 1.15rem/1 var(--f-body); background:var(--gold); color:var(--gold-ink); border:0; }
.lightbox .lb-hint { font-size:var(--s-1); color:var(--dim); }
