:root {
  --paper: #f6f0e4;
  --paper-deep: #ece2cf;
  --ink: #2a1d15;
  --ink-soft: #5e4c3f;
  --espresso: #3b2418;
  --gold: #a9792b;
  --line: #d8cab0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--espresso); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--espresso);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 4px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--espresso);
  text-decoration: none;
}
.brand em { color: var(--gold); font-weight: 500; }
.mark { width: 46px; height: auto; flex: none; }
nav { display: flex; gap: 26px; }
nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  text-align: center;
}
.hero-logo { display: block; width: min(300px, 62vw); height: auto; margin: 0 auto 28px; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); color: var(--espresso); }
h1 em { color: var(--gold); }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--espresso); }
.lede {
  max-width: 540px;
  margin: 24px auto 32px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.button {
  display: inline-block;
  padding: 13px 28px;
  background: var(--espresso);
  color: var(--paper);
  border: 1px solid var(--espresso);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.button:hover { background: transparent; color: var(--espresso); }
.button.small { padding: 9px 16px; font-size: 0.72rem; letter-spacing: 0.1em; }
.button.disabled {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
  cursor: default;
}

.rule {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--gold);
  font-size: 1.3rem;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 20px; }
.section-head { text-align: center; margin-bottom: 40px; }

/* Books */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 28px;
}
.book {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px;
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  align-self: start;
  box-shadow: 0 10px 24px -12px rgba(42, 29, 21, 0.55);
  overflow: hidden;
  border-radius: 2px;
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-typeset {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  background: var(--espresso);
  color: var(--paper);
  border: 1px solid var(--espresso);
  outline: 1px solid var(--gold);
  outline-offset: -7px;
  text-align: center;
}
.cover-title { font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.15; margin-top: 14px; }
.cover-author { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d9bd86; margin-bottom: 8px; }

.book-body { min-width: 0; }
.status {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 9px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.book h3 { font-size: 1.7rem; color: var(--espresso); }
.subtitle { margin: 4px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.author { margin: 6px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.blurb { margin: 14px 0 0; font-size: 0.95rem; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.empty { text-align: center; color: var(--ink-soft); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }

/* About and contact */
.about { background: var(--paper-deep); max-width: none; }
.about > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.prose { max-width: 680px; margin: 0 auto; font-size: 1.05rem; color: var(--ink-soft); }
.prose p { margin: 0 0 1em; }
.contact { text-align: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }

@media (max-width: 520px) {
  .site-header { justify-content: center; }
  .hero { padding: 48px 20px 44px; }
  .book { grid-template-columns: 104px 1fr; gap: 16px; padding: 16px; }
  .book h3 { font-size: 1.4rem; }
  .cover-title { font-size: 0.95rem; }
}
