/* ============================================================
   mikeastwood.dev · article pages and the logbook, both languages
   (/<slug>/, /es/<slug>/, /logbook/ and /es/logbook/)
   ------------------------------------------------------------
   Loaded after home.css: these pages wear the homepage's header,
   section bar, footer and palette, and this file adds only what
   the homepage has no rule for: the bar's current section
   (where the homepage marks Home), the box, its prose and the
   logbook's list.
   Every article page and every logbook entry is written by
   shared/articles/make.py (README → Articles): no JavaScript, no
   [data-reveal], no third party, so they render whole from HTML
   and CSS alone.
   ============================================================ */

.sections .is-current { color: var(--ink); }

.post {
  max-width: 720px; margin: 6px auto 0;
  border: 1px solid var(--line); background: var(--panel);
  padding: 26px 30px 32px;
}

.post__head {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px dotted var(--line-3);
}
.post__title { font-size: 26px; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.post__date { font-size: 12px; color: var(--text-3); }

/* ---- the prose pandoc writes: p, h2/h3, lists, quotes, code, figures, notes ---- */
.post__body { font-size: 15px; line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.post__body > * { margin-block: 0; }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { font-size: 17px; line-height: 1.35; color: var(--ink); margin-top: 2em; }
.post__body h3 { font-size: 15px; line-height: 1.4; color: #fff; margin-top: 1.7em; }
.post__body h2 + *, .post__body h3 + * { margin-top: 0.55em; }
.post__body strong { color: var(--text); }
.post__body ul, .post__body ol { padding-left: 1.4em; }
.post__body li + li { margin-top: 0.35em; }
.post__body blockquote { margin-inline: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); }
.post__body code { font-family: "Courier New", Menlo, monospace; font-size: 0.93em; padding: 0 4px; background: #151515; border: 1px solid var(--line-2); }
.post__body pre { padding: 12px 14px; overflow-x: auto; line-height: 1.6; background: #050505; border: 1px solid #3a3a3a; }
.post__body pre code { padding: 0; font-size: 13px; background: none; border: 0; }
.post__body img { height: auto; margin: 0 auto; border: 1px solid var(--line-3); }
.post__body figcaption { margin-top: 8px; font-size: 12px; color: var(--text-3); text-align: center; }
.post__body hr { border: 0; border-top: 1px dotted var(--line-3); }
.post__body .footnotes { font-size: 13px; }

/* ---- the logbook's list: a list, not cards, so it reads right with one note or many ---- */
.entries { list-style: none; padding: 0; margin-top: 22px; border-top: 1px dotted var(--line-3); }
.entry { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px dotted var(--line-3); }
.entry__date { font-size: 12px; color: var(--text-3); }
.entry__title { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.entry__title a { font-weight: 700; }
.entry__summary { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .post { padding: 20px 16px 26px; }
  .post__title { font-size: 22px; }
  .post__body { font-size: 14px; }
}
