@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #131110;
  --bg-card:   #1c1916;
  --bg-nav:    #0d0b09;
  --border:    #2d2922;
  --text:      #d6cdc2;
  --text-muted:#8a8078;
  --accent:    #b8975a;
  --accent-hov:#d4af6e;
  --heading:   #ede4d8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
header {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ── Main content ── */
main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--heading);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hov); text-decoration: underline; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Divider with text ── */
.section-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Home hero ── */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-body {
  max-width: 620px;
  color: var(--text);
}

.hero-cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* ── Home featured grid ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.book-thumb {
  display: block;
  text-decoration: none;
}

.book-thumb img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  transition: border-color 0.2s, opacity 0.2s;
}

.book-thumb:hover img {
  border-color: var(--accent);
  opacity: 0.9;
}

.book-thumb-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* ── Books page ── */
.series-header {
  margin-bottom: 2rem;
}

.series-note {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.book-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.75rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-items: start;
}

.book-card img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}

.book-card-body { }

.book-number {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.book-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.book-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
}

/* ── Individual book page ── */
.book-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.book-page-cover img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}

.book-page-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.book-page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.25rem;
}

.book-page-series {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.book-page-desc {
  margin-bottom: 2rem;
}

.buy-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── About page ── */
.about-bio {
  max-width: 680px;
}

.about-bio h1 {
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-links {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-links h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { height: auto; padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-links { gap: 1.25rem; }
  main { padding: 2rem 1.25rem; }

  .book-card {
    grid-template-columns: 90px 1fr;
    gap: 1.1rem;
    padding: 1.1rem;
  }

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

  .book-page-cover {
    max-width: 200px;
  }

  .featured-grid {
    gap: 1rem;
  }
}
