/* Articles list + article pages.
   Loaded AFTER css/styles.css. Reuses its tokens (--ink, --muted, --line, --serif)
   and its .page.about two-column grid (13rem | 1fr), so the left edge of the text
   lines up with the top menu like on every other page.
   (You may paste this file at the end of styles.css and remove the extra <link>.) */

/* Left-column "Articles" link: not wanted, hidden on all article pages */
.articles .art-side { display: none; }

/* Left column: page title + (list page only) a painting */
.articles .art-side { grid-column: 1; }
.art-side-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.3;
}
.art-side-title a { text-decoration: none; }
.art-side-title a:hover { text-decoration: underline; }
.art-side-img { display: block; width: 100%; height: auto; }

/* Content column */
.articles .art-list,
.articles .art-page { max-width: 46rem; }

/* ---- list page ---- */
.art-item {
  padding: 0 0 1.4rem;
  margin: 0 0 1.8rem;
  border-bottom: 1px solid #bdbdba;
}
.art-item:last-child { margin-bottom: 0; }
.art-item h2 {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
}
.art-item h2 a { text-decoration: none; }
.art-item h2 a:hover { text-decoration: underline; }
.art-author { margin: 0 0 .8rem; font-size: .9rem; font-weight: 700; }
.art-excerpt p { margin: 0 0 .6rem; font-size: .95rem; line-height: 1.65; }
.art-more {
  display: block;
  margin-top: .6rem;
  direction: ltr;
  text-align: left;
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
}
.art-more:hover, .art-more:focus-visible { color: var(--ink); text-decoration: underline; }
.art-list { display: grid; grid-template-columns: minmax(0, 1fr) 406px; gap: 2rem; align-items: start; }
.articles .art-list { max-width: none; }
.art-list-img { width: 406px; max-width: 100%; height: auto; display: block; position: sticky; top: 1rem; }

/* ---- article page ---- */
.art-head { margin: 0 0 1.6rem; }
.art-head h1 {
  margin: 0 0 .4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
}
.art-head .art-author { margin: 0 0 .2rem; }
.art-year { margin: 0; font-size: .9rem; color: var(--muted); }

.art-body p { margin: 0 0 1.1em; font-size: .95rem; line-height: 1.8; }
.art-body .art-verse { margin: 1.4em 0; }
.art-body .art-sig { margin-top: 1.6em; color: var(--muted); font-size: .9rem; }
.art-body .art-sig + .art-sig { margin-top: -.6em; }
.art-body .art-note { font-size: .8rem; color: var(--muted); }
.art-body .art-ext a { text-decoration: underline; }
.art-body sup { font-size: .75em; line-height: 0; }

.art-back { margin: 1.6rem 0 0; direction: ltr; font-size: .9rem; }
.art-back a { color: var(--muted); text-decoration: none; }
.art-back a:hover, .art-back a:focus-visible { color: var(--ink); text-decoration: underline; }

.art-figure { margin: 2.2rem 0 0; }
.art-figure img { display: block; max-width: 100%; height: auto; max-height: 32rem; }

/* Language button row (uses the site's .lang-btn style) */
.art-lang { margin: 0 0 1.6rem; text-align: left; }
.art-list-ltr .art-lang { text-align: right; }

/* English list: image on the left, text on the right (mirror of the Hebrew page) */
.art-list-ltr { grid-template-columns: 406px minmax(0, 1fr); }
.art-list-ltr .art-list-img { grid-column: 1; grid-row: 1; }
.art-list-ltr .art-items { grid-column: 2; grid-row: 1; }

/* Small screens: list-page painting is decoration only */
@media (max-width: 899px) {
  .art-side-img { display: none; }
  .art-list { display: block; }
  .art-list-img { display: none; }
  .art-side-title { margin-bottom: 1.2rem; }
}
