/* The blog and the changelog (/blog, /changelog; deploy/journal/build.py),
   served at /site/journal.css after site.css. These pages are the legal
   pages' (body[data-page="legal"], the column .legal of 44 rem, the site
   header and footer); only what they add is here. */

.journal { --honey: #e9b02a; --line: #ffffff1c; }
/* The legal pages start under their language links; these have none. */
.legal.journal { margin-top: 2.5rem; }
.journal-links { opacity: 0.75; font-size: 0.9em; margin: 0 0 2rem; }
.journal-empty { opacity: 0.7; }

/* /blog: one post after another. */
.journal-item { border-top: 1px solid var(--line); padding: 1.2rem 0 0.4rem; }
.journal-date { opacity: 0.65; font-size: 0.9em; margin: 0; }
.legal .journal-item h2 { font-size: 1.45rem; line-height: 1.25; margin: 0.25em 0 0.4em; color: inherit; }
.legal .journal-item h2 a, .legal .journal-entry h2 a { text-decoration: none; }
.legal .journal-item h2 a:hover { color: var(--honey); }

/* Seen on the development deployment only (build.py --drafts). */
.journal-draft {
  display: inline-block; margin-left: 0.6em; padding: 0.05em 0.5em; vertical-align: 0.1em;
  border: 1px dashed var(--honey, #e9b02a); border-radius: 0.3em; color: var(--honey, #e9b02a);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}

/* A post. */
body:not([data-page="home"]) .journal-post h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: normal; line-height: 1.15; margin: 0 0 0.4em; text-wrap: balance; }
.journal-body { font-size: 1.05rem; line-height: 1.65; }
.journal-body h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
.journal-body img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 0.5rem; }
.journal-body blockquote { margin: 1.5em 0; padding: 0.2em 0 0.2em 1.1em; border-left: 3px solid var(--honey); opacity: 0.9; }
.journal-body pre { background: #ffffff0f; padding: 0.8em 1em; border-radius: 0.5rem; overflow-x: auto; font-size: 0.9em; }
.journal-body pre code { background: none; padding: 0; }
.journal-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.journal-next { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.95em; }
.journal-next p { margin: 0.4em 0; }

/* /changelog: one entry per date, its anchor the date (#2026-11-04). */
.journal-entry { border-top: 1px solid var(--line); padding: 1.2rem 0 0.6rem; scroll-margin-top: 6rem; }
.legal .journal-entry h2 { color: inherit; font-size: 1.3rem; line-height: 1.3; margin: 0 0 0.6em; }
.legal .journal-entry h2 time { color: var(--honey); }
.journal-entry h3 { font-size: 0.8rem; font-weight: normal; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin: 1.2em 0 0.3em; }
.journal-entry ul { margin-top: 0.2em; }
.journal-entry li { margin: 0.2em 0; }

@media (max-width: 520px) {
  .legal .journal-item h2 { font-size: 1.25rem; }
  .journal-body { font-size: 1rem; }
}
