/* A quiet live journal: the album's paper, serif captions and small metadata. */
.journal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 690px;
  overflow: hidden;
  min-width: 0;
  padding: 27px 24px 24px;
  border-radius: 4px;
  scrollbar-width: thin;
}
.journal #entries {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 7px 8px 5px;
  scrollbar-width: thin;
  scrollbar-color: #aeb9ad transparent;
}
.journal #entries:focus-visible { outline: 2px solid #7c9482; outline-offset: -2px; }
.journal-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  margin-bottom: 23px;
}
.journal-symbol { display: block; width: 44px; height: 76px; flex: none; }
.journal-heading-copy { min-width: 0; }
.journal-heading .eyebrow {
  margin: 0 0 7px;
  color: var(--forest);
  font: 400 10px/1.5 var(--sans);
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.journal-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 400 24px/1.2 var(--serif);
  letter-spacing: -.35px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.journal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.journal .text-button {
  flex: none;
  min-height: 32px;
  padding: 8px 0;
  font: 11px/1.4 var(--sans);
}
.journal-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 9px;
  color: var(--muted);
  font: 11px/1.4 var(--sans);
}
.journal-filter select {
  min-width: 0;
  max-width: 150px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  font: 11px/1.4 var(--sans);
}
/* Keep the description available to assistive technology, without the
   extra instruction paragraph competing with the actual diary entries. */
.journal-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.journal .entry {
  margin-left: 3px;
  padding: 0 0 23px 19px;
  border-color: var(--line);
  overflow-wrap: anywhere;
}
.journal .entry:first-child { margin-top: 21px; }
.journal .entry:last-child { padding-bottom: 0; border-color: transparent; }
.journal .entry::before {
  width: 5px;
  height: 5px;
  top: 5px;
  left: -3px;
  border: 0;
  outline: 4px solid var(--paper);
  background: #9caa99;
}
.journal .entry:first-child::before { background: var(--forest); }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-bottom: 7px;
}
.journal .entry time,
.journal .entry-source {
  margin: 0;
  color: var(--muted);
  font: 10.5px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
}
.journal .entry-source::before { content: '·'; margin-right: 8px; }
.journal .entry h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font: 400 15px/1.4 var(--serif);
}
.journal .entry p,
.journal .entry figcaption {
  margin: 0;
  color: #44564d;
  font: 400 13px/1.5 var(--serif);
  white-space: pre-line;
}
.journal .entry-figure { margin: 0; }
.journal .entry-photo {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  border-radius: 3px;
  cursor: zoom-in;
}
.journal .entry-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 3px;
  dynamic-range-limit: no-limit;
}
.journal .entry figcaption { margin-top: 8px; }
.journal .entry-map { margin-top: 4px; }
.journal .empty-note {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  font: 13px/1.6 var(--serif);
}
.journal button:hover { outline: none; color: #52775b; }
.journal button:focus-visible { outline: 2px solid #7c9482; outline-offset: 4px; }
.journal-filter select:focus-visible { outline: 2px solid #7c9482; outline-offset: 3px; }
@media (min-width: 1450px) { .journal { height: 730px; } }
@media (max-width: 760px) {
  .journal { height: 480px; padding: 22px 20px; }
  .journal-heading { gap: 19px; min-height: 68px; margin-bottom: 20px; }
  .journal-symbol { width: 40px; height: 69px; }
  .journal-heading h2 { font-size: 23px; }
}
@media (max-width: 360px) {
  .journal-heading { gap: 16px; }
  .journal-heading h2 { font-size: 22px; }
  .journal-toolbar { gap: 8px; }
  .journal-filter { gap: 6px; }
  .journal-filter select { max-width: 125px; }
}
