/* Card container styles for preview/ HTML files.
   Each card is rendered at ~700×<height>. Keep margins minimal. */
@import url('../colors_and_type.css');

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.card {
  width: 700px;
  padding: 24px;
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid var(--bone);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card.dark { background: var(--ink); color: var(--fg-on-dark); border-color: rgba(255,255,255,.12); }
.row { display: flex; gap: 12px; align-items: stretch; }
.row.wrap { flex-wrap: wrap; }
.swatch {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bone);
}
.swatch .fill { height: 64px; }
.swatch .meta { padding: 8px 10px; background: var(--bg-card); }
.swatch .name { font-weight: 600; font-size: 13px; color: var(--ink); }
.swatch .hex  { font-family: var(--font-mono); font-size: 11px; color: var(--slate); margin-top: 2px; }
.lbl { font-family: var(--font-body); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); }
