:root {
  --paper: #f8f7f3;
  --ink: #1f1f1d;
  --soft: #74716a;
  --line: #d8d3c8;
  --wash: #ece8df;
  --accent: #7d6046;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

.top-mark {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
  pointer-events: none;
}

.wordmark,
.audio-toggle {
  pointer-events: auto;
}

.bottom-nav,
.eyebrow,
.index,
.caption-stack {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wordmark {
  display: block;
  width: clamp(112px, 34vw, 220px);
}

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

.audio-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: rgba(248, 247, 243, 0.72);
  cursor: pointer;
}

.audio-toggle span,
.audio-toggle span::before,
.audio-toggle span::after {
  position: absolute;
  top: 50%;
  display: block;
  width: 3px;
  border-radius: 99px;
  background: var(--ink);
  transform: translateY(-50%);
  content: "";
}

.audio-toggle span {
  left: 50%;
  height: 15px;
}

.audio-toggle span::before {
  left: -9px;
  height: 8px;
}

.audio-toggle span::after {
  left: 9px;
  height: 20px;
}

.audio-toggle.is-playing {
  background: var(--ink);
}

.audio-toggle.is-playing span,
.audio-toggle.is-playing span::before,
.audio-toggle.is-playing span::after {
  background: var(--paper);
}

.bottom-nav {
  position: fixed;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  padding-top: 18px;
  background: linear-gradient(to top, var(--paper) 58%, rgba(248, 247, 243, 0));
  pointer-events: none;
}

.bottom-nav a {
  pointer-events: auto;
}

.plate {
  position: relative;
  min-height: 100svh;
  padding: 78px 18px 118px;
}

.opening {
  display: grid;
  align-content: start;
}

.bracket {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.object-image,
.archive-image,
.sheet-item {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.opening-object {
  width: min(72vw, 420px);
  aspect-ratio: 1 / 1.08;
  margin: 52px auto 0;
  filter: grayscale(0.96) contrast(1.12);
}

.caption-stack {
  display: grid;
  gap: 34px;
  width: 100%;
  margin-top: 34px;
  color: var(--ink);
  text-align: right;
}

.caption-stack p {
  margin: 0;
}

.title-block {
  max-width: 31rem;
  margin-top: 68px;
}

.eyebrow,
.index {
  margin: 0 0 18px;
  color: var(--accent);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(5.2rem, 23vw, 13rem);
  font-weight: 400;
  line-height: 0.82;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
}

p {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.58;
}

.title-block p:last-child,
.essay-copy p:last-child,
.note p:last-child,
.cinema-copy p:last-child,
.closing-copy p {
  max-width: 31rem;
  margin-top: 22px;
}

.essay {
  display: grid;
  align-content: start;
  gap: 44px;
}

.archive-image {
  filter: grayscale(1) contrast(1.12);
}

.archive-image.large {
  width: min(72vw, 440px);
  aspect-ratio: 4 / 5.6;
  margin-left: auto;
}

.archive-image.small {
  width: min(46vw, 250px);
  aspect-ratio: 4 / 5.5;
}

.image-note {
  display: grid;
  align-content: center;
  gap: 42px;
}

.archive-image.feature {
  width: min(82vw, 620px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}

.note {
  max-width: 390px;
}

.contact-sheet {
  min-height: auto;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.sheet-item {
  aspect-ratio: 4 / 5.4;
  background: var(--wash);
  filter: grayscale(1) contrast(1.12);
}

.strength {
  display: grid;
  align-content: center;
  gap: 38px;
}

.archive-image.wide {
  width: 100%;
  aspect-ratio: 1.38 / 1;
}

.side-text {
  width: 16rem;
  margin-left: auto;
  color: var(--ink);
}

.cinema {
  display: grid;
  align-content: start;
  gap: 44px;
}

.archive-image.tall {
  width: min(64vw, 360px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}

.cinema-copy {
  margin-left: auto;
}

.closing {
  display: grid;
  align-content: center;
}

.closing-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 58px;
  background: var(--line);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 40px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.share-status {
  min-height: 1.4em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(248, 247, 243, 0.96);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 92svh;
  object-fit: contain;
  filter: grayscale(1) contrast(1.12);
}

.close-lightbox {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.close-lightbox::before,
.close-lightbox::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.close-lightbox::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-lightbox::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 760px) {
  .top-mark {
    padding: 26px 28px 0;
  }

  .bottom-nav {
    right: 28px;
    bottom: 22px;
    left: 28px;
  }

  .plate {
    padding: 96px 5.4vw 118px;
  }

  .opening {
    min-height: 125svh;
  }

  .opening-object {
    width: min(38vw, 540px);
    margin-top: 44px;
  }

  .caption-stack {
    position: absolute;
    right: 5.4vw;
    bottom: 28vh;
    width: auto;
  }

  .title-block {
    margin-top: 9vh;
  }

  .essay {
    grid-template-columns: 0.8fr 0.9fr 0.5fr;
    align-items: center;
    gap: 3vw;
  }

  .archive-image.large,
  .archive-image.small {
    width: 100%;
    margin: 0;
  }

  .image-note {
    grid-template-columns: 1fr 0.58fr;
    align-items: end;
  }

  .archive-image.feature {
    width: min(52vw, 740px);
  }

  .sheet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .strength {
    grid-template-columns: 0.54fr 1fr 0.34fr;
    align-items: center;
  }

  .cinema {
    grid-template-columns: 0.7fr 0.8fr;
    align-items: center;
  }

  .archive-image.tall {
    width: min(32vw, 430px);
  }

  .closing-copy {
    margin-left: 34vw;
  }
}

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