@import "/assets/app/shared/styles/page.3e88c4172a9633bb.css";

.journal-list {
  display: grid;
}

/**
 * The whole row is the link, so the whole row lights up. The negative
 * inline margin lets the highlight sit slightly proud of the text column
 * rather than stopping hard against the first character.
 */
.journal-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: var(--space-8) var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  border-bottom: var(--line);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-out);
}

.journal-row:hover,
.journal-row:focus-visible {
  background: var(--bg-soft);
}

.journal-row .data,
.journal-row p {
  transition: color var(--duration-fast) var(--ease-out);
}

.journal-row:hover .data,
.journal-row:hover p {
  color: var(--ink);
}

.journal-row:first-child {
  border-top: var(--line);
}

.journal-row h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .journal-row img {
    transition: none;
  }
}

.journal-row p {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.journal-row figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
}

.journal-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.journal-row:hover img {
  transform: scale(1.04);
}

@media (max-width: 60rem) {
  .journal-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .journal-row figure {
    order: -1;
  }
}
