@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f8f8f5;
  --ink: #171717;
  --red: #D0212B;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans',Helvetica,Arial,sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sitebar {
  height: 65px;
  border-bottom: 1px solid #d9d9d5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,5vw,80px);
  gap: 1rem;
  font-size: 10px;
  letter-spacing: .07em;
  font-weight: 700;
}

.sitebar a {
  text-decoration: none;
}

.wordmark {
  font-size: 16px;
  letter-spacing: -.05em;
  font-weight: 800;
}

.opening {
  max-width: 1500px;
  margin: auto;
  padding: 55px clamp(20px,5vw,80px) 140px;
}

.opening-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
}

.opening h1 {
  margin: 35px 0 65px;
  font-size: clamp(70px,11.8vw,190px);
  line-height: .78;
  letter-spacing: -.105em;
  font-weight: 800;
}

.opening h1 span {
  color: var(--red);
}

.opening-grid {
  display: grid;
  grid-template-columns: minmax(250px,.8fr) minmax(300px,1fr);
  align-items: end;
  gap: clamp(45px,9vw,180px);
}

.booklet-photo {
  width: 100%;
  max-width: 475px;
  filter: grayscale(100%);
}

.opening-copy {
  max-width: 560px;
  padding-bottom: 3vw;
  font-size: clamp(16px,1.55vw,23px);
  line-height: 1.48;
}

.opening-copy .lead {
  font-size: clamp(23px,2.6vw,39px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.04em;
}

.scroll {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 65px;
}

.series {
  max-width: 1500px;
  padding: 0 clamp(20px,5vw,80px);
  margin: auto;
}

.entry {
  min-height: 730px;
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(0,.84fr);
  gap: clamp(48px,9vw,160px);
  align-items: center;
  margin: 40px 0 130px;
}

.entry.reverse {
  grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr);
}

.entry.reverse .photo {
  grid-column: 2;
  grid-row: 1;
}

.entry.reverse .writing {
  grid-column: 1;
  grid-row: 1;
}

.photo {
  margin: 0;
  min-width: 0;
}

.photo img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  object-position: left center;
}

.reverse .photo img {
  object-position: right center;
}

.photo figcaption {
  font-size: 10px;
  letter-spacing: .09em;
  font-weight: 800;
  margin-top: 15px;
}

.writing {
  max-width: 460px;
  align-self: center;
}

.writing .number {
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 700;
}

.writing h2 {
  font-size: clamp(42px,5.5vw,86px);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 17px 0 30px;
}

.writing p {
  font-size: clamp(16px,1.55vw,22px);
  line-height: 1.52;
  margin: 0;
}

.entry:nth-child(3n) .writing h2 {
  font-family: 'Playfair Display',Georgia,serif;
  font-style: italic;
  letter-spacing: -.045em;
  font-weight: 600;
}

.entry:nth-child(4n) .photo {
  max-width: 85%;
}

.end {
  padding: 120px 5vw 140px;
  border-top: 1px solid #d9d9d5;
}

.end-text {
  max-width: 1000px;
  margin: auto;
}

.end-text>span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.end h2 {
  font-size: clamp(55px,8vw,125px);
  letter-spacing: -.08em;
  line-height: .95;
  margin: 50px 0 75px;
}

.end p {
  font-size: 16px;
  max-width: 540px;
  line-height: 1.5;
}

.back {
  display: inline-block;
  margin-top: 70px;
  padding: 19px 22px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
}

.back:hover {
  background: #161616;
  color: white;
}

footer {
  padding: 27px 5vw;
  border-top: 1px solid #d9d9d5;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

@media (max-width:760px) {
  .sitebar span {
    display: none;
  }
  .opening {
    padding-top: 35px;
    padding-bottom: 80px;
  }
  .opening h1 {
    font-size: clamp(65px,17vw,110px);
    margin: 50px 0;
  }
  .opening-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .booklet-photo {
    width: 70%;
  }
  .entry,.entry.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
    margin: 30px 0 105px;
  }
  .entry.reverse .photo,.entry.reverse .writing {
    grid-column: auto;
    grid-row: auto;
  }
  .entry .photo {
    max-width: 100% !important;
  }
  .photo img {
    max-height: 78vh;
    object-position: center !important;
  }
  .writing h2 {
    font-size: clamp(40px,10vw,65px);
    margin-bottom: 18px;
  }
  .writing p {
    font-size: 17px;
  }
  .opening-copy .lead {
    font-size: 28px;
  }
  .end {
    padding: 80px 20px;
  }
  .end h2 {
    margin: 30px 0 50px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

.opening-grid {
  display: block;
  max-width: 850px;
  margin: 0 auto;
}

.opening-copy {
  max-width: 780px;
  padding: 0;
  font-size: clamp(19px,2vw,29px);
}

.opening-copy .lead {
  font-size: clamp(30px,4.1vw,62px);
  line-height: 1.1;
}

.opening {
  padding-bottom: 110px;
}

.booklet-photo {
  display: none !important;
}

.opening-grid {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.opening-copy {
  max-width: 1050px !important;
}

.opening-copy p {
  max-width: 980px !important;
}

.opening-copy .lead {
  font-size: clamp(24px,3vw,48px) !important;
}

.opening-copy p:not(.lead) {
  line-height: 1.6 !important;
  margin-bottom: 1.2em !important;
}

.custom-return-mark {
  width: 54px;
  height: 56px;
  display: inline-block;
}

.end a.back {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

.opening {
  max-width: 1340px !important;
  padding-bottom: clamp(75px,8vw,130px) !important;
}

.opening h1 {
  font-size: clamp(65px,9.5vw,140px) !important;
  line-height: .83 !important;
  margin: 40px 0 58px !important;
}

.opening-grid {
  max-width: 850px !important;
  margin: 0 auto !important;
}

.opening-copy {
  max-width: 780px !important;
  font-size: clamp(16px,1.4vw,20px) !important;
  line-height: 1.62 !important;
}

.opening-copy .lead {
  font-size: clamp(24px,2.65vw,37px) !important;
  line-height: 1.2 !important;
}

.opening-copy p:not(.lead) {
  margin-bottom: 1em !important;
}

.end a.back.page-back-top {
  width: 61px !important;
  height: 73px !important;
  margin-top: 35px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.end a.back.page-back-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width:760px) {
  .opening h1 {
    font-size: clamp(59px,14vw,96px) !important;
  }
  .opening-copy {
    font-size: 16px !important;
  }
  .opening-copy .lead {
    font-size: 25px !important;
  }
}

.entry:nth-child(3n) .writing h2 {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: 800 !important;
  letter-spacing: -.065em !important;
}

.opening h1 .title-square {
  display: inline-block;
  width: .10em;
  height: .10em;
  background: var(--red);
  border-radius: 0;
  vertical-align: baseline;
  margin-left: .11em;
  transform: translateY(.015em);
}

.opening h1 .title-square {
  width: .135em !important;
  height: .135em !important;
  vertical-align: baseline !important;
  transform: none !important;
  margin: 0 0 .025em .075em !important;
  border-radius: 0 !important;
}

/* 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;
}
