/* =========================================================
   DAVINA JOY — brand stylesheet
   Palette: deep plum / wine rose / dusty rose / champagne / cream
   Type: Bodoni Moda (display) + Cormorant Garamond (body) + Jost (utility)
   ========================================================= */

:root {
  --plum:        #2f1933;
  --wine:        #6b2147;
  --rose:        #c06a8b;
  --champagne:   #f0d7b8;
  --cream:       #fff8f3;
  --ink:         #1c0f1f;
  --plum-90:     rgba(47, 25, 51, 0.92);
  --plum-70:     rgba(47, 25, 51, 0.7);
  --gold-line:   rgba(240, 215, 184, 0.35);

  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body:    "Cormorant Garamond", Georgia, serif;
  --font-utility: "Jost", sans-serif;

  --max: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* subtle paper grain over the whole page */
.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 10px;
}
.eyebrow.center { text-align: center; }
.eyebrow::before { content: "◆ "; color: var(--rose); }

.section-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--plum);
}
.section-headline.center { text-align: center; }

.section-sub {
  font-size: 20px;
  color: var(--wine);
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-sub.center { text-align: center; }

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-utility);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--champagne);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.text-link:hover { border-color: var(--champagne); color: #fff; }

/* ---------- crown mark (shared) ---------- */
.crown-mark, .hero-crown, .about-mark svg, .series-card-icon svg,
.book-crown, .court-crown, .footer-crown {
  fill: none;
}
.crown-mark path, .hero-crown path, .about-mark path, .series-card-icon path,
.book-crown path, .court-crown path, .footer-crown path {
  fill: var(--champagne);
}
.crown-mark rect, .hero-crown rect, .about-mark rect, .series-card-icon rect,
.book-crown rect, .court-crown rect, .footer-crown rect {
  fill: var(--champagne);
}
.gem { fill: var(--wine); }
.gem--center { fill: var(--rose); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw;
  background: var(--plum-90);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.crown-mark { width: 30px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--champagne);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid var(--champagne);
  padding: 8px 16px;
  border-radius: 999px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--champagne); color: var(--plum); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 6vw 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,33,71,0.55), transparent 60%),
    linear-gradient(160deg, var(--plum) 0%, #240e28 55%, #1a0a1f 100%);
  color: var(--cream);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(240,215,184,0.045) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero-crown {
  width: min(220px, 40vw); height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 26px rgba(240,215,184,0.35));
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(240,215,184,0.25)); }
  50% { filter: drop-shadow(0 0 34px rgba(240,215,184,0.55)); }
}
.hero .eyebrow { color: var(--rose); }
.hero .eyebrow::before { color: var(--champagne); }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.06;
  margin: 6px 0 22px;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-sub {
  max-width: 560px;
  font-size: 21px;
  color: var(--champagne);
  opacity: 0.92;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.btn {
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
}
.btn--gold {
  background: var(--champagne);
  color: var(--plum);
  box-shadow: 0 6px 22px rgba(240,215,184,0.25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240,215,184,0.4); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,248,243,0.5);
}
.btn--ghost:hover { border-color: var(--cream); transform: translateY(-2px); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: linear-gradient(var(--champagne), transparent);
  opacity: 0.6;
}
.scroll-cue span {
  position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--champagne);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: 0; opacity: 1; } 90% { opacity: 0; } 100% { top: 42px; opacity: 0; } }

/* ---------- word band ---------- */
.word-band {
  background: var(--wine);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.word-track {
  display: inline-flex;
  gap: 14px;
  font-family: var(--font-utility);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
  animation: scroll-left 42s linear infinite;
}
.word-track span:nth-child(odd) { opacity: 0.55; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- about ---------- */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 6vw;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}
.about-mark svg { width: 100%; height: auto; opacity: 0.9; }
.about-mark path { fill: var(--wine); }
.about-mark rect { fill: var(--wine); }
.about-mark .gem--center { fill: var(--rose); }
.about h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--plum);
  line-height: 1.2;
  margin: 0 0 20px;
}
.about-lead { font-size: 23px; color: var(--wine); margin-bottom: 18px; }
.about p { font-size: 19px; color: #3a2440; }
.about-sign {
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wine);
  margin-top: 26px;
  border-top: 1px solid rgba(107,33,71,0.25);
  padding-top: 20px;
}

