/* One Page: Weave Family single-page overviews.
   Inherits colour, type and spacing tokens from /css/tokens.css.

   WHITE GROUND IS DELIBERATE (Wilfred, 2026-07-22; design hard rules 9 and 10).
   The posters carry white grounds on purpose so they do not read as AI-made.
   A cream card behind them reintroduced exactly that look, so every surface
   under and around a poster is pure white and the only separation is a
   hairline. Never restore a tinted card here.

   Grid is auto-fill with true poster aspect ratios, so rows are naturally
   uneven: portrait artwork suits it and it stays clear of the ban on
   symmetric three-up card rows. */

/* ---------- crisis strip, matched to /family/ ---------- */
.fam-crisisbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0.55rem max(1.5rem, calc((100vw - 1184px) / 2));
  border-bottom: 1px solid var(--hairline);
  background: var(--cloth);
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
}
.fam-crisisbar:hover { background: color-mix(in srgb, var(--thread-terracotta) 5%, var(--cloth)); }
.fam-crisisbar__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--thread-terracotta); }
.fam-crisisbar__text { flex: 1; }
.fam-crisisbar__cta { color: var(--thread-terracotta); white-space: nowrap; }

/* ---------- hero ---------- */
.op-hero {
  padding: var(--space-12) 0 var(--space-10);
  border-bottom: 1px solid var(--hairline);
  background: var(--cloth);
}
.op-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--space-8);
}
.op-hero__title {
  max-width: 16ch;
  margin: var(--space-3) 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.op-hero__lede {
  max-width: 46ch;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-2);
}
.op-hero__note {
  max-width: 52ch;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-3);
}
.op-hero__note a { color: var(--thread-sage); }
.op-hero__art {
  width: 100%;
  height: auto;
  max-width: 420px;
  justify-self: end;
  mix-blend-mode: multiply;
}

/* ---------- collection ---------- */
.op-collection { padding: var(--space-10) max(1.5rem, calc((100vw - 1184px) / 2)) 0; }
.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-8) var(--space-6);
  align-items: start;
}

/* ---------- poster card ---------- */
.op-card { display: flex; flex-direction: column; }
.op-card__frame {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--cloth);
  line-height: 0;
  cursor: zoom-in;
  transition: transform var(--duration-ui) var(--ease-weave),
              box-shadow var(--duration-ui) var(--ease-weave),
              border-color var(--duration-ui) var(--ease-weave);
}
.op-card__frame img { width: 100%; height: auto; }
.op-card__frame:hover {
  border-color: var(--thread-flax);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
.op-card__frame:focus-visible { outline: 2px solid var(--thread-sage); outline-offset: 3px; }

.op-card__body { padding-top: var(--space-4); }
.op-card__area {
  margin-bottom: 0.3rem;
  color: var(--thread-sage);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.op-card__title {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.op-card__caption {
  margin-top: 0.3rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink-2);
}
.op-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.op-card__book { color: var(--thread-sage); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--thread-sage) 35%, transparent); }
.op-card__book:hover { border-bottom-color: var(--thread-sage); }
.op-card__book--none { color: var(--ink-3); border-bottom: 0; font-style: italic; }
.op-card__save { color: var(--ink-3); text-decoration: none; }
.op-card__save:hover { color: var(--ink-2); }

/* The poster text is baked into the image, so this is the accessible,
   selectable, translatable copy. Not decoration. */
.op-card__text { margin-top: var(--space-3); }
.op-card__text summary { cursor: pointer; color: var(--ink-3); font-size: var(--text-sm); }
.op-card__text summary:hover { color: var(--ink-2); }
.op-card__transcript {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border-left: 2px solid var(--hairline);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.op-card__transcript p + p { margin-top: 0.6rem; }

/* ---------- lightbox ---------- */
.op-lightbox {
  width: min(96vw, 900px);
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--cloth);
  overflow: visible;
}
.op-lightbox::backdrop { background: rgb(20 16 12 / 82%); }
.op-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94vh;
  object-fit: contain;
  border-radius: var(--radius-card);
}
.op-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--cloth);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.op-lightbox__close:hover { background: var(--cloth-card); }

/* ---------- outro ---------- */
.op-outro {
  margin-top: var(--space-16);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--hairline);
  background: var(--cloth);
  text-align: center;
}
.op-outro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
}
.op-outro p { max-width: 46ch; margin: var(--space-3) auto var(--space-6); color: var(--ink-2); }

.site-footer .footer__crisis { padding: var(--space-8) 0; color: var(--ink-3); font-size: var(--text-sm); }

/* ---------- dark mode ----------
   Posters carry their own white ground, so they take a ring rather than the
   sitewide white-box treatment, and the hero art drops its multiply blend. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .op-card__frame { border-color: color-mix(in srgb, var(--hairline) 70%, transparent); }
  :root:not([data-theme="light"]) .op-hero__art { mix-blend-mode: normal; background: #FFFFFF; border-radius: var(--radius-card); padding: 4%; }
}
[data-theme="dark"] .op-card__frame { border-color: color-mix(in srgb, var(--hairline) 70%, transparent); }
[data-theme="dark"] .op-hero__art { mix-blend-mode: normal; background: #FFFFFF; border-radius: var(--radius-card); padding: 4%; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .op-hero__grid { grid-template-columns: 1fr; }
  .op-hero__art { max-width: 280px; justify-self: start; }
}
@media (max-width: 767px) {
  .op-hero { padding: var(--space-8) 0 var(--space-7); }
  .op-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-6) var(--space-4); }
  .op-collection { padding-top: var(--space-8); }
  .fam-crisisbar__cta { display: none; }
  .op-lightbox__close { top: 6px; right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .op-card__frame { transition: none; }
  .op-card__frame:hover { transform: none; }
}
