/* Terra Tinker plaque maker: the plaque on the drafting table, and the message,
   pattern and colour pickers. The shared shop styles (inks, type, steps, preview,
   checkout, orders) are in /shared/shop.css. */

/* Message */
.fields { display: grid; gap: 10px; margin-top: 14px; }
.field { display: grid; gap: 4px; }
.field .field-label { flex: none; }
.field input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
  font-size: 16px;
}
.age-row { margin-top: 0; align-items: flex-end; flex-wrap: nowrap; }
.field.age { flex: 0 0 76px; }
.age-row .segmented { flex: 1; }
.hint.error { color: var(--alert); }

/* Pattern thumbnails and colour sets: radio buttons drawn as tiles */
.pattern-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pattern, .theme { position: relative; display: block; }
.pattern input, .theme input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pattern span, .theme span {
  display: block;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  background: var(--sheet);
}
.pattern span { padding: 6px 6px 5px; text-align: center; }
.pattern img { display: block; width: 100%; aspect-ratio: 1; }
.pattern b { display: block; margin-top: 3px; font-size: 13px; font-weight: 560; text-transform: capitalize; }
.pattern input:checked + span, .theme input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pattern input:focus-visible + span, .theme input:focus-visible + span { outline: 2px solid var(--hydro); outline-offset: 2px; }
.pattern:hover span, .theme:hover span { border-color: var(--ink-2); }

.theme-list { display: grid; gap: 6px; }
.theme span {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 7px 10px;
}
.theme b { font-size: 14px; font-weight: 600; text-transform: capitalize; }
.theme small { grid-column: 2; font-size: 12px; color: var(--ink-2); font-stretch: var(--narrow); }
.swatches { grid-row: 1 / span 2; display: flex; }
.swatches i, .filaments i, .swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(28, 33, 30, 0.28);
}
.swatches i + i { margin-left: -4px; }

/* The plaque on the drafting table */
.board { display: grid; place-items: center; padding: 28px; background: var(--table); }
.board-plate { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: min(620px, calc(100vh - 220px)); margin: 0; }
.board-plaque { width: 100%; aspect-ratio: 1; transition: opacity 0.2s; }
.board-plaque svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(28, 33, 30, 0.22)); }
.board-plaque.stale { opacity: 0.45; }
.board-caption { display: grid; justify-items: center; gap: 4px; text-align: center; }
.board-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 750;
  font-stretch: var(--wide);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.board-note { margin: 0; font-size: 13px; }
.board-note b { font-stretch: var(--narrow); font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; }
.filaments { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
.filaments li { display: inline-flex; align-items: center; gap: 6px; }
.filaments.slots { justify-content: flex-start; margin-top: 12px; }
.filaments.slots span { color: var(--ink-2); font-stretch: var(--narrow); }
.file-list .swatch { width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }

@media (max-width: 760px) {
  .board { height: auto; padding: 20px 16px; }
  .board-plate { max-width: 440px; }
  .board-title { font-size: 18px; }
}
