/* plain.css — the plain dialect, after the original hand-made pages:
   the lavender-grey ground and white paper of rgbiv/promo.html, the side
   column of paintings/current.php, Verdana, every picture whole. */
body.plain {
  --pl-ground: #e5e4ea; --pl-paper: #fff; --pl-ink: #222; --pl-muted: #666; --pl-link: #5b55a0; --pl-line: #dcdbe3;
  background: var(--pl-ground); color: var(--pl-ink);
  font: 15px/1.6 Verdana, Geneva, Tahoma, sans-serif;
}
body.plain a { color: var(--pl-link); }
body.plain a:focus-visible { outline: 2px solid var(--pl-link); outline-offset: 2px; }

.pl { display: grid; grid-template-columns: 230px minmax(0, 780px); gap: 0; justify-content: center; min-height: 100vh; }

/* the side column: home, the series with this work marked, what is on the page, the view switch */
.pl-side { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; padding: 22px 20px 30px; font-size: 13px; }
.pl-home { display: block; padding-bottom: 10px; border-bottom: 1px solid #c9c7d3; font-weight: bold; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pl-series { margin: 18px 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--pl-ink); font-weight: bold; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.pl-series a { color: var(--pl-ink); text-decoration: none; }
.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-list li { margin: 0; }
.pl-list a, .pl-list span { display: block; padding: 5px 0; text-decoration: none; color: var(--pl-ink); }
.pl-list a:hover { color: var(--pl-link); }
.pl-list [aria-current] { color: var(--pl-link); font-weight: bold; }
.pl-lbl { margin: 20px 0 2px; font-size: 11px; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; color: #8b8996; }
.pl-toc a { padding: 3px 0; }
.pl-views { margin-top: 22px; font-size: 12px; }
.pl-views .views a { color: var(--pl-muted); }
.pl-views .views a.on { color: var(--pl-ink); border-bottom-color: var(--pl-ink); }
.pl-views .views a:hover { color: var(--pl-link); }

/* the paper */
.pl-main { background: var(--pl-paper); padding: 28px clamp(18px, 5vw, 56px) 40px; min-width: 0; }
.pl-head h1 { font: bold 26px/1.25 Verdana, Geneva, sans-serif; margin: 0 0 4px; }
.pl-dek { margin: 0; font-style: italic; color: #444; }
.pl-by { margin: 4px 0 0; font-size: 12px; color: var(--pl-muted); }
.pl-main h2 { font: bold 17px/1.3 Verdana, Geneva, sans-serif; margin: 34px 0 12px; padding-top: 14px; border-top: 1px solid var(--pl-line); }
.pl-main h2 small { font-weight: normal; color: var(--pl-muted); font-size: 12px; }
.pl-main h3 { font-size: 14px; margin: 24px 0 8px; }
.pl-text { margin-top: 18px; max-width: 62ch; }
.pl-text h2 { border: 0; padding: 0; margin: 22px 0 6px; font-size: 15px; }

/* films */
.pl-film { margin: 0; }
.pl-film video { display: block; width: 100%; max-height: 70vh; background: #000; }
.pl-film figcaption { margin-top: 8px; font-size: 13px; color: #444; }
.pl-films { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pl-films a { display: block; text-decoration: none; color: var(--pl-ink); font-size: 13px; line-height: 1.4; }
.pl-films img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; margin-bottom: 6px; }
.pl-films a:hover b { color: var(--pl-link); }

/* pictures: each whole, centred, its label beneath (as on paintings/current.php) */
.pl-piece { margin: 0 0 44px; text-align: center; }
.pl-piece a { display: inline-block; max-width: 100%; }
.pl-piece img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.pl-piece figcaption { margin: 12px auto 0; max-width: 52ch; font-size: 13px; line-height: 1.5; color: #444; }
.pl-details { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pl-details img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }

/* sound */
.pl-tracks { padding-left: 1.6em; margin: 0; }
.pl-tracks li { margin: 0 0 10px; }
.pl-tracks .t { display: block; font-size: 14px; }
.pl-tracks audio { width: 100%; max-width: 420px; height: 32px; }

/* members of a series */
.pl-members { list-style: none; margin: 0; padding: 0; }
.pl-members li { border-bottom: 1px solid var(--pl-line); }
.pl-members a { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding: 12px 0; text-decoration: none; color: var(--pl-ink); font-size: 13px; line-height: 1.45; }
.pl-members img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.pl-members a:hover b { color: var(--pl-link); }

/* facts */
.pl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.pl-facts dt { color: var(--pl-muted); }
.pl-facts dd { margin: 0; }
.pl-features { font-size: 13px; color: var(--pl-muted); margin-top: 14px; }
.pl-plain { padding-left: 1.2em; margin: 0; font-size: 14px; }
.pl-plain li { margin-bottom: 4px; }
.pl-foot { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--pl-line); font-size: 12px; color: var(--pl-muted); }

@media (max-width: 760px) {
  .pl { grid-template-columns: minmax(0, 1fr); }
  .pl-side { position: static; max-height: none; padding: 14px 16px 6px; }
  .pl-lbl, .pl-toc { display: none; }
  .pl-list { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .pl-views { margin-top: 10px; }
  .pl-main { padding: 20px 16px 32px; }
  .pl-piece img { max-height: none; }
  .pl-members a { grid-template-columns: 88px 1fr; }
  .pl-members img { width: 88px; }
}
.pl-sec { margin: 30px 0 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-muted); }
