:root {
  --paper: #f1efe8;
  --paper-deep: #e7e3d9;
  --ink: #11110f;
  --forest: #172019;
  --acid: #d8ff47;
  --muted: #76736b;
  --line: rgba(17, 17, 15, 0.22);
  --gutter: clamp(20px, 4.2vw, 72px);
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}
button, a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.paper { background: var(--paper); }
.ink { color: var(--paper); background: var(--forest); }

.progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
}
.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  color: white;
  mix-blend-mode: difference;
}
.mark {
  width: min-content;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.issue {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.menu-trigger, .menu-close {
  justify-self: end;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px var(--gutter) 42px;
  color: var(--paper);
  background: var(--forest);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 350ms ease, transform 450ms cubic-bezier(.2,.8,.2,1), visibility 350ms;
}
.menu.open { visibility: visible; opacity: 1; transform: none; }
.menu-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.menu-head p { margin: 0; }
.menu ol {
  margin: auto 0;
  padding: 0;
  list-style: none;
}
.menu li { border-bottom: 1px solid rgba(255,255,255,.16); }
.menu li a {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  padding: 12px 0 8px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1;
  text-decoration: none;
}
.menu li span {
  font-family: var(--mono);
  font-size: 9px;
}
.menu-note {
  max-width: 260px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.cover {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  color: white;
  background: #1a211c;
}
.cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.02);
}
.cover-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), transparent 26%),
    linear-gradient(0deg, rgba(0,0,0,.50), transparent 54%);
}
.cover-title {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(58px, 8vh, 105px);
}
.cover-title p {
  margin: 0 0 16px 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cover h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(92px, 15vw, 232px);
  font-weight: 300;
  line-height: .66;
  letter-spacing: -.055em;
}
.cover h1 em { color: var(--acid); font-weight: 300; }
.cover-folio {
  position: absolute;
  right: var(--gutter);
  bottom: 38px;
  display: flex;
  gap: 55px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.prologue {
  display: grid;
  grid-template-columns: 1fr 4fr;
  min-height: 92vh;
  padding: 15vh var(--gutter);
}
.prologue aside {
  display: flex;
  height: fit-content;
  justify-content: space-between;
  padding-right: 32%;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prologue aside p { margin: 0; }
.prologue-copy { max-width: 1120px; }
.lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6.8vw, 108px);
  line-height: .96;
  letter-spacing: -.035em;
}
.prologue-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 650px;
  margin: 90px 0 0 auto;
  font-size: 13px;
  line-height: 1.7;
}
.prologue-notes p { margin: 0; }

.shore-story, .studies, .archive {
  padding: 12vh var(--gutter);
}
.chapter-head { margin-bottom: 90px; }
.chapter-head > p, .archive-head > div > p {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.chapter-head h2, .archive-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(60px, 9vw, 145px);
  font-weight: 300;
  line-height: .84;
  letter-spacing: -.045em;
}
.chapter-head.light h2 { color: var(--paper); }

figure { margin: 0; }
.image-open {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #ccc8bc;
  cursor: zoom-in;
}
.image-open img {
  width: 100%;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.image-open:hover img { transform: scale(1.015); filter: contrast(1.025); }
figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bleed-image { width: calc(100% + var(--gutter) * 2); margin-left: calc(var(--gutter) * -1); }
.bleed-image img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 37%; }
.bleed-image figcaption { padding: 0 var(--gutter); }

.offset-spread {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 9vw;
  align-items: end;
  padding: 18vh 4vw 20vh;
}
.portrait-frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 48%; }
.spread-copy {
  max-width: 410px;
  padding-bottom: 8vh;
  font-size: 14px;
  line-height: 1.7;
}
.spread-copy .drop {
  margin: 0 0 55px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 70px);
  line-height: 1;
  letter-spacing: -.03em;
}
.cinema-frame { width: 78%; margin: 0 auto 12vh; }
.cinema-frame img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 43%; }

.grove-story { padding: 15vh var(--gutter); }
.chapter-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 10vw;
  align-items: end;
}
.chapter-note {
  margin: 0 0 100px;
  font-size: 13px;
  line-height: 1.7;
}
.grove-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  align-items: start;
}
.grove-pair figure:nth-child(2) { margin-top: 12vw; }
.grove-pair img { aspect-ratio: 4 / 5; object-fit: cover; }
.grove-pair figcaption, .grove-wide figcaption { color: rgba(255,255,255,.62); }
blockquote {
  max-width: 1120px;
  margin: 22vh auto;
  font-family: var(--serif);
  font-size: clamp(50px, 7vw, 105px);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.035em;
}
.grove-wide { width: 88%; margin-left: auto; }
.grove-wide img { aspect-ratio: 16 / 9; object-fit: cover; }

