:root {
  --bg: oklch(97.5% 0.014 92);
  --bg-alt: oklch(94% 0.02 90);
  --card: oklch(98% 0.01 90);
  --card-soft: oklch(99% 0.005 90);
  --ink: oklch(24% 0.03 155);
  --ink-soft: oklch(38% 0.02 155);
  --ink-mute: oklch(55% 0.02 155);
  --ink-mute2: oklch(50% 0.02 155);
  --line: oklch(88% 0.02 90);
  --line-soft: oklch(85% 0.02 90);
  --mint: oklch(50% 0.09 165);
  --mint-dark: oklch(42% 0.09 165);
  --mint-eyebrow: oklch(55% 0.09 165);
  --mint-quote: oklch(30% 0.03 155);
  --gold: oklch(45% 0.08 82);
  --gold-line: oklch(70% 0.07 82);
  --gold-hover: oklch(93% 0.05 85);
  --paper: oklch(98% 0.01 90);
  --success-bg: oklch(93% 0.05 165);
  --success-ink: oklch(30% 0.08 165);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  overflow-x: hidden;
}

::selection { background: oklch(80% 0.09 165 / 0.35); }

h1, h2 { font-family: 'Cormorant Garamond', serif; margin: 0; }

p { margin: 0; }

a { font-family: inherit; }

@keyframes ms-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes ms-fadeup { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ms-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- shared ---------- */

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-eyebrow);
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 15px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-small { padding: 10px 22px; font-size: 14px; }
.btn-primary { background: var(--mint); color: var(--paper); border: none; }
.btn-primary:hover { background: var(--mint-dark); }
.btn-outline { background: transparent; padding: 15px 26px; border: 1px solid var(--gold-line); color: var(--gold); }
.btn-outline:hover { background: var(--gold-hover); }


/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: oklch(97.5% 0.014 92 / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; letter-spacing: 0.02em; }

.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-desktop a:not(.btn) {
  color: oklch(30% 0.03 155);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-desktop a:not(.btn):hover { color: var(--mint-eyebrow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 71px;
  z-index: 49;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.nav-mobile.open { max-height: 320px; padding: 12px 24px 20px; }
.nav-mobile a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 90px 56px 110px;
  max-width: 1360px;
  margin: 0 auto;
  min-height: 640px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    oklch(97.5% 0.014 92 / 0.95) 0%,
    oklch(97.5% 0.014 92 / 0.93) 40%,
    oklch(97.5% 0.014 92 / 0.6) 68%,
    oklch(97.5% 0.014 92 / 0.42) 100%
  );
}

.hero-text { position: relative; z-index: 2; animation: ms-fadeup 0.9s ease both; }

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.arabic {
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 26px;
  color: oklch(62% 0.1 82);
  margin-bottom: 22px;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: oklch(30% 0.03 155);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.ig-link:hover { border-bottom: 1px solid var(--mint-eyebrow); }

.hero-book-wrap {
  position: relative;
  z-index: 2;
  perspective: 1400px;
  display: flex;
  justify-content: center;
}

.hero-book {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  animation: ms-float 6s ease-in-out infinite;
}

.book-cover {
  position: relative;
  width: 320px;
  height: 452px;
  box-shadow: 0 40px 80px -30px oklch(30% 0.05 155 / 0.4);
  border-radius: 4px;
}
.book-cover img { width: 100%; height: 100%; border-radius: 4px; }

.book-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(120deg, transparent 40%, oklch(85% 0.09 85 / 0.35) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: ms-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- artist ---------- */

.artist {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 56px 130px;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 70px;
  align-items: center;
}

.artist-portrait { width: 100%; aspect-ratio: 4/5; border-radius: 6px; }

.artist h2 { font-size: 38px; font-weight: 500; margin: 0 0 22px; line-height: 1.2; }

.artist p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 20px; }

.artist blockquote {
  margin: 28px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--gold-line);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 21px;
  color: var(--mint-quote);
  line-height: 1.5;
}

/* ---------- showcase ---------- */

.showcase-section { background: var(--bg-alt); padding: 100px 56px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: 36px; font-weight: 500; }

.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.plate { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3/4; }
.plate-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, oklch(20% 0.03 155 / 0.55), transparent 55%);
  pointer-events: none;
}
.plate-caption span {
  color: var(--paper);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
}

