/* NMR Journal — blog-specific styles
   Loaded only on /blog/ pages, in addition to shared.css.
   Reuses the existing site's CSS variables and adds three new ones. */

/* Sticky footer for blog pages: keeps the footer pinned to the
   bottom of the screen on short pages (e.g. a single post) instead
   of leaving empty space beneath it. Scoped here, not in shared.css,
   so it can't affect any of the existing pages. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
footer {
  margin-top: auto;
}

:root {
  --teal-pale: #A9CCC7;
  --teal-dark: #2E5754;
  --gold:      #D9A441;
}

/* ===== Journal header / filter bar ===== */
.journal-header {
  padding: calc(82px + 2.5rem) 5.5rem 0.5rem;
}
.journal-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0 0 0.4rem;
}
.journal-intro {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  max-width: 34rem;
  margin: 0;
}
.journal-filters {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1.2rem 5.5rem;
  font-size: 0.8rem;
}
.journal-filters a {
  color: var(--teal);
  text-decoration: none;
}
.journal-filters a.active {
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

/* ===== Post list (index page) ===== */
.post-list {
  padding: 0 5.5rem 2rem;
}
.post-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.post-row:last-child { border-bottom: none; }
.post-thumb {
  width: 130px;
  height: 92px;
  background: var(--teal-pale);
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}
.post-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.post-category.cat-strategy, .post-category.cat-comms { color: var(--gold); }
.post-category.cat-field-notes { color: var(--terracotta); }
.post-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 0.3rem 0 0.4rem;
  line-height: 1.3;
}
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--teal-dark); }
.post-summary-line {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin: 0 0 0.4rem;
  line-height: 1.4;
}
.post-meta {
  font-size: 0.78rem;
  color: var(--teal);
}

/* ===== Single post page ===== */
.post-breadcrumb {
  padding: calc(82px + 1rem) 5.5rem 1rem;
  font-size: 0.78rem;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-pale);
}
.post-breadcrumb a { color: var(--teal); text-decoration: none; }
.post-header {
  padding: 2rem 5.5rem 0;
}
.post-headline {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 0.9rem;
}
.post-byline {
  font-size: 0.82rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.post-hero {
  margin: 0 5.5rem 0.4rem;
  width: calc(100% - 11rem);
  max-height: 420px;
  border-radius: 8px;
  background: var(--teal-pale);
  object-fit: cover;
  display: block;
}
.post-hero-placeholder {
  margin: 0 5.5rem 0.4rem;
  height: 260px;
  background: var(--teal-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  font-size: 0.85rem;
}
.post-caption {
  margin: 0 5.5rem 1.5rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}
.post-summary {
  margin: 0 5.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--teal-pale);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 38rem;
}
.post-summary strong { color: var(--text-dark); }

.share-row {
  display: flex;
  gap: 0.8rem;
  padding: 0 5.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.share-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--teal-dark);
  text-decoration: none;
}
.share-row a:hover { background: var(--teal-pale); }

.post-body {
  padding: 1.75rem 5.5rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.post-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: var(--teal-dark);
  margin: 1.75rem 0 0.75rem;
}
.post-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 1.4rem 0 0.6rem;
}
.post-body p { margin: 0 0 1rem; }
.post-body a { color: var(--teal-dark); }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding-left: 1rem;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--teal-dark);
  line-height: 1.5;
}
.post-body ul, .post-body ol { margin: 0 0 1rem 1.2rem; }

.post-tags {
  padding: 0 5.5rem 1.5rem;
  font-size: 0.78rem;
  color: var(--teal);
}
.post-tags span { color: var(--teal-dark); font-weight: 500; }

.recommended {
  background: #fff;
  border-top: 1px solid var(--teal-pale);
  padding: 1.75rem 5.5rem;
}
.recommended-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0 0 1rem;
}
.recommended-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.recommended-thumb {
  width: 100%;
  height: 80px;
  background: var(--teal-pale);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}
.recommended-item-title {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.3;
  margin-top: 0.2rem;
  text-decoration: none;
  display: block;
}

/* ===== Mobile ===== */
@media (max-width: 700px) {
  .journal-header, .journal-filters, .post-list,
  .post-breadcrumb, .post-header, .post-body, .post-tags, .recommended {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .post-hero, .post-hero-placeholder, .post-caption, .post-summary {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    width: auto;
  }
  .post-row { flex-direction: column; }
  .post-thumb { width: 100%; height: 160px; }
  .post-headline { font-size: 1.5rem; }
  .recommended-grid { grid-template-columns: 1fr; }
}
