:root {
  --paper: #f5f1e9;
  --ink: #141313;
  --muted: #6e6a62;
  --line: rgba(20, 19, 19, 0.16);
  --accent: #8b2f1f;
  --shadow: 0 22px 70px rgba(22, 18, 14, 0.18);
  color-scheme: light;
  font-family:
    "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 19, 19, 0.035) 1px, transparent 1px) 0 0 /
      25vw 100%,
    var(--paper);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

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

.cursor {
  position: fixed;
  z-index: 40;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(20, 19, 19, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 160ms ease,
    height 160ms ease,
    border-color 160ms ease;
}

.cursor.is-hot {
  width: 34px;
  height: 34px;
  border-color: var(--accent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 22px 28px 14px;
  background: linear-gradient(180deg, var(--paper) 72%, rgba(245, 241, 233, 0));
}

.identity {
  display: flex;
  gap: 14px;
  width: max-content;
  line-height: 1;
  letter-spacing: 0;
}

.identity span:first-child {
  font-size: clamp(20px, 3vw, 42px);
  font-weight: 700;
}

.identity span:last-child {
  align-self: end;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.top-nav {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.nav-button,
.series-button,
.icon-button,
.close-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-button {
  min-height: 34px;
  padding: 0 2px 5px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
}

.nav-button.is-active {
  border-color: currentColor;
  color: var(--ink);
}

.shell {
  display: grid;
  grid-template-columns: minmax(230px, 30vw) minmax(0, 1fr);
  min-height: 100vh;
  padding: 112px 28px 28px;
}

.index-panel {
  position: sticky;
  top: 108px;
  align-self: start;
  max-height: calc(100vh - 130px);
  padding-right: 34px;
  overflow: auto;
}

.panel-section + .panel-section {
  margin-top: 36px;
}

.section-label,
.kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
  text-transform: uppercase;
}

.series-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  width: 100%;
  padding: 0;
  text-align: left;
  line-height: 1.12;
}

.series-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 500;
}

.series-button span {
  justify-self: end;
  color: var(--muted);
  font-size: 14px;
}

.series-button.is-active strong,
.series-button:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.info-panel {
  max-width: 330px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
}

.contact-list dt {
  color: var(--ink);
}

.contact-list dd {
  margin: 0;
}

.viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  min-height: calc(100vh - 140px);
}

.viewer-copy {
  display: grid;
  grid-template-columns: minmax(180px, 28vw) minmax(260px, 560px);
  gap: 28px;
  align-items: end;
}

.viewer-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 92px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.viewer-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.stage-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(64vh, 760px);
  padding: 0 58px;
}

.stage {
  display: grid;
  gap: 10px;
  width: min(100%, 1020px);
  margin: 0;
}

.stage img {
  width: 100%;
  max-height: min(66vh, 760px);
  object-fit: contain;
  filter: contrast(1.02);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.stage figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--ink);
  transform: translateY(-50%);
}

.icon-button span {
  font-size: 48px;
  line-height: 0.7;
}

.icon-button.prev {
  left: 0;
}

.icon-button.next {
  right: 0;
}

.thumb-strip {
  display: grid;
  grid-auto-columns: minmax(76px, 8vw);
  grid-auto-flow: column;
  gap: 10px;
  max-width: calc(100vw - 34vw);
  padding-bottom: 4px;
  overflow-x: auto;
}

.thumb-strip button {
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.58;
}

.thumb-strip button.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.thumb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 28px;
  background: rgba(14, 13, 12, 0.96);
  color: #f5f1e9;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  color: rgba(245, 241, 233, 0.72);
  font-size: 13px;
  text-align: center;
}

.close-button {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  color: #f5f1e9;
  font-size: 32px;
}

@media (max-width: 860px) {
  .cursor {
    display: none;
  }

  .site-header {
    position: static;
    padding: 18px 18px 8px;
  }

  .identity {
    display: grid;
    gap: 4px;
  }

  .identity span:last-child {
    padding: 0;
  }

  .shell {
    display: block;
    padding: 12px 18px 22px;
  }

  .index-panel {
    position: static;
    max-height: none;
    padding: 0;
  }

  .series-list {
    grid-auto-columns: minmax(160px, 48vw);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .series-button {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .series-button span {
    justify-self: start;
  }

  .info-panel {
    max-width: none;
  }

  .viewer {
    min-height: auto;
    margin-top: 20px;
  }

  .viewer-copy {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .viewer-copy h1 {
    font-size: clamp(36px, 14vw, 64px);
  }

  .stage-wrap {
    min-height: auto;
    margin-top: 10px;
    padding: 0;
  }

  .stage {
    width: 100%;
  }

  .stage img {
    max-height: 58vh;
  }

  .icon-button {
    top: auto;
    bottom: 30px;
    width: 48px;
    height: 48px;
    color: #f5f1e9;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.8);
  }

  .thumb-strip {
    max-width: 100%;
    grid-auto-columns: 78px;
  }

  .contact-list div {
    grid-template-columns: 78px 1fr;
  }
}

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