:root {
  --ink: #1d2233;
  --ink-soft: #3b4157;
  --paper: #f7f1e6;
  --paper-deep: #efe6d3;
  --accent: #8c2f39;
  --accent-dark: #6d2029;
  --gold: #b8934a;
  --white: #fffdf8;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(29, 34, 51, .96);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--paper); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand:hover { color: var(--gold); }
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--paper); text-decoration: none; font-size: .95rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(184,147,74,.22), transparent 55%),
    linear-gradient(160deg, #1d2233 0%, #2a2f48 100%);
  color: var(--paper);
  padding: clamp(3.5rem, 10vw, 7rem) 0;
}
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: #e3dccb; max-width: 34em; }
.hero h1 span { color: var(--gold); }
.buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
  border: 2px solid var(--accent);
  transition: background .2s, transform .2s;
  font-family: inherit; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.btn.ghost { background: transparent; border-color: var(--gold); color: var(--paper); }
.btn.ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Book cover placeholder */
.cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, var(--paper-deep), #e4d7bb);
  border: 2px dashed var(--gold);
  border-radius: 3px 8px 8px 3px;
  box-shadow: -6px 0 0 rgba(0,0,0,.12) inset, 0 18px 30px rgba(0,0,0,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
  color: var(--ink-soft);
}
.cover strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.cover small { margin-top: .5rem; font-size: .85rem; letter-spacing: .05em; }
.hero .cover { max-width: 280px; margin-inline: auto; transform: rotate(2deg); }

/* Real cover images */
.cover-img { display: block; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: 0 18px 30px rgba(0,0,0,.25); line-height: 0; position: relative; }
.cover-img img { display: block; width: 100%; height: auto; }
.cover-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 6px 0 6px -4px rgba(0,0,0,.35); pointer-events: none; }
.hero .hero-cover { max-width: 280px; margin-inline: auto; transform: rotate(2deg); transition: transform .25s; }
.hero .hero-cover:hover { transform: rotate(0deg) translateY(-4px); }
.book .cover-img { box-shadow: 0 10px 20px rgba(0,0,0,.15); transition: transform .25s; }
.book:hover .cover-img { transform: translateY(-6px); }
.book p.series { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--accent); }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.rule { width: 56px; height: 3px; background: var(--gold); margin: 0 0 1.5rem; border: 0; }

.books { background: var(--paper); }
.book-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.book .cover { box-shadow: -6px 0 0 rgba(0,0,0,.1) inset, 0 10px 20px rgba(0,0,0,.15); transition: transform .25s; }
.book:hover .cover { transform: translateY(-6px); }
.book h3 { margin-top: 1.2rem; margin-bottom: .3rem; }
.book p { margin: 0 0 .6rem; color: var(--ink-soft); }
.book a.buy { font-weight: 600; }

.about { background: var(--paper-deep); }
.about .wrap { display: grid; gap: 3rem; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5;
  max-width: 340px;
  width: 100%;
  margin-inline: auto;
  background: linear-gradient(160deg, var(--white), var(--paper));
  border: 2px dashed var(--gold);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem; color: var(--ink-soft);
  border-radius: 3px;
}

.quote {
  background: var(--ink); color: var(--paper); text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.quote blockquote { margin: 0 auto; max-width: 36rem; font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2rem); font-style: italic; line-height: 1.4; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; color: var(--gold); line-height: .6; margin-bottom: .6rem; }

/* Contact */
.contact .wrap { display: grid; gap: 3rem; }
form { display: grid; gap: 1.1rem; background: var(--white); padding: 1.8rem; border: 1px solid #e0d5bb; border-radius: 4px; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid #c9bd9f; border-radius: 3px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(184,147,74,.45); border-color: var(--gold); }
textarea { min-height: 140px; resize: vertical; }
form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc8b6; padding: 2rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer a { color: var(--gold); }

@media (min-width: 800px) {
  .hero .wrap { grid-template-columns: 1.4fr 1fr; }
  .about .wrap { grid-template-columns: 1fr 1.5fr; }
  .contact .wrap { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 520px) {
  .nav { gap: .9rem; }
  .nav a { font-size: .88rem; }
  .brand { font-size: 1.05rem; }
}
