/* A · Case file */

:root {
  --paper: #F6F6F6;
  --sheet: #FFFFFF;
  --ink: #111111;
  --ink-2: #555555;
  --line: #DCDCDC;
  --band: #111111;
  --band-ink: #EDEDED;
  --band-ink-2: #A6A6A6;
  --band-line: #333333;
  --hl: #111111;
  --on-hl: #FFFFFF;

  --display: "Archivo", system-ui, sans-serif;
  --text: "Public Sans", system-ui, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.exhibits :focus-visible, .contact :focus-visible, .cookie :focus-visible { outline-color: #FFFFFF; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 800 1.0625rem/1 var(--display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .01em; text-decoration: none;
}
.brand__mark {
  width: .95rem; height: .95rem;
  background: var(--hl); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem);
}
.nav a {
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  padding-block: .5rem;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 calc(100% - .3rem) / 0% 1.5px;
  transition: background-size .4s var(--ease);
}
.nav a:hover { background-size: 100% 1.5px; }
.nav .nav-cta {
  padding: .55rem 1rem; border: 1.5px solid var(--ink);
  font-weight: 600; background: none;
  transition: background-color .25s, color .25s;
}
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 44rem) {
  .nav li:not(:last-child) { display: none; }
}

/* ---------- Image slots (empty placeholders) ---------- */

.slot {
  display: grid; place-items: center; width: 100%;
  background-color: #E9E9E9;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgb(0 0 0 / .06) 14px 15px);
  border: 1.5px dashed #9C9C9C;
}
.slot__hint {
  padding: .35rem .7rem;
  background: var(--sheet); border: 1px solid var(--line);
  color: var(--ink-2); font-size: .8125rem; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.slot--hero { aspect-ratio: 1571 / 788; }
.slot--doc { aspect-ratio: 1007 / 1315; }
.slot--portrait { aspect-ratio: 923 / 1187; }

/* Uploaded images take the slot's shape; documents are never cropped */
img.slot { display: block; height: auto; border: 0; background: none; object-fit: cover; }
img.slot--doc { object-fit: contain; background: var(--sheet); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }

.label {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.5rem;
  color: var(--ink-2); font-size: .875rem; font-weight: 600; letter-spacing: .02em;
}
.label__dot { width: .65rem; height: .65rem; background: var(--hl); box-shadow: inset 0 0 0 1.5px var(--ink); }

.hero__title {
  max-width: 22ch;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font: 800 clamp(2.5rem, 6.4vw, 5.75rem)/.98 var(--display);
  font-stretch: 76%; letter-spacing: -.01em; word-spacing: .06em;
  text-wrap: balance;
}
.hero__title mark {
  color: var(--on-hl);
  padding-inline: .08em;
  background: var(--hl);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.hero__figure { margin: 0; }
.hero__figure figcaption {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .9rem; font-size: .9375rem; font-weight: 600;
}
.hero__figure figcaption::before { content: ""; width: 2rem; height: 1.5px; background: var(--ink); }

/* ---------- Summary ---------- */

.summary {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  padding-block: var(--section);
}
.summary__lede {
  grid-column: 1 / span 9; margin: 0;
  font-size: clamp(1.3125rem, 2.3vw, 1.75rem); line-height: 1.42; font-weight: 500;
  letter-spacing: -.01em; text-wrap: pretty;
}
.summary__body {
  grid-column: 6 / -1; margin: 0; max-width: 65ch;
  color: var(--ink-2);
}

.summary__lede p, .summary__body p { margin: 0 0 1em; }
.summary__lede p:last-child, .summary__body p:last-child { margin-bottom: 0; }

@media (max-width: 48rem) {
  .summary__lede, .summary__body { grid-column: 1 / -1; }
}

/* ---------- Exhibits band ---------- */

.exhibits {
  background: var(--band); color: var(--band-ink);
  padding-block: var(--section);
}
.band-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 3rem;
  padding-bottom: 1.5rem; margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--band-line);
}
.band-title {
  margin: 0;
  font: 800 clamp(2.25rem, 4.6vw, 3.75rem)/1 var(--display);
  font-stretch: 76%; letter-spacing: -.015em;
}
.band-head p { margin: 0; max-width: 36ch; color: var(--band-ink-2); }

.exhibit-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.exhibit { position: relative; }
.exhibit:nth-child(3n+2) { margin-top: clamp(0rem, 4vw, 3rem); }

