:root {
  --paper: #fbf9f5;
  --card: #f2eee6;
  --ink: #24211d;
  --muted: #6d675f;
  --line: #e4ded3;
  --lapis: #2c4897;
  --lapis-deep: #22397a;
  --gold: #b8862b;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wide: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- Header -------------------------------------------------------------- */
.announce {
  margin: 0;
  padding: 9px var(--gutter);
  text-align: center;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.site-header {
  padding: 30px var(--gutter) 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-block;
  font: 400 22px/1.35 var(--sans);
  letter-spacing: .34em;
  text-indent: .34em; /* balances the trailing letter-space */
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.logo span { display: block; }
.logo .first { color: var(--lapis); }
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px clamp(18px, 4vw, 40px);
  margin-top: 18px;
}
.nav a {
  font-size: 17px;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: currentColor; }

/* ---- Common blocks --------------------------------------------------------- */
.section { max-width: var(--wide); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.section.narrow { max-width: 780px; }
.center { text-align: center; }
.eyebrow {
  margin: 0 0 14px;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lapis);
}
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 18px; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 50px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 24px; }
p { margin: 0 0 18px; }
.lead { font-size: 22px; }

/* Text still to come from Valeria */
.tbc { color: var(--muted); font-style: italic; }
.tbc::before {
  content: "Text to follow";
  display: inline-block;
  margin-right: 10px;
  padding: 1px 8px;
  font: 500 10px/1.8 var(--sans);
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 20px;
  vertical-align: 3px;
}

.button {
  display: inline-block;
  padding: 14px 30px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--lapis);
  border: 1px solid var(--lapis);
  cursor: pointer;
}
.button:hover { background: var(--lapis-deep); }
.button.ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.button.ghost:hover { color: #fff; background: var(--ink); }
.text-link {
  font: 500 13px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { margin: 0; height: clamp(340px, 70vh, 760px); background: #2a2d5c; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; display: block; }

/* ---- Gallery ------------------------------------------------------------- */
.grid { columns: 3 280px; column-gap: 32px; }
.work { break-inside: avoid; margin: 0 0 40px; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: var(--card); cursor: zoom-in; }
.work-open img { display: block; width: 100%; transition: opacity .2s; }
.work-open:hover img { opacity: .9; }
.work figcaption { padding-top: 12px; }
.work-title { display: block; font-size: 19px; }
.work-series {
  display: block;
  font: 400 12px/1.6 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.filters button {
  padding: 9px 18px;
  font: 400 13px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 40px;
  cursor: pointer;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---- Series tiles -------------------------------------------------------- */
.series { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.series a { display: block; text-decoration: none; }
.series img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--card); transition: opacity .2s; }
.series a:hover img { opacity: .9; }
.series span { display: block; margin-top: 14px; font-size: 22px; }
.series small {
  display: block;
  font: 400 12px/1.6 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Bands --------------------------------------------------------------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- About --------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.photo-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 24px;
  text-align: center;
  font: 400 13px/1.6 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed #cfc7b9;
}
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; }
.cv { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv .year { font-family: var(--sans); font-size: 14px; color: var(--muted); padding-top: 3px; }
.about h2 { margin-top: 48px; }

/* ---- Book ---------------------------------------------------------------- */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-feature { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; max-width: 980px; margin: 0 auto; }
.book-cover { display: block; margin: 0; box-shadow: 0 18px 40px rgba(36, 33, 29, .16); }
.book-cover img { display: block; width: 100%; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.edition-links { display: block; margin-top: 4px; font: 400 14px/1.6 var(--sans); }
.subtitle { margin-top: -10px; font-size: 24px; font-style: italic; color: var(--muted); }
.status { font: 400 15px/1.6 var(--sans); color: var(--muted); }
.pull { margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--lapis); font-size: 24px; font-style: italic; line-height: 1.4; }
.pull p { margin: 0; }
.inside { margin: 0 0 18px; padding-left: 20px; }
.inside li { margin-bottom: 10px; }
.excerpt { margin: 0; font-size: 23px; line-height: 1.55; }
.source { font: 400 13px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.pillars h3 { padding-top: 16px; border-top: 2px solid var(--lapis); }
.book-details { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contents li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contents span { font-family: var(--sans); font-size: 14px; color: var(--muted); padding-top: 3px; }
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editions figure { margin: 0; }
.editions img { display: block; width: 100%; box-shadow: 0 10px 24px rgba(36, 33, 29, .14); }
.editions figcaption { padding-top: 12px; }

/* ---- Look inside (page turner) --------------------------------------------- */
.section-head .filters { margin: 0; }
.flipbook { overflow-x: clip; padding: 8px 0; }
.fb-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 1000px);
  margin: 0 auto;
  perspective: 2400px;
  cursor: pointer;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .75s cubic-bezier(.45, .05, .35, 1);
}
.fb-book:not(.fb-spread) { grid-template-columns: 1fr; width: min(100%, 460px); }
.fb-book.fb-closed-front { transform: translateX(-25%); }
.fb-book.fb-closed-back { transform: translateX(25%); }
.fb-book:focus-visible { outline: 2px solid var(--lapis); outline-offset: 8px; }
.fb-page { position: relative; aspect-ratio: 0.705; }
.fb-face { position: absolute; inset: 0; overflow: hidden; background: #fff; box-shadow: 0 10px 28px rgba(36, 33, 29, .16); }
.fb-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fb-face.fb-none { background: transparent; box-shadow: none; }
/* the fold where the two pages meet */
.fb-spread .fb-left .fb-face:not(.fb-none)::after,
.fb-spread .fb-right .fb-face:not(.fb-none)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fb-spread .fb-left .fb-face::after { background: linear-gradient(to left, rgba(36, 33, 29, .14), rgba(36, 33, 29, 0) 7%); }
.fb-spread .fb-right .fb-face::after { background: linear-gradient(to right, rgba(36, 33, 29, .14), rgba(36, 33, 29, 0) 7%); }

.fb-leaf { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transform-style: preserve-3d; pointer-events: none; }
.fb-leaf.fb-right { left: 50%; transform-origin: left center; }
.fb-leaf.fb-left { left: 0; transform-origin: right center; }
.fb-leaf.fb-single { left: 0; width: 100%; transform-origin: left center; }
.fb-leaf .fb-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fb-leaf .fb-back { transform: rotateY(180deg); }
.fb-shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(to right, rgba(36, 33, 29, .55), rgba(36, 33, 29, .1)); }

.fb-end { display: grid; place-items: center; padding: 12%; text-align: center; background: var(--paper); cursor: default; }
.fb-end p { margin-bottom: 14px; font-size: clamp(15px, 1.6vw, 18px); }
.fb-end .fb-end-title { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; }

.fb-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 28px; }
.fb-btn {
  width: 46px; height: 46px;
  font: 400 26px/1 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.fb-btn:hover { color: #fff; background: var(--ink); }
.fb-btn:disabled { opacity: .25; cursor: default; color: var(--ink); background: transparent; }
.fb-count { min-width: 17ch; text-align: center; font: 400 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fb-note { margin: 24px 0 0; text-align: center; font-size: 17px; color: var(--muted); }

/* ---- Contact ------------------------------------------------------------- */
.enquiry { display: grid; gap: 20px; margin-top: 36px; }
.enquiry label { display: grid; gap: 6px; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.enquiry input, .enquiry textarea {
  width: 100%;
  padding: 13px 14px;
  font: 18px/1.5 var(--serif);
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: 0;
}
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--lapis); outline-offset: 1px; border-color: var(--lapis); }
.enquiry textarea { min-height: 180px; resize: vertical; }
.form-note { padding: 14px 18px; font-size: 17px; background: var(--card); border-left: 3px solid var(--gold); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .section { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.site-footer .logo { font-size: 15px; }
.site-footer p { margin: 0; font: 400 14px/1.7 var(--sans); color: var(--muted); }
.site-footer a { color: var(--ink); }

/* ---- Lightbox ------------------------------------------------------------ */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(22, 20, 18, .96);
  color: #f4efe6;
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(22, 20, 18, .96); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; padding: 56px 0 24px; max-height: 100dvh; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 190px); width: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; }
.lb-title { display: block; font-size: 24px; }
.lb-meta { display: block; margin-bottom: 12px; font: 400 12px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b7afa2; }
.lb-enquire { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid #fff; padding-bottom: 4px; }
.lightbox button { background: none; border: 0; color: #f4efe6; cursor: pointer; font-family: var(--sans); }
.lb-prev, .lb-next { font-size: 54px; line-height: 1; height: 100%; opacity: .75; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 18px; font-size: 40px; line-height: 1; opacity: .8; }

@media (max-width: 760px) {
  body { font-size: 18px; }
  .about, .book, .book-details { grid-template-columns: 1fr; }
  .book-cover { max-width: 360px; }
  .contents li { grid-template-columns: 1fr; gap: 0; }
  .photo-slot { aspect-ratio: 3 / 2; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lb-prev, .lb-next { font-size: 40px; }
}
