:root {
  --cream: #F5EFE3;
  --cream-2: #EFE8DA;
  --paper: #FBF8F1;
  --ink: #2B3A38;
  --ink-soft: #55625F;
  --terracotta: #BA7452;
  --label: #A46042;
  --line: rgba(43, 58, 56, .14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; }
h1 em, h2 em, h3 em, .wordmark em, .hero-lead em { color: var(--terracotta); }
figure { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(245, 239, 227, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.wordmark { font-family: var(--serif); font-size: 24px; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
  padding: 40px 0 40px var(--pad);
}
.hero-title { font-size: clamp(64px, 9vw, 140px); margin: 0 0 24px; }
.hero-lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; margin: 0 0 36px; max-width: 18em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin: 28px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.hero-visual { position: relative; }

/* 3D book */
.book-stage {
  --w: min(34vw, 460px);
  --h: calc(var(--w) * 1.008);
  --d: calc(var(--w) * 0.122);
  --rx: 14deg; --ry: -32deg; --sheen: 50;
  position: relative;
  height: calc(var(--h) * 1.45);
  display: grid; place-items: center;
  perspective: 1800px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.book-stage.dragging { cursor: grabbing; }
.book3d {
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: translateY(-4%) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.front, .back { inset: 0; background-size: 100% 100%; border-radius: 2px 4px 4px 2px; }
.front { transform: translateZ(calc(var(--d) / 2)); background-image: url(img/book-front.webp); }
.back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background-image: url(img/book-back.webp); border-radius: 4px 2px 2px 4px; }
.front::before { content: ""; position: absolute; top: 0; bottom: 0; left: 2.2%; width: 1.6%; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.12), rgba(0,0,0,.06)); }
.front::after, .back::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 65%);
  background-size: 300% 100%; background-position: calc(var(--sheen) * 1%) 0;
}
.spine {
  width: var(--d); height: 100%; left: calc(50% - var(--d) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: url(img/book-spine.webp) center / 100% 100%;
  box-shadow: inset 0 0 12px rgba(0,0,0,.12);
}
.edge-r, .edge-t, .edge-b { background-color: #EFE9DC; }
.edge-r {
  width: var(--d); height: calc(100% - 6px); top: 3px; left: calc(50% - var(--d) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 4px));
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
}
.edge-t, .edge-b {
  width: calc(100% - 6px); height: var(--d); left: 2px; top: calc(50% - var(--d) / 2);
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
}
.edge-t { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 4px)); }
.edge-b { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 4px)); }
.book-shadow {
  position: absolute; left: 50%; bottom: 6%;
  width: calc(var(--w) * 1.05); height: calc(var(--w) * .12);
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(43, 40, 30, .32), rgba(43, 40, 30, 0) 70%);
  filter: blur(8px); pointer-events: none;
}
.drag-hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); opacity: .7;
  transition: opacity .6s;
}
.drag-hint.gone { opacity: 0; }

/* Intro */
.intro { padding: clamp(80px, 12vw, 160px) var(--pad); }
.intro-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-text { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.3; margin: 0; }
.intro-side p { color: var(--ink-soft); margin: 0 0 40px; }
.intro-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 32px; }
.dedication {
  margin: 0; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--terracotta);
}

