/* article-blocks.css — design-system evidence blocks for case studies.
   Additive: screenshot gallery, token tables, prototype embeds, iteration log.
   Uses the site token set from assets/style.css. */

.ds-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pad-m);
  margin: 28px 0;
}
.ds-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
}
.ds-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}
.ds-gallery figcaption {
  font-family: var(--mono);
  font-size: var(--t-1);
  line-height: 1.5;
  color: var(--muted);
  padding: 10px 12px 12px;
  letter-spacing: 0.01em;
}
.ds-gallery figcaption b {
  display: block;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-2);
  margin-bottom: 2px;
}
@media (max-width: 720px) {
  .ds-gallery { grid-template-columns: 1fr; }
}


.ds-tokens, .ds-iter {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-2);
  line-height: 1.5;
}
.ds-tokens th, .ds-iter th {
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.ds-tokens td, .ds-iter td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.ds-tokens td:first-child, .ds-iter td:first-child { color: var(--ink); }
.ds-tokens .tk { font-family: var(--mono); font-size: var(--t-1); }
.ds-tokens .tk-val { font-family: var(--mono); }
.ds-tokens .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; border: 1px solid var(--line-strong); margin-right: 8px; vertical-align: -1px; }
.ds-cap {
  font-family: var(--mono);
  font-size: var(--t-1);
  color: var(--muted);
  margin: -12px 0 28px;
  line-height: 1.5;
}

.proto-embed {
  margin: 28px 0;
}
.proto-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-tint);
}
.proto-embed figcaption {
  font-family: var(--mono);
  font-size: var(--t-1);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.proto-embed figcaption a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.ds-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  background: var(--paper-tint);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin: 26px 0;
  font-size: var(--t-3);
  line-height: 1.6;
  color: var(--ink-soft);
}
.ds-note b {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}


/* p5.brush hero backgrounds — canvas sits behind hero content, never in flow. */
.art-hero { position: relative; }
.art-hero canvas.brush-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.25; z-index: 0;
}
.art-hero > *:not(canvas) { position: relative; z-index: 1; }
