/* Style-guide page chrome only. The components themselves come from base.css —
   this file just lays out the gallery. */

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-6) var(--space-8); }

/* sticky control bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-hair) solid var(--line);
}
.bar .brand { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; }
.bar .spacer { margin-left: auto; }
.toggle { display: inline-flex; border: var(--border-hair) solid var(--line);
  border-radius: var(--radius-pill); overflow: hidden; }
.toggle button { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  padding: 5px var(--space-3); border: 0; background: var(--panel); color: var(--dim); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* hero */
.hero { padding: var(--space-8) 0 var(--space-6); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: var(--space-3) 0 var(--space-4); }
.hero .lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 60ch; }
.hero .pride-rule { max-width: 280px; }

/* section scaffolding */
.section { padding: var(--space-7) 0; border-top: var(--border-hair) solid var(--line); }
.section > h2 { font-size: var(--text-xl); }
.section-kicker { display: block; margin-bottom: var(--space-2); }
.grid { display: grid; gap: var(--space-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* swatches */
.swatch { border: var(--border-hair) solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--panel); }
.swatch .chip { height: 56px; }
.swatch .meta { padding: var(--space-2) var(--space-3); }
.swatch .name { font-size: var(--text-sm); font-weight: 600; }
.swatch .var { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dim); }
.spectrum-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }

/* type specimen rows */
.type-row { display: grid; grid-template-columns: 92px 1fr; gap: var(--space-4);
  align-items: baseline; padding: var(--space-3) 0; border-top: var(--border-hair) solid var(--line-2); }
.type-row .label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dim); }

/* sample patterns */
.metric-strip { display: flex; gap: var(--space-6); }
.scorecard .scrow { display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0; border-top: var(--border-hair) solid var(--line-2); }
.scorecard .scrow:first-of-type { border-top: 0; }
.scorecard .scname { flex: 1; font-weight: 500; }

/* css chart cycling the spectrum */
.chart { display: flex; align-items: flex-end; gap: var(--space-2);
  height: 120px; padding-top: var(--space-2); border-top: var(--border-hair) solid var(--line); }
.chart .bar { flex: 1; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); }
.legend span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dim);
  display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; }

.note { font-size: var(--text-sm); color: var(--dim); max-width: 64ch; }
.foot { padding: var(--space-7) 0 var(--space-8); border-top: var(--border-hair) solid var(--line);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--dim); }

@media (max-width: 720px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}
