* { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.6 system-ui, "Segoe UI", Arial, sans-serif; }
.site-header, main { width: min(calc(100% - 40px), 1050px); margin-inline: auto; }
.site-header { padding-bottom: 20px; }
.site-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.breadcrumb { margin-top: 5px; font-size: .9rem; }
.book-page {
  display: grid;
  grid-template: "cover heading" auto "cover story" 1fr "details details" auto /
                 minmax(200px, 32%) minmax(0, 1fr);
  gap: 22px clamp(24px, 4vw, 50px);
}
.book-heading { grid-area: heading; }
h1, h2, h3, .book-subtitle { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2 { margin: 0; font-size: 2rem; font-weight: 500; }
h3 { margin: 0; font-size: 1.4rem; }
.author { margin: 12px 0 2px; font-size: 1.13rem; }
.book-subtitle { margin: 7px 0 0; font-style: italic; font-size: 1.3rem; }
.links { display: flex; gap: 12px; flex-wrap: wrap; }
.edition-links { margin-top: 19px; }
.button { padding: 10px 16px; text-decoration: none; font-weight: 650; border-radius: 5px; }
body.cosmic-page .edition-links .button { color: #101016 !important; }
body.cosmic-page .edition-links .secondary { color: #fff0cf !important; }
a:focus-visible { outline: 3px solid #f7d575; outline-offset: 3px; }
.cover { grid-area: cover; align-self: start; width: 100%; height: auto; display: block; border-radius: 3px; }
.blurb { grid-area: story; }
.blurb p { margin: 0 0 1em; }
.blurb p:last-child { margin-bottom: 0; }
.details { grid-area: details; padding-top: 22px; border-top: 1px solid var(--cosmic-border); }
.details > p { margin: 4px 0 18px; }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.edition-grid section { border-top: 1px solid var(--cosmic-border); padding-top: 12px; }
dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(90px, 35%) minmax(0, 1fr); gap: 7px 14px; }
dt { font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; }
footer p { margin: 0 0 10px; }
@media (max-width: 700px) {
  .book-page { grid-template: "heading" auto "cover" auto "story" auto "details" auto / minmax(0, 1fr); }
  .cover { width: min(100%, 250px); justify-self: start; }
  .edition-grid { grid-template-columns: minmax(0, 1fr); }
}
