/*
 * Journal.module.css → the "journal" view.
 *
 * Ported by scripts/port-css.mjs. Class names are prefixed to survive being
 * flattened out of CSS Modules; design tokens are rewritten to the custom
 * properties theme.json emits. Edit this file, not the original.
 */

/* Lead article gets the full width and a larger frame. */
.px-journal {
  display: grid;
  gap: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xxxl);
  padding-bottom: var(--wp--preset--spacing--xxl);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--wp--preset--spacing--xl);
}

@media (min-width: 900px) {
  .px-journal {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}

.px-journal__lead-body {
  display: grid;
  gap: var(--wp--preset--spacing--md);
  align-content: center;
}

.px-journal__lead-meta {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--lg);
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.px-journal__lead-discipline {
  color: var(--discipline-color, var(--accent));
}

.px-journal__lead-date {
  color: var(--fg-faint);
}

.px-journal__lead-title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: var(--wp--preset--font-size--xxl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  transition: color var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.px-journal:hover .px-journal__lead-title {
  color: var(--accent);
}

.px-journal__lead-excerpt {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 54ch;
}

/* Remaining articles as rows. Each row draws its own top rule, so the first
   one would otherwise double up with the lead article's bottom rule. */
.px-journal__rows {
  display: grid;
}

.px-journal__rows > :first-child {
  border-top: 0;
}
