/* Playground, version 1: editorial index. Everything is scoped under .pg1. */

.pg1 {
  max-width: 1296px;
  margin: 0 auto;
  padding: 48px var(--layout-margin) 96px;
}

.pg1__eyebrow {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg1__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-xl);
  line-height: var(--display-xl-lh);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pg1__lead {
  max-width: 34em;
  margin-top: var(--layout-block-gap);
  color: var(--text-body);
  font-size: var(--text-body-xl);
  line-height: var(--text-body-xl-lh);
  font-weight: 500;
}

.pg1__list {
  list-style: none;
  margin: var(--layout-section-gap) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-700);
}

/* --- Row --------------------------------------------------------------- */
.pg1__row {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: var(--layout-gutter);
  row-gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-700);
}

.pg1__num {
  grid-row: 1;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-tab);
  line-height: var(--display-tab-lh);
  font-variant-numeric: tabular-nums;
}

.pg1__body { grid-column: 2; min-width: 0; }
.pg1__side { grid-column: 2; grid-row: 2; }

.pg1__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-h2);
  line-height: var(--display-h2-lh);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.pg1__summary {
  max-width: 38em;
  margin-top: 8px;
  color: var(--text-body);
  font-size: var(--text-body-m);
  line-height: var(--text-body-m-lh);
}

.pg1__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.pg1__tags li {
  padding: 4px 12px;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-pill);
  color: var(--text-supporting);
  font-size: 14px;
  line-height: 20px;
}

.pg1__meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

/* --- Status ------------------------------------------------------------ */
.pg1__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.pg1__status--live { color: var(--text-primary); }
.pg1__arrow { transition: transform 0.2s var(--ease-standard); }
.pg1__status--soon {
  padding: 4px 12px;
  border: 1px dashed var(--grey-500);
  border-radius: var(--radius-pill);
  color: var(--text-supporting);
}

/* --- Live row ---------------------------------------------------------- */
.pg1__link { color: inherit; }
/* The whole row is the click target, but the link's name stays just the title. */
.pg1__link::after { content: ""; position: absolute; inset: 0; }
.pg1__link:focus-visible { outline: none; }
.pg1__row--live:has(.pg1__link:focus-visible) {
  outline: 2px solid var(--blue-300);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Image shows in the flow on phones and touch. */
.pg1__peek {
  grid-column: 2;
  grid-row: 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-850);
}
.pg1__peek img { width: 100%; height: auto; }

/* --- Soon rows are quieter -------------------------------------------- */
.pg1__row--soon .pg1__name { color: var(--text-supporting); font-size: var(--display-section); line-height: var(--display-section-lh); }
.pg1__row--soon .pg1__summary { color: var(--text-muted); }

/* --- Tablet and up: three columns -------------------------------------- */
@media (min-width: 768px) {
  .pg1 { padding-top: 72px; }
  .pg1__row {
    grid-template-columns: 72px 1fr 180px;
    padding: 40px 0;
  }
  .pg1__body { grid-column: 2; grid-row: 1; }
  .pg1__side { grid-column: 3; grid-row: 1; justify-self: end; }
  .pg1__peek { grid-column: 2 / 4; grid-row: 2; margin-top: 8px; }
}

/* --- Desktop with a mouse: image peeks on hover or focus --------------- */
@media (min-width: 1200px) and (hover: hover) {
  .pg1__row { grid-template-columns: 96px 1fr 180px; }
  .pg1__row--live { min-height: 220px; }
  .pg1__peek {
    position: absolute;
    right: 0;
    top: 50%;
    width: 420px;
    margin: 0;
    z-index: 2;
    transform: translateY(-50%) rotate(-1.5deg) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s var(--ease-standard), transform 0.25s var(--ease-standard), visibility 0s linear 0.25s;
  }
  .pg1__row--live:hover .pg1__peek,
  .pg1__row--live:focus-within .pg1__peek {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) rotate(-1.5deg) scale(1);
    transition-delay: 0s;
  }
  .pg1__row--live:hover .pg1__name,
  .pg1__row--live:focus-within .pg1__name { color: var(--blue-300); }
  .pg1__row--live:hover .pg1__arrow { transform: translateX(6px); }
  /* the peek covers the status label, so move the label up out of the way */
  .pg1__row--live .pg1__side { align-self: start; }
}

.pg1__credit {
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .pg1__peek, .pg1__arrow { transition: none !important; transform: none; }
  @media (min-width: 1200px) and (hover: hover) {
    .pg1__peek { transform: translateY(-50%) !important; }
  }
}
