/* Journal: posts (/<post>/), the index (/journal/) and category archives (/category/<name>/). Loaded after pages.css. Values follow the original theme
   ("single post" template) and the site's own overrides. */

.single-post { position: relative; display: flow-root; margin-bottom: 100px; }
.single-post.no-cover { padding-bottom: 30px; }

/* ---------- header ---------- */
.post-header { position: relative; width: 100%; }
.post-header.no-thumb { z-index: 2; margin-bottom: 50px; padding-top: 200px; background: #ebebeb; }
.post-header .post-image { position: relative; }
.post-header .post-image,
.post-header .post-image img { width: 100%; height: 50vh; object-fit: cover; object-position: center; }
.post-header .post-image img { display: inline; vertical-align: baseline; }

/* Theme "wrapper-small", as overridden by the site's own stylesheet. */
.post-details-wrapper,
.post-body { width: 100%; margin-inline: auto; }
.post-details-wrapper { position: relative; overflow: hidden; margin-block: 35px; }
.post-header.no-thumb .post-details-wrapper { margin-top: 80px; }
.post-body { margin-bottom: 100px; padding-bottom: 30px; }
.post-body::after { content: ""; display: table; clear: both; }
@media (min-width: 576px) { .post-details-wrapper, .post-body { max-width: 95%; } }
@media (min-width: 992px) { .post-details-wrapper, .post-body { max-width: 960px; } }
@media (min-width: 1200px) { .post-details-wrapper, .post-body { max-width: 1200px; } }
@media (min-width: 1600px) { .post-details-wrapper, .post-body { max-width: 1500px; } }
@media (max-width: 576px) {
  .post-details-wrapper, .post-body { max-width: 90%; }
  .post-body { margin-bottom: 25px; padding-bottom: 35px; }
}

.post-details { float: left; box-sizing: border-box; width: 100%; margin-bottom: 30px; padding-inline: 15px; }
.post-header.no-thumb .post-details { padding-inline: 0; }
@media (max-width: 576px) { .post-details { margin-bottom: 35px; } }
.post-metas { float: left; width: 100%; margin-bottom: 30px; }
.post-header.no-thumb .post-metas { margin-bottom: 10px; }
.post-date,
.post-category { display: inline-block; color: #fff; font-size: 14px; font-weight: 400; }
.single-post.no-cover .post-date,
.post-category { margin-left: 0.3em; }
.post-category::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin: -1px 10px 0;
  background: rgba(25, 27, 29, 0.6);
  vertical-align: middle;
}
.post-category a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
.entry-title {
  margin: 0.67em 0 1em;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 65px;
  letter-spacing: -0.06em;
}
@media (max-width: 450px) {
  .entry-title { font-size: 30px; line-height: 40px; }
}

/* ---------- body ---------- */
/* Floated, so it shrinks to its content as in the theme (short fables set narrower lines). */
.entry-content { float: left; clear: both; max-width: 100%; margin-bottom: 35px; }
.entry-content.has-gap { margin-bottom: 70px; }
.entry-content p { margin: 14px 0 15px; line-height: 28px; }
.entry-content a { color: #fff; font-weight: 500; text-decoration: none; }
.entry-content :is(strong, b) { font-weight: 700; }
.entry-content .indent { padding-left: 60px; }
.entry-content .underline { text-decoration: underline; }
.entry-content :is(.t-h4, .t-h5) { margin-left: -1px; color: #fff; }
.entry-content .t-h4 { margin-block: 1.33em 1em; font-size: 24px; font-weight: 700; line-height: 35px; letter-spacing: -0.75px; }
.entry-content .t-h5 { margin-block: 1.67em 1em; font-size: 18px; font-weight: 400; line-height: 35px; }
.entry-content img { max-width: 100%; height: auto; }
.post-figure { max-width: 100%; margin: 0 0 1.5em; }
.post-figure img { display: block; margin-inline: auto; }
.post-figure figcaption { margin: 0.8075em 0; text-align: center; }

/* Posts laid out in the page builder: one wide column of blocks. */
.post-columns { width: 100%; margin: 0 auto 100px; padding: 10px; }
@media (min-width: 576px) { .post-columns { max-width: 90%; } }
@media (min-width: 992px) { .post-columns { max-width: 950px; } }
@media (min-width: 1200px) { .post-columns { max-width: 1174px; } }
@media (min-width: 1450px) { .post-columns { max-width: 1274px; } }
@media (min-width: 1600px) { .post-columns { max-width: 1500px; } }
@media (max-width: 576px) { .post-columns { width: 95%; max-width: 100%; margin-bottom: 25px; } }
.post-block { display: flow-root; position: relative; }
.post-block:not(:last-child) { margin-bottom: 20px; }
.post-block.is-image { text-align: center; }
.post-block .post-figure { margin: 0; }
.post-block .post-figure:not(:has(figcaption)) { margin-bottom: 0.8075em; }
.post-block .single-image img { display: inline; }
.post-block.is-image > img { display: inline-block; vertical-align: middle; }

/* ---------- next post ---------- */
.post-navigation {
  position: relative;
  float: left;
  clear: both;
  width: 100%;
  margin: 0 0 21px;
  padding: 35px 0;
}
.post-navigation::before,
.post-navigation::after {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(25, 27, 29, 0.2);
}
.post-navigation::before { top: 0; }
.post-navigation::after { bottom: 0; }
.nav-next { display: block; float: left; width: 50%; color: #fff; text-decoration: none; }
.nav-subtitle { display: block; margin: 0 0 10px; font-size: 18px; line-height: 35px; }
.nav-title {
  display: block;
  margin: 30px 0 30px -1px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.75px;
}

/* ---------- index (/journal/) ---------- */
/* The two bands were page-builder "boxed" containers: 10px side padding, 1140px content. */
.journal-intro,
.journal-list { padding-inline: 10px; }
.journal-inner { max-width: 1140px; margin-inline: auto; padding-block: 10px; }
@media (max-width: 1024px) { .journal-inner { max-width: 1024px; } }
@media (max-width: 767px) { .journal-inner { max-width: 767px; } }
.journal-intro .text-wrapper { display: flow-root; }
.journal-lead {
  margin: 0.67em 0 1em;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 65px;
  letter-spacing: -0.06em;
}
.journal-list .journal-inner { display: flow-root; }
.blog-list { margin-top: 50px; }
.blog-list .post { position: relative; display: block; overflow: hidden; margin-bottom: 45px; padding-bottom: 30px; }
.blog-list .post::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  background: hsla(0, 0%, 100%, 0.4);
}
.blog-list .post > .post-image { display: none; }
.blog-list .post-date,
.blog-list .post-cat { display: inline-block; margin: 0 0 20px; color: #fff; font-size: 14px; }
.blog-list .post-date { margin-left: 0.3em; }
.blog-list .post-date::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin: 0 15px;
  background: hsla(0, 0%, 100%, 0.4);
  vertical-align: middle;
}
.blog-list .post-cat > span { color: hsla(0, 0%, 100%, 0.4); }
.blog-list .post-cat > a { color: #fff; text-decoration: none; }
.blog-list .post > a { color: #fff; text-decoration: none; }
.blog-list .post-title h2 { margin: 0 0 10px; font-size: 36px; font-weight: 700; line-height: 50px; letter-spacing: -0.06em; }
.blog-list .post-summary {
  display: block;
  float: left;
  margin: 0 0 16px -1px;
  color: hsla(0, 0%, 100%, 0.4);
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
}
/* Hover images: the handler moves each post's image here and follows the pointer. */
.blog-list .post-images { position: fixed; z-index: 1; width: 30%; transform: translate(50px, 50px); pointer-events: none; }
.blog-list .post-images .post-image { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 50vh; overflow: hidden; }
.blog-list .post-images .post-image img { width: 100%; max-width: unset; height: 50vh; object-fit: cover; }
@media (max-width: 450px) { .blog-list .post-images { width: 60%; } }

/* ---------- category archives (/category/<name>/) ---------- */
.page-header.archive-header { padding-top: 200px; }
.archive-title {
  margin: 0.67em 0 1em;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 65px;
  letter-spacing: -0.06em;
}
/* Theme "wrapper" (1274px) with a 50px-padded column. */
.archive-list { width: 100%; margin: 0 auto 100px; }
.archive-list::after { content: ""; display: table; clear: both; }
@media (min-width: 576px) { .archive-list { max-width: 90%; } }
@media (min-width: 992px) { .archive-list { max-width: 1014px; } }
@media (min-width: 1200px) { .archive-list { max-width: 1274px; } }
@media (min-width: 1600px) { .archive-list { max-width: 1500px; } }
/* Its 25px phone margin met the theme section's 100px: the larger one shows. */
@media (max-width: 576px) { .archive-list { max-width: 90%; } }
.blog-archive { float: left; box-sizing: border-box; width: 100%; margin-bottom: 30px; padding: 0 50px; }
@media (max-width: 576px) { .blog-archive { margin-bottom: 35px; } }
@media (max-width: 450px) {
  .blog-archive { padding: 0; }
}
.archive-post { position: relative; display: block; overflow: hidden; margin-bottom: 45px; padding-bottom: 30px; }
.archive-post::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(25, 27, 29, 0.2);
}
.archive-post > a { color: #fff; text-decoration: none; }
.archive-post .post-title { margin: 0 0 10px; font-size: 36px; font-weight: 700; line-height: 50px; letter-spacing: -0.06em; }
.archive-post .post-summary p { margin: 14px 0 15px; color: #fff; line-height: 28px; }
.archive-post.no-thumb .post-summary { display: block; float: left; margin: 0; font-size: 16px; line-height: 32px; }
.archive-post.no-thumb .post-summary p { margin-top: 16px; }
.archive-post .post-image img { width: 100%; height: auto; }
.post-read { display: block; float: left; clear: both; overflow: hidden; }
a.hov-underline {
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
a.hov-underline::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-block;
  width: 100%;
  height: 1.5px;
  background: #191b1d;
  transition: width 0.3s ease;
}
a.hov-underline:hover::after { width: 0%; }

/* ---------- Project Archive (/our-work/archive/) ----------
   Same markup as the category archives, laid out as the theme laid out projects: no rule between
   entries, the title keeps the browser's heading margins, and each floated Read More pushes the
   next image down a line. "Older posts" / "Newer posts" sit on their own line below the list
   (the original ran them into the last Read More), with the same hover underline. */
.project-archive .archive-post { position: static; overflow: visible; margin: 0; padding: 0; }
.project-archive .archive-post::after { content: none; }
.project-archive .archive-post .post-title { margin: 0.83em 0 1em; }
.posts-nav { display: block; float: left; clear: both; width: 100%; margin: 30px 0 1.5em; }
.posts-nav a + a { margin-left: 30px; }
