/* Shared styles for preview cards. Cards target ~700px wide.
 * Each card is a standalone HTML file that imports this file and colors_and_type.css.
 * Cards should be edge-to-edge: NO outer title, NO outer framing —
 * the Design System tab adds the asset name outside the card.
 */

/* @import removed — preview HTML files now load colors_and_type.css with
 * their own <link rel="stylesheet"> so cache busting works at the page
 * level (the CDN was caching the @import-resolved sheet too aggressively). */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-surface); }
body {
  width: 700px;
  font-family: var(--font-body);
  color: var(--fg-1);
}

/* Utility container with consistent inner padding. */
.card { padding: 28px 32px; }
.card-tight { padding: 20px 24px; }

.row { display: flex; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0;
  text-transform: none;
}
.label-eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.swatch {
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.swatch .name {
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  font-size: 13px;
  letter-spacing: 0;
}
.swatch .hex {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.8;
}
