* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f0eee9;
  color: #151515;
  font-family: Arial,Helvetica,sans-serif;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #bdb9b1;
  padding: 22px 5%;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: bold;
}

.wordmark {
  font-size: 19px;
  letter-spacing: -.09em;
  font-weight: 900;
}

.wordmark span,h1 span {
  color: #D0212B;
}

.intro {
  padding: 8vh 7% 9vh;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  column-gap: 10%;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
}

.intro .eyebrow {
  grid-column: 1/-1;
  margin: 0 0 20px;
}

.intro h1 {
  font-size: clamp(56px,11vw,170px);
  line-height: .8;
  letter-spacing: -.105em;
  margin: 16px 0 0;
  font-weight: 900;
}

.lede {
  max-width: 390px;
  font-size: clamp(15px,1.5vw,20px);
  line-height: 1.5;
  margin: 25px 0 0;
}

.book-section {
  padding: 42px 4% 80px;
  background: #191817;
  color: #f0eee9;
  overflow: hidden;
}

.book-heading {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .12em;
  margin-bottom: 35px;
}

.book-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 5% 30px;
  min-height: 200px;
  perspective: 1800px;
}

.book {
  width: min(100%,950px);
  aspect-ratio: 1.414 / 1;
  position: relative;
  perspective: 2000px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 20px 19px rgba(0,0,0,.42));
  touch-action: pan-y;
  user-select: none;
}

.blank {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #f9f8f4;
}

.left-blank {
  left: 0;
  box-shadow: inset -10px 0 18px rgba(0,0,0,.08);
}

.right-blank {
  right: 0;
  box-shadow: inset 10px 0 18px rgba(0,0,0,.08);
}

.gutter {
  position: absolute;
  left: calc(50% - 5px);
  top: 0;
  width: 10px;
  height: 100%;
  background: linear-gradient(90deg,transparent,rgba(0,0,0,.12),transparent);
  z-index: 1;
  pointer-events: none;
}

.leaf {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 50%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 980ms cubic-bezier(.25,.58,.18,1);
  cursor: grab;
}

.leaf.flipped {
  transform: rotateY(-180deg);
}

.leaf.turning {
  cursor: grabbing;
}

.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.face.front {
  box-shadow: inset 12px 0 19px rgba(0,0,0,.09);
}

.face.back {
  transform: rotateY(180deg);
  box-shadow: inset -12px 0 19px rgba(0,0,0,.09);
}

.face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 18px rgba(35,22,15,.12);
}

.leaf.turning .face::after {
  box-shadow: inset 0 0 32px rgba(20,15,10,.22);
}