.studies { padding-top: 16vh; }
.study-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 8vw;
  align-items: center;
}
.study-large img, .study-small img { aspect-ratio: 3 / 4; object-fit: cover; }
.study-large img { object-position: 50% 38%; }
.study-small { margin-top: 23vh; }
.study-small img { object-position: 50% 18%; }
.study-triptych {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7vw;
  align-items: center;
  margin: 24vh 0 10vh;
}
.study-triptych figure img { aspect-ratio: 3 / 4; object-fit: cover; }
.study-triptych p {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.archive { background: var(--paper-deep); }
.archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 80px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.archive-head h2 { font-size: clamp(55px, 7vw, 108px); }
.archive-filters { display: flex; gap: 24px; }
.archive-filters button {
  border: 0;
  padding: 6px 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.archive-filters button.active { color: var(--ink); box-shadow: inset 0 -1px var(--ink); }
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 34px);
}
.contact-item { margin-bottom: 42px; }
.contact-item:nth-child(7n + 2), .contact-item:nth-child(7n + 5) { margin-top: 7vw; }
.contact-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contact-item figcaption { color: var(--muted); }
.contact-item[hidden] { display: none; }

.colophon {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: 16vh var(--gutter) 44px;
}
.colophon > p {
  max-width: 1100px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(68px, 11vw, 170px);
  line-height: .82;
  letter-spacing: -.05em;
}
.colophon > div {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(.2,.75,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

.viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  color: white;
  background: #0c0c0b;
}
.viewer[open] {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  place-items: center;
}
.viewer::backdrop { background: #0c0c0b; }
.viewer header {
  position: absolute;
  z-index: 2;
  top: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 24px 30px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.viewer-close, .viewer-arrow {
  border: 0;
  padding: 0;
  color: white;
  background: none;
  cursor: pointer;
}
.viewer figure {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 65px 0 38px;
}
.viewer figure img { max-width: 100%; max-height: calc(100vh - 115px); object-fit: contain; }
.viewer figcaption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}
.viewer-arrow { width: 48px; height: 48px; }
.viewer-arrow svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1; }

@media (max-width: 800px) {
  .topbar { grid-template-columns: 1fr 1fr; padding-top: 18px; }
  .issue { display: none; }
  .cover { min-height: 650px; }
  .cover > img { object-position: 47% center; }
  .cover h1 { font-size: clamp(76px, 25vw, 112px); line-height: .72; }
  .cover-folio { right: auto; left: var(--gutter); width: calc(100% - var(--gutter) * 2); justify-content: space-between; gap: 0; }
  .menu li a { grid-template-columns: 45px 1fr; font-size: 39px; padding: 14px 0 10px; }
  .prologue { display: block; min-height: auto; padding: 110px var(--gutter); }
  .prologue aside { margin-bottom: 70px; padding-right: 0; }
  .lead { font-size: 46px; }
  .prologue-notes { grid-template-columns: 1fr; gap: 26px; margin-top: 58px; }
  .shore-story, .studies, .archive, .grove-story { padding: 100px var(--gutter); }
  .chapter-head { margin-bottom: 56px; }
  .chapter-head h2, .archive-head h2 { font-size: 58px; }
  .offset-spread { display: block; padding: 100px 0; }
  .portrait-frame { width: 88%; }
  .spread-copy { margin: 70px 0 0 auto; padding: 0; }
  .cinema-frame { width: 100%; margin-bottom: 30px; }
  .cinema-frame img { aspect-ratio: 4 / 3; }
  .chapter-grid { display: block; }
  .chapter-note { max-width: 320px; margin: 0 0 60px auto; }
  .grove-pair { display: block; }
  .grove-pair figure + figure { margin-top: 70px; margin-left: 15%; }
  blockquote { margin: 130px 0; font-size: 48px; }
  .grove-wide { width: 100%; }
  .grove-wide img { aspect-ratio: 4 / 3; }
  .study-split { grid-template-columns: 1fr 1fr; gap: 18px; }
  .study-small { margin-top: 160px; }
  .study-triptych { grid-template-columns: 1fr 1fr; gap: 20px; margin: 130px 0 30px; }
  .study-triptych p { grid-column: 1 / -1; grid-row: 1; margin: 0 0 35px; font-size: 34px; }
  .archive-head { display: block; }
  .archive-filters { margin-top: 34px; overflow-x: auto; }
  .contact-sheet { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-item, .contact-item:nth-child(n) { margin: 0 0 35px; }
  .colophon > div { display: grid; gap: 8px; }
  .viewer[open] { grid-template-columns: 42px 1fr 42px; }
}

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