/* The picker. Not one of the six directions - it is the menu. */

.wrap { max-width: 1180px; margin: 0 auto; padding: 44px 22px 90px; }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-light);
}
h1 {
  margin-top: 12px; font-size: clamp(28px, 5.2vw, 42px); font-weight: 700;
  letter-spacing: -.028em; line-height: 1.08;
}
.lede {
  margin-top: 14px; max-width: 60ch; font-size: 16px; line-height: 1.62; color: var(--text-2);
}
.lede b { color: var(--text); font-weight: 600; }

.rules {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px;
}
.rules span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); font-size: 12.5px; color: var(--text-2);
}
.rules span i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.grid {
  margin-top: 40px; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.shot {
  position: relative; display: block; background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  aspect-ratio: 16 / 11; overflow: hidden;
}
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}
.shot .missing {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12.5px; color: var(--text-3);
}
/* display:grid above outranks the [hidden] attribute - without this the
   placeholder sits on top of a perfectly good screenshot. */
.shot .missing[hidden] { display: none; }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,33,0) 58%, rgba(20,26,33,.82) 100%);
  pointer-events: none;
}
.shot b {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}

.card-body { padding: 18px 18px 0; flex: 1; }
.card-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(var(--accent-ch) / .14); color: var(--accent-light);
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.card-h { display: flex; align-items: center; gap: 10px; }
.card-h h2 { font-size: 18.5px; font-weight: 700; letter-spacing: -.015em; }
.after { margin-top: 7px; font-size: 12.5px; color: var(--text-3); }
.after b { color: var(--text-2); font-weight: 600; }
.thesis { margin-top: 11px; font-size: 14px; line-height: 1.58; color: var(--text-2); }

.facts { margin-top: 15px; border-top: 1px solid rgba(145,158,171,.12); padding-top: 13px; }
.fact { display: flex; gap: 10px; padding: 4px 0; font-size: 13px; line-height: 1.5; }
.fact dt {
  flex: none; width: 84px; color: var(--text-3); font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding-top: 2px;
}
.fact dd { margin: 0; color: var(--text-2); }

.card-foot { padding: 16px 18px 18px; }
.open {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 16px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  transition: background .15s ease;
}
.open:hover { background: #00b87c; }

.foot {
  margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--hairline);
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.foot h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.foot p { margin-top: 9px; font-size: 13.5px; line-height: 1.62; color: var(--text-2); }
.foot p + p { margin-top: 8px; }
.foot code {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-light);
  background: rgba(var(--accent-ch) / .10); padding: 1px 6px; border-radius: 5px;
}

@media (max-width: 520px) {
  .wrap { padding: 30px 16px 70px; }
  .grid { grid-template-columns: 1fr; }
}
