/* DonOmite Books — warm literary bookstore aesthetic */

:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --ink: #1c2420;
  --ink-muted: #4a5550;
  --accent: #8b5e3c;          /* warm brown to match library wood */
  --accent-hover: #6d4a2f;
  --gold: #c9a227;
  --card: #ffffff;
  --border: #d9d4c8;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(28, 36, 32, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo em { font-style: italic; font-weight: 400; color: var(--accent); }

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.main-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* Hero with library background */
.hero {
  position: relative;
  padding: 7rem 0 6.5rem;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(20, 12, 6, 0.55) 0%, rgba(20, 12, 6, 0.72) 100%),
    url("assets/library-background.png");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Optional subtle grain / vignette feel */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8d5a3; /* soft gold */
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.8vw, 3.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 15ch;
  color: #fff;
}

.hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 38ch;
  margin-bottom: 2.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.7rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #e0b82e;
  border-color: #e0b82e;
  color: #1a1208;
}

/* Featured Book */
.featured {
  padding: 5rem 0;
  background: var(--card);
  border-block: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.price-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--ink-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.quote {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}

.payhip-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.buy-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

/* About */
.about {
  padding: 5.5rem 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1.1rem;
  color: var(--ink-muted);
}

.about-close {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink) !important;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: #1a1208;
  color: #c5b9a8;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand strong {
  color: #f0e6d0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 220px;
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .main-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .hero { padding: 5rem 0 4.5rem; }

  .featured, .about { padding: 3.5rem 0; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