/* Strip (echoes the cover) */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 0 6px; }
.strip figure { aspect-ratio: 2 / 5; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.strip figure:hover img { transform: scale(1.05); }

/* Specs */
.specs { padding: 56px var(--pad); border-bottom: 1px solid var(--line); }
.specs dl { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px 24px; }
.specs dt { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin-bottom: 8px; }
.specs dd { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.specs dd span { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }

/* Section head */
.section-head { max-width: var(--max); margin: 0 auto 56px; padding: 0 var(--pad); }
.section-head h2 { font-size: clamp(40px, 5.5vw, 76px); }
.section-sub { color: var(--ink-soft); max-width: 34em; margin: 20px 0 0; }

/* Chapters */
.chapters { padding: clamp(80px, 12vw, 150px) 0 0; }
.chapter { position: relative; height: min(92vh, 900px); min-height: 520px; overflow: hidden; color: #fff; margin-bottom: 6px; }
.chapter > img { aspect-ratio: auto; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.chapter.in > img { transform: scale(1); }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,14,13,.68) 100%); }
.chapter-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, 6vw, 72px); z-index: 1; max-width: 900px; }
.chapter-num { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; opacity: .9; }
.chapter h3 { font-size: clamp(44px, 7vw, 104px); }
.chapter h3 em { display: block; font-size: .42em; color: #F1D2BF; margin-top: 10px; }
.chapter-text p:last-child { margin: 18px 0 0; font-size: 15px; letter-spacing: .04em; opacity: .9; }
.chapter[data-chapter="india"] > img { object-position: 50% 30%; }
.chapter[data-chapter="cities"] > img { object-position: 50% 60%; }
.chapter[data-chapter="mediterranean"] > img { object-position: 50% 45%; }

.chapter-split { height: auto; min-height: 0; color: var(--ink); display: grid; grid-template-columns: 5fr 7fr; background: var(--paper); margin: 0; }
.chapter-split::after { display: none; }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.split-text { padding: clamp(40px, 7vw, 110px); align-self: center; }
.split-text .chapter-num { color: var(--label); }
.split-text h3 { font-size: clamp(44px, 5.5vw, 80px); }
.split-text h3 em { color: var(--terracotta); }
.split-text p:last-child { color: var(--ink-soft); font-size: 17px; letter-spacing: 0; max-width: 30em; margin-top: 24px; }

/* Look inside carousel */
.inside { padding: clamp(80px, 12vw, 150px) 0; }
.carousel { position: relative; }
.track {
  list-style: none; margin: 0; padding: 0 var(--pad) 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 980px);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track li { scroll-snap-align: start; }
.track p { margin: 12px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.spread { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.spread img {
  width: 100%;
  aspect-ratio: 3 / 2;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}
.car-btn {
  position: absolute; top: 42%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 20px; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.car-btn:hover { background: var(--ink); color: var(--paper); }
.car-btn.prev { left: 16px; }
.car-btn.next { right: 16px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(20, 24, 23, .94); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 80px; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; object-fit: contain; border-radius: 2px; }
.lightbox figcaption { margin-top: 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; padding: 16px; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Object */
.object { padding: 0 0 clamp(80px, 12vw, 150px); }
.object-grid { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.object-grid figure { overflow: hidden; background: var(--cream-2); }
.object-grid img { width: 100%; height: 100%; object-fit: cover; }
.og-a { grid-column: span 2; grid-row: span 2; }
.og-b img, .og-c img { aspect-ratio: 4 / 3; }
.og-a img { object-position: 50% 45%; }
.og-wide { grid-column: span 2; }
.og-wide img, .og-tall img { aspect-ratio: 16 / 10; }
.og-tall img { object-position: 50% 60%; }

/* Featuring */
.featuring { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad) clamp(80px, 12vw, 150px); text-align: center; }
.featuring-list { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.4; margin: 0 0 24px; }
.featuring-places { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Author */
.author { display: grid; grid-template-columns: 7fr 5fr; background: var(--ink); color: var(--paper); }
.author-img img { width: 100%; height: 100%; object-fit: cover; min-height: 480px; }
.author-text { padding: clamp(40px, 7vw, 110px); align-self: center; }
.author-text .eyebrow { color: #E2B49A; }
.author-text h2 { font-size: clamp(48px, 6vw, 88px); margin-bottom: 28px; }
.author-text h2 em { color: #E2B49A; }
.author-text p { color: rgba(251, 248, 241, .82); max-width: 30em; }

/* Buy */
.buy { padding: clamp(80px, 12vw, 150px) 0; }
.buy-grid { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.buy-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.buy-card > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.buy-card > img.home-img { object-position: 50% 72%; }
.buy-body { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.buy-body h3 { font-size: 34px; }
.buy-where { margin: 0; color: var(--ink-soft); }
.buy-price { margin: 0; font-family: var(--serif); font-size: 26px; }
.buy-price:empty { display: none; }
.buy-status { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.buy-body .btn { margin-top: auto; }
.buy-note { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.buy-trade { text-align: center; color: var(--ink-soft); margin: 48px auto 0; padding: 0 var(--pad); max-width: 40em; }

/* Launch */
.launch { max-width: 900px; margin: 0 auto; padding: 0 var(--pad) clamp(72px, 10vw, 120px); text-align: center; }
.launch h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 16px; }
.launch h2 em { display: block; font-size: .7em; margin-top: 6px; }
.launch p:not(.eyebrow) { color: var(--ink-soft); margin: 0 0 28px; }
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Buy extras */
.buy-list { margin: 4px 0 8px; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.buy-list li { margin: 2px 0; }

/* FAQ */
.faq { padding: 0 0 clamp(80px, 12vw, 150px); }
.faq-list { max-width: 860px; margin: 0 auto; padding: 0 var(--pad); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--terracotta); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 44em; }

/* Footer */
.site-footer { text-align: center; padding: 80px var(--pad) 48px; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 40px; display: inline-block; margin-bottom: 16px; }
.site-footer p { margin: 6px 0; color: var(--ink-soft); }
.site-footer .small { font-size: 13px; margin-top: 28px; }
.footer-nav { margin-top: 20px !important; font-size: 14px; }
.footer-nav a { text-decoration: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .chapter > img { transition: none; opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 24px 0 48px; min-height: 0; text-align: center; }
  .hero-text { padding: 0 var(--pad); order: 2; }
  .hero-visual { order: 1; overflow: hidden; padding-bottom: 8px; }
  .book-stage { --w: min(64vw, 380px); }
  .hero-ctas { justify-content: center; }
  .hero-title { font-size: clamp(56px, 16vw, 96px); margin-bottom: 16px; }
  .hero-lead { margin: 0 auto 28px; }
  .intro-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .specs dl { grid-template-columns: repeat(2, 1fr); }
  .chapter { height: 78vh; min-height: 460px; }
  .chapter-split, .author { grid-template-columns: 1fr; }
  .author-img img { min-height: 0; aspect-ratio: 4 / 3; }
  .object-grid { grid-template-columns: 1fr 1fr; }
  .og-a { grid-column: span 2; grid-row: auto; }
  .og-tall { grid-column: span 2; }
  .og-tall img { aspect-ratio: 3 / 2; }
  .buy-grid { grid-template-columns: 1fr; }
  .car-btn { display: none; }
  .track { grid-auto-columns: 88vw; gap: 12px; }
  .lightbox figure { padding: 56px 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wordmark { font-size: 21px; }
  .strip figure { aspect-ratio: 1 / 2; }
  .specs dd { font-size: 19px; }
  .buy-body { padding: 24px; }
}
