:root {
  --ink: #090807;
  --ink-soft: #15110e;
  --cream: #f4eddf;
  --paper: #fffaf0;
  --gold: #d8b35f;
  --gold-bright: #f0d48e;
  --plum: #4b264f;
  --wine: #6d2938;
  --muted: #746d64;
  --line: rgba(20, 16, 13, .14);
  --shadow: 0 25px 70px rgba(24, 15, 9, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.catalog-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 76px);
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid rgba(216, 179, 95, .28);
}
.catalog-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.catalog-brand-mark {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-bright), #b98732);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.catalog-brand strong, .catalog-brand small { display: block; }
.catalog-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.catalog-brand small { margin-top: 2px; color: #cfc3b4; font-size: .875rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.catalog-header nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.catalog-header nav a { color: #d8d0c5; font-size: .875rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.catalog-header nav a:hover { color: var(--gold-bright); }

.catalog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .34fr);
  gap: 70px;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) clamp(22px, 7vw, 110px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 40%, rgba(99, 45, 76, .48), transparent 31%),
    radial-gradient(circle at 18% 0%, rgba(216, 179, 95, .13), transparent 33%),
    linear-gradient(125deg, #080706 0%, #130f0d 60%, #22121f 100%);
}
.catalog-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent, #000 48%, #000);
}
.catalog-hero::after {
  position: absolute;
  right: -150px;
  bottom: -300px;
  width: 650px;
  height: 650px;
  content: "";
  border: 1px solid rgba(216,179,95,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(216,179,95,.035), 0 0 0 145px rgba(216,179,95,.025);
}
.catalog-hero-copy, .catalog-seal { position: relative; z-index: 1; }
.catalog-kicker, .catalog-overline {
  margin: 0 0 20px;
  color: var(--gold-bright);
  font-size: .875rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.catalog-kicker { display: flex; align-items: center; gap: 11px; }
.catalog-kicker span { width: 34px; height: 1px; background: currentColor; }
.catalog-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.5vw, 104px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .93;
}
.catalog-hero h1 em { color: var(--gold-bright); font-weight: 500; }
.catalog-hero-copy > p:last-child { max-width: 720px; margin: 34px 0 0; color: #d8d0c5; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.75; }
.catalog-seal {
  align-self: center;
  justify-self: end;
  width: min(100%, 310px);
  padding: 34px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(216,179,95,.38);
  backdrop-filter: blur(15px);
}
.catalog-seal > span { display: inline-block; padding: 6px 9px; color: var(--ink); background: var(--gold-bright); font-size: .875rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.catalog-seal strong { display: block; margin: 22px 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; line-height: 1.1; }
.catalog-seal small { color: #cfc3b4; font-size: .875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.catalog-command {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  margin: -65px auto 0;
  padding: clamp(30px, 5vw, 58px);
  background: var(--paper);
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow);
}
.catalog-command-heading { display: grid; grid-template-columns: 1fr minmax(250px, .55fr); gap: 55px; align-items: end; }
.catalog-command-heading h2, .catalog-browser-head h2, .catalog-trust h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 57px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.04;
}
.catalog-command-heading > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.catalog-overline { margin-bottom: 13px; color: var(--wine); }
.catalog-search { margin-top: 35px; }
.catalog-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.catalog-search-box {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 10px 10px 10px 21px;
  background: #fff;
  border: 1px solid #cfc4b6;
  box-shadow: inset 0 0 0 2px transparent;
  transition: border-color .2s, box-shadow .2s;
}
.catalog-search-box:focus-within { border-color: var(--gold); box-shadow: inset 0 0 0 2px rgba(216,179,95,.2); }
.catalog-search-box svg { width: 23px; fill: none; stroke: var(--plum); stroke-linecap: round; stroke-width: 1.8; }
.catalog-search-box input { min-width: 0; padding: 14px 3px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 17px; }
.catalog-search-box input::placeholder { color: #958c82; }
.catalog-search-box button {
  min-height: 52px;
  padding: 0 24px;
  color: var(--ink);
  background: var(--gold-bright);
  border: 0;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-search-box button:hover { background: var(--gold); }
.catalog-prompts { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 17px; }
.catalog-prompts > span { margin-right: 3px; color: var(--muted); font-size: .875rem; font-weight: 800; text-transform: uppercase; }
.catalog-prompts button {
  padding: 8px 12px;
  color: var(--plum);
  background: #f2e9da;
  border: 1px solid #dbcebb;
  border-radius: 999px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 750;
}
.catalog-prompts button:hover { color: #fff; background: var(--plum); border-color: var(--plum); }

.catalog-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1110px, calc(100% - 50px));
  margin: 42px auto 0;
  color: #fff;
  background: var(--plum);
}
.catalog-metrics div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; }
.catalog-metrics div + div { border-left: 1px solid rgba(255,255,255,.14); }
.catalog-metrics strong { color: var(--gold-bright); font-family: Georgia, "Times New Roman", serif; font-size: 35px; font-weight: 500; line-height: 1; }
.catalog-metrics span { margin-top: 9px; color: #ddd1df; font-size: .875rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.catalog-browser { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 125px; }
.catalog-browser-head { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; }
.catalog-browser-head h2 { max-width: 800px; }
.saved-toggle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 0 17px;
  color: var(--ink);
  background: transparent;
  border: 1px solid #bfb2a2;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 850;
  text-transform: uppercase;
}
.saved-toggle span { color: var(--wine); font-size: 19px; }
.saved-toggle b { display: grid; min-width: 22px; height: 22px; place-items: center; color: #fff; background: var(--plum); border-radius: 50%; font-size: .875rem; }
.saved-toggle[aria-pressed="true"] { color: #fff; background: var(--plum); border-color: var(--plum); }
.saved-toggle[aria-pressed="true"] span { color: var(--gold-bright); }
.saved-toggle[aria-pressed="true"] b { color: var(--ink); background: var(--gold-bright); }

.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.catalog-filters button {
  min-height: 43px;
  padding: 0 17px;
  color: #514a43;
  background: transparent;
  border: 1px solid #cfc4b6;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-filters button:hover, .catalog-filters button.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.catalog-filters button[data-filter="free"].active { color: var(--ink); background: var(--gold-bright); border-color: var(--gold); }
.catalog-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 80px; }
.catalog-result-bar p { margin: 0; color: #635b52; font-size: .875rem; font-weight: 700; }
.catalog-result-bar label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .875rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.catalog-result-bar select { min-height: 40px; padding: 0 34px 0 12px; color: var(--ink); background: #fff; border: 1px solid #cfc4b6; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.catalog-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(23, 14, 9, .055);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.catalog-card:hover { transform: translateY(-5px); border-color: rgba(109,41,56,.35); box-shadow: 0 25px 55px rgba(23,14,9,.13); }
.catalog-card-media { position: relative; display: grid; height: 285px; overflow: hidden; place-items: center; background: linear-gradient(145deg, #17120f, #321a2c); }
.catalog-card-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(to top, rgba(8,7,6,.4), transparent 50%); pointer-events: none; }
.catalog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-card[data-type="book"] .catalog-card-media img { width: auto; max-width: 82%; height: 88%; object-fit: contain; filter: drop-shadow(0 17px 18px rgba(0,0,0,.35)); }
.catalog-card:hover .catalog-card-media img { transform: scale(1.025); }
.catalog-type {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 9px;
  color: var(--ink);
  background: rgba(240,212,142,.96);
  font-size: .875rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.catalog-free { position: absolute; right: 14px; bottom: 13px; z-index: 2; padding: 6px 9px; color: #fff; background: var(--wine); font-size: .875rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.catalog-save {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(9,8,7,.72);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}
.catalog-save[aria-pressed="true"] { color: var(--ink); background: var(--gold-bright); border-color: var(--gold-bright); }
.catalog-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px 23px 25px; }
.catalog-card-theme { margin: 0 0 10px; color: var(--wine); font-size: .875rem; font-weight: 950; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.catalog-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
.catalog-card-subtitle { margin: 12px 0 0; color: #554f48; font-size: .875rem; font-weight: 750; line-height: 1.55; }
.catalog-card-description { display: -webkit-box; margin: 15px 0 22px; overflow: hidden; color: var(--muted); font-size: .875rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.catalog-card-actions { display: flex; gap: 9px; align-items: center; margin-top: auto; }
.catalog-card-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; text-decoration: none; font-size: .875rem; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
.catalog-primary { color: #fff; background: var(--ink); }
.catalog-primary:hover { color: var(--ink); background: var(--gold-bright); }
.catalog-secondary { color: var(--plum); border: 1px solid #c7b9aa; }
.catalog-secondary:hover { border-color: var(--plum); }

.catalog-empty { padding: 70px 30px; text-align: center; background: #eee4d5; border: 1px dashed #b7a692; }
.catalog-empty > span { display: grid; width: 70px; height: 70px; margin: 0 auto 20px; place-items: center; color: var(--ink); background: var(--gold-bright); border-radius: 50%; font-family: Georgia, serif; font-weight: 800; }
.catalog-empty h3 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.catalog-empty p { max-width: 620px; margin: 13px auto 24px; color: var(--muted); }
.catalog-empty button { min-height: 46px; padding: 0 20px; color: #fff; background: var(--plum); border: 0; cursor: pointer; font-weight: 800; }

.catalog-trust {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  padding: clamp(70px, 9vw, 125px) clamp(22px, 7vw, 110px);
  color: #fff;
  background: var(--ink);
}
.catalog-trust h2 { max-width: 620px; }
.catalog-trust-list { border-top: 1px solid rgba(255,255,255,.17); }
.catalog-trust-list p { display: grid; grid-template-columns: 42px 170px 1fr; gap: 18px; align-items: start; margin: 0; padding: 25px 0; color: #cfc8bf; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.catalog-trust-list span { color: var(--gold-bright); font-size: .875rem; font-weight: 900; }
.catalog-trust-list strong { color: #fff; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }

.catalog-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 35px; align-items: center; padding: 35px clamp(22px, 7vw, 110px); color: #d7cfc5; background: #050403; border-top: 1px solid rgba(216,179,95,.22); font-size: .875rem; }
.catalog-footer > div { display: flex; gap: 13px; align-items: center; }
.catalog-footer p { margin: 0; }
.catalog-footer > p { text-align: center; }
.catalog-footer a { color: var(--gold-bright); font-weight: 800; }
.catalog-noscript { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 30; padding: 18px; color: #fff; background: var(--wine); text-align: center; }

@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-hero { grid-template-columns: 1fr minmax(220px, .38fr); gap: 35px; }
  .catalog-trust { gap: 45px; }
}

@media (max-width: 820px) {
  .catalog-header { align-items: flex-start; }
  .catalog-header nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 18px; justify-items: end; }
  .catalog-hero { grid-template-columns: 1fr; min-height: auto; }
  .catalog-seal { justify-self: start; }
  .catalog-command-heading, .catalog-browser-head, .catalog-trust { grid-template-columns: 1fr; }
  .catalog-command-heading { gap: 18px; }
  .catalog-metrics { grid-template-columns: repeat(2, 1fr); }
  .catalog-metrics div:nth-child(3) { border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .catalog-metrics div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saved-toggle { justify-self: start; }
  .catalog-trust-list p { grid-template-columns: 38px 150px 1fr; }
  .catalog-footer { grid-template-columns: 1fr; text-align: center; }
  .catalog-footer > div { justify-content: center; }
}

@media (max-width: 590px) {
  .catalog-header { align-items: center; min-height: 72px; padding: 11px 16px; }
  .catalog-brand small { display: none; }
  .catalog-header nav a:not(:first-child) { display: none; }
  .catalog-header nav { display: block; }
  .catalog-header nav a { font-size: .875rem; }
  .catalog-brand-mark { width: 42px; height: 42px; }
  .catalog-hero { gap: 34px; padding: 68px 21px 118px; }
  .catalog-hero h1 { font-size: clamp(50px, 15vw, 69px); }
  .catalog-hero-copy > p:last-child { margin-top: 25px; font-size: 16px; }
  .catalog-seal { padding: 25px; }
  .catalog-command { width: calc(100% - 24px); margin-top: -70px; padding: 30px 19px 34px; }
  .catalog-search-box { grid-template-columns: 23px 1fr; padding: 9px 13px; }
  .catalog-search-box button { grid-column: 1 / -1; width: 100%; }
  .catalog-prompts { align-items: stretch; flex-direction: column; }
  .catalog-prompts > span { margin-bottom: 3px; }
  .catalog-prompts button { min-height: 40px; border-radius: 0; text-align: left; }
  .catalog-metrics { width: calc(100% - 24px); }
  .catalog-metrics div { min-height: 95px; padding: 18px; }
  .catalog-metrics strong { font-size: 29px; }
  .catalog-browser { width: calc(100% - 24px); padding: 78px 0 90px; }
  .catalog-browser-head { gap: 25px; }
  .catalog-filters { display: grid; grid-template-columns: repeat(2, 1fr); }
  .catalog-filters button { padding: 0 8px; }
  .catalog-result-bar { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .catalog-result-bar label, .catalog-result-bar select { width: 100%; }
  .catalog-grid { grid-template-columns: 1fr; gap: 18px; }
  .catalog-card { display: grid; grid-template-columns: 122px 1fr; }
  .catalog-card-media { height: 100%; min-height: 230px; }
  .catalog-card[data-type="book"] .catalog-card-media img { max-width: 92%; height: 85%; }
  .catalog-type { top: 9px; left: 9px; padding: 5px 6px; font-size: .875rem; }
  .catalog-save { top: 8px; right: 8px; width: 34px; height: 34px; }
  .catalog-free { right: 8px; bottom: 8px; left: 8px; padding: 5px 4px; text-align: center; }
  .catalog-card-body { min-width: 0; padding: 19px 16px; }
  .catalog-card h3 { font-size: 22px; }
  .catalog-card-subtitle { font-size: .875rem; }
  .catalog-card-description { margin: 11px 0 16px; font-size: .875rem; -webkit-line-clamp: 3; }
  .catalog-card-actions { align-items: stretch; flex-direction: column; }
  .catalog-card-actions a { width: 100%; }
  .catalog-trust { gap: 45px; padding: 75px 21px; }
  .catalog-trust-list p { grid-template-columns: 35px 1fr; gap: 8px 12px; }
  .catalog-trust-list p strong { grid-column: 2; }
  .catalog-trust-list p { grid-template-areas: "number title" ". copy"; }
  .catalog-trust-list span { grid-area: number; }
  .catalog-trust-list strong { grid-area: title; }
  .catalog-trust-list p { color: #cfc8bf; }
  .catalog-footer { padding: 35px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Permanent book record pages */
.book-detail-page { background: #efe5d5; }
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  color: #6d645b;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.detail-breadcrumb a { text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--wine); }
.detail-breadcrumb span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(125deg, #090807 0%, #17110e 62%, #2b1729 100%);
  box-shadow: var(--shadow);
}
.book-detail-art {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 650px;
  padding: clamp(40px, 6vw, 75px);
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(216,179,95,.2), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px);
  border-right: 1px solid rgba(255,255,255,.1);
}
.book-detail-art::before {
  position: absolute;
  inset: 9%;
  content: "";
  border: 1px solid rgba(216,179,95,.25);
}
.book-detail-art img { position: relative; z-index: 1; width: auto; max-width: 100%; height: auto; max-height: 590px; object-fit: contain; filter: drop-shadow(0 28px 32px rgba(0,0,0,.48)); }
.book-detail-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 88px); }
.book-detail-copy .catalog-kicker { margin-bottom: 27px; }
.book-detail-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 83px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.book-detail-subtitle { max-width: 720px; margin: 25px 0 0; color: #e4d9cb; font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2vw, 25px); line-height: 1.35; }
.book-detail-theme { margin: 22px 0 0; color: var(--gold-bright); font-size: .875rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.book-detail-description { max-width: 760px; margin: 25px 0 0; color: #c9c0b6; font-size: 15px; line-height: 1.8; }
.book-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.detail-button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 20px; text-decoration: none; font-size: .875rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.detail-button-gold { color: var(--ink); background: var(--gold-bright); }
.detail-button-gold:hover { background: var(--gold); }
.detail-button-outline { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.detail-button-outline:hover { color: var(--ink); background: #fff; }
.book-detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 36px 0 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.book-detail-facts div { min-width: 0; padding: 18px 15px 18px 0; }
.book-detail-facts div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.13); }
.book-detail-facts dt { color: #a99e92; font-size: .875rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.book-detail-facts dd { margin: 7px 0 0; overflow-wrap: anywhere; color: #fff; font-size: .875rem; font-weight: 700; }
.book-detail-about {
  display: grid;
  grid-template-columns: minmax(230px, .55fr) 1.45fr;
  gap: 35px 65px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0;
}
.book-detail-about .catalog-overline { grid-column: 1; }
.book-detail-about h2 { grid-column: 1; margin: -20px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 4.5vw, 54px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.book-detail-about > p:not(.catalog-overline) { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: #574f47; font-size: 18px; line-height: 1.9; }
.book-detail-about > a { grid-column: 2; color: var(--wine); font-size: .875rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.book-related { padding: clamp(70px, 8vw, 110px) clamp(20px, 6vw, 90px); background: var(--paper); }
.book-related > div:first-child { width: min(1180px, 100%); margin: 0 auto 35px; }
.book-related h2 { max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 4.5vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.book-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: min(1180px, 100%); margin: 0 auto; }
.book-related-card { display: grid; grid-template-columns: 105px 1fr; gap: 9px 19px; align-items: center; min-height: 170px; padding: 20px; text-decoration: none; background: #f2e9dc; border: 1px solid #ded1bf; }
.book-related-card:hover { border-color: var(--wine); box-shadow: 0 13px 30px rgba(25,14,8,.1); }
.book-related-card > span { grid-row: 1 / span 2; display: grid; height: 130px; place-items: center; background: var(--ink); }
.book-related-card img { width: auto; max-width: 88%; height: 118px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,0,0,.3)); }
.book-related-card strong { align-self: end; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.13; }
.book-related-card small { align-self: start; color: var(--wine); font-size: .875rem; font-weight: 850; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }

@media (max-width: 900px) {
  .book-detail-hero { grid-template-columns: 1fr; }
  .book-detail-art { min-height: 530px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .book-detail-art img { max-height: 450px; }
  .book-detail-about { grid-template-columns: 1fr; }
  .book-detail-about .catalog-overline, .book-detail-about h2, .book-detail-about > p:not(.catalog-overline), .book-detail-about > a { grid-column: 1; grid-row: auto; }
  .book-detail-about > p:not(.catalog-overline) { font-size: 16px; }
  .book-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
  .detail-breadcrumb { width: calc(100% - 28px); }
  .book-detail-hero { width: 100%; }
  .book-detail-art { min-height: 440px; padding: 48px; }
  .book-detail-art img { max-height: 350px; }
  .book-detail-copy { padding: 42px 21px 50px; }
  .book-detail-copy h1 { font-size: clamp(46px, 14vw, 62px); }
  .book-detail-subtitle { font-size: 19px; }
  .book-detail-actions { align-items: stretch; flex-direction: column; }
  .detail-button { width: 100%; }
  .book-detail-facts { grid-template-columns: 1fr; }
  .book-detail-facts div + div { padding-left: 0; border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .book-detail-about { width: calc(100% - 38px); gap: 27px; }
  .book-related { padding-inline: 14px; }
  .book-related-card { grid-template-columns: 90px 1fr; padding: 15px; }
  .book-related-card > span { height: 120px; }
  .book-related-card img { height: 108px; }
}
/* Readable navigation and controls at narrow widths and enlarged text. */
.catalog-header{flex-wrap:wrap;gap:16px;padding-block:18px}.catalog-header nav{flex-wrap:wrap;gap:8px 20px}.catalog-header nav a{display:inline-flex;align-items:center;min-height:44px;letter-spacing:.015em}.catalog-search input,.catalog-result-bar select{font-size:1rem;min-height:48px}.catalog-card-description,.book-detail-description{font-size:1rem}.catalog-card-actions a{min-height:44px;line-height:1.5}.catalog-hero h1{line-height:1.08}
