/* ==========================================================================
   BOOKALLO — JOURNAL

   The editorial layer. It adds NO palette of its own: every colour here is a
   token already declared by janet_ds.css and re-pointed by janet_premium.css,
   which is the whole reason the journal reads as part of the product rather
   than as a blog bolted onto it.

   That is not a stylistic preference, it is the lesson this repository already
   paid for twice. A component that declares its own colours at element level
   beats :root inheritance, so the premium theme converts the whole site and
   the new component keeps its own light palette — 52 cream cards with every
   test green. So: tokens only, and no literal beyond a shadow alpha.

   Loaded after janet_ds.css. No JavaScript. No animation beyond a hover
   transition, so an editorial page costs nothing on Core Web Vitals.
   ========================================================================== */

.jr-wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* --- index ---------------------------------------------------------------- */

.jr-head { padding: clamp(40px, 7vw, 88px) 0 clamp(20px, 3vw, 34px); }
.jr-head h1 {
  font-family: var(--font-display, var(--font));
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.jr-head p { max-width: 62ch; color: var(--ink-soft); font-size: clamp(15px, 1.6vw, 18px); margin: 0; }

.jr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  padding-bottom: clamp(40px, 7vw, 80px);
  list-style: none;
  margin: 0;
}
.jr-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r, 14px);
  background: var(--surface, var(--paper));
  transition: border-color .18s ease, transform .18s ease;
}
.jr-card:hover { border-color: var(--line-strong, var(--line)); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .jr-card, .jr-card:hover { transition: none; transform: none; } }

.jr-card h2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.3; margin: 0; }
.jr-card h2 a { color: var(--ink); text-decoration: none; }
.jr-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jr-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.jr-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--jp-gold, var(--sky-deep));
}
.jr-meta { font-size: 13px; color: var(--ink-faint); margin: 0; }

/* --- article -------------------------------------------------------------- */

.jr-article { padding-bottom: clamp(40px, 7vw, 80px); }
.jr-crumbs { font-size: 13px; color: var(--ink-faint); padding: 20px 0 0; }
.jr-crumbs a { color: var(--ink-soft); }
.jr-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.jr-crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--ink-faint); }

.jr-title {
  font-family: var(--font-display, var(--font));
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 18px 0 14px;
  max-width: 22ch;
}
.jr-dek { font-size: clamp(16px, 1.9vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; margin: 0 0 18px; }
.jr-byline { font-size: 13px; color: var(--ink-faint); margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }

/* The reading measure. Long-form Hebrew and English both want ~65ch. */
.jr-body { max-width: 68ch; }
.jr-body h2 {
  font-family: var(--font-display, var(--font));
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.28;
  color: var(--ink);
  margin: 36px 0 12px;
}
.jr-body p { font-size: clamp(15.5px, 1.7vw, 17.5px); line-height: 1.8; color: var(--ink-soft); margin: 0 0 15px; }
.jr-body p strong { color: var(--ink); }

/*
 * The closing summary. It carries NO side accent bar: a thick coloured border
 * down one edge of a panel is the most recognisable tell of a generated
 * interface, and the label already does the work of marking this block as
 * different from the body text.
 */
.jr-takeaway {
  margin: 34px 0 0;
  padding: clamp(16px, 2vw, 24px) 0 0;
  border-top: 1px solid var(--line);
}
.jr-takeaway p { margin: 0; color: var(--ink); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.7; font-weight: 500; }
.jr-takeaway b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 8px; }

/* --- next steps: the product, not a wall of affiliate buttons ------------- */

.jr-next { margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.jr-next h2 { font-size: 18px; margin: 0 0 12px; color: var(--ink); }
.jr-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jr-links a {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface, var(--paper));
}
.jr-links a:hover { border-color: var(--line-strong, var(--line)); }
.jr-links a.jr-cta { background: var(--jp-gold, var(--sky-deep)); color: var(--on-sky, var(--paper)); border-color: transparent; font-weight: 600; }

.jr-note { margin-top: 26px; font-size: 13.5px; line-height: 1.7; color: var(--ink-faint); max-width: 68ch; }

@media (max-width: 520px) {
  .jr-title { max-width: none; }
  .jr-links a { font-size: 14px; }
}
