/* Prompt Lab: index grid + entry pages */
.pl-hero { padding-bottom: 12px; }
/* Index: one section per image shape (portrait < 0.9 <= square <= 1.15 < wide), newest first.
   Each group shares one frame ratio; images sit fully inside (contain) over a blurred copy of themselves. */
.pl-group {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
  margin: 0 clamp(20px, 6vw, 84px) clamp(28px, 4vw, 44px);
}
.pl-group:last-of-type { margin-bottom: clamp(48px, 7vw, 88px); }
.pl-portrait { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.pl-square { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-card {
  display: grid;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pl-card:hover, .pl-card:focus-visible { border-color: rgba(217, 162, 59, 0.6); transform: translateY(-2px); }
.pl-frame { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #050606; }
.pl-square .pl-frame { aspect-ratio: 1 / 1; }
.pl-wide .pl-frame { aspect-ratio: 16 / 9; }
.pl-frame::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--bg) center / cover no-repeat;
  filter: blur(22px) brightness(0.42) saturate(1.1);
}
.pl-frame img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.pl-card-body { display: block; padding: 14px 16px 18px; }
.pl-card-title { display: block; margin: 0 0 4px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; line-height: 1.15; }
.pl-card-body time { color: var(--soft); font-size: 0.85rem; }
@media (max-width: 900px) {
  .pl-square { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pl-group { margin-left: 16px; margin-right: 16px; gap: 12px; }
  .pl-portrait, .pl-square { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-wide { grid-template-columns: 1fr; }
  .pl-portrait .pl-card-body, .pl-square .pl-card-body { padding: 10px 11px 12px; }
  .pl-portrait .pl-card-title, .pl-square .pl-card-title { font-size: 1rem; }
  .pl-portrait time, .pl-square time { font-size: 0.78rem; }
}

.pl-entry { max-width: 860px; margin: 0 auto clamp(48px, 7vw, 88px); padding: 0 clamp(20px, 5vw, 40px); }
.pl-entry h1 { margin: 6px 0 8px; color: var(--ink); font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1; }
.pl-entry .pl-meta { margin: 0 0 24px; color: var(--muted); }
.pl-result { margin: 0 0 32px; }
.pl-result a { display: block; }
.pl-result img {
  display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pl-result figcaption { margin-top: 10px; text-align: center; font-size: 0.88rem; }
.pl-result figcaption a { display: inline; color: var(--gold); }
.pl-prompt {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0e0e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 243, 223, 0.88);
}
.pl-prompt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pl-prompt-head .eyebrow { margin: 0; }
.pl-prompt h3 { margin: 1.6em 0 0.6em; color: var(--gold); font-size: 0.9rem; letter-spacing: 0.08em; }
.pl-prompt p { margin: 0 0 0.9em; }
.pl-prompt ul { margin: 0 0 0.9em; padding-left: 1.3em; }
.pl-prompt li { margin-bottom: 0.4em; }
.pl-copy[data-copied] { border-color: var(--gold); color: var(--gold); }
.pl-back { margin-top: 28px; }
.pl-back a { color: var(--gold); font-weight: 750; }
@media (max-width: 640px) {
  .pl-prompt { font-size: 0.86rem; padding: 18px 16px; }
  .pl-prompt-head .button { width: 100%; justify-content: center; }
}
