/* LithoWar article preview. Copied and extended from lithowar.com/articles/articles.css
   so this folder is self-contained (relative paths only). LithoWar light theme.
   Ad-free, no cookies, no trackers. */
html, body { margin: 0; padding: 0; color: #000; background: #fff; font-family: 'Lucida Console', monospace; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 5px; }
a.hdr { border-radius: 30px 30px 0 0; background: #efda68; padding: 14px 24px 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: #000; text-decoration: none; }
a.hdr:hover { filter: brightness(0.98); }
a.hdr:hover h1 { text-decoration: underline; }
a.hdr h1 { margin: 0; font-size: 30px; font-weight: normal; color: #000; }
a.hdr .by { font-size: 18px; margin-top: 4px; color: #000; }

article.post { max-width: 760px; margin: 0 auto; padding: 18px 16px 28px 16px; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.6; }
article.post > h1 { font-family: 'Lucida Console', monospace; font-size: 30px; line-height: 1.25; font-weight: normal; margin: 6px 0 6px 0; }
article.post .byline { font-family: 'Lucida Console', monospace; font-size: 15px; color: #333; border-top: 2px solid #efda68; border-bottom: 2px solid #efda68; padding: 6px 0; margin-bottom: 18px; }
article.post .byline a { color: #000; }
article.post h2 { font-family: 'Lucida Console', monospace; font-weight: normal; font-size: 22px; line-height: 1.3; margin: 28px 0 10px 0; }
article.post p { margin: 0 0 1em 0; }
article.post a { color: #000; text-decoration: underline; text-decoration-color: #c9b23a; }
article.post img { max-width: 100%; height: auto; display: block; }

article.post .hero { margin: 0 0 18px 0; }
article.post .hero img { width: 100%; border-radius: 4px; }

article.post figure { margin: 22px 0; }
article.post figure img { margin: 0 auto; }
article.post figcaption { font-size: 14px; color: #555; font-family: 'Lucida Console', monospace; line-height: 1.4; margin-top: 8px; }
article.post .source { font-size: 13px; color: #555; font-family: 'Lucida Console', monospace; margin: 6px 0 0 0; overflow-wrap: anywhere; }

article.post figure.pair .pair-row { display: flex; gap: 10px; align-items: flex-start; justify-content: center; }
article.post figure.pair .pair-row img { width: calc(50% - 5px); height: auto; }
@media (max-width: 600px) {
  article.post figure.pair .pair-row { flex-direction: column; }
  article.post figure.pair .pair-row img { width: 100%; }
}

article.post .formula { font-family: 'Lucida Console', monospace; font-size: 17px; text-align: center; margin: 16px 0; padding: 8px 10px; background: #fafafa; border-left: 4px solid #efda68; }
article.post .equation { margin: 16px 0; }
article.post .equation img { margin: 0 auto; max-width: min(100%, 320px); }

article.post .takeaways { margin: 0 0 1.2em 0; padding-left: 1.2em; }
article.post .takeaways li { margin: 0 0 0.8em 0; }

.foot { padding: 10px 20px 24px 20px; font-size: 14px; color: #888; text-align: center; }
.foot a { color: #888; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  a.hdr { border-radius: 16px 16px 0 0; padding: 12px 14px; }
  a.hdr h1 { font-size: 24px; }
  article.post { font-size: 18px; padding: 14px 12px 24px 12px; }
  article.post > h1 { font-size: 24px; }
}
