@font-face {
  font-family: "Fazer";
  src: url("../assets/fonts/Fazer-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

html, body { background: #050505; }
html.fonts-loading body.sketchbooks-page,
body.sketchbooks-page {
  opacity: 1 !important;
  visibility: visible !important;
}
.sketchbooks-page {
  --sketch-pad: clamp(18px, 1.6vw, 30px);
  margin: 0;
  min-height: 100svh;
  color: #f5f5f1;
  background: #050505;
  font-family: "Fazer", Arial, sans-serif;
  overflow-x: hidden;
}
.sketchbooks-page * { box-sizing: border-box; }
.sketchbooks-page img {
  -webkit-user-drag: none;
  user-select: none;
}
.sketchbooks-header {
  position: fixed !important;
  z-index: 200 !important;
  color: #fff !important;
  mix-blend-mode: difference !important;
  isolation: auto !important;
  background: transparent !important;
  pointer-events: auto !important;
}
.sketchbooks-header .site-title,
.sketchbooks-header .site-nav,
.sketchbooks-header .site-nav a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}
.sketchbooks-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.sketchbooks-title-stack > .site-title { margin-bottom: 5px; }
.sketchbook-current-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: clamp(17px, 1.15vw, 22px);
  line-height: 1.05;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sketchbooks-main { position: relative; z-index: 1; background: #050505; }
.sketchbooks-overview[hidden],
.sketchbook-detail[hidden] {
  display: none !important;
}
.sketchbooks-main,
.sketchbooks-header {
  transition: filter 560ms cubic-bezier(.22,.61,.36,1), opacity 480ms ease;
}
html.sketchbooks-entering .sketchbooks-main,
html.sketchbooks-entering .sketchbooks-header,
.sketchbooks-page.is-leaving .sketchbooks-main,
.sketchbooks-page.is-leaving .sketchbooks-header {
  filter: blur(16px);
  opacity: .38;
}

.sketchbooks-overview {
  position: relative;
  min-height: max(2200px, 290svh);
  padding: clamp(140px, 16vh, 230px) var(--sketch-pad) 240px;
}
.sketchbooks-error {
  margin: 18vh var(--sketch-pad) 0;
  color: #fff;
  font-size: 18px;
}
.sketchbook-cover {
  position: absolute;
  display: block;
  width: clamp(520px, 52vw, 1040px);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: filter 300ms ease, transform 560ms cubic-bezier(.22,.61,.36,1), opacity 520ms ease;
}
.sketchbook-cover:nth-child(1) { top: 8%; right: 9%; }
.sketchbook-cover:nth-child(2) { top: 31%; left: 17%; width: clamp(420px, 40vw, 800px); }
.sketchbook-cover:nth-child(3) { top: 53%; left: 3%; width: clamp(580px, 58vw, 1160px); }
.sketchbook-cover:nth-child(4) { top: 76%; right: 3%; width: clamp(470px, 46vw, 920px); }
.sketchbook-cover:hover,
.sketchbook-cover:focus-visible { filter: blur(1.4px); }
.sketchbook-cover img { display: block; width: 100%; height: auto; }
.sketchbook-cover span {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: clamp(14px, .95vw, 18px);
  text-align: left;
}
.sketchbooks-overview.is-selecting .sketchbook-cover:not(.is-selected) {
  opacity: 0;
  filter: blur(14px) !important;
  transform: scale(.985);
  pointer-events: none;
}
.sketchbooks-overview.is-selecting .sketchbook-cover.is-selected {
  opacity: 0;
  filter: blur(14px) !important;
  transform: scale(.985);
  pointer-events: none;
}

.sketchbook-detail {
  padding: clamp(120px, 15vh, 190px) var(--sketch-pad) 180px;
  animation: sketchbook-detail-in 380ms cubic-bezier(.22,.61,.36,1) both;
}
@keyframes sketchbook-detail-in {
  from { opacity: .2; filter: blur(12px); transform: scale(.992); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
.sketchbook-back {
  border: 0;
  padding: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-text-fill-color: #f2f1ec !important;
  font-size: 0;
  line-height: 0;
  margin-top: 0;
  position: fixed;
  left: var(--sketch-pad);
  bottom: var(--sketch-pad);
  z-index: 260;
  width: 2.4cm;
  min-width: 2.4cm;
  height: 1.5cm;
  min-height: 1.5cm;
  margin-left: 0;
  padding: 0;
  text-align: left;
  justify-self: start;
  align-self: flex-start;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.sketchbook-back::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: translateY(-.5px);
}
.sketchbook-back::after,
.sketchbook-back > span {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.06cm;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.sketchbook-back::after { transform: translateY(-.5px) rotate(-45deg); }
.sketchbook-back > span { transform: translateY(-.5px) rotate(45deg); }
.sketchbook-back:hover {
  filter: none;
  animation: sketchbook-arrow-pulse 1100ms cubic-bezier(.45,.05,.25,1) infinite;
}
@keyframes sketchbook-arrow-pulse {
  0% { transform: translateX(0); }
  38% { transform: translateX(10px); }
  74% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
.sketchbook-detail-heading {
  display: flex;
  display: none;
}
.sketchbook-detail-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 58px);
  font-weight: 400;
  line-height: 1;
}
.sketchbook-detail-heading span { font-size: clamp(13px, 1vw, 17px); }
.sketchbook-spreads { display: flex; flex-direction: column; align-items: center; gap: clamp(110px, 17vh, 220px); }
.sketchbook-spread {
  width: min(90vw, 1560px);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.sketchbook-spread:nth-child(3n + 2) { width: min(76vw, 1320px); align-self: flex-start; margin-left: 3vw; }
.sketchbook-spread:nth-child(3n) { width: min(82vw, 1420px); align-self: flex-end; margin-right: 3vw; }
.sketchbook-spread img { display: block; width: 100%; height: auto; }

.sketchbook-lightbox[hidden] { display: none; }
.sketchbook-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.sketchbook-lightbox figure {
  margin: 0;
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(26px, 5vw, 82px);
  overflow: hidden;
  pointer-events: none;
}
.sketchbook-lightbox img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - clamp(52px, 10vw, 164px)) !important;
  max-height: calc(100svh - clamp(52px, 10vw, 164px)) !important;
  object-fit: contain;
}
.sketchbook-lightbox-zone { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; background: transparent; cursor: pointer; }
.sketchbook-lightbox-zone,
.sketchbook-lightbox-zone:focus,
.sketchbook-lightbox-zone:focus-visible,
.sketchbook-spread:focus,
.sketchbook-spread:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}
.sketchbook-lightbox-prev { left: 0; }
.sketchbook-lightbox-next { right: 0; }
.sketchbook-lightbox-close {
  position: absolute;
  top: var(--sketch-pad);
  right: var(--sketch-pad);
  z-index: 4;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 420ms cubic-bezier(.22,.61,.36,1);
}
.sketchbook-lightbox-close span { position: absolute; left: 7px; right: 7px; top: 22px; height: 1.5px; background: #fff; }
.sketchbook-lightbox-close span:first-child { transform: rotate(45deg); }
.sketchbook-lightbox-close span:last-child { transform: rotate(-45deg); }
.sketchbook-lightbox-close:hover,
.sketchbook-lightbox-close:focus-visible {
  transform: rotate(90deg);
}
.sketchbook-lightbox-counter { position: absolute; right: var(--sketch-pad); bottom: var(--sketch-pad); z-index: 4; }

@media (max-width: 780px) {
  .sketchbooks-page { --sketch-pad: 16px; }
  .sketchbooks-header .site-nav { gap: 13px !important; font-size: 13px !important; }
  .sketchbooks-header .site-title { font-size: 28px !important; }
  .sketchbooks-overview { min-height: 2250px; padding-top: 140px; }
  .sketchbook-cover { width: 94vw !important; }
  .sketchbook-cover:nth-child(1) { top: 7%; right: 3%; }
  .sketchbook-cover:nth-child(2) { top: 30%; left: 4%; width: 82vw !important; }
  .sketchbook-cover:nth-child(3) { top: 51%; left: 0; width: 100vw !important; }
  .sketchbook-cover:nth-child(4) { top: 76%; right: 0; width: 90vw !important; }
  .sketchbook-detail-heading { width: 100%; margin-top: 60px; margin-bottom: 100px; align-items: flex-end; }
  .sketchbook-spreads { gap: 110px; }
  .sketchbook-spread,
  .sketchbook-spread:nth-child(3n + 2),
  .sketchbook-spread:nth-child(3n) { width: 92vw; align-self: center; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sketchbooks-main, .sketchbooks-header, .sketchbook-cover, .sketchbook-detail { transition: none !important; animation: none !important; filter: none !important; }
}

/* ============================================================
   CLIENT REVIEW 31.08.2026 — scaled vertical archive + snap tracks
   ============================================================ */

html:has(body.sketchbooks-page) {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}
.sketchbooks-overview {
  position: static !important;
  min-height: 0 !important;
  padding: 0 var(--sketch-pad) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sketchbook-cover,
.sketchbook-cover:nth-child(1),
.sketchbook-cover:nth-child(2),
.sketchbook-cover:nth-child(3),
.sketchbook-cover:nth-child(4) {
  position: static !important;
  inset: auto !important;
  height: 100svh;
  min-height: 100svh;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  filter: none;
  overflow: visible;
}
.sketchbook-cover img {
  position: relative;
  top: 17px;
  max-width: 100%;
  max-height: 76svh;
  object-fit: contain;
}
/* The Zürich scan reaches the source canvas edges; retain breathing room so
   the physical book is never visually clipped by its overview frame. */
.sketchbook-cover[data-book="zurich-summer-24"] img {
  width: calc(100% - 16px);
  margin-inline: auto;
}
.sketchbook-cover[data-size="pocket"] { width: min(48vw, 690px) !important; --sketchbook-select-scale: 1.42; }
.sketchbook-cover[data-size="large"] { width: min(65vw, 960px) !important; --sketchbook-select-scale: 1.23; }
.sketchbook-cover[data-size="a5"] { width: min(72vw, 1080px) !important; --sketchbook-select-scale: 1.19; }
.sketchbook-cover:hover,
.sketchbook-cover:focus-visible { filter: none !important; }
.sketchbook-cover:focus,
.sketchbook-cover:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}
.sketchbook-cover-title {
  margin-top: 29px !important;
  font-size: clamp(17px, 1.15vw, 22px) !important;
  line-height: 1.05;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.22,.61,.36,1), visibility 220ms step-end;
}
.sketchbook-cover[data-book="people-24"] .sketchbook-cover-title {
  margin-top: 25px !important;
  margin-left: 12px !important;
}
.sketchbook-cover:hover .sketchbook-cover-title,
.sketchbook-cover:focus-visible .sketchbook-cover-title,
.sketchbook-cover.is-selected .sketchbook-cover-title {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.22,.61,.36,1), visibility 0s step-start;
}
.sketchbook-cover-meta,
.sketchbook-current-meta {
  display: block;
  margin-top: 4px !important;
  color: #aaa !important;
  -webkit-text-fill-color: #aaa !important;
  font-size: clamp(12px, .8vw, 15px) !important;
  line-height: 1.1;
}
.sketchbook-current-meta {
  margin-top: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(17px, 1.15vw, 22px) !important;
  line-height: 1.05 !important;
}
.sketchbook-cover-meta { display: none !important; }

/* Selecting a book reveals every spread in one horizontal, snapping strip. */
html:has(.sketchbook-detail:not([hidden])) { scroll-snap-type: none; }
.sketchbook-detail {
  --sketchbook-spread-width: min(82vw, 1420px);
  width: 100%;
  height: 100svh;
  padding: 0 !important;
  overflow: hidden;
}
body.sketchbooks-page.is-book-open {
  height: 100svh;
  overflow: hidden;
}
body.sketchbooks-page.is-book-open .sketchbooks-main {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}
body.sketchbooks-page.is-book-open .sketchbook-detail {
  position: absolute;
  inset: 0;
}
body.sketchbooks-page.is-book-open .sketchbook-detail,
body.sketchbooks-page.is-book-open .sketchbook-current-title,
body.sketchbooks-page.is-book-open .sketchbook-current-meta {
  transition: opacity 280ms ease, filter 280ms ease, transform 280ms cubic-bezier(.22,.61,.36,1);
}
body.sketchbooks-page.is-book-open .sketchbook-current-title,
body.sketchbooks-page.is-book-open .sketchbook-meta-line {
  animation: sketchbook-info-in 380ms cubic-bezier(.22,.61,.36,1) both;
}
body.sketchbooks-page.is-book-open .sketchbook-meta-line:nth-child(1) { animation-delay: 90ms; }
body.sketchbooks-page.is-book-open .sketchbook-meta-line:nth-child(2) { animation-delay: 180ms; }
.sketchbook-meta-line { display: block; }
@keyframes sketchbook-info-in {
  from { opacity: 0; filter: blur(9px); transform: translateY(2px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
body.sketchbooks-page.is-book-closing .sketchbook-detail,
body.sketchbooks-page.is-book-closing .sketchbook-current-title,
body.sketchbooks-page.is-book-closing .sketchbook-current-meta {
  animation: none !important;
}
body.sketchbooks-page.is-book-closing-active .sketchbook-detail,
body.sketchbooks-page.is-book-closing-active .sketchbook-current-title,
body.sketchbooks-page.is-book-closing-active .sketchbook-current-meta {
  opacity: 0 !important;
  filter: blur(12px) !important;
  transform: scale(.992) !important;
}
.sketchbook-spreads {
  width: 100%;
  height: 100%;
  padding-block: 0;
  padding-inline: max(var(--sketch-pad), calc((100vw - var(--sketchbook-spread-width)) / 2));
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: clamp(32px, 7vw, 120px) !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--sketch-pad), calc((100vw - var(--sketchbook-spread-width)) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
}
.sketchbook-spreads::-webkit-scrollbar { display: none; }
.sketchbook-spread,
.sketchbook-spread:nth-child(3n + 2),
.sketchbook-spread:nth-child(3n) {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  flex: 0 0 auto;
  width: var(--sketchbook-spread-width) !important;
  height: 76svh;
  margin: 0 !important;
  align-self: center !important;
  display: grid;
  place-items: center;
  overflow: visible;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.sketchbook-detail[data-size="pocket"] { --sketchbook-spread-width: min(68vw, 980px); }
.sketchbook-detail[data-size="large"] { --sketchbook-spread-width: min(68vw, 1080px); }
.sketchbook-detail[data-size="large"] .sketchbook-spread {
  height: 68svh;
  transform: translateY(-2.5svh);
}
.sketchbook-detail[data-size="a5"] { --sketchbook-spread-width: min(68vw, 1080px); }
.sketchbook-detail[data-size="a5"] .sketchbook-spread {
  height: 68svh;
  transform: translateY(-2.5svh);
}
.sketchbook-spread img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 780px) {
  .sketchbook-cover,
  .sketchbook-cover:nth-child(1),
  .sketchbook-cover:nth-child(2),
  .sketchbook-cover:nth-child(3),
  .sketchbook-cover:nth-child(4) {
    height: 100svh;
    min-height: 100svh;
  }
  .sketchbook-cover[data-size="pocket"] { width: 60vw !important; --sketchbook-select-scale: 1.27; }
  .sketchbook-cover[data-size="large"] { width: 78vw !important; --sketchbook-select-scale: 1.13; }
  .sketchbook-cover[data-size="a5"] { width: 84vw !important; --sketchbook-select-scale: 1.095; }
  .sketchbook-cover-title { font-size: 16px !important; }
  .sketchbook-cover-meta { font-size: 12px !important; }
  .sketchbook-detail { padding: 0 !important; }
  .sketchbook-spreads { gap: 9vw !important; }
  .sketchbook-detail[data-size="pocket"] { --sketchbook-spread-width: 76vw; }
  .sketchbook-detail[data-size="large"] { --sketchbook-spread-width: 82vw; }
  .sketchbook-detail[data-size="large"] .sketchbook-spread {
    height: 66svh;
    transform: translateY(-1.5svh);
  }
  .sketchbook-detail[data-size="a5"] { --sketchbook-spread-width: 82vw; }
  .sketchbook-detail[data-size="a5"] .sketchbook-spread {
    height: 66svh;
    transform: translateY(-1.5svh);
  }
}