/* ---------- flipbook (feuilletez le livre) ---------- */

.flipbook {
  margin-top: 70px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 48px;
}
.flipbook-head { text-align: center; margin-bottom: 32px; }
.flipbook-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
}
.flipbook-head p { font-size: 14px; color: var(--ink-mute); margin: 0; }

.flipbook-viewer {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
}

.flipbook-track-wrap { flex: 1; overflow: hidden; border-radius: 6px; box-shadow: 0 18px 40px -18px oklch(30% 0.05 155 / 0.35); }
.flipbook-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.flipbook-slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  aspect-ratio: 3/4;
}
.flipbook-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flipbook-slide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(to top, oklch(20% 0.03 155 / 0.6), transparent 60%);
  color: var(--paper);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
}

.flipbook-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--card);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}
.flipbook-arrow:hover { background: var(--gold-hover); }

.flipbook-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.flipbook-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line-soft);
  cursor: pointer;
}
.flipbook-dot.is-active { background: var(--mint); }

/* ---------- product ---------- */

.product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 56px;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 70px;
}

.product-shot { width: 100%; aspect-ratio: 4/5; border-radius: 8px; }

.product-title { font-size: 34px; font-weight: 500; margin: 0 0 12px; }

.limited-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: var(--gold-hover);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 5px 10px;
  margin-bottom: 16px;
}

.price { font-size: 28px; font-weight: 500; color: var(--gold); margin-bottom: 26px; }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-size: 14px;
}
.specs-label { color: var(--ink-mute2); }

.qty-row { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }

.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 3px; }
.qty-stepper button {
  width: 40px; height: 44px; border: none; background: none;
  font-size: 18px; cursor: pointer; color: oklch(35% 0.03 155);
}
.qty-stepper div { width: 40px; text-align: center; font-size: 15px; }

.stock-note { font-size: 13px; color: var(--ink-mute); }

.bundle-note {
  font-size: 13px;
  color: var(--mint-quote);
  background: oklch(93% 0.05 165);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.bundle-note strong { color: var(--mint-dark); }

.dedication-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  cursor: pointer;
}
.dedication-toggle input { width: 16px; height: 16px; accent-color: var(--mint); cursor: pointer; }

.dedication-field { margin-bottom: 18px; }
.dedication-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Work Sans', sans-serif;
  background: var(--card-soft);
  resize: vertical;
}

.cart-btn {
  width: 100%;
  padding: 17px 0;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0.02em;
  background: var(--mint);
  color: var(--paper);
  transition: background 0.3s ease;
}
.cart-btn.added { background: oklch(55% 0.1 165); }
.cart-btn-check { display: inline-flex; align-items: center; gap: 8px; }

.secure-note { margin-top: 14px; font-size: 13px; color: var(--ink-mute); }

.payment-methods {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-mute2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 9px;
}
.payment-note { font-size: 11px; color: var(--ink-mute); }

/* ---------- reviews ---------- */

.reviews { background: var(--bg-alt); padding: 100px 56px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card { background: var(--card); padding: 32px; border-radius: 6px; border: 1px solid var(--line); }
.review-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--mint-quote);
  margin-bottom: 16px;
}
.review-attr { font-size: 13px; color: var(--ink-mute); }

/* ---------- faq ---------- */

.faq { padding: 100px 56px; }
.section-inner-narrow { max-width: 760px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 24px;
}
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 20px;
  color: var(--mint-eyebrow);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); padding-bottom: 20px; margin: 0; }
.faq-item p a { color: var(--mint); }

/* ---------- instagram section ---------- */

