/* ─── Blog post (single.php) ─────────────────────────────────────────────── */

.bp {
  background: #fff;
  color: #303030;
  overflow-x: clip;
}

.bp-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

/* The page is light like the shop; a featured image turns the hero into a
   dark block with white type (the nav turns white via story-page-dark). */
.bp-hero {
  position: relative;
  color: #111;
  padding: clamp(8rem, 14vh, 11rem) var(--container-padding) var(--space-2xl);
  text-align: center;
}

/* With a featured image the image fills the hero and the title sits on a
   dark gradient at the bottom, so any panorama stays readable. */
.bp-hero--image {
  color: #fff;
  background: var(--color-bg);
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bp-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 30%),
    linear-gradient(0deg, var(--color-bg) 2%, rgba(10, 10, 10, 0.8) 38%, rgba(10, 10, 10, 0) 72%);
}

.bp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.bp-title {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

.bp-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: #555;
  max-width: 40rem;
  margin: 0 auto var(--space-md);
}

.bp-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.bp-hero--image .bp-lead {
  color: rgba(255, 255, 255, 0.82);
}

.bp-hero--image .bp-meta {
  color: rgba(255, 255, 255, 0.55);
}

.bp-meta [aria-hidden] {
  color: var(--color-accent);
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.bp-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 5vw, 3rem) var(--space-2xl);
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.85;
  color: #3a3a3a;
}

.bp-body > * {
  margin: 0 0 1.4em;
}

/* Opening paragraph: bigger, with a drop cap. */
.bp-body > p:first-child {
  font-size: 1.15em;
  color: #111;
}

.bp-body > p:first-child::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  font-weight: 800;
  margin: 0.08em 0.12em 0 0;
  color: var(--color-accent);
}

.bp-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  margin: 2.4em 0 0.7em;
}

.bp-body h2::before {
  content: "✦";
  display: block;
  font-size: 0.55em;
  color: var(--color-accent);
  margin-bottom: 0.6em;
}

.bp-body h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin: 1.8em 0 0.4em;
}

.bp-body strong {
  color: #111;
  font-weight: 700;
}

.bp-body a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--transition-fast);
}

.bp-body a:hover {
  color: var(--color-accent);
}

.bp-body ul,
.bp-body ol {
  padding-left: 0;
  list-style: none;
}

.bp-body li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.7em;
}

.bp-body ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--color-accent);
  font-size: 0.85em;
}

.bp-body ol {
  counter-reset: bp-ol;
}

.bp-body ol li::before {
  counter-increment: bp-ol;
  content: counter(bp-ol) ".";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Quotes (Quote and Pullquote blocks) break out of the column. */
.bp-body blockquote,
.bp-body .wp-block-pullquote {
  margin: 2.2em calc(-1 * clamp(0rem, 6vw, 6rem));
  padding: var(--space-lg) var(--space-lg);
  border: 0;
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  text-align: center;
}

.bp-body .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.bp-body blockquote p,
.bp-body .wp-block-pullquote p {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111;
  margin: 0;
}

.bp-body blockquote cite,
.bp-body .wp-block-pullquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  font-style: normal;
  color: #777;
}

.bp-body figure {
  margin: 2em 0;
}

.bp-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.bp-body figcaption {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin-top: 0.6em;
}

/* ── Shop the story ───────────────────────────────────────────────────────── */

.bp-shop {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bp-shop-title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 var(--space-xl);
}

.bp-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: var(--space-lg);
}

.bp-card {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #111;
  text-decoration: none;
  text-align: left;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.bp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--color-accent), var(--glow-sm);
}

.bp-card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
}

.bp-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: var(--space-md);
}

.bp-card-name {
  font-weight: 700;
  line-height: 1.3;
}

.bp-card-price {
  color: #555;
  font-size: 0.95rem;
}

.bp-card-cta {
  margin-top: 0.4rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.bp-footer {
  text-align: center;
  padding: 0 var(--container-padding) var(--space-4xl);
}

/* ── Blog index (home.php) ───────────────────────────────────────────────── */

.bp-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding) var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.bp-post-card .bp-card-img img {
  aspect-ratio: 16 / 10;
}

.bp-post-card .bp-card-name {
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .bp-hero--image {
    min-height: 78vh;
  }

  .bp-body blockquote,
  .bp-body .wp-block-pullquote {
    margin-left: 0;
    margin-right: 0;
    padding: var(--space-md) 0;
  }
}