.exhibit__sheet {
  padding: clamp(.6rem, 1.2vw, 1rem);
  background: var(--sheet);
  box-shadow: 0 1px 0 rgb(0 0 0 / .25), 0 22px 44px -14px rgb(0 0 0 / .6);
}
.exhibit .slot { background-color: #F1F1F1; }

.exhibit__tab {
  position: absolute; top: -.9rem; right: 1.25rem; z-index: 1;
  display: grid; place-items: center;
  min-width: 2.75rem; height: 2.75rem; padding-inline: .5rem;
  background: var(--ink); color: #FFFFFF;
  font: 800 1.25rem/1 var(--display);
  box-shadow: 0 0 0 2px #FFFFFF, 0 6px 12px -4px rgb(0 0 0 / .45);
}
.exhibit__note { margin: 1rem 0 0; color: var(--band-ink-2); font-size: .9375rem; }

@media (max-width: 48rem) {
  .exhibit-list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 1.25rem var(--gutter) 1.5rem;
    scroll-padding-inline: var(--gutter);
  }
  .exhibit { scroll-snap-align: start; }
  .exhibit:nth-child(3n+2) { margin-top: 0; }
}

/* ---------- Background sections ---------- */

.dossier {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
  padding-block: var(--section);
}
.dossier + .dossier { border-top: 1px solid var(--line); }

.dossier__portrait { margin: 0; position: sticky; top: 6rem; }
.dossier--flip .dossier__portrait { order: 2; }

.dossier__text h2 {
  margin: 0 0 2rem;
  font: 800 clamp(2.25rem, 4.4vw, 3.75rem)/1 var(--display);
  font-stretch: 76%; letter-spacing: -.015em; text-wrap: balance;
}
.dossier__text > p { max-width: 62ch; margin: 0 0 1.5rem; }
.dossier__text .first { font-size: 1.1875rem; line-height: 1.6; }

.sources__intro { margin-top: 3rem !important; margin-bottom: .9rem !important; font-weight: 600; }

.sources { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.sources a {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.sources__domain { color: var(--ink-2); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.sources__title { grid-column: 1; font: 700 1.25rem/1.25 var(--display); font-stretch: 92%; }
.sources__arrow {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1.5px solid var(--ink); border-radius: 50%;
  transition: background-color .25s, transform .45s var(--ease);
}
.sources a:hover .sources__arrow { background: var(--ink); color: var(--paper); transform: translate(3px, -3px); }
.sources a:hover .sources__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }

@media (max-width: 52rem) {
  .dossier { grid-template-columns: 1fr; }
  .dossier__portrait { position: static; max-width: 24rem; }
  .dossier--flip .dossier__portrait { order: 0; }
}

/* ---------- Contact footer ---------- */

.contact {
  background: var(--ink); color: #FFFFFF;
  padding-block: var(--section) 1.5rem;
}
.contact__lead {
  max-width: 30ch; margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.3; font-weight: 600;
}
.contact__email {
  display: inline-block; padding-bottom: .06em;
  font: 800 clamp(2.25rem, 7.5vw, 5.75rem)/1 var(--display);
  font-stretch: 70%; letter-spacing: -.02em; text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% .07em;
  transition: background-size .5s var(--ease);
}
.contact__email:hover { background-size: 0% .07em; background-position: 100% 100%; }

.contact__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: var(--section); padding-top: 1.25rem;
  border-top: 1.5px solid rgb(255 255 255 / .3);
  font-size: .875rem; font-weight: 500;
}
.contact__base a { text-decoration: none; }
.contact__base a:hover { text-decoration: underline; }

/* ---------- Cookie notice ---------- */

.cookie {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 60;
  max-width: 27rem;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 1.25rem;
  padding: 1.1rem 1.1rem 1.1rem 1.35rem;
  background: var(--ink); color: var(--band-ink);
  font-size: .875rem; line-height: 1.5;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .16), 0 20px 40px -16px rgb(0 0 0 / .6);
  transform: translateY(calc(100% + 2rem)); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.cookie.is-in { transform: none; opacity: 1; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie__ok {
  min-height: 44px; padding: .8rem 1.35rem; border: 0; cursor: pointer;
  background: #FFFFFF; color: var(--ink);
  font: 700 .9375rem/1 var(--text);
  transition: background-color .2s;
}
.cookie__ok:hover { background: #D6D6D6; }

@media (max-width: 40rem) {
  .cookie { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
