:root {
  color-scheme: dark;
  --paper: #050505;
  --text: #d4cfc8;
  --muted: #a09990;
  --line: #2a2a32;
  --accent: #e4c060;
  --display: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: 'Inter', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #6d1e29; color: white; }
[hidden] { display: none !important; }
.catalogue-shell { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 24px; padding: 12px; background: var(--text); color: var(--paper); z-index: 12; }
.skip-link:focus { top: 16px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; }
.author-mark { color: var(--accent); font-family: var(--display); font-size: 16px; font-weight: 600; }
.header-note { color: var(--muted); font-family: var(--display); font-size: 10px; }
.catalogue-intro { position: relative; min-height: 350px; overflow: hidden; border-top: 1px solid #c9a22726; border-bottom: 1px solid #c9a22726; }
.masthead-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.masthead-copy { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 24px 20px 28px; background: #090909cc; }
.eyebrow { margin: 0 0 12px; color: #b99333; font-family: var(--display); font-size: 10px; line-height: 1.5; }
h1 { font-family: var(--display); font-size: 42px; line-height: 1.25; font-weight: 600; color: var(--accent); text-shadow: 0 0 20px #c9a22744; margin: 0; }
.intro-copy { color: #c3bdb3; font-family: Georgia, serif; font-size: 15px; font-style: italic; margin: 13px 0 0; line-height: 1.6; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 0 20px; }
.list-heading > :first-child { color: var(--accent); font-family: var(--display); font-size: 18px; font-weight: 600; }
.list-heading > :last-child { color: var(--muted); font-family: var(--display); font-size: 9px; text-align: right; }
.book-list { display: grid; gap: 24px; }
.book-row { display: grid; grid-template-columns: 184px minmax(0,1fr) 156px; gap: 32px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 6px; background: #0d0d10; box-shadow: 0 14px 32px #0005; }
.book-cover { display: block; width: 100%; aspect-ratio: 2 / 3; box-shadow: 0 10px 24px #0008; }
.book-cover img { display: block; width: 100%; height: 100%; object-fit: contain; border: 1px solid #c9a22740; border-radius: 3px; background: #070707; }
a.book-cover:hover { box-shadow: 0 12px 28px #000a, 0 0 0 1px #c9a22755; }
.book-details { min-width: 0; }
.book-number { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 10px; line-height: 1.5; }
.book-number > :first-child { color: #b99333; font-family: var(--display); font-size: 10px; }
.availability { color: #a4c6b1; }
.forthcoming-label { color: var(--muted); }
h2 { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.4; color: var(--accent); margin: 0; }
h2 a:hover { color: #fff0b3; }
.book-subtitle { font-family: Georgia, serif; font-size: 14px; font-style: italic; color: var(--muted); line-height: 1.65; margin: 14px 0; }
.book-description { font-size: 13px; color: #b5afa5; line-height: 1.85; margin: 0; max-width: 440px; }
.book-divider { width: 100%; height: 1px; background: var(--line); margin: 19px 0 14px; }
.book-format { color: #b99333; font-size: 9px; line-height: 1.7; margin: 0; }
.book-format span { margin: 0 6px; }
.book-action { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.checkout-link { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 16px; width: 100%; min-height: 48px; border: 1px solid #e4c060; border-radius: 3px; background: #c9a227; color: #0a0a0b; font-family: var(--display); font-size: 12px; font-weight: 700; transition: background 180ms ease, box-shadow 180ms ease; }
.checkout-link:hover { background: #e4c060; box-shadow: 0 5px 20px #c9a22726; }
.checkout-link span { font-family: Georgia, serif; font-size: 21px; line-height: 1; }
.coming-soon { width: 100%; padding: 14px 10px; border-top: 1px solid #c9a22740; border-bottom: 1px solid #c9a22740; font-family: var(--display); font-size: 15px; color: var(--accent); text-align: center; line-height: 1.5; }
.social-section { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 34px; padding: 30px 0 35px; }
.social-section h2 { font-size: 22px; }
#social-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 23px; min-height: 48px; }
.social-link { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #c9a22766; border-radius: 4px; color: var(--accent); background: #111114; transition: color 180ms ease, background 180ms ease; }
.social-link:hover, .social-link:focus-visible { background: var(--accent); color: #0a0a0b; }
.platform-icon { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.social-link.unconfigured { opacity: 0.6; }
.social-link::after { content: attr(data-label); position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--text); font-size: 10px; opacity: 0; pointer-events: none; white-space: nowrap; }
.social-link:hover::after, .social-link:focus-visible::after { opacity: 1; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0 30px; color: #817b71; font-size: 10px; line-height: 1.6; }
.site-footer em { font-family: Georgia, serif; font-size: 12px; margin-left: 4px; }
.site-footer > :last-child { color: #b99333; font-family: var(--display); }
.payment-recovery { border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; margin-top: 24px; background: #111114; font-size: 12px; line-height: 1.8; }
.payment-recovery p { margin: 0 0 12px; overflow-wrap: anywhere; }
.payment-recovery button { padding: 9px 15px; background: #c9a22714; color: var(--accent); border: 1px solid #c9a22766; border-radius: 3px; }
.payment-recovery button:disabled { opacity: 0.6; }
.download-overlay { display: none; position: fixed; inset: 0; background: #0a0a0bf2; z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.download-overlay.visible { display: flex; }
.download-card { position: relative; width: min(440px,100%); padding: 42px 32px; border: 1px solid #c9a22766; border-radius: 6px; background: #111114; text-align: center; }
.download-card h2 { font-size: 25px; }
.download-card > p:not(.eyebrow) { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 20px 0 28px; }
.download-card > button { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 26px; }
@media(max-width:1000px) {
  .catalogue-shell { width: calc(100% - 56px); }
  .book-row { grid-template-columns: 168px minmax(0,1fr); gap: 0 30px; padding: 28px; }
  .book-cover { grid-row: 1/3; align-self: start; }
  .book-action { grid-column: 2; margin-top: 24px; flex-direction: row; gap: 18px; }
  .checkout-link, .coming-soon { max-width: 154px; flex-shrink: 0; }
}
@media(max-width:650px) {
  .catalogue-shell { width: calc(100% - 40px); }
  .site-header { min-height: 58px; gap: 12px; }
  .author-mark { font-size: 14px; }
  .header-note { font-size: 8px; max-width: 90px; text-align: right; }
  .catalogue-intro { min-height: 290px; }
  .masthead-image { object-position: center top; }
  .masthead-copy { padding: 20px 12px; background: #090909; }
  h1 { font-size: 32px; }
  .eyebrow { font-size: 9px; }
  .intro-copy { font-size: 13px; }
  .list-heading { padding: 26px 0 18px; }
  .list-heading > :first-child { font-size: 15px; }
  .list-heading > :last-child { font-size: 8px; }
  .book-row { grid-template-columns: 126px minmax(0,1fr); gap: 0 23px; padding: 24px; }
  h2 { font-size: 22px; }
  .book-number { margin-bottom: 12px; font-size: 9px; }
  .book-subtitle { font-size: 13px; }
  .book-description { font-size: 12px; }
  .book-action { grid-column: 1/-1; margin-top: 24px; justify-content: space-between; }
  .checkout-link, .coming-soon { max-width: 145px; }
  .social-section h2 { font-size: 19px; }
  #social-links { gap: 12px; }
  .social-link { width: 44px; height: 44px; }
  .site-footer em { display: block; margin-left: 0; }
  .download-card .checkout-link { max-width: none; }
}
@media(max-width:460px) {
  .book-row { grid-template-columns: 108px minmax(0,1fr); gap: 0 18px; padding: 22px 18px; }
  .book-cover { grid-row: 1/4; }
  .book-details { display: contents; }
  .book-number { grid-column: 2; grid-row: 1; align-self: start; }
  .book-details h2 { grid-column: 2; grid-row: 2; }
  .book-subtitle { grid-column: 2; grid-row: 3; margin: 10px 0 0; }
  .book-description { grid-column: 1/-1; grid-row: 4; margin-top: 20px; }
  .book-divider { grid-column: 1/-1; grid-row: 5; }
  .book-format { grid-column: 1/-1; grid-row: 6; }
  .book-action { grid-row: 7; gap: 14px; }
  h2 { font-size: 19px; }
  .book-number { font-size: 8px; gap: 7px; }
  .book-number > :first-child { font-size: 9px; }
  .book-format { font-size: 8px; }
  .checkout-link { font-size: 11px; padding: 12px; gap: 12px; }
  .coming-soon { font-size: 13px; }
  #social-links { gap: 10px; }
}
@media(max-width:350px) {
  h1 { font-size: 28px; }
  .book-row { grid-template-columns: 94px minmax(0,1fr); gap: 0 14px; padding: 20px 15px; }
  h2 { font-size: 17px; }
  .checkout-link, .coming-soon { max-width: 124px; }
  .social-link { width: 42px; height: 42px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
