/* Raptured Life — styles.css
   Palette: cream (#f8f5ef), gold (#d4af37), black text (#111)
   Headlines: Brooklyn (self-hosted, add your files), fallback to Playfair Display / serif
*/

/* === Font Setup ===
   Replace the src: URLs with your licensed Brooklyn font files.
   Place them under /assets/fonts and update the paths below.
*/
@font-face {
  font-family: 'Brooklyn';
  src: url('assets/fonts/Brooklyn.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f8f5ef;
  --gold: #d4af37;
  --text: #111111;
  --muted: #4b4b4b;
  --card: #ffffff;
  --border: #e6dfd0;
  --shadow: rgba(17, 17, 17, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.brand {
  font-family: 'Brooklyn', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.8;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: opacity .2s ease, border-color .2s ease;
}
.nav a:hover { opacity: 1; border-color: var(--gold); }
.nav a.active { opacity: 1; border-color: var(--gold); }
.nav .social img { display: inline-block; vertical-align: middle; }
.nav .spacer { width: 0.5rem; display: inline-block; }

/* Empty hero banner (user will replace) */
.hero {
  width: 100%;
  min-height: 38vh;
  background:
    url('assets/hero.jpg') center/cover no-repeat,
    linear-gradient(180deg, #f5efe0 0%, #f8f5ef 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 18px var(--shadow) inset;
}


/* Typography */
.title {
  font-family: 'Brooklyn', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  line-height: 1.15;
  margin: 1.25rem 0 0.5rem;
}

.tagline {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: var(--muted);
  margin: 0.25rem 0 1.25rem;
}

.published-by {
  margin: 1rem 0 2rem;
}
.published-by a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* Feature section */
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 24px var(--shadow);
}
.feature h2 {
  font-family: 'Brooklyn', 'Playfair Display', Georgia, 'Times New Roman', serif;
  margin-top: 0;
}

/* Books grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.book-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px var(--shadow);
}
.book-cover.placeholder {
  height: 280px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.book-title {
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
}
.book-desc { margin: 0 0 0.75rem; color: var(--muted); }

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px var(--shadow);
  background: #fff8e6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
}
.site-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
