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

:root {
  --bg: #141410;
  --bg2: #1e1e18;
  --bg3: #252520;
  --text: #e4dfc8;
  --text-dim: #a09880;
  --gold: #c8991a;
  --gold-light: #e0b830;
  --gold-dim: #6b5210;
  --border: #2e2e26;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
}

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo span {
  display: block;
  font-size: 0.6rem;
  font-style: normal;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > span {
  display: block;
  padding: 0 1.1rem;
  height: var(--nav-height);
  line-height: var(--nav-height);
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  user-select: none;
}

.nav-links > li > a:hover,
.nav-links > li > span:hover,
.nav-links > li.open > span,
.nav-links > li.open > a {
  color: var(--gold-light);
}

/* dropdowns */
.dropdown {
  display: none;
  position: absolute;
  top: calc(var(--nav-height) - 1px);
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  list-style: none;
  z-index: 999;
}

.nav-links > li.open > .dropdown { display: block; }

.dropdown li { position: relative; }

.dropdown li a,
.dropdown li span {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.dropdown li a:hover,
.dropdown li span:hover,
.dropdown li.open > span {
  background: var(--bg3);
  color: var(--gold-light);
}

/* sub-dropdowns */
.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  list-style: none;
  z-index: 1000;
}

.dropdown li.open > .sub-dropdown { display: block; }

.sub-dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sub-dropdown li a:hover {
  background: var(--bg3);
  color: var(--gold-light);
}

.has-sub > span::after,
.nav-links > li > span::after {
  content: ' ▾';
  font-size: 0.65em;
  opacity: 0.6;
}

.has-sub > span::after { content: ' ▸'; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dim);
  transition: 0.3s;
}

/* ── LAYOUT ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.page-wrap.wide {
  max-width: 1100px;
}

/* ── HERO (homepage) ── */
.hero-bg {
  position: relative;
  background-image: url('../main-bg.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 8, 0.88) 0%,
    rgba(14, 14, 10, 0.78) 50%,
    rgba(10, 10, 8, 0.85) 100%
  );
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-text h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-text p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-award {
  display: inline-block;
  border: 1px solid var(--gold-dim);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dandelion-art {
  width: 280px;
  height: 280px;
  position: relative;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.8rem; margin-top: 2.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; margin-top: 2rem; }

p { margin-bottom: 1.2rem; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.page-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.gold-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  margin: 2.5rem 0;
}

/* ── BOOK PAGE ── */
.book-layout {
  display: grid;
  grid-template-columns: 660px 1fr;
  gap: 3rem;
  align-items: start;
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.book-cover-placeholder .book-title-art {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.buy-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg) !important;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  text-decoration: none !important;
  transition: background 0.2s;
  margin: 1rem 0;
}

.buy-btn:hover { background: var(--gold-light); }

.price-note {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ── BLOG LIST ── */
.blog-list { list-style: none; }

.blog-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-item:first-child { padding-top: 0; }

.blog-item h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.blog-item h2 a { color: var(--text); }
.blog-item h2 a:hover { color: var(--gold-light); text-decoration: none; }

.blog-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.blog-excerpt { color: var(--text-dim); font-size: 0.95rem; }

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 1px;
}

/* ── HOMEPAGE SECTIONS ── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.book-card {
  text-align: center;
}

.book-card-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  transition: border-color 0.2s;
}

.book-card:hover .book-card-cover { border-color: var(--gold-dim); }

.book-card a { color: var(--text-dim); text-decoration: none; }
.book-card a:hover { color: var(--gold-light); }

.book-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* ── FAQ ── */
.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

/* ── CONTACT ── */
.contact-note {
  background: var(--bg2);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-dim);
}

/* ── WELCOME BLOCK ── */
.welcome-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin: 2.5rem 0;
}

.welcome-block p { color: var(--text-dim); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

footer a { color: var(--text-dim); }
footer a:hover { color: var(--gold-light); }

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── UNDER CONSTRUCTION ── */
.under-construction {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ── PDF DOWNLOAD PAGE ── */
.download-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.download-icon {
  font-size: 2.5rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.download-btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  margin-top: 0.8rem;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.download-btn:hover {
  background: var(--gold);
  color: var(--bg) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .hero-visual { display: none; }
  .book-layout { grid-template-columns: 1fr; }
  .book-layout .book-cover-placeholder { width: 180px; margin: 0 auto; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
  }
  .nav-links.open > li > a,
  .nav-links.open > li > span {
    height: auto;
    line-height: 1;
    padding: 0.8rem 1.5rem;
  }
  .dropdown {
    position: static;
    border-top: none;
    border-left: 3px solid var(--gold-dim);
    margin-left: 1.5rem;
  }
  .sub-dropdown {
    position: static;
    border-top: none;
    border-left: 3px solid var(--gold-dim);
    margin-left: 1rem;
  }
}
