/* DSL Pearl · Fall 2026 Catalog
   Pages are drawn at any size: every measure inside a page is in cqw (1cqw = 1% of the page width),
   so a page reads the same on a phone, a laptop or in the PDF. */

:root {
  --paper: #faf7f2;
  --ink: #1d1a17;
  --muted: #6f665d;
  --soft: #8d8278;
  --line: #e3dbcf;
  --navy: #1c2a55;
  --accent: #9a7a52;
  --viewer: #1f1d1b;
  --viewer-2: #2a2724;
  --viewer-ink: #efe9e1;
  --viewer-soft: #a69c90;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bar: 52px;
  --foot: 58px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--viewer); color: var(--viewer-ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- viewer frame */

body.viewer { height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: var(--bar) 1fr var(--foot); overscroll-behavior: none; }

.bar { display: flex; align-items: center; gap: 12px; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); background: var(--viewer); position: relative; z-index: 20; }
.bar--top { border-bottom: 1px solid rgba(255,255,255,.06); }
.bar__brand { display: flex; align-items: center; height: 100%; }
.bar__brand img { height: 24px; width: auto; opacity: .95; }
.bar__title { flex: 1; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; letter-spacing: .02em; color: var(--viewer-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__right { display: flex; gap: 2px; align-items: center; }
.bar--bottom { border-top: 1px solid rgba(255,255,255,.06); padding-bottom: env(safe-area-inset-bottom); gap: 18px; }

.tb { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--viewer-ink); cursor: pointer; text-decoration: none; transition: background .15s; }
.tb:hover { background: rgba(255,255,255,.08); }
.tb:focus-visible, .nav:focus-visible, .scrub:focus-visible { outline: 2px solid #d9c4a3; outline-offset: 2px; }

.pos { display: flex; align-items: baseline; gap: 10px; min-width: 210px; font-variant-numeric: tabular-nums; font-size: 14px; }
.pos__sec { color: var(--viewer-soft); font-family: var(--serif); font-style: italic; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.scrub { flex: 1; min-width: 80px; accent-color: #d9c4a3; height: 22px; cursor: pointer; }
.bar__btns { display: flex; gap: 2px; }

/* ---------------------------------------------------------------- stage and book */

.stage { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 45%, #2b2825 0%, var(--viewer) 70%); touch-action: pan-y; }
.book-wrap { position: relative; transition: transform .55s cubic-bezier(.3,.7,.2,1); will-change: transform; }
.book { position: relative; }
.book .stf__wrapper { position: relative; width: 100%; height: 100%; }
.book .stf__block { box-shadow: none; }
/* the shadow under the whole book */
.book-wrap::after { content: ''; position: absolute; left: 3%; right: 3%; bottom: -14px; height: 22px; background: radial-gradient(ellipse at center, rgba(0,0,0,.45), transparent 70%); filter: blur(6px); z-index: -1; pointer-events: none; }
.book-wrap.is-single-right::after { left: 51%; }
.book-wrap.is-single-left::after { right: 51%; }

.nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 52px; height: 96px; border: 0; background: transparent; color: rgba(255,255,255,.75); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 12px; transition: color .2s, background .2s, opacity .2s; }
.nav svg { width: 34px; height: 34px; stroke-width: 1.3; }
.nav:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav--prev { left: 6px; }
.nav--next { right: 6px; }
.nav[disabled] { opacity: 0; pointer-events: none; }

/* first-visit hint: takes the title's place in the top bar for a few seconds */
.bar__title { position: relative; }
.bar__name, .hint { transition: opacity .6s; }
.hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .02em; color: #d9c4a3; opacity: 0; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__title.hinting .hint { opacity: 1; }
.bar__title.hinting .bar__name { opacity: 0; }

/* ---------------------------------------------------------------- a page */

.page { background: var(--paper); color: var(--ink); overflow: hidden; container-type: size; -webkit-user-select: none; user-select: none; }
.pg { position: absolute; inset: 0; }
.page button, .page a { -webkit-tap-highlight-color: transparent; }
/* the page-turn library only lets clicks through to the link or button itself */
.page button *, .page a * { pointer-events: none; }
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #d9d0c4; }
.ph:not([src]) { visibility: hidden; }
.page--opener .ph, .page--look .ph, .page--photo .ph, .page--cover .ph { background: #3a3530; }

/* gentle paper sheen and a hint of the spine on photo pages */
.page .pg::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7cqw; pointer-events: none; }
.page.is-left .pg::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.10), transparent); }
.page.is-right .pg::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.08), transparent); }

