:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --ink: #1b2630;
  --muted: #535b60;
  --line: #c7c5bc;
  --red: #8e1f1f;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, section:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 16px; background: var(--paper); z-index: 1; }
.skip-link:focus { top: 12px; }
.masthead { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--ink); gap: 24px; }
.wordmark { font-size: 1rem; line-height: 1.25; text-decoration: none; }
.wordmark strong { font-size: 1.75rem; font-weight: normal; }
.catalogue-link { font: 1rem/1.5 Arial, sans-serif; }
.introduction { padding-block: 28px; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: normal; line-height: 1.15; letter-spacing: -.035em; margin: 0; }
h1 em { font-weight: normal; }
.imprint-copy { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.imprint-copy p { max-width: 68ch; font-size: 1rem; line-height: 1.6; margin: 0; }
.imprint-copy .aside { font-style: italic; color: var(--muted); margin-top: 8px; }
.catalogue { scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 3px double var(--ink); padding-block: 18px 24px; }
.section-heading h2 { font-size: 1.375rem; font-weight: normal; margin: 0; }
.section-heading span { font: .875rem/1.5 Arial, sans-serif; color: var(--muted); }
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cover-stage { display: flex; justify-content: center; align-items: center; padding: 28px; background: #e5e3dc; border-block: 1px solid #d8d8d0; }
.cover-stage img { display: block; width: 100%; max-width: 248px; height: auto; box-shadow: 4px 8px 16px #1b263026; }
.book { display: flex; flex-direction: column; }
.book-details { display: flex; flex: 1; flex-direction: column; padding-top: 24px; }
.cover-link, .title-link, .buy-link { cursor: pointer; }
.cover-link:hover, .cover-link:focus-visible { background: #dcd9ce; }
.title-link { display: block; min-height: 48px; text-decoration: none; }
.title-link:hover, .title-link:focus-visible { text-decoration: underline; }
.purchase-details { margin-top: auto; padding-top: 24px; }
.format-prices { display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; font: .875rem/1.5 Arial, sans-serif; }
.format-prices div { display: flex; gap: 8px; }
.format-prices dt { color: var(--muted); }
.format-prices dd { margin: 0; font-weight: bold; }
.price-note { color: var(--muted); font: .75rem/1.5 Arial, sans-serif; margin: 8px 0 0; }
.status { color: var(--muted); font: .875rem/1.5 Arial, sans-serif; margin: 0 0 12px; }
.available { color: var(--red); font-weight: bold; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: normal; line-height: 1.25; margin: 0; }
h3 span { display: block; color: var(--muted); font-size: 1.125rem; line-height: 1.5; margin-top: 6px; }
.buy-link { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; margin-top: 16px; padding: 12px 20px; background: var(--ink); color: #fff; font: 1rem/1.5 Arial, sans-serif; text-decoration: none; }
.buy-link:hover { background: #334652; text-decoration: underline; }
.production-note { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; }
.production-note h2 { font-size: 1.125rem; font-weight: normal; margin: 0 0 8px; }
.production-note p { max-width: 64ch; color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0; }
.production-note a { display: inline-block; padding-block: 12px; font: .875rem/1.5 Arial, sans-serif; }
footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 64px !important; padding-block: 24px 32px; }
footer p { font-size: .875rem; line-height: 1.6; margin: 0; }
footer p:last-child { color: var(--muted); font-style: italic; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .books { gap: 24px; }
  .cover-stage { padding: 16px; }
}
@media (max-width: 680px) {
  .masthead { padding-block: 12px; }
  .wordmark { font-size: .875rem; }
  .wordmark strong { font-size: 1.375rem; }
  .catalogue-link { display: inline-flex; align-items: center; min-height: 44px; }
  .introduction { padding-block: 16px; }
  h1 { font-size: clamp(1.5rem, 7vw, 1.75rem); }
  .section-heading { padding-block: 10px 12px; }
  .section-heading h2 { font-size: 1.125rem; }
  .section-heading span { display: none; }
  .books { grid-template-columns: 1fr; gap: 40px; }
  .cover-stage { padding: 10px; }
  /* Reserve room for the header and purchase details in the small viewport.
     Keep natural flow at enlarged text sizes: readability takes priority over fit. */
  .cover-stage img { width: auto; max-width: 100%; max-height: clamp(112px, calc(100svh - 440px), 260px); }
  .book-details { padding-top: 10px; }
  .status { margin-bottom: 6px; }
  h3 span { margin-top: 4px; font-size: 1rem; }
  .purchase-details { padding-top: 12px; }
  .format-prices { padding-top: 10px; gap: 8px 16px; }
  .buy-link { margin-top: 12px; }
  footer { flex-direction: column; gap: 8px; margin-top: 48px !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .buy-link { transition: background-color .15s ease; }
}
