/* ==========================================================================
   ARCHIVAL — the hero (founder, 2026-09-30, from her artifact). Load after
   x-archival.css. The finding-aid head, the jump bar and the open A–F drawer.
   Tokens are scoped to .av-hero (the shell owns --ink); the drawer's cards are
   .av-dcard (the room's own .av-card is the holdings card). The artifact's
   site nav is replaced by a mock nav of this page's own sections.
   ========================================================================== */
@font-face { font-family: "CourierPrimeAV"; src: url("fonts/courier-prime.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CourierPrimeAV"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* ==========================================================
   Archival exhibit hero
   Head (finding aid, search, jump bar) is live and fluid.
   The drawer photo is a size container: the six live cards are
   placed in reference pixels (1672 × 613) via --u, so they stay
   locked to the blank card faces at any width.
   ========================================================== */
.av-hero {
  --ground: #E9E0C8;
  --card: #F1EAD6;
  --ink: #2A241A;
  --ink-2: #5C5138;
  --rule: #A89A78;
  --red: #7A3B2E;
  --blue: #2E4470;
  --margin-red: rgba(122, 59, 46, .55);
  --ruled: rgba(46, 68, 112, .16);
  --edge: clamp(12px, 2.4vw, 40px);          /* outer red margin lines */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mono: "SpaceMonoX", ui-monospace, monospace;
  --type: "CourierPrimeAV", "Courier New", monospace;
}

/* Paper ground: nav + hero head share it. Ruled blue lines in the margins,
   red margin lines at both edges, faint paper grain. */
.av-paper {
  position: relative;
  background-color: var(--ground);
  background-image:
    var(--grain),
    repeating-linear-gradient(to bottom, transparent 0 41px, var(--ruled) 41px 42px);
  background-position: 0 0, 0 18px;
  color: var(--ink);
}
.av-paper::before,
.av-paper::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--margin-red);
  pointer-events: none;
  z-index: 21;                        /* runs through the nav, as on a ruled sheet */
}
.av-paper::before { left: var(--edge); }
.av-paper::after  { right: var(--edge); }

.av-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- head ---------- */
.av-hero__head,
.av-hero__jump {
  position: relative;
  width: min(100% - 2 * var(--edge) - 2 * clamp(12px, 5vw, 121px), 1346px);
  margin-inline: auto;
  background: var(--grain), var(--ground);
  border-left: 1px solid var(--margin-red);
}
.av-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 428px) minmax(0, 1fr);
  min-height: 188px;
}
.av-hero__title-block {
  padding: 28px 24px 22px clamp(20px, 2.5vw, 33px);
  border-right: 1px solid rgba(42, 36, 26, .6);
  margin-block: 10px 0;
}
.av-hero__call {
  margin: 0 0 10px;
  font: 400 19px/1 var(--mono);
  color: var(--blue);
}
.av-hero__title { margin: 0; font-weight: 400; }
.av-hero__title-main {
  display: block;
  font: 700 clamp(38px, 3.35vw, 56px)/1 var(--type);
  letter-spacing: .115em;
  text-transform: uppercase;
  color: var(--red);
}
.av-hero__title-sub {
  display: block;
  margin-top: 4px;
  font: 400 clamp(18px, 1.5vw, 25px)/1.1 var(--type);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}

.av-hero__aid { padding: 32px 0 22px clamp(20px, 2.35vw, 39px); }
.av-hero__aid-label {
  margin: 0 0 12px;
  font: 400 18px/1.2 var(--type);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
}
.av-hero__aid-count { margin: 0 0 18px; font: 400 20px/1.3 var(--type); letter-spacing: .02em; }

