/* ===================================================
   CANDLELIGHT COVERS — Shared Stylesheet
   Palette: cool ivory, warm gold, royal navy, blue-mid
   Type: Playfair Display (headings) + Lato (body)
=================================================== */

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

/* ── Tokens ─────────────────────────────────────── */
:root {
  --cream:       oklch(97% 0.008 245);
  --ivory:       oklch(94% 0.012 242);
  --parchment:   oklch(91% 0.016 240);
  --gold:        oklch(64% 0.135 72);
  --gold-light:  oklch(80% 0.070 78);
  --gold-pale:   oklch(93% 0.025 85);
  --amber:       oklch(66% 0.115 62);
  --espresso:    oklch(18% 0.13 258);
  --charcoal:    oklch(28% 0.11 255);
  --warm-mid:    oklch(50% 0.08 248);
  --divider:     oklch(88% 0.025 240);

  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Lato', 'Helvetica Neue', sans-serif;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 12px;

  --shadow-sm:  0 1px 4px oklch(30% 0.04 65 / 0.10);
  --shadow:     0 4px 18px oklch(30% 0.04 65 / 0.13);
  --shadow-lg:  0 10px 40px oklch(30% 0.04 65 / 0.18);
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--sans); }

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--espresso);
  line-height: 1.2;
  text-wrap: pretty;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--charcoal); }

.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Layout ─────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.section { padding: 90px 0; }
.section--sm { padding: 60px 0; }
.section--ivory { background: var(--ivory); }
.section--parchment { background: var(--parchment); }

/* ── Nav ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(97% 0.014 82 / 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--espresso);
  color: var(--cream) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem !important;
  letter-spacing: 0.08em;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--espresso) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  transition: all 0.2s;
}
.mobile-nav {
  display: none;
  background: var(--cream);
  border-top: 1px solid var(--divider);
  padding: 20px 28px 28px;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}
.mobile-nav a:hover { color: var(--gold); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--espresso);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
}
.btn-outline {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.btn-outline:hover {
  background: var(--espresso);
  color: var(--cream);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: oklch(80% 0.05 80 / 0.6);
}
.btn-outline-light:hover {
  background: oklch(100% 0 0 / 0.12);
  border-color: var(--gold-light);
}

/* ── Cover Placeholder ───────────────────────────── */
.cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--parchment);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    oklch(78% 0.04 238 / 0.45) 8px,
    oklch(78% 0.04 238 / 0.45) 9px
  );
}
.cover-placeholder .label {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-mid);
}

/* ── Image Placeholder (non-cover) ──────────────── */
.img-placeholder {
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    oklch(78% 0.04 238 / 0.4) 14px,
    oklch(78% 0.04 238 / 0.4) 15px
  );
}
.img-placeholder .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-mid);
  text-align: center;
  padding: 12px;
}

/* ── Section Headings ───────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading h2 { margin-bottom: 12px; }
.section-heading p {
  font-size: 1.05rem;
  color: var(--warm-mid);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Ornament Divider ───────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 20px;
  justify-content: center;
  width: fit-content;
}
.ornament::before,
.ornament::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold-light);
}
.ornament-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ── Cards ───────────────────────────────────────── */
.card {
  background: var(--cream);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card--elevated {
  box-shadow: var(--shadow);
}

/* ── Testimonial Cards ───────────────────────────── */
.testimonial-card {
  background: var(--cream);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .quote-mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold-light);
  line-height: 0.5;
  margin-bottom: 18px;
  display: block;
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--espresso);
  line-height: 1.65;
  margin-bottom: 20px;
}
.testimonial-card .author {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-mid);
}
.testimonial-card .book {
  font-size: 0.78rem;
  color: var(--gold);
  font-style: italic;
  font-family: var(--serif);
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--espresso);
  color: oklch(80% 0.04 240);
  padding: 60px 0 30px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--gold-light); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: oklch(72% 0.04 240); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li a {
  font-size: 0.88rem;
  color: oklch(72% 0.04 240);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid oklch(28% 0.11 255);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: oklch(50% 0.05 245); }
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid oklch(28% 0.11 255);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: oklch(58% 0.06 245);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}

/* ── Newsletter ─────────────────────────────────── */
.newsletter-section {
  background: var(--espresso);
  padding: 72px 0;
  text-align: center;
}
.newsletter-section .eyebrow { color: var(--gold-light); }
.newsletter-section h2 { color: var(--cream); margin-bottom: 14px; }
.newsletter-section p { color: oklch(75% 0.04 240); margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid oklch(32% 0.12 255);
  border-radius: var(--radius-sm);
  background: oklch(22% 0.12 258);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: oklch(52% 0.06 245); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  padding: 13px 24px;
  background: var(--gold);
  color: var(--espresso);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--amber); }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}
