@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
.journal-reader {
  --lapis: #193d78;
  --leaf: #fffcf4;
  --index-ink: #fff8e8;
  --index-rule: #ffffff39;
  background: color-mix(in srgb, var(--ground-paper) 55%, #ead4b2);
}
.journal-reader main {
  max-width: 1260px;
  padding: clamp(14px, 3vw, 38px) clamp(12px, 4vw, 54px) 32px;
}
.journal-reader .home {
  background: transparent;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  color: var(--lapis);
}
.journal-reader main > .home:last-child { margin-top: 14px; }
.journal-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr);
  align-items: start;
  margin-top: 12px;
  background: linear-gradient(to right, var(--lapis) 38.2%, var(--leaf) 38.2%);
  border-radius: 3px 9px 9px 3px;
  box-shadow: 0 1px 2px #59452735, 0 12px 32px -20px #35250c85;
}
.journal-spread [hidden] { display: none !important; }
.index-leaf {
  position: sticky;
  top: 0;
  min-width: 0;
  padding: clamp(22px, 3vw, 44px);
  color: var(--index-ink);
}
.journal-reader header { margin: 0 0 clamp(18px, 2.5vw, 34px); color: inherit; }
.index-leaf h1 {
  display: flex;
  align-items: baseline;
  gap: .13em;
  font: italic 400 clamp(70px, 7vw, 106px)/.98 "Instrument Serif", Georgia, serif;
  letter-spacing: -.045em;
}
.index-leaf .ring-mark {
  flex: none;
  width: .21em;
  height: .21em;
  border: .047em solid #f08f60;
  border-radius: 50%;
}
.index-leaf header p {
  margin-top: .55rem;
  color: #e2e8ef;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .11em;
}
.index-modes {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--index-rule);
}
.index-modes a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: #d1dbee;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.index-modes a[aria-current] { border-color: #ffbd87; color: var(--index-ink); }
.index-entries { display: grid; margin-top: 16px; }
.index-entries a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 53px;
  padding: 7px 9px;
  border-block-end: 1px solid var(--index-rule);
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.index-entries a:hover, .index-modes a:hover { text-decoration: underline; text-underline-offset: .25em; }
.index-entries a[aria-selected="true"] {
  border-color: transparent;
  border-radius: 3px;
  background: #f7e8cd;
  color: var(--lapis);
}
.index-entries img {
  width: 48px;
  height: 37px;
  object-fit: cover;
  border-radius: 2px;
}
.index-entries svg { width: 23px; height: 23px; justify-self: center; fill: currentColor; }
.index-entries small { font: 12px/1.4 var(--font-pixel); }
.index-leaf a:focus-visible { outline: 2px solid #ffbd87; outline-offset: -2px; box-shadow: none; }
.reading-leaf {
  min-width: 0;
  padding: clamp(17px, 2.7vw, 40px);
  background: linear-gradient(90deg, #8190a51c, transparent 16px);
}
.journal-reader #profiles { margin: 0; }
.reading-leaf [role="tabpanel"], #profiles:has([role="tabpanel"]) { scroll-margin-top: 90vh; }
.reading-leaf article:not([role]) { margin-bottom: 32px; }
.reading-leaf article:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.reading-leaf .post {
  gap: clamp(16px, 2.1vw, 28px);
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.post .feed-head {
  padding-bottom: 15px;
  border-bottom: 1px solid #ccbdab;
  font-size: 15px;
}
.post .feed-mark { width: 23px; height: 23px; }
.post time { color: var(--ink-2); letter-spacing: .04em; }
.post-art {
  display: grid;
  place-items: center;
  padding: clamp(16px, 2vw, 30px);
  background: #e8e1d3;
}
.post-art img.feed-media {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 310px;
  border-radius: 0;
  box-shadow: 1px 3px 10px #48392124;
}
.feed-card--note .post-art img { width: 100%; object-fit: contain; }
.post h2 {
  color: #1b3052;
  font: 700 clamp(23px, 2.3vw, 32px)/1.48 var(--font-display);
  line-break: strict;
  overflow-wrap: anywhere;
}
.post h2 + p { margin: .7em 0; line-height: 1.85; }
.post .post-link { gap: .35em; color: var(--lapis); }
.post-link .icon { width: 1em; height: 1em; }
.reading-leaf .profile-sheet {
  border: 1px solid var(--rule);
  border-radius: 3px;
}
@media (min-width: 761px) and (max-width: 1070px) {
  .index-leaf { padding: 22px; }
  .index-entries a { grid-template-columns: 39px minmax(0, 1fr); gap: 0 9px; }
  .index-entries img, .index-entries svg { grid-row: span 2; }
  .index-entries img { width: 39px; }
  .index-entries small { grid-column: 2; }
}
@media (min-width: 761px) and (max-height: 560px) {
  .index-leaf { max-height: 100vh; overflow-y: auto; }
}
@media (max-width: 760px) {
  .journal-reader main { padding-top: 4px; }
  .journal-spread { display: block; margin-top: 3px; background: var(--leaf); }
  .index-leaf { position: static; padding: 18px 16px 12px; background: var(--lapis); border-radius: 3px 8px 0 0; }
  .journal-reader header { display: flex; gap: 14px; align-items: baseline; margin: 0 0 6px; }
  .index-leaf h1 { font-size: clamp(47px, 10vw, 62px); }
  .index-leaf header p { margin: 0; font-size: 12px; }
  .index-entries {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-top: 9px;
    scrollbar-width: thin;
    scrollbar-color: #93a8c6 transparent;
  }
  .index-entries a {
    display: flex;
    flex: none;
    gap: 7px;
    min-height: 45px;
    border: 0;
    padding: 5px 9px;
    font-size: 13px;
  }
  .index-entries img { width: 31px; height: 30px; }
  .index-entries svg { width: 19px; height: 19px; }
  .index-entries small { display: none; }
  .reading-leaf { padding: 19px 16px 24px; background: none; }
  .post-art { padding: 14px; }
  .post-art img.feed-media { max-height: 245px; }
}