.av-hero__search {
  display: flex; align-items: center;
  height: 56px;
  border: 1px solid var(--ink-2);
  background: rgba(241, 234, 214, .35);
}
.av-hero__search svg {
  width: 26px; height: 26px; margin: 0 16px 0 18px; flex: none;
  fill: none; stroke: var(--ink); stroke-width: 1.8;
}
.av-hero__search input {
  flex: 1; min-width: 0; height: 100%;
  padding: 0; border: 0; background: none;
  font: 400 17px/1 var(--mono); color: var(--ink);
}
.av-hero__search input::placeholder { color: #7a6d52; }
.av-hero__search input:focus { outline: none; }
.av-hero__search:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.av-hero__search button {
  align-self: stretch;
  margin: 8px 0; padding: 0 26px;
  border: 0; border-left: 1px solid var(--ink-2);
  background: none; cursor: pointer;
  font: 400 17px/1 var(--mono); color: var(--ink);
}
.av-hero__search button:hover { color: var(--red); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- jump bar ---------- */
.av-hero__jump {
  display: flex; align-items: stretch;
  height: 54px;
  border: 1px solid var(--margin-red);
  border-bottom: 0;
  padding-left: clamp(20px, 2.5vw, 33px);
  padding-right: 20px;
}
.av-hero__jump-label {
  display: flex; align-items: center; flex: none;
  padding-right: 16px;
  font: 400 14px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.av-hero__jump ul { display: flex; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.av-hero__jump li { flex: 1 1 0; display: flex; }
.av-hero__jump li::before {
  content: ""; align-self: center; width: 1px; height: 22px; background: rgba(42, 36, 26, .45);
}
.av-hero__jump a {
  /* min-width 24, not 32 (audit 2026-10-01): 23 letters at 32 made the bar
     759px and the page scrolled sideways at every tablet width. */
  flex: 1; display: grid; place-items: center; min-width: 24px;
  font: 400 19px/1 var(--type); color: var(--red); text-decoration: none;
}
.av-hero__jump a:hover { text-decoration: underline; text-underline-offset: 5px; }
.av-hero__jump a:focus-visible,
.av-dcard:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }

/* ---------- drawer ---------- */
.av-drawer {
  --u: calc(100cqi / 1672);
  container-type: inline-size;
  position: relative;
  background: #2b1a10;
}
.av-drawer__photo img { display: block; width: 100%; height: auto; }
.av-drawer::before {                /* the paper's edge casts onto the photo */
  content: ""; position: absolute; inset: 0 0 auto; height: 10px; z-index: 1;
  background: linear-gradient(rgba(20, 12, 6, .45), rgba(20, 12, 6, 0));
  pointer-events: none;
}
.av-drawer__cards { list-style: none; margin: 0; padding: 0; }
.av-drawer__cards > li {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(251 * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(138 * var(--u));
}
.av-dcard {
  position: absolute; inset: 0;
  color: var(--ink); text-decoration: none;
  font-family: var(--mono);
}
.av-dcard > span { position: absolute; left: calc(18 * var(--u)); line-height: 1; white-space: nowrap; }
.av-dcard__call { top: calc(11 * var(--u)); font-size: calc(18.8 * var(--u)); color: var(--blue); }
.av-dcard__name { top: calc(43 * var(--u)); font-size: calc(20 * var(--u)); letter-spacing: -.01em; }
.av-dcard__k    { top: calc(94 * var(--u)); font-size: calc(14.5 * var(--u)); text-transform: uppercase; color: #4f4636; letter-spacing: .02em; }
.av-dcard__v    { top: calc(117 * var(--u)); font-size: calc(14.5 * var(--u)); text-transform: uppercase; color: #3d3528; letter-spacing: .02em; }
/* Retrieval affordance only: no lift, no enlargement, no brighter card */
.av-dcard:hover .av-dcard__name { text-decoration: underline; text-underline-offset: calc(4 * var(--u)); text-decoration-color: var(--red); }

/* ---------- narrow ---------- */
@media (max-width: 899px) {
  .av-hero__head { grid-template-columns: minmax(0, 1fr); }
  .av-hero__title-block { border-right: 0; border-bottom: 1px solid rgba(42, 36, 26, .35); margin: 0; padding-bottom: 22px; }
  .av-hero__aid { padding: 22px 20px 24px clamp(20px, 2.5vw, 33px); }
}
@media (max-width: 719px) {
  .av-hero__head,
  .av-hero__jump { width: calc(100% - 2 * var(--edge) - 8px); }
  .av-hero__aid-count { font-size: 17px; }
  .av-hero__search { height: 50px; }
  .av-hero__search button { padding: 0 16px; }
  .av-hero__jump { height: auto; padding: 0; flex-direction: column; min-width: 0; }
  .av-hero__search svg { margin: 0 10px 0 12px; }
  .av-hero__jump-label { padding: 12px 16px 4px; }
  .av-hero__jump ul { overflow-x: auto; scroll-snap-type: x proximity; padding: 0 8px 4px; }
  .av-hero__jump li { flex: 0 0 44px; scroll-snap-align: start; }
  .av-hero__jump a { height: 44px; }
  .av-drawer__cards { display: none; }   /* the labeled photo carries the cards here */
}


/* ---------- in the page: full width of the page column ---------- */
.av-page .av-hero { margin: calc(-3rem - var(--s2, 0.5rem)) calc(-1 * var(--s6, 2rem)) 0; }
@media (max-width: 60rem) { .av-page .av-hero { margin-inline: calc(-1 * var(--s4, 1rem)); } }

/* ---------- the mock nav (founder, 2026-09-30: every redesigned hero reads as a
   home page). The artifact's paper nav, carrying this page's sections; left-aligned
   so the fixed action cluster keeps the right. ---------- */
.av-mnav {
  position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px clamp(18px, 2.4vw, 40px); min-height: 80px;
  padding: 0 clamp(20px, 4.8vw, 80px); border-bottom: 1px solid rgba(42, 36, 26, .55);
  font: 400 16px/1 var(--mono);
}
.av-mnav__mark { margin-right: clamp(8px, 1.6vw, 26px); font: 400 clamp(18px, 1.5vw, 25px)/1 var(--mono); letter-spacing: .32em; color: var(--ink); text-decoration: none; }
.av-mnav a:not(.av-mnav__mark) { color: var(--ink); text-decoration: none; }
.av-mnav a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 719px) { .av-mnav { min-height: 0; padding: 18px 20px; font-size: 14px; } .av-mnav__mark { font-size: 16px; letter-spacing: .24em; width: 100%; } }

/* The definition and the register's fields, below the hero now. */
.av-under { width: min(100% - 2 * clamp(12px, 5vw, 121px), 1346px); margin: 28px auto 0; }
/* The nav line leads at the top; the action bar takes the room under it, above
   the rule (founder, 2026-10-01: nav on top, the bar below). The band keeps its height. */
@media (min-width: 720px) { .av-mnav { min-height: 0; padding-top: 18px; padding-bottom: 62px; } }
/* One row at narrow desktop widths too (founder, 2026-10-01): tighter steps between the links. */
@media (min-width: 60.0625rem) and (max-width: 1180px) { .av-mnav { gap: 10px 18px; } .av-mnav__mark { letter-spacing: .24em; } }

/* The drawer photograph was generated (founder, 2026-09-30); it says so on the wood. */
.av-drawer__gen { position: absolute; z-index: 2; right: calc(24 * var(--u)); bottom: calc(14 * var(--u)); margin: 0; font: 400 max(10px, calc(13 * var(--u)))/1.3 var(--mono); letter-spacing: .02em; color: rgba(241, 234, 214, .82); }
@media (max-width: 719px) { .av-drawer__gen { right: 10px; bottom: 6px; font-size: 10px; } }

/* Tap area (audit 2026-10-01): the links were 11–16px tall. Padding grows
   the hit area, the matching negative margin keeps the line where it was. */
.av-mnav a { padding-block: 10px; margin-block: -10px; }
