/* Designer overview and designer pages. Tokens only (see tokens.css). */

/* ── Portrait, work photo and the line-drawn placeholder ───────────── */
.dz-portrait,
.dz-mono {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-soft);
}

.dz-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(0.15);
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease);
}

/* The fallback for a designer without a portrait: a line-drawn head and
   shoulders with initials, on the off-white surface (no colour fields). */
.dz-mono {
  background: var(--paper-soft);
  color: var(--line-strong);
}

.dz-mono__initials {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: var(--text-h3);
  line-height: 1;
}

.dz-mono__figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dz-mono__fill {
  fill: var(--paper);
}

.dz-mono__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.dz-mono__line * {
  vector-effect: non-scaling-stroke;
}

.dz-credit {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-caption);
  line-height: var(--leading-snug);
}

.dz-credit a {
  color: inherit;
}

/* ── Designer page header ─────────────────────────────────────────── */
.dz-head {
  padding-block: var(--header-y) var(--header-y-end);
}

.dz-head .crumbs {
  margin-bottom: var(--stack-md);
}

.dz-head__grid {
  display: grid;
  gap: var(--space-6);
}

.dz-head__media {
  width: min(100%, 15rem);
}

.dz-head__text {
  display: grid;
  gap: var(--stack-sm);
  align-content: end;
  min-width: 0;
}

.dz-head__title {
  font-size: var(--text-hero);
  letter-spacing: var(--tracking-display);
  overflow-wrap: break-word;
}

.dz-head__facts {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.dz-head__lede {
  max-width: var(--measure);
  margin-top: var(--stack-sm);
  color: var(--text-body);
  font-family: var(--font-editorial);
  font-size: var(--text-subtitle);
  line-height: 1.45;
}

.dz-head__houses {
  margin-top: var(--stack-sm);
}

@media (min-width: 700px) {
  .dz-head__grid {
    grid-template-columns: minmax(12rem, 4fr) minmax(0, 8fr);
    gap: var(--space-10);
    align-items: end;
  }

  .dz-head__media {
    width: 100%;
    max-width: 26rem;
  }
}

@media (min-width: 1100px) {
  .dz-head__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--space-16);
  }
}

.dz-picture--work .frame {
  aspect-ratio: 4 / 5;
}

.dz-products-h {
  padding-bottom: var(--space-6);
}

/* ── About, sources and facts ─────────────────────────────────────── */
.dz-about {
  align-items: start;
}

.dz-about__text {
  display: grid;
  gap: var(--stack-md);
  max-width: var(--measure);
  color: var(--text-body);
  font-size: var(--text-body-lg);
}

.dz-sources {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--stack-sm);
  padding-top: var(--stack-md);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

.dz-sources__note {
  color: var(--text-muted);
}

.dz-sources__list {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  list-style: none;
}

.dz-sources__list cite {
  font-style: normal;
  overflow-wrap: anywhere;
}

.dz-facts dl {
  margin: var(--stack-sm) 0 0;
}

.dz-facts__row {
  display: grid;
  grid-template-columns: minmax(7rem, 2fr) minmax(0, 3fr);
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

.dz-facts__row:last-child {
  border-bottom: 1px solid var(--line);
}

.dz-facts dt {
  color: var(--text-muted);
}

.dz-facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .dz-about {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: var(--space-16);
  }
}

/* ── Designer rail (overview featured, "designers at {house}") ────── */
/* A slider row like the product rows (site.css .rail), with portraits:
   more of them in view. */
.dz-featured {
  gap: var(--space-6);
  padding-bottom: var(--section-y);
}

.rail--people {
  --per-view: 2.6;
}

@media (min-width: 600px) {
  .rail--people {
    --per-view: 4.2;
  }
}

@media (min-width: 1180px) {
  .rail--people {
    --per-view: 6.4;
  }
}

.dz-card {
  display: grid;
  gap: var(--space-1);
  color: var(--ink);
  text-decoration: none;
}

.dz-card__frame {
  margin-bottom: var(--space-3);
}

@media (hover: hover) and (pointer: fine) {
  .dz-card:hover .dz-portrait img {
    filter: none;
    transform: scale(1.04);
  }
}

.dz-card:focus-visible {
  outline-offset: 4px;
}

.dz-card .dz-mono__initials {
  top: var(--space-3);
  left: var(--space-3);
  font-size: var(--text-heading-sm);
}

.dz-card__name {
  font-family: var(--font-editorial);
  font-size: var(--text-body-lg);
  line-height: var(--leading-snug);
}

.dz-card:hover .dz-card__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dz-card__count {
  color: var(--text-muted);
  font-size: var(--text-caption);
}
