/* flux-archive.css — the ARCHIVE in the homepage's idiom (Courier, black on white, pure photographs).
   An additive layer loaded after style.css: the generated style.css / script.js are never edited, so site rebuilds
   cannot undo it. Paired with /flux-archive.js (header, PHOTOGRAPHS | PUBLICATIONS, lightbox download menu). */
:root { --fa-gap: 14px; }

/* ── header, as the homepage ── */
.ar-topbar { height: auto; padding: 18px var(--pad, 1.4rem) 14px; border-bottom: 2px solid #000; align-items: flex-end; gap: 18px; flex-wrap: wrap; overflow: visible; }
.ar-topbar .ar-brand-sub { display: none; }
.fa-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fa-title h1 { margin: 0; font: bold 28px/1 "Courier New", Courier, monospace; letter-spacing: .12em; }
.fa-stats { font-size: 10px; letter-spacing: .16em; color: #888; text-transform: uppercase; }
.fa-views { display: flex; border: 1.5px solid #000; }
.fa-views button { font: bold 11px "Courier New", Courier, monospace; letter-spacing: .14em; padding: 9px 14px; border: 0; background: #fff; color: #000; cursor: pointer; transition: background .12s, color .12s; }
.fa-views button + button { border-left: 1.5px solid #000; }
.fa-views button.on, .fa-views button:hover { background: #000; color: #fff; }
.ar-topbar .ar-search { align-self: flex-end; height: 34px; border: 1.5px solid #000; font-size: 11px; letter-spacing: .06em; }

/* ── the grid: pure photographs, at most six to a row ── */
.ar-grid { grid-template-columns: repeat(auto-fill, minmax(max(140px, calc((100% - 5 * var(--fa-gap)) / 6)), 1fr)); gap: var(--fa-gap); padding: 18px var(--pad, 1.4rem) 40px; }
.ar-cell { border: 0; background: #fff; padding: 6px; transition: background .14s ease, transform .14s ease, box-shadow .14s ease; }
.ar-cell-meta { display: none !important; }            /* no issue link, no + ZINE under the photographs */
.ar-thumb { cursor: pointer; background: transparent; }
.ar-cell > a:first-child:hover .ar-thumb { opacity: 1; }
/* hover = the photograph is picked up: it lifts on a black card */
@media (hover: hover) {
  .ar-cell:hover { background: #000; transform: translateY(-3px) scale(1.015); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); z-index: 2; }
}
.ar-cell:active { transform: scale(.985); }
@media (max-width: 760px) {
  .ar-grid { grid-template-columns: repeat(3, 1fr); --fa-gap: 6px; padding: 10px 10px 30px; }
  .ar-cell { padding: 3px; }
  .fa-title h1 { font-size: 22px; }
  .ar-topbar { padding: 12px 12px 10px; gap: 10px; }
}

/* ── the zine builder lives in FLUX STUDIO now: no cart pill / drawer on the archive ── */
.fz-pill, .fz-draw, .fz-back { display: none !important; }

/* ── PUBLICATIONS view (merged into the archive) ── */
.fa-pubs { flex: 1; overflow-y: auto; padding: 8px var(--pad, 1.4rem) 60px; font-family: "Courier New", Courier, monospace; }
.fa-pubs[hidden] { display: none; }
body.fa-pubview .ar-main { display: none !important; }
body.fa-pubview .ar-search { visibility: hidden; }
.fa-sec { margin-top: 30px; }
.fa-sec h2 { font-size: 11px; letter-spacing: .2em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #000; display: flex; justify-content: space-between; gap: 12px; }
.fa-sec h2 span { color: #888; font-weight: normal; }
.fa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(140px, calc((100% - 5 * 14px) / 6)), 1fr)); gap: 14px; }
.fa-card { display: block; color: #000; text-decoration: none; padding: 6px; transition: background .14s, color .14s, transform .14s; }
.fa-card .im { aspect-ratio: 3 / 4; background: #f2f2f2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fa-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fa-card b { display: block; font-size: 11px; letter-spacing: .1em; margin-top: 8px; }
.fa-card span { display: block; font-size: 9.5px; color: #888; letter-spacing: .06em; margin-top: 2px; }
@media (hover: hover) { .fa-card:hover { background: #000; color: #fff; transform: translateY(-3px); } .fa-card:hover span { color: #bbb; } }
.fa-soon { border: 1px dashed #bbb; padding: 22px; font-size: 11px; color: #888; letter-spacing: .06em; line-height: 1.6; }
@media (max-width: 760px) { .fa-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; } .fa-pubs { padding: 4px 10px 40px; } }

/* ── lightbox: DOWNLOAD PDF menu ── */
.fa-dl { position: relative; display: inline-block; }
.fa-dl[hidden] { display: none; }
.fa-dl-list { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 6; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #000; min-width: 100%; white-space: nowrap; }
.fa-dl-list[hidden] { display: none; }
.fa-dl-list a, .fa-dl-list span { display: block; padding: 9px 14px; color: #000; text-decoration: none; font-family: "Courier New", Courier, monospace; font-size: 11px; letter-spacing: .1em; }
.fa-dl-list a:hover, .fa-dl-list a:focus { background: #000; color: #fff; outline: none; }
.fa-dl-list span { color: #aaa; }
.fa-dl-btn[aria-expanded="true"] { background: #000; color: #fff; border-color: #000; }

/* the TIMELINE: black text everywhere (iPhone Safari paints plain buttons blue) */
.ar-sidebar button, .ar-sidebar .sb-view-btn, .ar-sidebar .sb-label-btn, .ar-sidebar .sb-toggle, .sb-controls .btn, #sb-mobile-toggle { color: #000; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.ar-sidebar .sb-view-btn { background: #fff; border: 1px solid #ccc; }
.ar-sidebar .sb-view-btn:active, .ar-sidebar .sb-view-btn:hover { background: #000; color: #fff; border-color: #000; }
.ar-sidebar .sb-toggle { color: #888; }

/* no search on the archive: neither the top search bar nor the timeline's jump-to-date box */
.ar-search, .sb-jump { display: none !important; }

/* phones: ONE scroll — the whole page scrolls (header, then the photographs), no box scrolling inside the page */
@media (max-width: 760px) {
  html, body { height: auto !important; min-height: 100%; overflow: visible !important; }
  .ar-main, .ar-panel, .fa-pubs { height: auto !important; max-height: none !important; overflow: visible !important; flex: none !important; }
}

/* tapping a photograph (phones): it sinks onto a black card as your finger lands, then the viewer opens with a quick zoom */
.ar-cell { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.ar-cell.fa-press { background: #000; transform: scale(.94); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); transition: transform .08s ease-out, background .08s, box-shadow .08s; z-index: 2; }
.ar-cell.fa-press img { filter: brightness(.85); }
.ar-cell.fa-pop { background: #000; animation: faPop .26s cubic-bezier(.3, 1.5, .5, 1); z-index: 2; }
@keyframes faPop { 0% { transform: scale(.94); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
#ar-overlay { animation: faFade .18s ease-out; }
#ar-overlay .ar-ov-img { animation: faZoom .24s cubic-bezier(.2, .9, .3, 1); }
@keyframes faFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes faZoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ar-cell.fa-press, .ar-cell.fa-pop, #ar-overlay, #ar-overlay .ar-ov-img { animation: none; transform: none; } }
