/* =========================================================
   Blog (blog/index.html): a simple black-and-white blog, loaded after /home.css.
   White background, black text, one screenshot per post. Same in light and dark mode.
   ========================================================= */
html:has(.blog-page) { color-scheme: light; }
.blog-page {
  --paper: #FFFFFF; --ink: #000000; --ink-2: #1A1A1A; --muted: #555555; --line: #E2E2E2;
  background: #FFFFFF; color: #000000;
}
/* header and footer in black and white too */
.blog-page .brand__name { color: #000; }
.blog-page .nav a:not(.btn) { color: #333; }
.blog-page .nav a:not(.btn)::after, .blog-page .nav a.nav__hl::after { background: #000; }
.blog-page .btn--ink { background: #000; color: #fff; }
.blog-page .btn--ink:hover { background: #333; color: #fff; box-shadow: none; }
.blog-page .header.is-scrolled, .blog-page .header.menu-open { background: rgba(255, 255, 255, .96); }
.blog-page .nav { background: #fff; }
.blog-page ::selection { background: #000; color: #fff; }
.blog-page :focus-visible { outline-color: #000; }

.blog {
  max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) var(--gutter) var(--sec);
  font-family: Georgia, "Times New Roman", serif;
}
.blog h1, .blog h2, .blog h3, .post__meta, .blog__list, .post__link, .blog__end { font-family: var(--body); }

/* page heading + list of posts */
.blog__head { padding-bottom: 32px; border-bottom: 1px solid #000; }
.blog__head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.blog__head > p { margin-top: 10px; font-size: 1.15rem; color: #333; }
.blog__list { margin-top: 22px; padding-left: 1.3em; list-style: decimal; font-size: 1.02rem; }
.blog__list li + li { margin-top: 6px; }
.blog__list a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.blog__list a:hover { text-decoration-thickness: 2px; }

/* a post */
.post { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid #000; scroll-margin-top: var(--header-h); }
.post__meta { font-size: 13.5px; color: #555; letter-spacing: .02em; }
.post h2 { margin-top: 8px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.post__shot { margin: 26px 0 0; }
.post__shot img { width: 100%; height: auto; border: 1px solid #000; }
.post__body { margin-top: 26px; font-size: 1.12rem; line-height: 1.75; color: #111; }
.post__body p + p, .post__body ol + p, .post__body ul + p { margin-top: 1.1em; }
.post__body h3 { margin-top: 1.6em; font-size: 1.2rem; font-weight: 700; }
.post__body ol, .post__body ul { margin-top: .6em; padding-left: 1.4em; }
.post__body ol { list-style: decimal; }
.post__body ul { list-style: disc; }
.post__body li + li { margin-top: .35em; }
.post__body a, .blog__end a { color: #000; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.post__body .post__link { margin-top: 1.6em; }
.post__body a:hover, .blog__end a:hover { text-decoration-thickness: 2px; }

.blog__end { margin-top: 40px; font-size: 1.05rem; }

@media (max-width: 560px) {
  .post__body { font-size: 1.05rem; }
}
