/* Shared base for preview cards. Loaded by every card in /preview. */
@import url('../colors_and_type.css');

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--color-canvas-white);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.row { display: flex; align-items: stretch; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 12px; }

.swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  border-radius: 14px;
  min-height: 96px;
  border: 1px solid transparent;
}
.swatch .name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.swatch .hex {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.8;
}
.swatch.bordered { border-color: var(--color-cloud-mist); }

.label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}
.label-row .lbl {
  font-size: 12px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