.ink-light { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.28), 0 0 2px rgba(0,0,0,.18); }
.ink-dark { color: var(--ink); }
.ink-light .kicker { color: rgba(255,255,255,.92); }
.ink-dark .kicker { color: var(--ink); opacity: .78; }

/* a soft shade behind words on photos, only as strong as needed to read them */
.scrim { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.scrim--bottom { bottom: 0; }
.scrim--top { top: 0; }
.scrim--bottom.scrim--light { background: linear-gradient(to top, rgba(14,10,6,.46), rgba(14,10,6,.18) 55%, transparent); }
.scrim--top.scrim--light { background: linear-gradient(to bottom, rgba(14,10,6,.42), rgba(14,10,6,.14) 55%, transparent); }
.scrim--bottom.scrim--dark { background: linear-gradient(to top, rgba(250,247,242,.72), rgba(250,247,242,.3) 55%, transparent); }
.scrim--top.scrim--dark { background: linear-gradient(to bottom, rgba(250,247,242,.7), rgba(250,247,242,.28) 55%, transparent); }

.kicker { font-family: var(--sans); font-size: max(7px, 1.55cqw); letter-spacing: .32em; text-transform: uppercase; font-weight: 500; color: var(--accent); }

/* captions on photo pages: the pieces shown, each one opens its details */
.cap { position: absolute; bottom: 4.6cqw; display: flex; flex-direction: column; gap: .9cqw; z-index: 2; max-width: 70%; }
.cap--left, .cap--left-under { left: 6cqw; align-items: flex-start; }
.cap--right, .cap--right-under { right: 6cqw; align-items: flex-end; text-align: right; }
.cap__item { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); font-size: max(8px, 1.6cqw); letter-spacing: .04em; line-height: 1.25; color: inherit; text-shadow: inherit; }
.cap__item span { margin-left: 1.2cqw; letter-spacing: .18em; font-size: .86em; opacity: .85; }
.cap__item::after { content: '+'; display: inline-block; margin-left: 1.1cqw; width: 2.6cqw; height: 2.6cqw; line-height: 2.45cqw; text-align: center; border: 1px solid currentColor; border-radius: 50%; font-size: .9em; opacity: .75; transform: translateY(-.1cqw); }
.cap__item:hover::after { opacity: 1; }
.cap--left-under, .cap--right-under { bottom: 4.6cqw; }

/* folio (page number) */
.folio { position: absolute; bottom: 4.2cqw; font-family: var(--serif); font-size: max(8px, 1.9cqw); color: var(--soft); letter-spacing: .05em; }
.page.is-left .folio { left: 6.5cqw; }
.page.is-right .folio { right: 6.5cqw; }

/* ---------------------------------------------------------------- cover */

.cover__top { position: absolute; top: 5.5cqw; left: 0; right: 0; display: flex; justify-content: center; z-index: 2; }
.cover__logo { width: 50cqw; height: auto; filter: drop-shadow(0 0 1.4cqw rgba(255,255,255,.75)) drop-shadow(0 0 3cqw rgba(255,255,255,.45)); }
.cover__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(to top, rgba(28,18,10,.62), rgba(28,18,10,.28) 45%, transparent); }
.cover__title { position: absolute; left: 7.5cqw; bottom: 8cqw; z-index: 2; }
.cover__year { font-family: var(--sans); font-size: max(8px, 2.3cqw); letter-spacing: .62em; font-weight: 500; margin-bottom: 1.6cqw; }
.cover__h { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 13.5cqw; line-height: .9; letter-spacing: -.01em; }
.cover__sub { margin-top: 3cqw; font-family: var(--sans); font-size: max(7px, 1.55cqw); letter-spacing: .34em; text-transform: uppercase; opacity: .95; }
.page--cover .cap { bottom: 8.6cqw; }

/* ---------------------------------------------------------------- full-photo pages */

.photo__cap { position: absolute; z-index: 2; left: 7cqw; bottom: 6.4cqw; font-family: var(--serif); font-style: italic; font-size: max(10px, 3.4cqw); line-height: 1.1; max-width: 70%; }

.open__title { position: absolute; left: 8cqw; right: 10cqw; bottom: 9cqw; z-index: 2; }
.open__h { margin: 2.2cqw 0 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 11.5cqw; line-height: .95; letter-spacing: -.01em; }
.open__line { margin: 3.4cqw 0 0; font-family: var(--serif); font-style: italic; font-size: max(10px, 3.3cqw); line-height: 1.2; }
.open__intro { margin: 2.4cqw 0 0; font-size: max(8px, 1.85cqw); line-height: 1.55; max-width: 34em; opacity: .95; }

