@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Lora-Variable.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Lora-Italic-Variable.ttf") format("truetype");
}

:root {
  --blog-bg: #27282b;
  --blog-card: #303236;
  --blog-text: #f4f5f6;
  --blog-muted: #b6bac1;
  --blog-border: rgba(255, 255, 255, 0.08);

  /* Post body (sand section) — change these to retune all imported posts at once */
  --blog-post-prose-font: "Lora", Georgia, "Times New Roman", serif;
  --blog-post-prose-size: 1.125rem;
  --blog-post-prose-weight: 400;
  --blog-post-prose-line: 1.62;
  --blog-post-prose-color: #232526;
  --blog-post-meta-size: 0.95rem;
  --blog-post-heading-font: "DM Serif Display", Georgia, "Times New Roman", serif;
  --blog-post-heading-weight: 400;
  --blog-post-heading-color: #141618;
  --blog-post-bold-weight: 600;
  --blog-post-link: #134b6f;
  --blog-post-link-hover: #0d3552;
  --blog-post-pullquote-bg: rgba(255, 255, 255, 0.55);
  --blog-post-pullquote-border: rgba(0, 0, 0, 0.22);
  --blog-post-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --blog-post-code-bg: rgba(0, 0, 0, 0.055);
  --blog-post-code-border: rgba(0, 0, 0, 0.12);
}

body.blog-page {
  background: var(--blog-bg);
  color: var(--blog-text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-main {
  padding-bottom: 4rem;
}

.blog-post-main {
  min-height: 100vh;
}

.blog-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: end start;
  overflow: hidden;
}

.blog-post-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: var(--blog-bg);
}

.blog-post-hero__content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0;
  max-width: 860px;
}