.controls {
  margin: 15px auto 0;
  max-width: 950px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav {
  background: transparent;
  border: 1px solid #777;
  color: #f5f4f1;
  padding: 12px 17px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .1em;
  min-width: 142px;
  transition: background .2s,color .2s;
}

.nav:hover:not(:disabled) {
  background: #eee;
  color: #111;
}

.nav:disabled {
  opacity: .22;
  cursor: default;
}

.nav span {
  font-size: 11px;
  font-weight: 800;
}

.page-count {
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
}

.hint {
  text-align: center;
  font-size: 10px;
  color: #aaa;
  letter-spacing: .12em;
  margin-top: 24px;
}

.details {
  padding: 110px 8%;
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 8%;
}

.details h2 {
  font-family: Georgia,serif;
  font-size: clamp(32px,4vw,63px);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 0 0 40px;
}

.details p {
  font-size: 17px;
  line-height: 1.55;
  max-width: 650px;
}

footer {
  background: #161616;
  color: #eee;
  display: flex;
  justify-content: space-between;
  padding: 30px 7%;
  font-size: 11px;
  letter-spacing: .12em;
}

@media (max-width:760px) {
  .header {
    padding: 18px 5%;
  }
  .header>a:last-child {
    display: none;
  }
  .intro {
    display: block;
    padding: 70px 7%;
  }
  .intro h1 {
    font-size: clamp(60px,13vw,96px);
  }
  .lede {
    margin-top: 35px;
  }
  .book-section {
    padding: 28px 2% 55px;
  }
  .book-heading {
    margin: 0 3% 20px;
    font-size: 9px;
  }
  .book-stage {
    padding: 20px 1%;
  }
  .controls {
    padding: 0 2%;
  }
  .nav {
    min-width: auto;
    padding: 12px;
  }
  .nav span {
    display: none;
  }
  .page-count {
    font-size: 9px;
  }
  .hint {
    font-size: 9px;
    padding: 0 10%;
  }
  .details {
    display: block;
    padding: 70px 7%;
  }
  .details h2 {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

.book.at-start .left-blank, .book.at-end .right-blank {
  visibility: hidden;
}

.book.at-start .gutter, .book.at-end .gutter {
  opacity: 0;
}

.book.at-start .right-blank, .book.at-end .left-blank {
  background: transparent;
}

.restart-row {
  display: flex;
  justify-content: center;
  min-height: 55px;
  align-items: center;
  margin-top: 18px;
}

.restart {
  border: 1px solid #efebe4;
  background: #efebe4;
  color: #181818;
  padding: 13px 25px;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s,color .2s;
}

.restart:hover {
  background: transparent;
  color: #efebe4;
}

.restart[hidden] {
  display: none;
}

.book .blank {
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.book {
  isolation: isolate;
}

.leaf {
  backface-visibility: visible;
  -webkit-transform-style: preserve-3d;
}

.face {
  background: transparent;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.face.front {
  transform: translateZ(.3px);
}

.face.back {
  transform: rotateY(180deg) translateZ(.3px);
}

.face img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.controls .nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 80px !important;
}

.controls .nav img {
  width: 85px;
  max-height: 45px;
  display: block;
}

.restart-row {
  min-height: 74px !important;
  margin-top: 14px !important;
}

.restart,.restart:hover,.restart:focus-visible {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  width: 72px !important;
  height: 72px !important;
  padding: 6px !important;
  cursor: pointer !important;
}

.restart img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.restart:hover img {
  transform: rotate(-20deg);
  transition: transform .3s ease;
}

.intro {
  display: block !important;
  padding: clamp(60px,8vh,110px) 7% clamp(60px,8vh,110px) !important;
}

.intro .eyebrow {
  display: block;
  margin-bottom: 24px !important;
}

.intro h1 {
  max-width: 1260px !important;
  font-size: clamp(39px,6.1vw,102px) !important;
  line-height: .98 !important;
  letter-spacing: -.075em !important;
  overflow-wrap: normal !important;
}

.intro .lede {
  margin-top: 33px !important;
  max-width: 560px !important;
}

@media (max-width:760px) {
  .intro h1 {
    font-size: clamp(40px,9vw,70px) !important;
    line-height: 1.0 !important;
  }
}

.intro-context {
  max-width: 650px;
  margin-top: 22px;
  scroll-margin-top: 30px;
}

.intro-context p {
  font-size: clamp(15px, 1.28vw, 18px);
  line-height: 1.57;
  margin: 0 0 15px;
}

.intro-context .project-credit {
  font-size: 13px;
  line-height: 1.6;
  color: #5c5550;
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .intro-context {
    margin-top: 20px;
  }
  .intro-context p {
    font-size: 15px;
  }
}

.intro h1 .title-square {
  display: inline-block;
  width: .12em;
  height: .12em;
  background: #d0212b;
  vertical-align: baseline;
  margin: 0 0 .017em .07em;
  border-radius: 0;
}

/* ==========================================================
   2026-11 update: scroll driven page turning
   ========================================================== */
.book-section {
  height: 900vh;
  padding: 0 4% !important;
  overflow: clip;
}

.book-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 0 18px;
}

.book-heading {
  margin-bottom: 14px;
}

.book-stage {
  padding: 8px 0 12px;
  min-height: 0;
}

.book {
  width: min(100%, 950px, calc((100svh - 230px) * 1.414));
  cursor: pointer;
}

.leaf {
  transition: none !important;
  cursor: pointer;
  will-change: transform;
}

.restart-row {
  min-height: 52px !important;
  margin-top: 6px !important;
}

.restart,.restart:hover,.restart:focus-visible {
  width: 52px !important;
  height: 52px !important;
}

.scroll-hint {
  font: 700 10px/1 Arial,Helvetica,sans-serif;
  letter-spacing: .16em;
  color: #9a968f;
  animation: hintPulse 2.4s ease-in-out infinite;
}

.scroll-hint[hidden] {
  display: none;
}

@keyframes hintPulse {
  50% { opacity: .35; }
}

@media (max-width:760px) {
  .book-section {
    height: 700vh;
    padding: 0 2% !important;
  }
  .book {
    width: min(100%, calc((100svh - 230px) * 1.414));
  }
}

/* one red square, the same everywhere: on the baseline, a small gap after the last letter */
html body .title-square {
  display: inline-block !important;
  width: .13em !important;
  height: .13em !important;
  min-width: 0 !important;
  margin: 0 0 0 .1em !important;
  padding: 0 !important;
  vertical-align: baseline !important;
  position: static !important;
  transform: none !important;
  translate: none !important;
  background: #D0212B !important;
  border: 0 !important;
}

/* ==========================================================
   NYC wheatpaste wall
   ========================================================== */
.ny-wall {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.ny-piece {
  position: absolute;
  aspect-ratio: 950 / 1343;
  transform: rotate(var(--r));
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

.ny-piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* intro: the wall fills the right side, the words sit on paper on the left */


.ny-wall--intro {
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background: #1a1a1a;
  z-index: -1;
}

.ny-wall--intro .ny-piece {
  opacity: 0;
  scale: 1.12;
  transition: opacity .25s ease var(--d), scale .45s cubic-bezier(.2,1.4,.4,1) var(--d);
}

.ny-wall--intro.is-pasted .ny-piece {
  opacity: 1;
  scale: 1;
}



/* book: the zine sits on a dark pasted wall instead of plain black */
.book-sticky {
  position: sticky;
  isolation: isolate;
}

.ny-wall--book {
  inset: 0 -6%;
  z-index: -1;
  background: #141414;
}

.ny-wall--book .ny-piece {
  filter: grayscale(.6) brightness(.2) contrast(1.05);
}

.book-heading,
.page-count {
  position: relative;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}

/* the arrows are not needed any more: scrolling turns the pages */
.controls .nav {
  display: none !important;
}

.controls {
  justify-content: center !important;
}

.restart,.restart:hover,.restart:focus-visible {
  width: 40px !important;
  height: 40px !important;
}

@media (max-width:760px) {
}

@media (prefers-reduced-motion:reduce) {
  .ny-wall--intro .ny-piece { opacity: 1; scale: 1; transition: none; }
}

/* Phone: plain dark behind the zine, so the book is the focus */
@media (max-width:700px) {
  html body .ny-wall--book { display: none !important; }
}
