.guides-page {
  --journal-ink: #243b33;
  --journal-rule: #c9bea3;
  color: var(--journal-ink);
}

.guides-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  border-bottom: 3px double var(--journal-ink);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.guides-masthead h1 {
  font-size: clamp(2.65rem, 6vw, 4.75rem);
  font-style: italic;
  font-weight: 500;
}

.guides-masthead > p {
  max-width: 34ch;
  font: 1.1rem/1.45 var(--serif);
}

.guides-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--journal-rule);
}

.guides-filters .field {
  width: 13rem;
}

.guides-filters [role="status"] {
  margin: auto 0 0 auto;
  font-style: italic;
  font-family: var(--serif);
}

.guide-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}

.journal-entry {
  border-bottom: 1px solid var(--journal-rule);
}

.journal-entry > a {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  padding-block: clamp(1.2rem, 2.4vw, 2rem);
  height: 100%;
}

.journal-entry img {
  flex: none;
  width: clamp(4rem, 9vw, 7.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.journal-entry h2 {
  margin-block: 0.35rem 0.5rem;
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  text-wrap: pretty;
}

.journal-entry a:is(:hover, :focus-visible) h2 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.journal-deck {
  max-width: 55ch;
  font: 1rem/1.5 var(--serif);
}

.journal-interests {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* The opening spread follows the first visible article when the filters change. */
.journal-entry:nth-child(1 of :not([hidden])) {
  grid-column: 1 / -1;
  background: #fff9eb;
}

.journal-entry:nth-child(1 of :not([hidden])) > a {
  align-items: center;
  padding: clamp(1rem, 3vw, 2.25rem);
  gap: clamp(1.25rem, 4vw, 3.5rem);
}

.journal-entry:nth-child(1 of :not([hidden])) img {
  width: 45%;
  aspect-ratio: 2 / 1;
  border-radius: 65% 65% 2px 2px / 36% 36% 2px 2px;
}

.journal-entry:nth-child(1 of :not([hidden])) h2 {
  font-size: clamp(1.9rem, 3.55vw, 3.1rem);
  line-height: 1.05;
}

.guides-empty {
  padding-block: 2rem;
  font-family: var(--serif);
}

@media (max-width: 860px) {
  .guide-index {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .guides-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .guides-filters .field {
    width: auto;
    min-width: 0;
  }

  .guides-filters select {
    padding-inline: 0.5rem;
  }

  .guides-filters [role="status"] {
    grid-column: 1 / -1;
    margin: 0;
  }

  .journal-entry:nth-child(1 of :not([hidden])) > a {
    flex-direction: column;
    align-items: stretch;
  }

  .journal-entry:nth-child(1 of :not([hidden])) img {
    width: 100%;
    aspect-ratio: 2.5;
  }
}
