/* The Blog (Nov 25, blog.py): /blog and its posts in NoRep's own voice: the big italic caps titles, his red, big
   pictures without frames, Admin › Blog uses the
   form rules at the end. Nothing else loads this file.
   Nov 26 (his ask: "i want the words to fit the width of the page when stretched. No matter what the dimensions"): the
   column fills the page at every width, and every size inside it scales with the column (cqi = 1% of its width), so a
   line holds about the same words on a phone, a laptop or a wide screen. Phones keep their floors (17 px words). */

.blog { container-type: inline-size; width: 100%; margin: 0 auto; padding-inline: clamp(0px, 2vw, 48px); }
.blog-head { margin: 8px 0 clamp(28px, 4vw, 44px); }
.blog-title { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: max(38px, 6.4cqi); line-height: .95; letter-spacing: .005em; overflow-wrap: anywhere; }
.blog-lead { margin: 12px 0 0; font-size: max(18px, 1.9cqi); line-height: 1.45; color: var(--text-2); }
.blog-owner { margin: 16px 0 0; }
.blog-draft { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.blog-drafts { list-style: none; margin: 0 0 32px; padding: 0 0 20px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }

/* ---------------------------------------------------------------- the thread: full posts one after another */
.blog-thread { display: grid; gap: 0; }
.blog-item { padding: 0 0 clamp(48px, 6vw, 72px); margin: 0 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); min-width: 0; }
.blog-item:last-of-type { border-bottom: 0; }
.blog-item .blog-title { font-size: max(32px, 5.2cqi); }
.blog-title a { color: inherit; text-decoration: none; }
.blog-title a:hover { color: var(--accent); }
.blog-title-page { font-size: max(38px, 6.4cqi); }
.blog-back { margin: 4px 0 18px; font-size: 14px; }
.blog-draft-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.blog-post-head { margin: 24px 0 24px; }
.blog-by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.blog-by-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 180px; }
.blog-by-name { font-size: max(16px, 1.6cqi); font-weight: 700; color: inherit; text-decoration: none; }
.blog-meta { color: var(--text-2); font-size: max(14px, 1.3cqi); }
.blog-cover { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: cover; border-radius: 20px; }
.blog-video { position: relative; width: min(100%, calc((100vh - 150px) * 16 / 9)); margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.blog-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-body { font-size: max(17px, 1.9cqi); line-height: 1.6; overflow-wrap: break-word; }
.blog-body > * { margin: 0 0 1.1em; }
.blog-body h2 { margin: 1.4em 0 .5em; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: max(26px, 3.6cqi); line-height: 1; letter-spacing: .005em; }
.blog-body h3 { margin: 1.4em 0 .5em; font-size: 1.2em; line-height: 1.3; }
.blog-body ul, .blog-body ol { padding-left: 1.3em; }
.blog-body li { margin-bottom: .45em; }
.blog-body blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-size: 1.1em; font-weight: 600; }
.blog-body blockquote p { margin: 0; }
.blog-body strong { font-weight: 700; }
.blog-figure { margin: 28px 0; }
.blog-figure img { display: block; max-width: 100%; height: auto; max-height: 85vh; margin: 0 auto; border-radius: 14px; }
.blog-figure figcaption { margin-top: 10px; color: var(--text-2); font-size: max(14px, 1.3cqi); line-height: 1.45; text-align: center; }
@media (max-width: 599px) { .blog-body { font-size: 17px; } }

/* ---------------------------------------------------------------- the video's comments under a post: the top one, a
   second fading out, the box, Read more comments */
.blog-comments { font-size: max(15px, 1.5cqi); margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.blog-comments-count { margin: 0 0 14px; font-weight: 700; }
.blog-comment-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; }
.blog-comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.blog-comment.is-fading { max-height: 76px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.blog-comment-who { margin: 0 0 2px; font-size: .9em; }
.blog-comment-who a { font-weight: 700; color: inherit; text-decoration: none; }
.blog-comment-body { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.blog-comment-form { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0 0 14px; }
.blog-comments-more { width: 100%; justify-content: center; }
.blog-more { display: flex; justify-content: center; margin: 0 0 40px; }

/* ---------------------------------------------------------------- Admin › Blog's form */
.blog-form .field { display: grid; gap: 6px; }
.blog-form .field-label { font-weight: 600; }
.blog-form-body { min-height: 420px; font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.blog-form-cover { display: block; max-width: 320px; width: 100%; border-radius: 12px; }
.blog-form-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.blog-form-photos li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.blog-form-photos img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.blog-form-photos code { overflow-wrap: anywhere; font-size: 13px; }
.blog-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
