/* NeoPhoto blog: index and post pages */

.blog-page {
  --blog-ink: #1d1d1f;
  --blog-body: #333;
  --blog-muted: #6b6b6b;
  --blog-line: #eee2d3;
  --blog-warm: #f6f1e8;
  --blog-card: #ffffff;
  background-color: #fffefc;
  padding: 32px 20px 56px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--blog-body);
}

/* The site's global CSS styles every <header> as a white card; undo that here. */
.blog-page header {
  background: none;
  box-shadow: none;
  padding: 0;
}

/* ---------- Index ---------- */
.blog-index-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.blog-index-header h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--blog-ink);
  margin-bottom: 8px;
}
.blog-index-header p {
  font-size: 17px;
  color: var(--blog-muted);
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--blog-card);
  border: 1px solid var(--blog-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog-card:hover {
  box-shadow: 0 6px 20px rgba(60, 40, 10, 0.10);
  transform: translateY(-2px);
  color: inherit;
}
.blog-card-img {
  aspect-ratio: 1200 / 630;
  background: var(--blog-warm);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blog-ink);
  margin: 0;
}
.blog-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--blog-body);
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--blog-muted);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7a5a2e;
  background: var(--blog-warm);
  border-radius: 20px;
  padding: 2px 10px;
}
.blog-tag-draft {
  color: #8a3b12;
  background: #fde8d7;
}

/* ---------- Post ---------- */
.blog-article {
  max-width: 920px;
  margin: 0 auto;
}
.blog-breadcrumb {
  font-size: 14px;
  margin-bottom: 18px;
}
.blog-breadcrumb a {
  color: var(--blog-muted);
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  color: var(--blog-ink);
}
.blog-draft-note {
  font-size: 13px;
  color: #8a3b12;
  background: #fde8d7;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
}
.blog-header {
  margin-bottom: 28px;
}
.blog-header h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 750;
  color: var(--blog-ink);
  margin: 12px 0 14px;
  letter-spacing: -0.01em;
}
.blog-lede {
  font-size: 19px;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 12px;
}
.blog-meta {
  font-size: 14px;
  color: var(--blog-muted);
}

.blog-body {
  font-size: 17.5px;
  line-height: 1.75;
}
.blog-body p {
  margin: 0 0 1.15em;
}
.blog-body h2 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--blog-ink);
  margin: 2.1em 0 0.6em;
}
.blog-body h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--blog-ink);
  margin: 1.7em 0 0.5em;
}
.blog-body ul,
.blog-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.blog-body li {
  margin-bottom: 0.45em;
}
.blog-body li > ul {
  margin-top: 0.45em;
}
.blog-body a {
  color: #0b62c4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-body strong {
  color: var(--blog-ink);
}

.blog-figure {
  margin: 28px 0;
}
.blog-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: var(--blog-warm);
}
.blog-figure figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--blog-muted);
  margin-top: 10px;
  text-align: center;
}
@media (min-width: 900px) {
  .blog-figure-wide {
    margin-left: -80px;
    margin-right: -80px;
  }
}
.blog-figure-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.blog-figure-row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.blog-figure-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 560px) {
  .blog-figure-row.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.blog-figure-row figure {
  margin: 0;
}
.blog-figure-row img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.blog-figure-row .label {
  font-size: 13px;
  text-align: center;
  color: var(--blog-muted);
  margin-top: 6px;
}

.blog-tip {
  background: var(--blog-warm);
  border-left: 4px solid #d7b98c;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 16px;
  line-height: 1.65;
}
.blog-tip-title {
  font-weight: 700;
  color: var(--blog-ink);
  margin-bottom: 4px;
}
.blog-tip-body p:last-child,
.blog-tip-body ul:last-child {
  margin-bottom: 0;
}

.blog-prompts {
  list-style: none;
  padding: 0 !important;
  margin: 18px 0 22px;
}
.blog-prompts li {
  background: #fff;
  border: 1px solid var(--blog-line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
}
.blog-prompts li::before {
  content: "“";
  color: #c49a5c;
  font-weight: 700;
}
.blog-prompts li::after {
  content: "”";
  color: #c49a5c;
  font-weight: 700;
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px;
}
.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}
.blog-body th,
.blog-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--blog-line);
  vertical-align: top;
}
.blog-body th {
  background: var(--blog-warm);
  color: var(--blog-ink);
  font-weight: 700;
}

.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #1d1d1f;
  color: #f2f2f2;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 32px 0;
  font-size: 16px;
  line-height: 1.5;
}
.blog-cta-name {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.blog-cta-btn {
  background: #fff !important;
  color: #1d1d1f !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
}
.blog-cta-btn:hover {
  background: #f0e6d8 !important;
}

/* "More from the blog": a full-width band, visually separate from the article.
   Negative margins cancel .blog-page's side and bottom padding so the band
   runs edge to edge and down to the footer. */
.blog-related {
  margin: 72px -20px -56px;
  padding: 44px 20px 56px;
  background: #f1ebe0;
  border-top: 1px solid #e6dccb;
}
.blog-related-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.blog-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.blog-related-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7442;
  margin-bottom: 4px;
}
.blog-related h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--blog-ink);
  margin: 0;
}
.blog-related-all {
  font-size: 15px;
  font-weight: 600;
  color: var(--blog-ink);
  text-decoration: none;
  white-space: nowrap;
}
.blog-related-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-related .blog-card {
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(60, 40, 10, 0.08);
}
.blog-related .blog-card:hover {
  box-shadow: 0 8px 24px rgba(60, 40, 10, 0.14);
}

@media (max-width: 640px) {
  .blog-page {
    padding: 20px 14px 40px;
  }
  .blog-related {
    margin: 56px -14px -40px;
    padding: 32px 14px 40px;
  }
  .blog-related h2 {
    font-size: 21px;
  }
  /* compact rows on phones: thumbnail beside the title */
  .blog-related .blog-grid {
    gap: 12px;
  }
  .blog-related .blog-card {
    flex-direction: row;
    align-items: center;
  }
  .blog-related .blog-card-img {
    width: 116px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }
  .blog-related .blog-card-body {
    padding: 10px 14px;
    gap: 4px;
  }
  .blog-related .blog-card-title {
    font-size: 15.5px;
  }
  .blog-header h1 {
    font-size: 29px;
  }
  .blog-lede {
    font-size: 17px;
  }
  .blog-body {
    font-size: 16.5px;
  }
  .blog-body h2 {
    font-size: 23px;
  }
  .blog-index-header h1 {
    font-size: 28px;
  }
}