/* ---------- series ---------- */
.series {
  background: var(--cream);
  padding: 40px 6vw 120px;
}
.series-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.series-card {
  position: relative;
  background: linear-gradient(160deg, var(--plum) 0%, #22102a 100%);
  color: var(--cream);
  border-radius: 4px;
  padding: 44px 38px;
  border: 1px solid var(--gold-line);
  overflow: hidden;
}
.series-card::after {
  content: "";
  position: absolute; top: -60%; right: -30%;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,106,139,0.35), transparent 70%);
}
.series-card--sewist { background: linear-gradient(160deg, var(--wine) 0%, #3b1330 100%); }
.series-card-icon svg { width: 52px; height: auto; margin-bottom: 22px; }
.series-kicker {
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 8px;
}
.series-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--champagne);
}
.series-tagline { font-size: 20px; color: var(--cream); opacity: 0.92; margin: 0 0 16px; }
.series-card p { position: relative; z-index: 1; }

/* ---------- books ---------- */
.books { background: var(--plum); padding: 110px 6vw; color: var(--cream); }
.books .eyebrow { color: var(--rose); }
.books .eyebrow::before { color: var(--champagne); }
.books .section-headline { color: var(--cream); }
.books .section-sub { color: var(--champagne); opacity: 0.85; }

.book-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.book-card {
  background: rgba(255,248,243,0.03);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.book-card:hover { transform: translateY(-6px); border-color: var(--champagne); }
.book-cover {
  position: relative;
  height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.book-cover--1 { background: linear-gradient(150deg, #4a1e3d, #2f1933); }
.book-cover--2 { background: linear-gradient(150deg, #6b2147, #341327); }
.book-cover--3 { background: linear-gradient(150deg, #3e1830, #16090f); }
.book-cover--4 { background: linear-gradient(150deg, #7a2850, #2f1933); }
.book-cover--5 { background: linear-gradient(150deg, #5c2244, #22102a); }
.book-cover--6 { background: linear-gradient(150deg, #451c3a, #170a1a); }
.book-cover--7 { background: linear-gradient(150deg, #6b2147, #3e1830); }
.book-cover--8 { background: linear-gradient(150deg, #35152c, #150810); }
.book-crown { width: 46px; height: auto; opacity: 0.9; }
.book-number {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  opacity: 0.75;
}
.book-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 23px;
  margin: 20px 20px 4px;
  color: var(--champagne);
}
.book-pairing {
  margin: 0 20px 12px;
  display: inline-block;
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--rose);
  padding: 3px 10px;
  border-radius: 999px;
}
.book-card > p:last-child {
  margin: 0 20px 22px;
  font-size: 17px;
  color: var(--cream);
  opacity: 0.85;
}

.books-divider {
  max-width: var(--max);
  margin: 90px auto 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.pairing-legend {
  max-width: var(--max);
  margin: 50px auto 0;
  text-align: center;
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--champagne);
  opacity: 0.65;
}

/* ---------- court / newsletter ---------- */
.court {
  position: relative;
  background: linear-gradient(180deg, var(--cream), #fdece0);
  padding: 110px 6vw;
  text-align: center;
}
.court-crown { width: 60px; height: auto; margin: 0 auto 20px; display: block; }
.court-crown path, .court-crown rect { fill: var(--wine); }
.court-crown .gem--center { fill: var(--rose); }
.court-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  max-width: 460px; margin: 0 auto 16px;
}
.court-form input {
  flex: 1 1 240px;
  padding: 15px 20px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 17px;
  background: #fff;
  color: var(--ink);
}
.court-form input:focus { outline: 2px solid var(--rose); outline-offset: 2px; }
.court-form .btn--gold {
  background: var(--plum);
  color: var(--champagne);
  box-shadow: none;
}
.court-form .btn--gold:hover { background: var(--wine); }
.court-note { font-size: 15px; color: var(--wine); opacity: 0.75; }

/* ---------- footer ---------- */
.site-footer {
  background: #1a0a1f;
  color: var(--champagne);
  text-align: center;
  padding: 60px 6vw 40px;
}
.footer-crown { width: 40px; height: auto; margin-bottom: 16px; }
.footer-crown path, .footer-crown rect { fill: var(--champagne); }
.footer-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 2px;
}
.footer-tagline {
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 30px;
}
.footer-links { display: flex; gap: 26px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--champagne);
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; }
.footer-social { display: flex; gap: 22px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.footer-social a {
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--rose);
  border-bottom: 1px solid transparent;
}
.footer-social a:hover { color: var(--champagne); border-color: var(--champagne); }
.footer-copy { font-size: 13px; opacity: 0.5; font-family: var(--font-utility); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-mark { width: 80px; }
  .series-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  body { font-size: 17px; }
  .book-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}
