/* preview/card.css — shared chrome for every preview card.
   Cards target ~700×height. They share a deep ground and full-bleed sizing. */

@import url("../colors_and_type.css");

html, body {
  margin: 0;
  padding: 0;
  background: var(--tehom-deep);
  color: var(--fg-1);
  min-height: 100vh;
}

body {
  /* Cards have generous internal padding so swatches breathe.
     Override per-card if a layout needs the full 700px. */
  padding: 32px;
  box-sizing: border-box;
}

.card-frame {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 64px);
}

/* --- Swatch primitives used across many color cards --- */
.swatch-row {
  display: grid;
  gap: 16px;
}
.swatch {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
}
.swatch__chip {
  width: 56px;
  height: 56px;
  border: 1px solid var(--hairline);
}
.swatch__name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-1);
}
.swatch__desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 4px;
  line-height: 1.4;
}
.swatch__hex {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.02em;
}

/* --- Eyebrow used at the top of cards if needed --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-4);
}

/* --- Type-specimen layout helpers --- */
.specimen {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.specimen__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-4);
}