.look__title { position: absolute; left: 7.5cqw; right: 7.5cqw; z-index: 2; }
.look__title--top { top: 8cqw; }
.look__title--bottom { bottom: 13cqw; }
.look__title--right { text-align: right; }
.look__h { margin: 1.8cqw 0 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 10cqw; line-height: .95; }
.look__line { margin: 2.4cqw 0 0; font-family: var(--serif); font-style: italic; font-size: max(10px, 3.1cqw); line-height: 1.2; }

/* ---------------------------------------------------------------- product pages */

.run { position: absolute; top: 4.6cqw; left: 6.5cqw; right: 6.5cqw; display: flex; justify-content: space-between; font-size: max(6.5px, 1.35cqw); letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.run__sec { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .02em; font-size: max(9px, 2.2cqw); color: var(--muted); transform: translateY(-.5cqw); }

.grid { position: absolute; left: 6cqw; right: 6cqw; top: 11.5cqw; bottom: 9.5cqw; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); column-gap: 5cqw; row-gap: 2.6cqw; }
.grid--n4 { grid-template-rows: repeat(2, minmax(0, 1fr)); row-gap: 4cqw; }
.cell { appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 0; color: var(--ink); }
.cell__img { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.cell__img img { height: 100%; max-width: 100%; aspect-ratio: 1; object-fit: contain; display: block; transition: transform .35s ease; }
.cell__img img:not([src]) { visibility: hidden; }
.cell:hover .cell__img img { transform: scale(1.035); }
.cell__name { margin-top: .9cqw; font-family: var(--serif); font-weight: 500; font-size: max(9.5px, 2.45cqw); line-height: 1.1; }
.cell__line { margin-top: .55cqw; font-size: max(7px, 1.4cqw); line-height: 1.32; color: var(--muted); max-width: 34cqw; }
.cell__also { margin-top: .35cqw; font-family: var(--serif); font-style: italic; font-size: max(8px, 1.65cqw); color: var(--accent); }
.cell__sku { margin-top: .55cqw; font-size: max(6.5px, 1.3cqw); letter-spacing: .2em; color: var(--ink); }
.grid--n4 .cell__name { font-size: max(10.5px, 2.9cqw); }
.grid--n4 .cell__line { font-size: max(7.5px, 1.6cqw); max-width: 38cqw; }
.cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1cqw; border-radius: 1cqw; }

/* ---------------------------------------------------------------- text pages */