.blog-post-hero__meta {
  margin: 1rem 0 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.blog-post-body-section {
  background: var(--color-sand);
  color: #2a2a2a;
  min-height: 55vh;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.blog-post-body-wrap {
  max-width: 860px;
}

/* Article prose: typography lives in CSS variables above (not inline in stored HTML). */
.blog-post-body {
  font-family: var(--blog-post-prose-font);
  font-weight: var(--blog-post-prose-weight);
  font-size: var(--blog-post-prose-size);
  line-height: var(--blog-post-prose-line);
  color: var(--blog-post-prose-color);
}

.blog-post-body > *:first-child {
  margin-top: 0;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  font-family: var(--blog-post-heading-font);
  font-weight: var(--blog-post-heading-weight);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 1.65rem 0 0.65rem;
  color: var(--blog-post-heading-color);
}

.blog-post-body h2 {
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
}

.blog-post-body h3 {
  font-size: clamp(1.28rem, 2vw, 1.48rem);
}

.blog-post-body h4 {
  font-size: clamp(1.08rem, 1.65vw, 1.22rem);
  letter-spacing: -0.015em;
}

.blog-post-body h5,
.blog-post-body h6 {
  font-family: var(--blog-post-prose-font);
  font-weight: var(--blog-post-bold-weight);
  font-size: var(--blog-post-meta-size);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 1.35rem 0 0.45rem;
  color: var(--blog-post-heading-color);
}

.blog-post-body p {
  margin: 0 0 1.1rem;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.blog-post-body strong,
.blog-post-body b {
  font-weight: var(--blog-post-bold-weight);
}

.blog-post-body em,
.blog-post-body i {
  font-style: italic;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.blog-post-body li {
  margin: 0.4rem 0;
}

.blog-post-body li > ul,
.blog-post-body li > ol {
  margin-bottom: 0;
}

.blog-post-body figure {
  margin: 1.35rem auto;
  max-width: 100%;
}

.blog-post-body img,
.blog-post-body video {
  display: block;
  max-width: 75%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-body figure img {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-body figcaption {
  font-family: var(--blog-post-prose-font);
  font-size: var(--blog-post-meta-size);
  line-height: 1.45;
  color: #555;
  margin-top: 0.5rem;
}

.blog-post-body hr {
  border: 0;
  height: 1px;
  margin: 1.75rem 0;
  background: rgba(0, 0, 0, 0.14);
}

.blog-post-body blockquote {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem 1rem 1.15rem;
  border-left: 4px solid var(--blog-post-pullquote-border);
  background: var(--blog-post-pullquote-bg);
  font-style: italic;
}

.blog-post-body blockquote p:last-child {
  margin-bottom: 0;
}

.blog-post-body cite {
  font-style: normal;
  font-size: var(--blog-post-meta-size);
  color: #555;
}

.blog-post-body code {
  font-family: var(--blog-post-code-font);
  font-size: 0.88em;
  padding: 0.12em 0.38em;
  border-radius: 4px;
  background: var(--blog-post-code-bg);
  border: 1px solid var(--blog-post-code-border);
}

.blog-post-body pre {
  font-family: var(--blog-post-code-font);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 1.15rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--blog-post-code-bg);
  border: 1px solid var(--blog-post-code-border);
}

.blog-post-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.15rem 0;
  font-size: 0.95em;
}

.blog-post-body th,
.blog-post-body td {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: top;
}

.blog-post-body th {
  font-weight: var(--blog-post-bold-weight);
  text-align: left;
  background: rgba(0, 0, 0, 0.04);
}

.blog-post-body a {
  color: var(--blog-post-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-body a:hover {
  color: var(--blog-post-link-hover);
}

/* Optional classes for blocks that need to differ from default prose (set in admin editor) */
.blog-post-body .blog-lead {
  font-size: 1.2em;
  line-height: 1.45;
  color: var(--blog-post-heading-color);
  margin-bottom: 1.25rem;
}

.blog-post-body .blog-fine,
.blog-post-body .blog-meta {
  font-size: var(--blog-post-meta-size);
  line-height: 1.5;
  color: #4a4c4f;
}

.blog-post-body .blog-emphasis {
  font-weight: var(--blog-post-bold-weight);
  color: var(--blog-post-heading-color);
}

.blog-post-body p.blog-pullquote,
.blog-post-body .blog-pullquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem 1.1rem 1.1rem;
  border-left: 4px solid var(--blog-post-pullquote-border);
  background: var(--blog-post-pullquote-bg);
  font-style: italic;
  font-size: 1.05em;
}

.blog-post-body .blog-callout {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-post-body .blog-label {
  display: block;
  font-family: var(--blog-post-prose-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a5c5f;
  margin: 0 0 0.35rem;
}

.blog-post-body p.blog-caption,
.blog-post-body .blog-caption {
  margin: 0.35rem auto 1.15rem;
  max-width: 52ch;
  font-size: 0.9em;
  line-height: 1.45;
  font-style: italic;
  text-align: center;
  color: #555;
}

/* Video / audio embeds (Podbean, YouTube, Vimeo) */
.blog-post-body iframe[src*="podbean"],
.blog-post-body iframe[src*="youtube.com"],
.blog-post-body iframe[src*="youtube-nocookie.com"],
.blog-post-body iframe[src*="youtu.be"],
.blog-post-body iframe[src*="vimeo.com"],
.blog-post-body iframe[data-name="pb-iframe-player"] {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  margin: 1rem auto 1.5rem;
  min-height: 150px;
  aspect-ratio: 16 / 9;
  height: auto;
}

.blog-hero__media {
  position: absolute;
  inset: 0;
}

.blog-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.15) 100%);
}

.blog-hero__content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0;
  max-width: 640px;
  transform: none;
}

@media (min-width: 1025px) {
  .blog-hero__content {
    transform: translateX(-2.4rem);
  }
}

@media (min-width: 681px) and (max-width: 1024px) {
  .blog-hero__content {
    transform: translateX(-1.1rem);
  }
}

.blog-hero h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.blog-hero p {
  margin: 1rem 0 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 62ch;
}

.podcast-hero {
  min-height: clamp(360px, 52vw, 560px);
}

.podcast-hero__content {
  max-width: 760px;
  padding-bottom: 2rem;
  transform: translateX(-3rem);
}

.podcast-hero__logo {
  display: block;
  width: min(390px, 80vw);
  max-width: 100%;
  height: auto;
}

.podcast-hero__services {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.podcast-hero__services a {
  display: inline-flex;
}

.podcast-hero__services img {
  display: block;
  width: 140px;
  max-width: 32vw;
  height: auto;
}

.podcast-latest {
  background: var(--color-sand);
  color: #252729;
  padding: 2.2rem 0 2.6rem;
}

.podcast-latest__wrap {
  max-width: none;
}

.podcast-latest__kicker {
  margin: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.podcast-latest__title {
  margin: 0.35rem 0 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.podcast-latest__excerpt {
  margin: 0.9rem 0 1rem;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.4;
}

.podcast-latest__player {
  min-height: 0;
}

@media (max-width: 1024px) {
  .podcast-hero__content {
    transform: translateX(-1.4rem);
  }
}

.blog-posts {
  padding: 2.5rem 0 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--blog-card);
  border: 1px solid var(--blog-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}

.blog-card__body {
  padding: 0.9rem 0.95rem 1rem;
}

.blog-card__type {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--blog-muted);
}

.blog-card__title {
  margin: 0.5rem 0 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 1.75vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.blog-card__excerpt {
  margin: 0.55rem 0 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  font-size: 1.02rem;
}

.blog-card__date {
  margin: 0.7rem 0 0;
  color: var(--blog-muted);
  font-size: 0.95rem;
}

.blog-empty,
.blog-error {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--blog-border);
  background: var(--blog-card);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  margin-top: 1.5rem;
}

.blog-pagination__button {
  min-width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--blog-border);
  background: transparent;
  color: var(--blog-text);
  cursor: pointer;
  font: inherit;
  padding: 0 0.7rem;
}

.blog-pagination__button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-pagination__button.is-active {
  background: #f2f4f7;
  color: #1b1d22;
}

@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .blog-hero {
    min-height: 300px;
  }

  .blog-hero__content {
    padding: 2.25rem 0;
    padding-inline: 0;
    max-width: 100%;
    transform: none;
  }

  .blog-hero h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.08;
  }

  .blog-hero p {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 100%;
  }

  .blog-post-hero {
    min-height: 300px;
  }

  .blog-post-hero__content {
    padding: 2.25rem 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-pagination {
    gap: 0.4rem;
  }

  .blog-pagination__button {
    min-width: 2rem;
    padding: 0 0.5rem;
  }

  .blog-post-body {
    font-size: clamp(1rem, 2.8vw, 1.0625rem);
    line-height: 1.6;
  }

  .podcast-hero {
    min-height: 420px;
  }

  .podcast-hero__logo {
    width: min(280px, 70vw);
  }

  .podcast-hero__content {
    transform: none;
  }

  .podcast-hero__services {
    gap: 0.55rem;
  }

  .podcast-hero__services img {
    width: 118px;
    max-width: 30vw;
  }

  .podcast-latest {
    padding: 1.85rem 0 2.15rem;
  }

  .podcast-latest__kicker {
    font-size: 1rem;
  }

  .podcast-latest__title {
    font-size: clamp(2rem, 10.2vw, 2.55rem);
  }

  .podcast-latest__excerpt {
    font-size: 1.05rem;
    line-height: 1.45;
  }
}
