.archive-body {
  background: var(--desk-bg) radial-gradient(ellipse at 43% 45%, #53594a99, transparent 65%);
  color: var(--desk-text);
  min-height: 100svh;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.archive-room {
  max-width: 1140px;
  margin: auto;
  padding: 25px 38px 24px;
}
.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.archive-header a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}
.archive-header .archive-brand {
  font:
    italic bold 34px Georgia,
    serif;
  letter-spacing: -2px;
}
.archive-header h1 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #bfc3b3;
  margin: 0;
}
.archive-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 22px;
  align-items: center;
}
.archive-stage {
  position: relative;
  height: clamp(440px, calc(100svh - 175px), 760px);
  perspective: 1500px;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
}
.archive-sheet {
  position: absolute;
  inset: 50% auto auto 50%;
  padding: 0;
  border: 1px solid #b6b099;
  background: #eee9d7;
  cursor: pointer;
  width: min(75%, 420px, calc((100svh - 240px) * 0.68));
  transform-origin: center;
  transform: translate(-50%, calc(-50% - var(--shift) * 30px))
    translateZ(calc(var(--depth) * -110px)) rotateX(calc(var(--depth) * 4deg));
  box-shadow: 0 17px 25px #11170f55;
  transition:
    transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 500ms;
  filter: brightness(calc(1 - var(--depth) * 0.12));
}
.archive-sheet img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.archive-timeline {
  border-bottom: 0;
  border-left: 1px solid #bfc3b33b;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.archive-year {
  font:
    11px 'Courier New',
    monospace;
  letter-spacing: 2px;
  color: #bfc3b3;
  margin-bottom: 10px;
}
.archive-timeline button,
.archive-timeline button:last-child {
  margin-left: 0;
}
.archive-timeline button {
  position: relative;
  text-align: left;
  background: none;
  border: 0;
  color: #a5ad9a;
  padding: 10px 0;
  cursor: pointer;
  min-height: 44px;
}
.archive-timeline button:before {
  content: '';
  position: absolute;
  left: -24px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8c9280;
}
.archive-timeline button[aria-current='true'] {
  color: #f5f3e8;
}
.archive-timeline button[aria-current='true']:before {
  background: #eae5d4;
  box-shadow: 0 0 0 5px #eae5d414;
}
.archive-timeline time {
  display: block;
  font:
    21px Georgia,
    serif;
  margin-bottom: 6px;
}
.archive-timeline button span {
  font:
    10px 'Courier New',
    monospace;
  letter-spacing: 2px;
}
.archive-footer {
  flex-direction: row;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  border: 0;
  padding: 0;
}
.archive-open {
  display: flex;
  align-items: center;
  gap: 22px;
  color: inherit;
  text-decoration: none;
  padding: 12px 22px;
  border-bottom: 1px solid #eae5d465;
  min-height: 44px;
  font-size: 14px;
}
.archive-footer button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}
.archive-footer button:disabled {
  opacity: 0.2;
  cursor: default;
}
.archive-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.archive-room :focus-visible {
  outline: 2px solid #eee9d7;
  outline-offset: 5px;
}
@media (max-width: 650px) {
  .archive-room {
    padding: 16px 20px;
  }
  .archive-header {
    gap: 10px;
  }
  .archive-header .archive-brand {
    font-size: 29px;
  }
  .archive-header h1 {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .archive-browser {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .archive-stage {
    height: max(370px, calc(100svh - 230px));
  }
  .archive-sheet {
    width: min(90%, calc((100svh - 290px) * 0.68));
    transform: translate(-50%, calc(-50% - var(--shift) * 22px))
      translateZ(calc(var(--depth) * -100px)) rotateX(calc(var(--depth) * 3deg));
  }
  .archive-timeline {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-left: 0;
    border-top: 1px solid #bfc3b33b;
    padding: 0;
    gap: 28px;
  }
  .archive-year {
    margin: 0;
  }
  .archive-timeline time {
    font-size: 17px;
  }
  .archive-timeline button:before {
    left: 50%;
    top: -4px;
    margin-left: -3px;
  }
  .archive-footer {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .archive-sheet {
    transition: none;
  }
}

.archive-stage {
  touch-action: pinch-zoom;
  cursor: grab;
}
.archive-body.is-dragging {
  cursor: grabbing;
}
.archive-sheet {
  transition: none;
  will-change: transform;
}
.archive-timeline {
  touch-action: pinch-zoom;
}
.archive-open {
  font-family: var(--control-font);
  font-size: var(--control-size);
  min-height: var(--control-target);
}
.archive-room :focus-visible {
  outline-color: var(--control-focus);
}

.archive-header a,
.archive-open {
  cursor: pointer;
}
