

/* Journal (blog): the post list, single posts, and the homepage's journal block */

/* --- post cards (list page, "more posts", homepage) --- */

.journal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
}
article.journal-card {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
article.journal-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
a.journal-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
/* the proportions of the blog_card_image version (gbl.* settings aren't
   available to stylesheets) */
.journal-card-image {
  aspect-ratio: 3 / 2;
  background: #F4EFEC;
  overflow: hidden;
}
.journal-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 18px 18px 18px;
}
p.journal-card-date {
  margin: 0 0 6px 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}
.journal-card-title {
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: normal;
  line-height: 1.3;
  color: #222;
}
p.journal-card-excerpt {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}
span.journal-card-more {
  margin-top: auto;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A65A55;
}

/* --- the journal list page --- */

.journal-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0 30px 0;
}
.journal-intro {
  text-align: center;
  margin: 10px auto 24px auto;
  max-width: 700px;
}
.journal-intro h1 {
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: normal;
}
.journal-intro p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}
nav.journal-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px 0;
}
nav.journal-categories a {
  padding: 5px 14px;
  border: 1px solid #DDD;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
}
nav.journal-categories a:hover {
  border-color: #A65A55;
}
nav.journal-categories a.active {
  background: #A65A55;
  border-color: #A65A55;
  color: #fff;
}
nav.journal-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 32px 0 0 0;
  font-size: 0.9rem;
}
nav.journal-pagination a {
  color: #A65A55;
  text-decoration: none;
}
span.journal-page {
  color: #777;
}
p.journal-empty {
  text-align: center;
  margin: 40px 0;
  color: #666;
}

/* --- a single post --- */

article.journal-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 30px 0;
}
.journal-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 1em;
  padding: 0.75em 1em;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 4px;
  color: #664d03;
  font-size: 0.95rem;
  text-align: center;
}
header.journal-post-header {
  text-align: center;
  margin: 0 0 24px 0;
}
.journal-post-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 0 10px 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.journal-post-categories a {
  color: #A65A55;
  text-decoration: none;
}
header.journal-post-header h1 {
  margin: 0 0 12px 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: normal;
  line-height: 1.2;
}
p.journal-post-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #777;
}
.journal-post-cover {
  margin: 0 0 28px 0;
}
.journal-post-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.journal-post-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2a2a2a;
  overflow-wrap: break-word;
}
.journal-post-body p {
  margin: 0 0 1.1em 0;
}
.journal-post-body h2,
.journal-post-body h3 {
  font-family: 'Playfair Display', serif;
  font-weight: normal;
  line-height: 1.3;
  margin: 1.6em 0 0.5em 0;
}
.journal-post-body h2 {
  font-size: 1.6rem;
}
.journal-post-body h3 {
  font-size: 1.3rem;
}
.journal-post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: 4px;
}
.journal-post-body blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid #A65A55;
  font-style: italic;
  color: #555;
}
.journal-post-body ul,
.journal-post-body ol {
  margin: 0 0 1.1em 0;
  padding-left: 1.5em;
}
.journal-post-body a {
  color: #A65A55;
}
.journal-post-footer {
  margin: 36px 0 0 0;
  padding: 20px 0 0 0;
  border-top: 1px solid #ECECEC;
  text-align: center;
}
.journal-post-footer a {
  color: #A65A55;
  text-decoration: none;
  font-size: 0.9rem;
}
section.journal-more {
  max-width: 1100px;
  margin: 40px auto 0 auto;
}
section.journal-more h2 {
  margin: 0 0 16px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
}

/* --- homepage block (laid out like the Instagram feed beside it) --- */

div#journal-feed {
  width: 100%;
  margin: 30px 0 0 0;
  padding: 0;
}
div#journal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 14px 0;
  padding: 0 0 6px 0;
  border-bottom: 1px solid #ECECEC;
}
div#journal-header h2 {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 0.5px;
}
div#journal-header a {
  flex: 0 0 auto;
  margin-left: 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #333;
}

@media only screen and (max-width: 600px) {
  .journal-intro h1 {
    font-size: 1.8rem;
  }
  header.journal-post-header h1 {
    font-size: 1.8rem;
  }
  .journal-post-body {
    font-size: 1rem;
  }
  .journal-cards {
    gap: 20px;
  }
}
