/* Anvay Ved Publications — site stylesheet */

:root {
  --gold: #B8860B;
  --gold-light: #C8A951;
  --ink: #1F1B16;
  --body-dark: #333333;
  --body-gray: #555555;
  --muted: #888888;
  --cream: #FAF6EE;
  --placeholder-bg: #EFEFEF;
  --placeholder-border: #DDDDDD;
  --disabled-bg: #E0E0E0;
  --white: #FFFFFF;
  --content-width: 620px;
  --wide-width: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

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

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

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-size: 2.4rem; margin: 0 0 12px; }
h2 { font-size: 1.7rem; margin: 40px 0 16px; }
h3 { font-size: 1.375rem; color: var(--gold); margin: 0 0 8px; }

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

.tagline {
  font-style: italic;
  color: var(--body-gray);
  text-align: center;
  margin: 0 0 28px;
}

.byline {
  font-style: italic;
  color: var(--body-gray);
  margin: 0 0 10px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #eee;
}
.site-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.site-title:hover { text-decoration: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid #eee;
  margin-top: 80px;
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .footer-tagline { font-style: italic; margin: 4px 0 8px; }

/* Main content spacing */
main { padding: 56px 0 40px; }

/* Divider */
.divider {
  border: none;
  border-top: 2px solid var(--gold-light);
  margin: 36px 0;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}
.btn-row.left { justify-content: flex-start; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-filled {
  background: var(--gold-light);
  color: var(--ink);
}
.btn-filled:hover { background: #b89540; text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: rgba(184,134,11,0.08); text-decoration: none; }

.btn-disabled {
  background: var(--disabled-bg);
  color: var(--muted);
  border: none;
  cursor: default;
  pointer-events: none;
}

/* Quote block */
.pull-quote {
  border-left: 3px solid var(--gold-light);
  padding: 12px 20px;
  margin: 28px 0;
  font-size: 1.1rem;
  color: var(--gold);
  font-style: normal;
}
.pull-quote.plain { color: var(--ink); }

/* Book row (Books page + Home featured) */
.book-row {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  align-items: flex-start;
}
.book-row .cover {
  flex: 0 0 18%;
  max-width: 180px;
}
.book-row .cover img {
  width: 100%;
  border-radius: 2px;
}
.placeholder-cover {
  width: 100%;
  min-height: 260px;
  background: var(--placeholder-bg);
  border: 1px solid var(--placeholder-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 2px;
}
.book-row .details { flex: 1 1 auto; }

.stars { color: var(--gold); margin: 6px 0; }
.stars .rating-note { color: var(--body-gray); font-size: 0.95rem; }

.meta-line { color: var(--body-gray); font-size: 0.9rem; margin: 8px 0; }
.price-line { color: var(--ink); font-size: 1.25rem; margin: 10px 0; }
.status-line { font-style: italic; color: var(--body-gray); margin: 6px 0 16px; }

@media (max-width: 640px) {
  .book-row { flex-direction: column; }
  .book-row .cover { max-width: 220px; }
  h1 { font-size: 1.9rem; }
}

/* CTA callout box */
.cta-box {
  background: var(--cream);
  padding: 40px 32px;
  border-radius: 4px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h3 { color: var(--ink); font-size: 1.3rem; }
.cta-box p { color: var(--body-gray); max-width: 560px; margin: 0 auto 20px; }

.chapter-continue {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 8px;
}

.chapter-block { padding: 32px 0; }
.chapter-subtitle { font-style: italic; color: var(--body-gray); margin: 0 0 18px; }

/* Forms */
form.site-form {
  margin-top: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.required { color: var(--gold); }

.cross-link {
  font-style: italic;
  color: var(--body-gray);
  margin: 16px 0 8px;
  font-size: 0.95rem;
}
.cross-link a { font-weight: 600; }

.form-message {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.form-message.success { background: #eaf6ea; color: #2b6a2b; border: 1px solid #bfe3bf; }
.form-message.error { background: #fbeaea; color: #a33; border: 1px solid #f0c0c0; }

/* honeypot field - hidden from humans */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
