.archive-page { background: #f0f1e9; color: #10110e; }
.archive-main { padding-bottom: 5rem; }
.archive-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: end; padding: clamp(2.5rem, 7vw, 6rem) 0 3rem; border-bottom: 2px solid #10110e; }
.archive-heading h1 { font-size: clamp(4rem, 8.5vw, 8.8rem); line-height: .91; letter-spacing: -.075em; margin: 1.2rem 0 0; }
.archive-introduction { max-width: 33rem; justify-self: end; }
.archive-introduction > p:first-child { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.45; margin: 0 0 1.5rem; }
.archive-source-note { font-size: .95rem; line-height: 1.65; color: #44463d; }
.archive-introduction .barcode { width: 100px; height: 24px; margin: 1.5rem 0 0 auto; }
.archive-controls { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; padding: 1.8rem 0; }
.archive-controls[hidden], .archive-clear[hidden], .archive-explore-hint[hidden], .archive-empty[hidden], .archive-error[hidden] { display: none; }
.archive-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.archive-filters label { display: flex; flex-direction: column; gap: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.archive-filters select { display: block; min-width: 175px; max-width: 100%; padding: .75rem 2.5rem .75rem .85rem; border: 1px solid #10110e; border-radius: 0; background: #f8f9f3; color: #10110e; font: inherit; font-size: .88rem; letter-spacing: 0; text-transform: none; }
.archive-clear { align-self: end; border: 0; background: transparent; padding: .85rem .2rem; text-decoration: underline; text-underline-offset: .2em; color: inherit; cursor: pointer; }
.archive-view-switch { display: flex; border: 1px solid #10110e; flex-shrink: 0; }
.archive-view-switch button { border: 0; background: transparent; color: inherit; padding: .8rem 1.1rem; min-height: 44px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.archive-view-switch button + button { border-left: 1px solid #10110e; }
.archive-view-switch button[aria-pressed="true"] { background: #10110e; color: #f0f1e9; }
.archive-status-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin: .1rem 0 1.1rem; }
.archive-status-row p { font-size: .8rem; line-height: 1.5; margin: 0; }
.archive-explore-hint { color: #55574d; text-align: right; }
.archive-viewport { width: 100%; }
.archive-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.archive-card { min-width: 0; --archive-color: #d2ff00; }
.archive-card[data-color="cyan"], .archive-dialog[data-color="cyan"] { --archive-color: #81e4ec; }
.archive-card[data-color="lilac"], .archive-dialog[data-color="lilac"] { --archive-color: #bca9f1; }
.archive-card[data-color="acid"], .archive-dialog[data-color="acid"] { --archive-color: #d2ff00; }
.archive-card-button { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; border: 1px solid #10110e; border-radius: 0 0 12px 12px; background: #fafbf5; color: #10110e; text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.archive-card-button:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 #10110e; }
.archive-card-button:focus-visible { outline: 3px solid #10110e; outline-offset: 5px; }
.archive-card-top { display: flex; justify-content: space-between; gap: .5rem; width: 100%; padding: .65rem 1rem; background: var(--archive-color); border-bottom: 1px solid #10110e; font-size: .72rem; line-height: 1.4; font-family: "Courier New", monospace; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.archive-image-wrap { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; background: #e4e5dc; }
.archive-card .archive-image-wrap { aspect-ratio: 4 / 3; border-bottom: 1px solid #10110e; }
.archive-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.archive-image-fallback { margin: 0; padding: 2rem; font-size: .95rem; line-height: 1.6; }
.archive-card-copy { display: flex; flex: 1; flex-direction: column; width: 100%; padding: 1.2rem 1rem 1rem; }
.archive-card-project { font-size: .7rem; letter-spacing: .06em; font-weight: 700; text-transform: uppercase; margin-bottom: .55rem; }
.archive-card-title { font-size: clamp(1.2rem, 1.6vw, 1.55rem); font-weight: 750; line-height: 1.12; letter-spacing: -.035em; }
.archive-card-description { display: block; font-size: .91rem; line-height: 1.6; margin: .85rem 0 1.3rem; color: #45463e; }
.archive-card-footer { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: auto; padding-top: .85rem; border-top: 1px dashed #888b7d; font-size: .7rem; line-height: 1.45; }
.archive-card-arrow { flex-shrink: 0; font-weight: 700; }
.archive-is-explore { height: min(73vh, 740px); min-height: 430px; overflow: auto; padding: 2rem; border: 1px solid #a8ab9c; background-color: #e8eade; background-image: radial-gradient(#9b9e8f .8px, transparent .8px); background-size: 20px 20px; cursor: grab; overscroll-behavior: contain; scrollbar-gutter: stable; }
.archive-is-explore .archive-items { width: max-content; min-width: 100%; grid-template-columns: repeat(3, 300px); gap: 2.2rem; padding: .5rem; }
.archive-is-explore .archive-card:nth-child(3n + 2) { margin-top: 2rem; }
.archive-is-explore .archive-card:nth-child(3n + 3) { margin-top: 1rem; }
.archive-is-explore .archive-card-button { cursor: grab; }
.archive-is-dragging, .archive-is-dragging .archive-card-button { cursor: grabbing; user-select: none; }
.archive-is-dragging .archive-card-button:hover { transform: none; box-shadow: none; }
.archive-empty, .archive-error { padding: 2rem; border: 1px dashed #10110e; background: #e7e9dc; margin: 1rem 0 2rem; line-height: 1.6; }
.archive-error p { margin: 0 0 1rem; }
.archive-reading { margin-top: 3rem; border-top: 1px solid #10110e; padding-top: 2rem; }
.archive-reading h2 { margin: 0 0 .5rem; font-size: 1.4rem; letter-spacing: -.03em; }
.archive-reading > p { color: #4a4c42; font-size: .95rem; line-height: 1.6; }
.archive-reading-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.2rem; }
.archive-reading-links a { font-size: .85rem; font-weight: 700; text-underline-offset: .25em; }
.archive-noscript { padding: 1rem; background: #d2ff00; line-height: 1.6; }
.archive-dialog { --archive-color: #d2ff00; width: min(1120px, calc(100vw - 3rem)); max-width: none; max-height: calc(100dvh - 3rem); padding: 0; border: 2px solid #10110e; color: #10110e; background: #f0f1e9; overflow: auto; box-shadow: 10px 10px 0 #10110e; }
.archive-dialog::backdrop { background: rgb(16 17 14 / 75%); }
.archive-dialog-open { overflow: hidden; }
.archive-dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--archive-color); border-bottom: 1px solid #10110e; }
.archive-dialog-top p { margin: 0; font-size: .75rem; }
.archive-dialog-close { display: flex; align-items: center; gap: 1rem; min-height: 44px; border: 1px solid #10110e; padding: .5rem .9rem; background: #f0f1e9; color: #10110e; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.archive-dialog-close span { font-size: 1.4rem; line-height: 1; }
.archive-dialog-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.archive-dialog-media { padding: 1.6rem; background: #dedfd4; display: flex; align-items: center; border-right: 1px solid #10110e; }
.archive-dialog-media .archive-image-wrap { min-height: 12rem; background: transparent; }
.archive-dialog-media img { height: auto; max-height: 72vh; object-fit: contain; }
.archive-dialog-copy { padding: clamp(1.5rem, 3vw, 3rem); }
.archive-dialog-project { margin: 0 0 .7rem; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; font-weight: 700; }
.archive-dialog h2 { margin: 0 0 1.3rem; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.04em; }
#archive-dialog-description { line-height: 1.7; font-size: 1rem; }
.archive-detail-facts { margin: 1.6rem 0 2rem; }
.archive-detail-facts div { padding: .8rem 0; border-top: 1px solid #b3b6a7; }
.archive-detail-facts dt { font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .35rem; }
.archive-detail-facts dd { margin: 0; font-size: .9rem; line-height: 1.6; }
.archive-dialog .button { white-space: normal; text-align: center; }
@media (max-width: 1000px) {
  .archive-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-heading { gap: 2rem; }
  .archive-controls { align-items: start; }
  .archive-dialog-body { grid-template-columns: 1fr; }
  .archive-dialog-media { border-right: 0; border-bottom: 1px solid #10110e; padding: 1rem; }
  .archive-dialog-media img { max-height: 40vh; }
}
@media (max-width: 700px) {
  .archive-heading { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 2rem; }
  .archive-heading h1 { font-size: clamp(3.6rem, 15vw, 6rem); }
  .archive-introduction { justify-self: start; }
  .archive-introduction > p:first-child { font-size: 1.2rem; }
  .archive-introduction .barcode { display: none; }
  .archive-controls { display: block; padding: 1.3rem 0; }
  .archive-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
  .archive-filters select { min-width: 0; width: 100%; font-size: .8rem; padding-right: 1.3rem; }
  .archive-clear { justify-self: start; grid-column: 1 / -1; padding: .4rem 0; }
  .archive-view-switch { display: none; }
  .archive-status-row { display: block; }
  .archive-items { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .archive-card-title { font-size: 1.6rem; }
  .archive-card-copy { padding: 1.2rem; }
  .archive-card-top { padding: .65rem 1.2rem; }
  .archive-card-button:hover { transform: none; box-shadow: none; }
  .archive-reading-links { flex-direction: column; gap: 1.1rem; }
  .archive-dialog { width: calc(100vw - 1.2rem); max-height: calc(100dvh - 1.2rem); box-shadow: 4px 4px 0 #10110e; }
  .archive-dialog-top { padding: .65rem .85rem; }
  .archive-dialog-top p { font-size: .65rem; }
  .archive-dialog-copy { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .archive-card-button { transition: none; }
  .archive-card-button:hover { transform: none; }
}
