/* Shared layout for design-system preview cards.
   Each card is 700px wide; height varies. */
@import url("../colors_and_type.css");

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--fg-2);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.card {
  width: 700px;
  box-sizing: border-box;
  padding: 24px;
  background: var(--bg-1);
}

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

.meta {
  font-family: var(--font-en-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.value {
  font-family: var(--font-en-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

/* Swatch */
.swatch {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.swatch-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-en-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.swatch-name {
  font-family: var(--font-cn-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--fg-1);
  margin-top: 10px;
}
.swatch-hex {
  font-family: var(--font-en-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-top: 2px;
}
