/* ==========================================================================
   The Journal — public pages.

   Loaded after style.css and reuses its tokens (--gold, --cream, --display …).
   Only what the archive and the post pages need lives here.
   ========================================================================== */

.wrap--narrow { max-width: 760px; }

/* Slightly shorter than the other page heroes — the posts are the point — but
   tall enough that the photograph behind it is not cropped to a strip. */
.page-hero--short { padding-block: clamp(7.5rem, 13vw, 10.5rem) clamp(3rem, 6vw, 5rem); }

/* The desk photo's subject sits low and right; anchoring there keeps the Bible
   and the journal in frame while the copy sits in the light on the left. */
.page-hero--short .page-hero__bg { background-position: 62% 62%; }

/* --- the archive ---------------------------------------------------------- */

.jlist { display: grid; gap: clamp(1.1rem, 2.5vw, 1.6rem); }

.jcard {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.jcard:hover { box-shadow: var(--shadow-md); border-color: var(--line); }

/* A post with no cover photo should not leave a hole where one would be. */
.jcard:not(:has(.jcard__art)) { grid-template-columns: 1fr; }

.jcard__art { display: block; align-self: stretch; }
.jcard__art img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }

.jcard__body { padding: clamp(1.2rem, 2.6vw, 1.9rem); padding-left: 0; }
.jcard:not(:has(.jcard__art)) .jcard__body { padding-left: clamp(1.2rem, 2.6vw, 1.9rem); }

.jcard__meta {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 .6rem;
}
.jcard__pin {
  font-weight: 700; color: var(--gold-deep);
  background: #F6ECD5; border-radius: 3px; padding: .15rem .45rem;
  letter-spacing: .12em;
}
.jcard__t {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2;
  margin: 0 0 .55rem;
}
.jcard__t a { color: var(--ink); text-decoration: none; }
.jcard__t a:hover { color: var(--gold-deep); }
.jcard__s { color: var(--muted); line-height: 1.75; margin: 0; }
.jcard__more { margin: .9rem 0 0; }
.jcard__more a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); text-decoration: none;
}
.jcard__more a:hover { color: var(--gold); }
.jcard__more .ico { width: 15px; height: 15px; transition: transform .2s ease; }
.jcard__more a:hover .ico { transform: translateX(3px); }

@media (max-width: 760px) {
  .jcard { grid-template-columns: 1fr; }
  .jcard__art img { min-height: 0; aspect-ratio: 16 / 9; }
  .jcard__body { padding: clamp(1.1rem, 4vw, 1.5rem); }
}

/* --- nothing published yet -------------------------------------------------- */

.jempty {
  text-align: center; padding: clamp(2.5rem, 8vw, 4.5rem) 1.5rem;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.jempty .ico { width: 30px; height: 30px; color: var(--gold); }
.jempty__t { font-family: var(--display); font-size: 1.6rem; margin: .8rem 0 .4rem; }
.jempty__s { color: var(--muted); max-width: 42ch; margin-inline: auto; line-height: 1.75; }

/* --- pager -------------------------------------------------------------------- */

.jpager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem);
}
.jpager__count {
  font-family: var(--sans); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* --- a single post -------------------------------------------------------------- */

.jpost__head { padding-top: clamp(7rem, 11vw, 8.5rem); }
.jpost__back { margin: 0 0 1.4rem; }
.jpost__back a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.jpost__back a:hover { color: var(--gold-deep); }
.jpost__back .ico { width: 15px; height: 15px; }

.jpost__meta {
  font-family: var(--sans); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
  margin: 0 0 .7rem;
}
.jpost__t {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12;
  letter-spacing: .01em; margin: 0;
}
.jpost__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.2rem); line-height: 1.8;
  color: var(--muted); margin: 1rem 0 0; max-width: 62ch;
}

.jpost__cover {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  box-shadow: var(--shadow-md);
}

/* --- the body copy ----------------------------------------------------------------- */

/* Set in the serif at a comfortable reading size — most entries will be read on
   a phone, some of them by people who are exhausted. */
.jprose {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.1vw, 1.3rem);
  line-height: 1.85;
  color: #33291D;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 68ch;
}
.jprose > :first-child { margin-top: 0; }
.jprose p { margin: 0 0 1.35rem; }
.jprose h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.25;
  margin: 2.4rem 0 .8rem; color: var(--ink);
}
.jprose h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: .84rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin: 2.2rem 0 .7rem;
}
.jprose blockquote {
  margin: 1.8rem 0; padding: .2rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--gold);
  font-style: italic; color: #4A4034;
}
.jprose blockquote p:last-child { margin-bottom: 0; }
.jprose ul, .jprose ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.jprose li { margin-bottom: .5rem; }
.jprose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.jprose a:hover { color: var(--gold); }
.jprose img {
  max-width: 100%; height: auto; display: block;
  border-radius: var(--radius); margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}
.jprose hr {
  border: 0; height: 1px; margin: 2.4rem auto; width: 40%;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}

/* --- signature + sharing ------------------------------------------------------------- */

.jpost__foot {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--line-soft);
}
.jpost__sign { margin: 0 0 1.4rem; }

.jshare { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.jshare__l {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-right: .2rem;
}
.jshare__l .ico { width: 15px; height: 15px; color: var(--gold); }

/* --- previous entry -------------------------------------------------------------------- */

.jnext {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.jnext__link { text-decoration: none; min-width: 0; }
.jnext__l {
  display: block; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .3rem;
}
.jnext__t {
  display: block; font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.3; color: var(--ink);
}
a.jnext__link:hover .jnext__t { color: var(--gold-deep); }
.jnext__link--none .jnext__t { color: var(--muted); font-style: italic; }

@media (max-width: 640px) {
  .jnext { flex-direction: column; align-items: flex-start; }
  .jnext .btn { width: 100%; }
}
