/* One card, drawn as the app's CardView draws it (assets/landing/card.js
   builds it). Every size is in the card's own points × --pt, so the same card
   is right in the window, in a groves miniature, in a scene, or on its own. */

.lp-card {
  --u: var(--pt, 1px);
  position: relative; width: 100%; overflow: hidden;
  border-radius: calc(14 * var(--u)); background: var(--lp-card); color: var(--ink);
  box-shadow: var(--lp-lift), inset 0 0 0 1px var(--lp-hair);
  transition: box-shadow .25s;
}
.lp-card .pic { position: relative; overflow: hidden; background: var(--lp-raise); }
.lp-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-card.is-photo, .lp-card.is-book { background: var(--lp-raise); }
.lp-card.is-book { border-radius: calc(10 * var(--u)); }
.lp-card .body { padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)); }
.lp-card .site {
  display: flex; align-items: center; gap: calc(6 * var(--u)); overflow: hidden; white-space: nowrap;
  font-size: calc(11 * var(--u)); line-height: 1.3; color: var(--muted);
}
.lp-card .fav { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: calc(3 * var(--u)); flex: none; }
.lp-card .title {
  margin-top: calc(5 * var(--u)); font-size: calc(13.5 * var(--u)); font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
}
.lp-card .tags { display: flex; flex-wrap: wrap; gap: calc(5 * var(--u)); margin-top: calc(8 * var(--u)); }
.lp-card .tag {
  display: inline-flex; align-items: center; height: calc(18 * var(--u)); padding: 0 calc(7 * var(--u));
  border-radius: 99px; border: calc(1.3 * var(--u)) solid currentColor;
  font-size: calc(10.5 * var(--u)); font-weight: 600; line-height: 1; white-space: nowrap;
}
.lp-card.is-note, .lp-card.is-quote, .lp-card.is-list {
  background: var(--lp-note); color: var(--lp-note-ink);
  padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(18 * var(--u));
  font-size: calc(13 * var(--u)); line-height: 1.45;
}
.lp-card.is-note b, .lp-card.is-list b { display: block; margin-bottom: calc(4 * var(--u)); font-size: calc(13.5 * var(--u)); }
.lp-card.is-quote { padding-left: calc(17 * var(--u)); }
.lp-card.is-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(3 * var(--u)); background: #c8a86a; }
.lp-card.is-quote svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: #c8a86a; display: block; }
.lp-card.is-quote p { margin-top: calc(6 * var(--u)); font-size: calc(13.5 * var(--u)); line-height: 1.42; font-style: italic; font-weight: 500; }
.lp-card.is-quote small { display: block; margin-top: calc(9 * var(--u)); font-size: calc(11 * var(--u)); color: var(--muted); }
.lp-card .stripes { display: flex; height: calc(68 * var(--u)); }
.lp-card .stripes i { flex: 1; }
.lp-card .hex {
  margin-top: calc(3 * var(--u)); font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: calc(10 * var(--u)); line-height: 1.3; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-check { display: flex; align-items: center; gap: calc(7 * var(--u, 1px)); margin-top: calc(6 * var(--u, 1px)); font-size: calc(12.5 * var(--u, 1px)); }
.lp-check i {
  display: grid; place-items: center; flex: none; width: calc(13 * var(--u, 1px)); height: calc(13 * var(--u, 1px));
  border-radius: calc(4 * var(--u, 1px)); border: calc(1.5 * var(--u, 1px)) solid var(--muted);
}
.lp-check i svg { width: 70%; height: 70%; }
.lp-check.is-done i { background: var(--sage); border-color: var(--sage); }
.lp-check.is-done span { color: var(--muted); text-decoration: line-through; }

.lp-tone-sky { color: var(--lp-tag-sky); }
.lp-tone-wheat { color: var(--lp-tag-wheat); }
.lp-tone-sage { color: var(--lp-tag-sage); }
.lp-tone-peach { color: var(--lp-tag-peach); }
.lp-tone-plum { color: var(--lp-tag-plum); }
