/* Prototype cards: status and live links on the card, so nobody has to open a
   page to find out whether a thing runs. Pairs with prototypes/_card.ejs. */

.proto-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.proto-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bs-border-color, #e3e1dc);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bs-body-bg, #fdfdfc);
  transition: border-color 180ms ease;
}

.proto-card:hover {
  border-color: var(--bs-secondary-color, #5c6672);
}

.proto-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
  min-height: 300px;
}

.proto-thumb {
  display: block;
  background: color-mix(in srgb, var(--bs-border-color, #e3e1dc) 34%, var(--bs-body-bg, #fdfdfc));
  overflow: hidden;
}

.proto-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.proto-lead .proto-thumb img {
  height: 100%;
  min-height: 300px;
}

.proto-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem 1.85rem 1.9rem;
}

.proto-lead .proto-body {
  align-self: center;
  padding: clamp(1.75rem, 3.5vw, 2.9rem);
}

.proto-eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem;
}

.proto-kind {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--site-accent-2);
}

.proto-dash {
  width: 14px;
  height: 1px;
  background: var(--bs-border-color, #e3e1dc);
}

.proto-date {
  font-size: .7rem;
  letter-spacing: .025em;
  color: var(--bs-secondary-color, #5c6672);
  font-variant-numeric: tabular-nums;
}

.proto-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.16;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.proto-lead .proto-title {
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -.02em;
}

.proto-title a {
  text-decoration: none;
  color: var(--bs-body-color, #14181d);
}

.proto-title a:hover {
  color: var(--bs-link-color, #8a2f2f);
}

.proto-desc {
  margin: .7rem 0 0;
  max-width: 54ch;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--bs-secondary-color, #5c6672);
}

.proto-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.15rem;
}

.proto-card:not(.proto-lead) .proto-foot {
  margin-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color, #e3e1dc);
}

.proto-status {
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #5c6672);
}

.proto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.proto-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  padding: .4rem .85rem;
  border: 1px solid var(--bs-border-color, #e3e1dc);
  border-radius: 999px;
  color: var(--bs-body-color, #14181d);
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.proto-btn:hover {
  color: var(--bs-link-color, #8a2f2f);
  border-color: var(--bs-link-color, #8a2f2f);
}

.proto-lead .proto-btn-read {
  color: var(--bs-body-bg, #fdfdfc);
  background: var(--bs-link-color, #8a2f2f);
  border-color: var(--bs-link-color, #8a2f2f);
}

.proto-lead .proto-btn-read:hover {
  color: var(--bs-body-bg, #fdfdfc);
  background: color-mix(in srgb, var(--bs-link-color, #8a2f2f) 82%, #000);
  border-color: color-mix(in srgb, var(--bs-link-color, #8a2f2f) 82%, #000);
}

.proto-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}

.proto-cat {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #5c6672);
  border: 1px solid var(--bs-border-color, #e3e1dc);
  border-radius: 999px;
  padding: .1rem .55rem;
}

@media (max-width: 700px) {
  .proto-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .proto-lead {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .proto-lead .proto-thumb img {
    height: 190px;
    min-height: 190px;
  }

  .proto-body {
    padding: 1.45rem;
  }
}
