:root {
  --black: #080808;
  --black-soft: #171717;
  --white: #ffffff;
  --paper: #f7f3eb;
  --paper-2: #efe6d5;
  --gold: #c89435;
  --gold-light: #f1d184;
  --gold-dark: #8b631e;
  --text: #151515;
  --muted: #5d5a52;
  --line: rgba(21, 21, 21, 0.14);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 86px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(8, 8, 8, 0.94);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  width: clamp(168px, 18vw, 250px);
  height: 74px;
  object-fit: contain;
  object-position: center;
  background: #15110a;
  border: 1px solid rgba(241, 209, 132, 0.48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 28px);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  opacity: 0.84;
  transition: color 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold-light);
  opacity: 1;
}

.nav-amazon {
  border: 1px solid rgba(241, 209, 132, 0.66);
  padding: 10px 13px;
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(241, 209, 132, 0.52);
  background: transparent;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero-home {
  min-height: clamp(540px, 72vh, 680px);
  display: grid;
  align-items: center;
  padding: clamp(28px, 4vw, 46px) clamp(18px, 4vw, 52px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.72) 44%, rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08));
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.hero-copy-block {
  max-width: 740px;
}

.hero-logo-panel {
  padding: 18px;
  border: 1px solid rgba(241, 209, 132, 0.44);
  background: rgba(8, 8, 8, 0.48);
  box-shadow: var(--shadow);
}

.hero-logo-panel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 74px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 58px);
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
}

.hero-subheadline {
  color: var(--gold-light);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 800;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--black);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--white);
}

.button-light {
  border-color: var(--line);
  color: var(--black);
  background: rgba(255, 255, 255, 0.82);
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button-disabled {
  border-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}

.section,
.page-hero,
.cta-section {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 4vw, 52px);
}

.page-hero {
  background: linear-gradient(135deg, var(--black), #241b0d);
  color: var(--white);
}

.page-hero > * {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.section-heading,
.section-grid,
.book-grid,
.filter-bar,
.prose-section,
.author-layout,
.contact-layout,
.cta-section,
.footer-inner,
.copyright {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.5fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.section-grid p {
  color: var(--muted);
  font-size: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: center;
}

.intro-band {
  background: var(--black);
  color: var(--white);
}

.intro-band p {
  color: rgba(255, 255, 255, 0.72);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.book-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(8, 8, 8, 0.08);
  overflow: hidden;
}

.book-cover-link,
.book-cover-frame {
  display: grid;
  place-items: center;
  min-height: 312px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(200, 148, 53, 0.18), transparent 32%),
    linear-gradient(145deg, var(--black), #33240c);
}

.book-cover {
  width: min(72%, 190px);
  max-height: 268px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.42));
}

.cover-fallback {
  display: none;
  width: min(72%, 190px);
  min-height: 268px;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border: 1px solid rgba(241, 209, 132, 0.5);
  background:
    linear-gradient(145deg, rgba(241, 209, 132, 0.18), transparent 36%),
    var(--black);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.14;
  text-align: center;
  box-shadow: 0 18px 22px rgba(0, 0, 0, 0.42);
}

.is-missing-cover .cover-fallback {
  display: flex;
}

.book-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.book-category {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-subtitle {
  color: var(--muted);
  font-weight: 800;
}

.format-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.book-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid rgba(200, 148, 53, 0.42);
  background: rgba(200, 148, 53, 0.1);
  color: var(--black);
  padding: 7px 10px;
  font-size: 20px;
  font-weight: 900;
}

.book-price span {
  color: var(--gold-dark);
  font-size: 11px;
  text-transform: uppercase;
}

.book-description {
  color: var(--muted);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--black);
  color: var(--gold-light);
  border-color: var(--black);
}

.prose {
  max-width: 900px;
  font-size: 20px;
}

.prose p {
  color: var(--muted);
}

.author-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.author-photo-placeholder {
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--black), #33240c);
  color: var(--gold-light);
  text-align: center;
  padding: 30px;
}

.author-photo-placeholder span {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 209, 132, 0.52);
  border-radius: 50%;
  font-weight: 900;
}

.book-detail {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.book-detail-wrap {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 4vw, 52px);
}

.book-detail .book-cover-frame {
  min-height: 520px;
}

.book-detail .book-cover {
  width: min(80%, 310px);
  max-height: 460px;
}

.book-detail .cover-fallback {
  width: min(80%, 310px);
  min-height: 460px;
  font-size: 28px;
}

.book-meta-list {
  display: grid;
  gap: 9px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.contact-card,
.contact-form {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(24px, 4vw, 34px);
}

.contact-card a {
  color: var(--gold-dark);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
}

.form-status {
  margin: 0;
  color: var(--muted);
}

.cta-section {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.cta-section p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 54px clamp(18px, 4vw, 52px) 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 30px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  max-width: 620px;
}

.footer-brand img {
  width: 220px;
  height: 100px;
  object-fit: contain;
  background: #15110a;
  border: 1px solid rgba(241, 209, 132, 0.48);
}

.footer-brand p,
.copyright {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 9px;
  justify-items: end;
  font-weight: 900;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.copyright {
  padding-top: 22px;
  margin-bottom: 0;
}

@media (max-width: 1060px) {
  .site-header {
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset: 86px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border: 1px solid rgba(241, 209, 132, 0.36);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-amazon {
    border: 0;
  }

  .hero-grid,
  .section-heading,
  .section-grid,
  .author-layout,
  .contact-layout,
  .book-detail {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 76px;
    padding: 10px 16px;
  }

  .brand-logo {
    width: 138px;
    height: 58px;
  }

  .main-nav {
    inset: 76px 16px auto;
  }

  .hero-home {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 62px);
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-cover-link,
  .book-cover-frame {
    min-height: 270px;
  }

  .footer-inner,
  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-items: start;
  }
}