.ig-section { background: var(--bg-alt); padding: 100px 56px; text-align: center; }
.ig-caption { font-size: 15px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 40px; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.ig-tile { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 4px; position: relative; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(24% 0.03 155 / 0);
  transition: background 0.25s ease;
}
.ig-tile:hover::after { background: oklch(24% 0.03 155 / 0.18); }

.ig-follow-btn { display: inline-block; }

/* ---------- contact ---------- */

.contact { max-width: 760px; margin: 0 auto; padding: 110px 56px; text-align: center; }
.contact h2 { font-size: 32px; font-weight: 500; margin: 0 0 18px; }
.contact p { font-size: 15px; color: oklch(40% 0.02 155); margin-bottom: 32px; }

.subscribe-success {
  padding: 18px;
  background: var(--success-bg);
  border-radius: 4px;
  color: var(--success-ink);
  font-size: 15px;
}

.subscribe-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  font-size: 15px;
  font-family: 'Work Sans', sans-serif;
  background: var(--card-soft);
}

.contact-links { margin-top: 40px; display: flex; justify-content: center; gap: 30px; font-size: 14px; flex-wrap: wrap; }
.contact-links a {
  color: oklch(30% 0.03 155);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-links a:hover { border-bottom: 1px solid var(--mint-eyebrow); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: oklch(30% 0.03 155); }

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-legal a:hover { color: var(--ink); border-bottom-color: var(--mint-eyebrow); }

/* real <img> filling the former image-slot placeholders */
.book-cover img,
.artist-portrait,
.plate img,
.product-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-portrait, .product-shot { border-radius: 6px; }

/* ==========================================================
   Responsive — tablet
   ========================================================== */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding: 70px 40px 80px; min-height: auto; text-align: left; }
  .hero-book-wrap { order: -1; }
  .hero-bg-overlay {
    background: linear-gradient(
      to bottom,
      oklch(97.5% 0.014 92 / 0.55) 0%,
      oklch(97.5% 0.014 92 / 0.88) 45%,
      oklch(97.5% 0.014 92 / 0.97) 100%
    );
  }
  .artist { grid-template-columns: 1fr; padding: 30px 40px 90px; }
  .artist-portrait { max-width: 380px; margin: 0 auto; }
  .product { grid-template-columns: 1fr; padding: 80px 40px; }
  .product-shot { max-width: 380px; margin: 0 auto; }
  .showcase-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header, .showcase-section, .reviews { padding-left: 40px; padding-right: 40px; }
  .faq, .ig-section { padding: 80px 40px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================
   Responsive — mobile
   ========================================================== */

@media (max-width: 680px) {
  .site-header { padding: 14px 20px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

  .hero { padding: 40px 20px 60px; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .lede { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .book-cover { width: 220px; height: 311px; margin: 0 auto; }

  .artist { padding: 20px 20px 70px; gap: 30px; }
  .artist h2 { font-size: 28px; }

  .showcase-section, .reviews { padding: 70px 20px; }
  .section-head h2 { font-size: 28px; }
  .showcase-grid, .reviews-grid { grid-template-columns: 1fr; gap: 20px; }

  .product { padding: 60px 20px; gap: 40px; }
  .product-title { font-size: 26px; }
  .specs { grid-template-columns: 1fr 1fr; font-size: 13px; }

  .contact { padding: 70px 20px; }
  .contact h2 { font-size: 26px; }
  .subscribe-form { flex-direction: column; align-items: stretch; }
  .subscribe-form input, .subscribe-form button { max-width: none; }

  .site-footer { flex-direction: column; text-align: center; padding: 28px 20px; }

  .flipbook { padding: 28px 16px; margin-top: 50px; }
  .flipbook-viewer { max-width: none; gap: 10px; }
  .flipbook-arrow { width: 34px; height: 34px; font-size: 17px; }

  .faq { padding: 60px 20px; }
  .faq-item summary { font-size: 15px; }

  .ig-section { padding: 60px 20px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