.text { position: absolute; inset: 0; padding: 10cqw 9cqw 10cqw; display: flex; flex-direction: column; }
.welcome__h, .idx__h { margin: 2cqw 0 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 9cqw; line-height: 1; }
.welcome__p { margin: 3cqw 0 0; font-family: var(--serif); font-size: max(10px, 2.55cqw); line-height: 1.45; color: #2e2925; }
.welcome__p + .welcome__p { margin-top: 1.8cqw; }
.toc { margin-top: auto; border-top: 1px solid var(--line); padding-top: 3cqw; }
.toc__h { font-size: max(7px, 1.45cqw); letter-spacing: .3em; text-transform: uppercase; color: var(--soft); margin-bottom: 1.6cqw; }
.toc__row { display: grid; grid-template-columns: 6cqw 1fr auto; align-items: baseline; gap: 1.5cqw; padding: .72cqw 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(227,219,207,.6); }
.toc__n { font-family: var(--serif); font-size: max(9px, 2.1cqw); color: var(--accent); }
.toc__t { font-family: var(--serif); font-size: max(10px, 2.55cqw); }
.toc__k { font-size: max(6.5px, 1.25cqw); letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.toc__row:hover .toc__t { text-decoration: underline; text-underline-offset: .5cqw; }
.welcome__foot { margin-top: 2.6cqw; font-family: var(--serif); font-style: italic; font-size: max(9px, 2cqw); color: var(--muted); }

.order { margin-top: 5cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw 6cqw; }
.order__t { font-size: max(7px, 1.45cqw); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4cqw; }
.order__b p { margin: 0; font-family: var(--serif); font-size: max(10px, 2.45cqw); line-height: 1.45; }
.order a, .back a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.order__qr { margin-top: 6cqw; display: flex; align-items: center; gap: 3cqw; }
.order__qr img { width: 15cqw; height: 15cqw; }
.order__qr span { font-family: var(--serif); font-style: italic; font-size: max(9px, 2.2cqw); color: var(--muted); }
.fine { margin-top: auto; font-size: max(6.5px, 1.3cqw); line-height: 1.55; color: var(--soft); }

.text--index { padding-bottom: 9cqw; }
.idx { margin-top: 4cqw; columns: 3; column-gap: 4cqw; }
.idx__row { display: flex; justify-content: space-between; gap: 1cqw; padding: .3cqw 0; font-size: max(6.5px, 1.42cqw); letter-spacing: .08em; color: var(--ink); text-decoration: none; break-inside: avoid; border-bottom: 1px dotted var(--line); }
.idx__p { font-family: var(--serif); color: var(--accent); letter-spacing: 0; }
.idx__row:hover { color: var(--accent); }

/* ---------------------------------------------------------------- back cover */

.page--back { background: var(--navy); color: #fff; }
.back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10cqw; }
.back__logo { width: 56cqw; height: auto; }
.back__rule { width: 10cqw; height: 1px; background: rgba(255,255,255,.5); margin: 7cqw 0 5cqw; }
.back__lines { font-family: var(--serif); font-style: italic; font-size: max(10px, 2.9cqw); line-height: 1.45; }
.back__contact { margin-top: 6cqw; font-size: max(7.5px, 1.75cqw); line-height: 1.9; letter-spacing: .06em; color: rgba(255,255,255,.85); }
.page--back .pg::after { display: none; }

/* ---------------------------------------------------------------- overlays */

.ov { position: fixed; inset: 0; z-index: 50; background: rgba(12,11,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow: auto; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.ov__panel { width: min(1180px, 100%); background: var(--viewer-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); padding: 10px 18px 22px; }
.ov__panel--narrow { width: min(640px, 100%); }
.ov__head { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; position: sticky; top: 0; background: var(--viewer-2); z-index: 1; }
.ov__t { flex: 1; font-family: var(--serif); font-style: italic; font-size: 24px; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.thumb { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: var(--viewer-soft); }
.thumb__pair { display: flex; background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.35); border-radius: 3px; overflow: hidden; }
.thumb__pair img { width: 50%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #3a3530; }
.thumb__pair--one img { width: 100%; }
.thumb.is-here .thumb__pair { outline: 2px solid #d9c4a3; outline-offset: 3px; }
.thumb__label { display: block; margin-top: 7px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.thumb__label i { font-family: var(--serif); font-size: 14px; color: var(--viewer-ink); margin-left: 6px; }

.contents { display: flex; flex-direction: column; }
.contents button { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; text-align: left; border: 0; background: none; padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; border-radius: 8px; }
.contents button:hover { background: rgba(255,255,255,.05); }
.contents .n { font-family: var(--serif); color: #d9c4a3; font-size: 18px; }
.contents .t { font-family: var(--serif); font-size: 22px; }
.contents .k { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--viewer-soft); }

.search { flex: 1; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #1b1917; color: var(--viewer-ink); padding: 0 14px; font-size: 16px; outline: none; }
.search:focus { border-color: #d9c4a3; }
.results { display: flex; flex-direction: column; gap: 2px; min-height: 60px; }
.res { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; border: 0; background: none; text-align: left; padding: 8px; border-radius: 10px; cursor: pointer; }
.res:hover, .res.is-active { background: rgba(255,255,255,.06); }
.res img { width: 54px; height: 54px; border-radius: 8px; background: var(--paper); object-fit: contain; }
.res .nm { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.res .sk { font-size: 11.5px; letter-spacing: .16em; color: var(--viewer-soft); margin-top: 2px; }
.res .where { font-size: 12px; color: var(--viewer-soft); white-space: nowrap; }
.empty { padding: 18px 8px; color: var(--viewer-soft); font-size: 14px; }

.ov--piece { align-items: center; }
.piece { position: relative; width: min(920px, 100%); max-height: calc(100dvh - 48px); background: var(--paper); color: var(--ink); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; box-shadow: 0 30px 90px rgba(0,0,0,.5); animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.piece__x { position: absolute; top: 10px; right: 10px; color: var(--ink); z-index: 2; }
.piece__x:hover { background: rgba(0,0,0,.06); }
.piece__img { background: #fff; display: flex; align-items: center; justify-content: center; min-height: 0; }
.piece__img img { width: 100%; height: 100%; max-height: calc(100dvh - 48px); object-fit: contain; aspect-ratio: 1; display: block; }
.piece__info { padding: 44px 36px 30px; display: flex; flex-direction: column; overflow: auto; }
.piece__name { margin: 10px 0 0; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; }
.piece__line { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: #3d3630; }
.piece__also { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent); }
.piece__also:empty { display: none; }
.piece__sku { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .14em; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
.piece__sku strong { color: var(--ink); font-weight: 600; letter-spacing: .12em; font-size: 15px; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; letter-spacing: .02em; padding: 2px 4px; }
.btn { margin-top: 22px; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .06em; transition: background .15s; align-self: flex-start; }
.btn:hover { background: #3a332d; }
.piece__pages { margin-top: 16px; font-size: 13px; color: var(--muted); }
.piece__pages button { border: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0 3px; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--foot) + 14px); transform: translate(-50%, 20px); background: #f3ece2; color: var(--ink); padding: 10px 16px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; box-shadow: 0 8px 26px rgba(0,0,0,.35); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.nojs { position: fixed; inset: auto 16px 80px; text-align: center; color: var(--viewer-ink); }
.nojs a { color: #d9c4a3; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 760px) {
  :root { --bar: 48px; --foot: 54px; }
  .bar__title { font-size: 17px; text-align: left; }
  .bar__brand img { height: 20px; }
  .tb--fs { display: none; }
  .pos { min-width: 0; }
  .pos__sec { display: none; }
  .nav { display: none; }
  .bar--bottom { gap: 10px; }
  .piece { grid-template-columns: 1fr; max-height: calc(100dvh - 32px); overflow: auto; }
  .piece__img img { max-height: 46dvh; }
  .piece__info { padding: 18px 20px 22px; overflow: visible; }
  .piece__name { font-size: 27px; }
  .ov { padding: 12px 10px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
}
@media (hover: none) { .cell:hover .cell__img img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .book-wrap { transition: none; } .cell__img img { transition: none; } }
.inline-sku { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .4cqw; }

/* small pages (phones): the welcome page and the ordering page tighten up so everything fits */
@container (max-width: 460px) {
  .text { padding: 8cqw 7.5cqw 8cqw; }
  .welcome__h { font-size: 8.5cqw; }
  .welcome__p { font-size: max(8.5px, 2.5cqw); line-height: 1.38; margin-top: 2.4cqw; }
  .toc { padding-top: 2.4cqw; }
  .toc__k { display: none; }
  .toc__row { grid-template-columns: 7cqw 1fr; padding: .4cqw 0; }
  .toc__t { font-size: max(9px, 2.5cqw); }
  .toc__n { font-size: max(8px, 2.1cqw); }
  .welcome__foot { font-size: max(8px, 2cqw); margin-top: 2cqw; }
  .order { gap: 4cqw 5cqw; margin-top: 4cqw; }
  .order__b p { font-size: max(8.5px, 2.4cqw); }
  .cell__line { max-width: 40cqw; }
}
@media (max-width: 760px) { .hint { justify-content: flex-start; font-size: 12.5px; } }
/* every description block in a grid has the same height, so names and photos line up across a row */
.cell__txt { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; min-height: 14.6cqw; }
.grid--n4 .cell__txt { min-height: 15.5cqw; }
/* the cover and back cover thumbnails are one page: same height as the spreads, centered */
.thumb__pair--one { background: transparent; box-shadow: none; justify-content: center; }
.thumb__pair--one img { width: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.35); border-radius: 3px; }

/* ---------------------------------------------------------------- inside the website's page (www.dslpearl.com/catalogs/fall-2026)
   The site's header above carries the logo; a space as wide as the buttons keeps the title in the middle; up and down drags
   scroll the website's page; on phones the full-screen button opens the book on its own page. */
.is-embed .bar__brand { display: none; }
.is-embed .bar--top::before { content: ''; flex: 0 0 166px; }
html.is-embed, .is-embed body.viewer { overscroll-behavior: auto; }
.is-embed .tb--fs { display: inline-flex; }
@media (max-width: 760px) { .is-embed .bar--top::before { display: none; } }

/* ---------------------------------------------------------------- inside the DSL Pearl app (?app=1): the logo is a back arrow; the
   app's screen is already the whole screen, so no full-screen button */
.is-app .bar__brand { width: 40px; margin-left: -8px; justify-content: center; color: var(--viewer-ink); }
.is-app .bar__brand svg { width: 24px; height: 24px; }
.is-app .tb--fs { display: none !important; }
