:root {
  --ink: #111820;
  --ink-2: #19232e;
  --paper: #f4f1e8;
  --paper-2: #fffdf7;
  --gold: #d9a714;
  --gold-2: #f0c94f;
  --red: #9c2e2e;
  --white: #ffffff;
  --muted: #68727c;
  --line: #d7d1c5;
  --shadow: 0 14px 35px rgba(8, 13, 18, .16);
  --radius: 18px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.62;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 34px)); margin: 0 auto; }
.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-size: .78rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 25, .96);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand-main {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.brand-sub {
  color: var(--gold-2);
  font-size: .73rem;
  margin-top: 6px;
  letter-spacing: .095em;
  text-transform: uppercase;
}
nav { display: flex; gap: 19px; align-items: center; }
nav a {
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .93rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
nav a:hover { color: var(--gold-2); }
.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 1.1rem;
}
.hero {
  background:
    linear-gradient(90deg, rgba(6,12,17,.97) 0%, rgba(6,12,17,.92) 45%, rgba(6,12,17,.72) 100%),
    radial-gradient(circle at 85% 20%, rgba(217,167,20,.20), transparent 40%),
    #0b141c;
  color: white;
  padding: 64px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 58px;
  align-items: center;
}
.hero h1 {
  margin: 12px 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero h1 span { color: var(--gold-2); }
.hero-copy {
  max-width: 700px;
  font-size: 1.16rem;
  color: rgba(255,255,255,.86);
}
.hero-actions, .book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { background: var(--gold-2); }
.btn-light { background: white; color: var(--ink); }
.btn-outline { border-color: rgba(255,255,255,.34); color: white; }
.btn-dark-outline { border-color: var(--ink); color: var(--ink); }
.btn.disabled { opacity: .54; cursor: not-allowed; }
.hero-cover {
  width: min(400px, 86%);
  justify-self: center;
  transform: perspective(1100px) rotateY(-5deg);
  border-radius: 5px;
  box-shadow: 0 28px 65px rgba(0,0,0,.5);
}
.section { padding: 82px 0; }
.section.white { background: var(--paper-2); }
.section.dark { background: var(--ink); color: white; }
.section-head { max-width: 800px; margin-bottom: 34px; }
.section-head h2 {
  margin: 7px 0 9px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.dark .section-head p { color: rgba(255,255,255,.72); }
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.book-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 360px;
}
.book-card .cover-wrap { background: #0b141c; padding: 22px; display: flex; align-items: center; }
.book-card .cover-wrap img { border-radius: 3px; box-shadow: 0 13px 30px rgba(0,0,0,.35); }
.book-info { padding: 28px 28px 26px; }
.book-info .status {
  display: inline-block;
  background: #f4e7ad;
  color: #5d4907;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: 6px 10px;
}
.book-info h3 { font-size: 1.7rem; margin: 12px 0 4px; line-height: 1.08; }
.book-info .subtitle { color: var(--muted); margin: 0 0 15px; }
.book-info p { margin: 0 0 13px; }
.book-actions .btn { min-height: 42px; padding: 0 15px; font-size: .87rem; }
.book-actions .btn-primary { background: var(--ink); color: white; }
.book-placeholder {
  min-height: 316px;
  width: 100%;
  background:
    linear-gradient(150deg, rgba(217,167,20,.24), transparent 46%),
    linear-gradient(180deg, #101b24, #050a0e);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 17px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 13px 30px rgba(0,0,0,.35);
  text-align: center;
}
.book-placeholder strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  line-height: .94;
  text-transform: uppercase;
}
.book-placeholder small { margin-top: 16px; color: var(--gold-2); font-size: .82rem; }
.signed-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: start; }
.signed-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: 30px;
}
.signed-panel h3 { margin-top: 0; font-size: 1.65rem; }
.signed-panel ol { padding-left: 21px; }
.signed-panel li { margin-bottom: 9px; color: rgba(255,255,255,.82); }
.order-card {
  background: white;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.order-card h3 { margin: 0 0 8px; font-size: 1.55rem; }
.order-card .fine { color: var(--muted); font-size: .91rem; }
.order-card .btn { width: 100%; margin-top: 9px; }
.gallery-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.gallery-grid figure { margin: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; height: 440px; object-fit: cover; }
.gallery-grid .book-image { object-fit: contain; background: #09131b; padding: 25px; }
figcaption { padding: 14px 17px; color: var(--muted); font-size: .9rem; }
.section.book-photos { padding-top: 0; }
.book-photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.book-photos-grid figure { margin: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.book-photos-grid img { width: 100%; height: 360px; object-fit: cover; object-position: top; }
.book-photos-grid .landscape-image { object-position: center; }
.book-photos-grid .document-image { object-fit: contain; object-position: center; background: white; padding: 12px; }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.author-photo { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-copy h2 { font-family: Arial, Helvetica, sans-serif; font-size: 2.65rem; margin: 0 0 12px; line-height: 1; }
.about-copy p { font-size: 1.04rem; }
.reviews-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; align-items: start; }
.review-note {
  background: #fff7d3;
  border: 1px solid #e5d58c;
  border-radius: var(--radius);
  padding: 25px;
}
.review-note h3 { margin-top: 0; }
.review-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
label { display: block; margin-bottom: 5px; font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: .9rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid #bfc5ca;
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
  background: white;
  color: var(--ink);
}
textarea { min-height: 145px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.small { font-size: .89rem; color: var(--muted); }
.setup-box {
  margin-top: 24px;
  border-left: 4px solid var(--gold);
  background: #f5efd4;
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
}
.footer {
  background: #070d12;
  color: rgba(255,255,255,.74);
  padding: 38px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer a { color: white; }
@media (max-width: 980px) {
  .hero-grid, .signed-grid, .reviews-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .hero-cover { width: min(360px, 80%); }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #0a1219;
    padding: 17px;
    flex-direction: column;
    align-items: stretch;
  }
  nav.open { display: flex; }
  nav a { padding: 8px 0; }
  .hero { padding-top: 46px; }
  .hero-grid { gap: 38px; }
  .book-card { grid-template-columns: 145px 1fr; }
  .book-card .cover-wrap { padding: 12px; }
  .book-info { padding: 20px; }
  .about-grid, .gallery-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 26px; }
  .author-photo { max-width: 320px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid img { height: 380px; }
  .book-photos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .section { padding: 62px 0; }
  .book-card { grid-template-columns: 1fr; }
  .book-card .cover-wrap { justify-content: center; padding: 20px; }
  .book-card .cover-wrap img, .book-placeholder { max-width: 210px; }
  .hero-actions, .book-actions { flex-direction: column; }
  .btn { width: 100%; }
  .book-photos-grid { grid-template-columns: 1fr; }
  .book-photos-grid img { height: 420px; }
}
