:root {
  --ink: #241a15;
  --muted: #6d5b4e;
  --paper: #f7f0e4;
  --panel: #fffaf2;
  --line: #dfd1bf;
  --red: #8c2f28;
  --red-dark: #5c201d;
  --teal: #1f6f68;
  --gold: #bd8f45;
  --shadow: 0 18px 40px rgba(45, 29, 18, 0.13);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.88), rgba(247, 240, 228, 0.98)),
    radial-gradient(circle at top right, rgba(31, 111, 104, 0.13), transparent 35%),
    var(--paper);
}
a { color: var(--red-dark); text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 4; padding: 10px; background: white; }
.site-head {
  color: #fff8ed;
  background: linear-gradient(120deg, #251713, #5c201d 58%, #1f6f68);
}
.site-head__inner, .site-foot__inner, .page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-head__inner { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-weight: 800; text-decoration: none; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.site-head .brand__logo { filter: grayscale(1) brightness(0) invert(1); }
.brand__logo--full { width: 72px; height: 72px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-nav a { color: rgba(255,248,237,.88); font-weight: 700; text-decoration: none; }
.site-menu-toggle { display: none; }
.page { padding: 38px 0 80px; }
.breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: .92rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: " /"; color: #a18e7e; }
.eyebrow { margin: 0 0 9px; color: var(--red); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1; }
h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { margin: 0 0 6px; font-size: 1.25rem; }
.lede { max-width: 780px; color: var(--muted); font-size: 1.16rem; line-height: 1.7; }
.hero-actions, .tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button, .tag {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
  font-weight: 750;
}
.button--primary { color: #fff8ed; background: var(--red-dark); border-color: var(--red-dark); }
.section { margin-top: 54px; }
.panel { padding: 26px; background: rgba(255,250,242,.88); border: 1px solid var(--line); box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.card__meta { color: var(--red); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.card a { font-weight: 780; }
.book-hero { display: grid; grid-template-columns: minmax(190px, 270px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cover { aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #d7c7b4, #fffaf2); box-shadow: var(--shadow); }
.cover img { width: 100%; height: 100%; object-fit: contain; background: #fffaf2; }
.cover--fallback { padding: 28px; border: 1px solid var(--line); color: var(--red-dark); text-align: center; font: 700 1.4rem/1.25 Georgia, serif; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; margin: 26px 0 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; }
.work-list { margin: 0; padding-left: 1.3rem; }
.work-list li { margin: 0 0 11px; padding-left: 4px; line-height: 1.5; }
.edition { padding: 22px 0; border-top: 1px solid var(--line); }
.edition:first-child { border-top: 0; }
.site-foot { color: #fff8ed; background: #251713; }
.site-foot__inner { display: flex; justify-content: space-between; gap: 30px; padding: 36px 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-foot a { color: inherit; }
@media (max-width: 820px) {
  .grid, .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-hero { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .site-head__inner { position: relative; min-height: 70px; }
  .brand__logo { width: 44px; height: 44px; }
  .site-foot__inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .site-menu-toggle { display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 1px solid rgba(255,248,237,.42); border-radius: 50%; background: rgba(24,15,12,.32); color: #fff8ed; }
  .site-menu-toggle span { width: 20px; height: 2px; border-radius: 999px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .site-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .site-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; z-index: 3; top: 64px; right: 0; left: 0; display: grid; gap: 2px; margin: 0; padding: 14px; border: 1px solid rgba(255,248,237,.18); border-radius: 14px; background: #251713; box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms; }
  .site-nav[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .grid, .grid--four, .book-hero, .facts { grid-template-columns: 1fr; }
  .cover { width: min(240px, 70vw); }
  h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu-toggle span, .site-nav { transition: none; }
}
