/* ==========================================================================
   VISUAL LANGUAGE block — case studies
   Shows a project's real typefaces, type scale, palette and the decisions
   behind them, set in that brand's own fonts and colours.
   Per-project values arrive as custom properties on .vl:
     --vl-d / --vl-b / --vl-m   display, body, mono/label font stacks
     --vl-bg / --vl-ink / --vl-mute / --vl-a   brand surface, ink, muted ink, accent
   ========================================================================== */

.vl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.vl > * { min-width: 0; }

.vl-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vl-mute, var(--text-muted));
  margin: 0 0 22px;
}

/* Brand-coloured panels: type specimens + scale ladder */
.vl-type, .vl-ladder {
  background: var(--vl-bg);
  color: var(--vl-ink);
  border: 1px solid color-mix(in srgb, var(--vl-ink) 14%, transparent);
  border-radius: 20px;
  padding: 30px;
}
.vl-type { grid-column: span 12; }
.vl-ladder { grid-column: span 12; }

.vl-pair { display: grid; grid-template-columns: repeat(var(--vl-cols, 2), minmax(0, 1fr)); gap: 28px; }
.vl-spec .aa { display: block; font-size: clamp(5rem, 9vw, 7.5rem); line-height: .9; margin-bottom: 18px; color: var(--vl-ink); }
.vl-spec .aa.accent { color: var(--vl-a); }
.vl-spec .name { font-family: var(--vl-b); font-weight: 600; font-size: 1rem; margin: 0 0 3px; color: var(--vl-ink); }
.vl-spec .role { font-family: var(--vl-b); font-size: .9rem; line-height: 1.5; margin: 0; color: var(--vl-mute); }
.vl-spec .weights { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--vl-mute); margin: 10px 0 0; }

/* Ladder */
.vl-rows { list-style: none; margin: 0; padding: 0; }
.vl-rows li {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--vl-ink) 14%, transparent);
}
.vl-rows li:first-child { border-top: 0; padding-top: 0; }
.vl-rows .spec {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--vl-mute);
}
.vl-rows .sample { margin: 0; color: var(--vl-ink); overflow-wrap: anywhere; }
.vl-note-small { font-family: var(--font-mono); font-size: .66rem; color: var(--vl-mute); margin: 18px 0 0; letter-spacing: .02em; }

/* Colour */
.vl-colour {
  grid-column: span 12;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 30px;
}
.vl-colour .vl-label { color: var(--text-muted); }
.vl-bar { display: flex; height: 110px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); }
.vl-bar.equal span { flex: 1 1 0 !important; }
.vl-bar span { min-width: 0; }
.vl-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; }
.vl-legend li { display: grid; grid-template-columns: 14px 1fr; gap: 2px 10px; align-items: start; }
.vl-legend i { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; box-shadow: inset 0 0 0 1px var(--border-strong), 0 0 0 1px var(--border-strong); }
.vl-legend b { font-family: var(--font-sans); font-weight: 600; font-size: .92rem; color: var(--text-primary); letter-spacing: -.01em; }
.vl-legend span { font-family: var(--font-mono); font-size: .68rem; color: var(--text-secondary); letter-spacing: .03em; line-height: 1.5; }
.vl-colour .vl-cap { margin: 18px 0 0; font-size: .875rem; line-height: 1.55; color: var(--text-secondary); max-width: 62ch; }

/* Decisions: open columns */
.vl-notes {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(var(--vl-n, 3), minmax(0, 1fr));
  gap: 36px;
  padding-top: 14px;
}
.vl-notes > div { border-top: 1px solid var(--border-strong); padding-top: 16px; }
.vl-notes h3 { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; color: var(--text-primary); }
.vl-notes p { margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: .95rem; max-width: 40ch; }

@media (max-width: 960px) {
  .vl-rows li { grid-template-columns: 1fr; }
  .vl-notes { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .vl-type, .vl-ladder, .vl-colour { padding: 22px 18px; }
  .vl-pair { grid-template-columns: 1fr; gap: 26px; }
  .vl-bar { height: 84px; }
}
