/* Unequal Scenes book page. Every rule is scoped to #usbk.
   The page follows the look of the site's own pages (site.css): centered
   headings in the heading font, 18px text, round buttons in the button color,
   photographs on the page without a frame. Colors and fonts come from the
   site's variables, so changes made under Site styles reach this page too.
   Layout responds to the width of #usbk itself (container queries), since the
   column this page sits in is narrower than the screen. */

#usbk {
  --text: var(--s-text, #000);
  --head: var(--s-heading, var(--c-dark, #222));
  --muted: #666;
  --btn: var(--c-btn, #2a9d8f);
  --btn-hover: var(--c-btn-hover, rgba(33, 134, 122, .75));
  --tbc: #c99700;
  container: usbk / inline-size;
  color: var(--text);
  font: 400 18px/26px var(--font-body);
  letter-spacing: normal; word-spacing: normal; text-indent: 0; text-shadow: none; text-transform: none;
  font-feature-settings: normal; font-variant: normal;
  text-align: center;
}

/* Local reset, so the site's page styles do not leak in */
#usbk *, #usbk *::before, #usbk *::after { box-sizing: border-box; }
#usbk h1, #usbk h2, #usbk h3, #usbk p, #usbk figure, #usbk figcaption, #usbk ul, #usbk dl, #usbk dt, #usbk dd {
  margin: 0; padding: 0; border: 0; background: none; color: inherit;
  font-family: var(--font-body); font-size: inherit; font-weight: inherit; font-style: normal; line-height: inherit;
  letter-spacing: normal; text-transform: none; text-align: inherit;
}
#usbk ul { list-style: none; }
#usbk li { margin: 0; padding: 0; list-style: none; }
#usbk li::before, #usbk li::marker { content: none; }
#usbk img { display: block; width: 100%; max-width: 100%; height: auto; border: 0; margin: 0; padding: 0; background: none; border-radius: 0; }
#usbk a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
#usbk a:hover { color: var(--muted); }
#usbk a:focus-visible, #usbk .usbk-zoom:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; }
/* A value that is not confirmed yet ([[...]] in the text) carries a dotted line while the page is a draft */
#usbk mark.usbk-tbc { font: inherit; background: none; color: inherit; padding: 0; border-bottom: 2px dotted var(--tbc); }
#usbk .usbk-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Taller hit area for links on phones; vertical padding on an inline link does not change the line layout */
#usbk .usbk-tap { padding: 14px 0; }

#usbk .usbk-draft { padding-top: 16px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* Title block, as the page titles of the site */
#usbk .usbk-head { display: flex; flex-direction: column; align-items: center; padding: 52px 0 40px; }
#usbk .usbk-author { font: 500 20px/20px var(--font-head); text-transform: uppercase; color: var(--head); }
#usbk .usbk-title { font: 400 50px/50px var(--font-head); text-transform: uppercase; color: var(--head); margin-top: 12px; }
#usbk .usbk-eyebrow { font-size: 14px; line-height: 18px; color: var(--muted); margin-top: 14px; }
#usbk .usbk-lede { font-size: 20px; line-height: 28px; max-width: 30em; margin-top: 26px; text-wrap: balance; }
#usbk .usbk-head .usbk-btn { margin-top: 28px; }

/* Buttons, as the buttons of the site */
#usbk .usbk-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 36px;
  border-radius: 100px; background: var(--btn); color: #fff;
  font: 700 18px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease;
}
#usbk .usbk-btn:hover { background: var(--btn-hover); color: #fff; }

/* Photographs of the book: on the page as they are, a click opens the large view */
#usbk .usbk-zoom { display: block; cursor: zoom-in; }
#usbk figcaption { font-size: 14px; line-height: 18px; margin-top: 12px; }
#usbk .usbk-pp { color: var(--muted); white-space: nowrap; }

#usbk .usbk-specline { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 30px; font-size: 16px; line-height: 24px; color: var(--muted); }
#usbk .usbk-specline li { white-space: nowrap; }
#usbk .usbk-specline li + li::before { content: "·"; display: inline-block; width: 1.4em; text-align: center; }

/* Editions, side by side, buttons on one line */
#usbk .usbk-shop { padding-top: 64px; scroll-margin-top: 16px; }
#usbk .usbk-editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 56px 64px; max-width: 800px; margin: 0 auto; }
#usbk .usbk-ed { display: flex; flex-direction: column; align-items: center; }
#usbk .usbk-ed-name { font: 500 20px/24px var(--font-head); text-transform: uppercase; color: var(--head); }
#usbk .usbk-ed-price { font: 400 40px/40px var(--font-head); color: var(--head); font-variant-numeric: lining-nums; margin-top: 12px; }
#usbk .usbk-ed-details { font-size: 16px; line-height: 24px; color: var(--muted); margin-top: 16px; max-width: 22em; text-wrap: balance; }
#usbk .usbk-ed-meta { font-size: 16px; line-height: 24px; margin-top: 12px; padding-bottom: 24px; }
#usbk .usbk-ed .usbk-btn { margin-top: auto; }
#usbk .usbk-fine { max-width: 620px; margin: 40px auto 0; font-size: 14px; line-height: 20px; color: var(--muted); }
#usbk .usbk-fine p + p { margin-top: 4px; }
#usbk .usbk-links { margin-top: 10px; }

/* The prints of the artist's edition: equal columns under the editions, every
   picture in a box of the same proportions, whole and uncropped */
#usbk .usbk-printlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; max-width: 800px; margin: 0 auto; }
#usbk .usbk-print .usbk-zoom { aspect-ratio: var(--usbk-print-ratio, 3 / 4); }
#usbk .usbk-print img { width: 100%; height: 100%; object-fit: contain; }
#usbk .usbk-print figcaption span { display: block; }
#usbk .usbk-print-title { color: var(--head); }
#usbk .usbk-print-text { margin-top: 6px; color: var(--muted); text-wrap: pretty; }
#usbk .usbk-print .usbk-pp { margin-top: 6px; white-space: normal; }
#usbk .usbk-prints-note { max-width: 620px; margin: 28px auto 0; font-size: 14px; line-height: 20px; color: var(--muted); }

/* Text sections */
#usbk .usbk-sec { padding-top: 80px; }
#usbk h2 { font: 500 20px/20px var(--font-head); text-transform: uppercase; color: var(--head); padding-bottom: 24px; }
#usbk .usbk-prose { max-width: var(--max-text, 800px); margin: 0 auto; }
#usbk .usbk-prose p + p { margin-top: 20px; }
#usbk .usbk-prose .usbk-credit { font-style: italic; }
#usbk .usbk-prose .usbk-press { margin-top: 36px; font-size: 16px; line-height: 24px; color: var(--muted); }

/* Inside the book: the first spread wide, the others in pairs */
#usbk .usbk-spreads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
#usbk .usbk-slide--wide { grid-column: 1 / -1; }
#usbk .usbk-slide--solo { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
#usbk .usbk-slide figcaption span { display: block; }

#usbk .usbk-texts { max-width: 640px; margin: 0 auto; }
#usbk .usbk-texts li + li { margin-top: 22px; }
#usbk .usbk-text-title { font-style: italic; }
#usbk .usbk-text-by { font-size: 16px; line-height: 24px; color: var(--muted); margin-top: 2px; text-wrap: balance; }

/* Details: centered, each label in small gray type above its value */
#usbk .usbk-details { font-size: 16px; line-height: 24px; }
#usbk .usbk-details div { padding: 6px 0; text-wrap: balance; }
#usbk .usbk-details dt, #usbk .usbk-details dd { display: block; text-align: center; }
#usbk .usbk-details dt { font-size: 14px; line-height: 20px; color: var(--muted); }

#usbk .usbk-foot { padding-top: 80px; font-size: 14px; line-height: 20px; color: var(--muted); }
#usbk .usbk-foot p + p { margin-top: 4px; }
#usbk .usbk-foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: 12px; }

@container usbk (max-width: 660px) {
  #usbk .usbk-spreads { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #usbk .usbk-editions { gap: 48px; }
  #usbk .usbk-ed-meta { padding-bottom: 20px; }
  #usbk .usbk-specline { display: block; margin-top: 24px; }
  #usbk .usbk-specline li + li::before { content: none; }
  #usbk .usbk-details div { display: block; padding: 8px 0; }
  #usbk .usbk-details dt, #usbk .usbk-details dd { display: block; text-align: center; margin-right: 0; }
  #usbk .usbk-slide--solo { width: auto; justify-self: stretch; }
  #usbk .usbk-details dt { font-size: 14px; line-height: 20px; }
  #usbk .usbk-sec, #usbk .usbk-foot { padding-top: 60px; }
  #usbk .usbk-shop { padding-top: 48px; }
}
@supports not (container-type: inline-size) { @media (max-width: 700px) {
  #usbk .usbk-spreads { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #usbk .usbk-editions { gap: 48px; }
  #usbk .usbk-ed-meta { padding-bottom: 20px; }
  #usbk .usbk-specline { display: block; margin-top: 24px; }
  #usbk .usbk-specline li + li::before { content: none; }
  #usbk .usbk-details div { display: block; padding: 8px 0; }
  #usbk .usbk-details dt, #usbk .usbk-details dd { display: block; text-align: center; margin-right: 0; }
  #usbk .usbk-slide--solo { width: auto; justify-self: stretch; }
  #usbk .usbk-details dt { font-size: 14px; line-height: 20px; }
  #usbk .usbk-sec, #usbk .usbk-foot { padding-top: 60px; }
  #usbk .usbk-shop { padding-top: 48px; }
} }

/* Below the desktop width the site's column runs to the edge of the screen.
   Text and buttons keep a distance from the edge, photographs run from edge
   to edge as on the site's other pages. Title sizes follow the page titles. */
@media (max-width: 932px) {
  #usbk { padding-left: 20px; padding-right: 20px; }
  #usbk .usbk-head { padding: 28px 0 30px; }
  #usbk .usbk-title { font-size: 34px; line-height: 34px; margin-top: 10px; }
  #usbk .usbk-author { font-size: 17px; line-height: 17px; }
  #usbk .usbk-lede { font-size: 18px; line-height: 26px; margin-top: 20px; }
  #usbk .usbk-cover .usbk-zoom, #usbk .usbk-slide .usbk-zoom { margin-left: -20px; margin-right: -20px; }
  #usbk .usbk-ed-price { font-size: 34px; line-height: 34px; }
}
@media (max-width: 540px) {
  #usbk .usbk-printlist { gap: 32px 12px; }
  #usbk .usbk-printlist--landscape { grid-template-columns: minmax(0, 1fr); }
  #usbk { padding-left: 16px; padding-right: 16px; font-size: 16px; line-height: 24px; }
  #usbk .usbk-head { padding-top: 24px; }
  #usbk .usbk-title { font-size: 30px; line-height: 30px; }
  #usbk .usbk-cover .usbk-zoom, #usbk .usbk-slide .usbk-zoom { margin-left: -16px; margin-right: -16px; }
  #usbk .usbk-btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  #usbk * { transition: none !important; scroll-behavior: auto !important; }
}

/* Cover: 85% of the column, centered, so white space shows around it at every width */
#usbk .usbk-cover .usbk-zoom { width: 85%; margin-left: auto; margin-right: auto; }
