/* ============================================================
   Modo Bhaik — Desert Theme Stylesheet
   Palette: sand, terracotta, oasis teal, gold, night-ink
   ============================================================ */

:root {
  --sand:        #f4e8d0;   /* page background */
  --sand-deep:   #e8d5ae;   /* alternating sections */
  --cream:       #fdf8ee;   /* cards */
  --ink:         #3b2a18;   /* main text */
  --ink-soft:    #6b5638;   /* secondary text */
  --terracotta:  #a8462a;   /* primary accent */
  --terracotta-d:#7e3018;   /* darker accent / header */
  --gold:        #c08a2d;   /* ornaments, borders */
  --oasis:       #166861;   /* links, cool accent */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }

a { color: var(--oasis); }

/* ---------- Header & navigation ---------- */

.site-header {
  background: linear-gradient(180deg, var(--terracotta-d), var(--terracotta));
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.brand img { height: 44px; width: auto; border-radius: 6px; }

.brand-name {
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  font-variant: small-caps;
}

.site-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(253, 248, 238, 0.14);
  border-color: var(--gold);
}

/* ---------- Hero (home page) ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #f7d9a0 0%, #eebd6d 34%, #d98e4a 64%, #b85c33 100%);
  color: #4a2410;
  text-align: center;
  padding: 4.5rem 1.25rem 6.5rem;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(253, 248, 238, 0.5);
}

.hero p.tagline {
  max-width: 44rem;
  margin: 1rem auto 0;
  font-size: 1.2rem;
  font-style: italic;
  color: #5d3316;
}

.hero .ornament { margin-top: 1.4rem; }

/* dunes at the base of the hero */
.hero svg.dunes {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px;
  display: block;
}

/* ---------- Ornamental divider ---------- */

.ornament {
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.8em;
  text-align: center;
  user-select: none;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-alt { background: var(--sand-deep); }
.section-alt-inner { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem; }

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--terracotta-d);
  margin-bottom: 0.35rem;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ---------- Book cards ---------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.6rem;
}

.book-grid.featured {
  grid-template-columns: repeat(auto-fit, minmax(210px, 260px));
  justify-content: center;
}

.book-card {
  background: var(--cream);
  border: 1px solid #dcc89f;
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1rem 1.2rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(90, 60, 20, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(90, 60, 20, 0.2);
}

.book-card .cover {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.book-card .cover img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(59, 42, 24, 0.35);
}

.book-card h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.buy-link {
  display: inline-block;
  align-self: center;
  background: var(--terracotta);
  color: var(--cream);
  text-decoration: none;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.buy-link:hover { background: var(--terracotta-d); }

/* ---------- Genre navigation chips ---------- */

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.genre-chips a {
  text-decoration: none;
  color: var(--terracotta-d);
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.genre-chips a:hover {
  background: var(--terracotta);
  color: var(--cream);
}

/* ---------- Genre sections (books page) ---------- */

.genre-section { padding-top: 1rem; margin-top: 2.5rem; }

.genre-section h2 {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 1.6rem;
  color: var(--terracotta-d);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

/* ---------- About page ---------- */

.about-body { max-width: 46rem; margin: 0 auto; }

.about-body p { margin-bottom: 1.3rem; text-align: justify; }

.about-body p:first-of-type::first-letter {
  font-size: 3.1rem;
  line-height: 0.9;
  float: left;
  padding-right: 0.5rem;
  color: var(--terracotta);
  font-variant: small-caps;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--terracotta-d);
  color: #f0dfc0;
  text-align: center;
  padding: 2.2rem 1.25rem;
  margin-top: 3rem;
  border-top: 4px solid var(--gold);
}

.site-footer a { color: #f6d789; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .ornament { margin-bottom: 0.8rem; }
.site-footer small { display: block; margin-top: 0.7rem; opacity: 0.75; }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .header-inner { justify-content: center; text-align: center; }
  .hero { padding: 3rem 1rem 5rem; }
}
