.archive-wrap { padding-bottom: clamp(3rem, 6vw, 6rem); }
.archive-intro { padding-block: clamp(2.5rem, 6vw, 5.5rem) 0; }
.archive-intro h1 { font-size: clamp(2.75rem, 6.5vw, 6rem); max-width: 16ch; line-height: 1.02; margin: .7rem 0 1.2rem; }
.archive-cover { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 5%; }
.archive-opening > p:not(.eyebrow) { max-width: 57ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.archive-cover-art { background: #eee8dc; border: 1px solid #d9d1c2; min-height: 260px; display: grid; place-items: center; padding: 1rem; }
.archive-cover-art img { width: min(75%, 340px); height: auto; max-height: 318px; object-fit: contain; }
.archive-cover-art > span { justify-self: start; font-size: .9rem; text-decoration: underline; text-underline-offset: .23em; }
.archive-jumps { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: 1.6rem; padding: .8rem 0; border-block: 1px solid var(--line); }
.archive-jumps a, .archive-end a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .23em; }
.archive-section { padding-top: clamp(2.8rem, 6vw, 5.5rem); }
.archive-section-title { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1.5rem 8%; margin-bottom: 1.8rem; }
.archive-section-title h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.archive-section-title p, .archive-study p { color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.3rem; }
.archive-study { margin: 0; scroll-margin-top: 1rem; }
.archive-study > a { display: grid; place-items: center; aspect-ratio: 4/3; background: #f4f1eb; border: 1px solid #dcd8d0; overflow: hidden; cursor: zoom-in; }
.archive-study > a:focus-visible { outline-offset: 2px; }
.archive-study img { width: 100%; height: 100%; object-fit: contain; }
.archive-study h3 { margin: .7rem 0 .25rem; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.archive-study p { line-height: 1.5; font-size: .975rem; }
.archive-end { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.study-dialog { width: min(920px, calc(100% - 24px)); max-height: 94vh; max-height: 94dvh; padding: clamp(.8rem, 2vw, 1.4rem); border: 1px solid #cac4b8; border-radius: .35rem; color: #292824; background: #fcfbf8; }
.study-dialog::backdrop { background: #161816ce; }
.study-dialog-head, .study-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.study-dialog-head h2 { font-size: clamp(1.2rem, 2.7vw, 2rem); }
.study-dialog button { min-height: 44px; color: inherit; font: inherit; font-size: .94rem; border: 1px solid #9d9789; background: transparent; padding: .4rem .95rem; cursor: pointer; }
.study-dialog button:focus-visible { outline: 3px solid #954019; }
.study-dialog button:disabled { opacity: .4; cursor: default; }
.study-stage { width: 100%; height: min(56vh, 580px); height: min(56dvh, 580px); margin-block: .75rem; display: grid; place-items: center; background: #f1eee8; }
.study-stage img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.study-caption { margin-block: .5rem; line-height: 1.45; }
.study-count { font-variant-numeric: tabular-nums; font-size: .9rem; }
@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .archive-cover { grid-template-columns: 1fr; gap: 1.3rem; }
  .archive-cover-art { min-height: 0; padding: .6rem 1rem; }
  .archive-cover-art img { height: 132px; width: min(65%, 220px); }
  .archive-section-title, .archive-grid { grid-template-columns: 1fr; }
  .archive-section-title { gap: .65rem; margin-bottom: 1.25rem; }
  .archive-jumps { column-gap: 1.1rem; }
  .archive-study > a { aspect-ratio: 3/2; }
  .study-stage { height: min(47vh, 380px); height: min(47dvh, 380px); }
}
@media (max-height: 570px) and (orientation: landscape) {
  .study-stage { height: 40vh; }
}
