/*
 * Odyssey Coffees — blog additions.
 * Only what odyssey-full.css doesn't already cover. Colours sampled from it:
 *   green #2c633b · dark green #0e3719 · sage #7eb08c · cream #f5e8d6
 *   gold #cca875 · black #0b100d · Bebas Neue (headings) · DM Sans (body)
 */
:root {
  --od-green: #2c633b;
  --od-green-dark: #0e3719;
  --od-sage: #7eb08c;
  --od-cream: #f5e8d6;
  --od-gold: #cca875;
  --od-black: #0b100d;
  --od-green-muted: #3f6b4c; /* sage darkened for 4.5:1 on cream */
}

/* Sidebar: post titles are longer than ABOUT US / HISTORY — let them wrap, centred. */
.content-menu__links.blog {
  width: 100%;
  padding: 0 40px;
  justify-content: center;
}
.content-menu__links.blog .content__link-block {
  max-width: 100%;
  margin-top: 6px;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.05;
}
.content-menu__links.blog .content-link__icon { flex: 0 0 20px; }

/* Date line */
.blog-date {
  margin: 0 0 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--od-green-muted);
}
.blog-article .blog-date { margin: -6px 0 24px; font-size: 22px; }

/* Landing */
.blog-intro { margin-bottom: 0; }
.blog-list { margin-top: 30px; }
.blog-card {
  padding: 40px 0;
  border-bottom: 1px solid rgba(44, 99, 59, 0.2);
}
.blog-card:last-child { border-bottom: 0; }
.blog-card__image { display: block; margin-bottom: 20px; overflow: hidden; }
.blog-card__image .blog-figure { margin: 0; }
.blog-card__image img { transition: transform 400ms ease; }
.blog-card__image:hover img { transform: scale(1.02); }
.page-content__title.blog-card__title {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1;
}
.blog-card__title a { color: inherit; text-decoration: none; transition: color 200ms ease; }
.blog-card__title a:hover { color: var(--od-green-dark); }
.farm-store-link.blog-more { width: auto; margin-top: 0; padding-bottom: 0; display: inline-flex; }
.farm-store-link.blog-more .content-link__icon { width: 16px; height: 16px; margin-left: 8px; margin-bottom: 2px; }
.farm-store-link.blog-more:hover { color: var(--od-green-dark); }

/* Images: thumbs at full column width */
.blog-figure { margin: 30px 0; }
.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  background-color: rgba(44, 99, 59, 0.08);
}
.blog-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--od-green); }
.blog-cover { margin-top: 0; }

/* Article body (KirbyText output) */
.blog-text { color: var(--od-black); }
.blog-text p { margin: 0 0 18px; }
.blog-text h2 {
  margin: 44px 0 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--od-green);
}
.blog-text h3 {
  margin: 32px 0 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--od-green);
}
.blog-text h2 em, .blog-text h3 em { font-style: normal; }
.blog-text ul, .blog-text ol { margin: 0 0 18px; padding-left: 22px; }
.blog-text li { margin-bottom: 10px; }
.blog-text a { color: var(--od-green); text-decoration: underline; text-underline-offset: 2px; }
.blog-text a:hover { color: var(--od-green-dark); }
.blog-text blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--od-gold);
  font-size: inherit;
  line-height: inherit;
}

/* Prev / next */
.blog-pager {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(44, 99, 59, 0.2);
}
.blog-pager__link { display: flex; flex-direction: column; max-width: 48%; text-decoration: none; color: var(--od-green); }
.blog-pager__link--newer { margin-left: auto; text-align: right; }
.blog-pager__label { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--od-green-muted); }
.blog-pager__title { margin-top: 4px; font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1.05; }
.blog-pager__link:hover .blog-pager__title { color: var(--od-green-dark); }

@media screen and (max-width: 991px) {
  .content-menu__links.blog { padding: 0 20px; }
  .content-menu__links.blog .content__link-block { font-size: 24px; }
  .page-content__title.blog-card__title { font-size: 38px; }
}

@media screen and (max-width: 767px) {
  /* Mobile dropdown: the site sets nowrap on these links; post titles need to wrap. */
  .content-dropdown .content-menu__links.blog {
    width: min(80vw, 320px);
    padding: 6px 0;
    align-items: stretch;
  }
  .content-dropdown .content-menu__links.blog .content__link-block {
    justify-content: flex-start;
    padding: 10px 15px;
    white-space: normal;
    text-align: left;
  }
  .blog-card { padding: 30px 0; }
  .page-content__title.blog-card__title { font-size: 34px; }
  .blog-text h2 { font-size: 34px; }
  .blog-pager { flex-direction: column; }
  .blog-pager__link { max-width: 100%; }
}
