/* Blog index (pages/blog.html) and posts (pages/blogs/*.html) */

.blog-page .nav a[href="blog.html"],
.blog-page .nav a[href="../blog.html"],
.blog-page .nav a[href="/blogs"],
.blog-page .nav a[aria-current="page"] {
  color: #ececec;
}

.blog-hero {
  padding-block: clamp(2.5rem, 8vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
      ellipse 65% 55% at 15% 0%,
      rgba(172, 200, 83, 0.09),
      transparent 52%
    ),
    radial-gradient(
      ellipse 50% 40% at 95% 40%,
      rgba(87, 128, 52, 0.07),
      transparent 48%
    );
}

.blog-hero .container {
  max-width: 48rem;
}

.blog-hero .blog-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #acc853;
}

.blog-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ececec;
}

.blog-hero .blog-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: #9b9b9b;
  max-width: 40rem;
}

.blog-feed {
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

/* Full-width stack (still respects page gutters via horizontal padding) */
.blog-feed .container {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.blog-feed-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.blog-feed-item {
  margin: 0;
  width: 100%;
}

/* Card shell — wide banner */
.blog-post-card {
  margin: 0;
  position: relative;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.blog-post-card:hover {
  border-color: rgba(172, 200, 83, 0.35);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(172, 200, 83, 0.08);
}

.blog-post-card:focus-within {
  border-color: rgba(172, 200, 83, 0.45);
  box-shadow: 0 0 0 2px rgba(137, 174, 71, 0.4);
}

/* Image fills panel; copy sits on top with scrim */
.blog-post-card__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  min-height: clamp(17rem, 46vw, 26rem);
  color: inherit;
  text-decoration: none;
  outline: none;
}

.blog-post-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(6, 6, 6, 0.94) 0%,
    rgba(6, 6, 6, 0.78) 28%,
    rgba(6, 6, 6, 0.45) 55%,
    rgba(6, 6, 6, 0.32) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-post-card:hover .blog-post-card__link::before,
.blog-post-card:focus-within .blog-post-card__link::before {
  opacity: 0.92;
}

.blog-post-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
  background: #141414;
}

.blog-post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.blog-post-card:hover .blog-post-card__media img,
.blog-post-card:focus-within .blog-post-card__media img {
  transform: scale(1.06);
}

.blog-post-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  min-height: clamp(17rem, 46vw, 26rem);
  max-width: 48rem;
  padding: clamp(1.35rem, 4vw, 2.75rem);
  box-sizing: border-box;
}

.blog-post-card__body time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4d97a;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.blog-post-card__body h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f4f4f4;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.6);
}

.blog-post-card__body p {
  margin: 0;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(236, 236, 236, 0.88);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  max-width: 42rem;
}

.blog-post-card__cta {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #d4e88a;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.blog-post-card__cta::after {
  content: "→";
  transition: transform 0.2s ease;
}

.blog-post-card:hover .blog-post-card__cta::after,
.blog-post-card:focus-within .blog-post-card__cta::after {
  transform: translateX(4px);
}

.blog-note {
  padding-block: 0 3rem;
}

.blog-note .container {
  max-width: 42rem;
}

.blog-note p,
.blog-note__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #6e6e6e;
  text-align: center;
}

.blog-note__cta {
  margin: 0 0.2rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #acc853;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  vertical-align: baseline;
}

.blog-note__cta:hover {
  color: #d4e88a;
}

.blog-note__cta:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 3px;
  border-radius: 4px;
}

.blog-note code {
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #c4d97a;
}

/* --- Single post (pages/blogs/*.html) --- */

.blog-article {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.blog-article-hero {
  padding-block: clamp(1.1rem, 3vw, 1.5rem) 0;
}

/* Wraps inner + dek + body so copy width is independent of `.container` (72rem) */
.blog-article-content {
  width: min(calc(100% - 2rem), 40rem);
  max-width: 40rem;
  margin-inline: auto;
  box-sizing: border-box;
}

.blog-article-inner {
  position: sticky;
  top: 4rem;
  z-index: 20;
  width: 100%;
  max-width: none;
  padding: 0.55rem 0 0.65rem;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.97), rgba(10, 10, 10, 0.92)),
    radial-gradient(
      ellipse 55% 70% at 20% 0%,
      rgba(172, 200, 83, 0.06),
      transparent 50%
    ),
    radial-gradient(
      ellipse 45% 50% at 100% 60%,
      rgba(87, 128, 52, 0.05),
      transparent 45%
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.blog-article-hero-media {
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: min(100% - 2rem, 72rem);
  aspect-ratio: 16 / 9;
  max-height: min(60vh, 36rem);
}

.blog-article-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #acc853;
  text-decoration: none;
}

.blog-back:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-back:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 3px;
  border-radius: 2px;
}

.blog-article-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.blog-article-head__titles {
  width: 100%;
  min-width: 0;
}

.blog-article-head__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 100%;
  min-width: 0;
}

.blog-article-actions__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.blog-article-authors {
  margin: 0;
  max-width: min(22rem, 100%);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  color: #9b9b9b;
  text-align: left;
}

@media (min-width: 640px) {
  .blog-article-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
  }

  .blog-article-head__titles {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .blog-article-head__meta {
    flex-shrink: 0;
    max-width: min(15rem, 42%);
    align-items: flex-end;
  }

  .blog-article-authors {
    text-align: right;
  }
}

/* Like control (article header + index cards) */
.blog-like {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-like__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #c8c8c8;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.blog-like__btn:hover {
  border-color: rgba(172, 200, 83, 0.45);
  color: #d4e88a;
  background: rgba(172, 200, 83, 0.1);
}

.blog-like__btn:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 2px;
}

.blog-like__btn[aria-pressed="true"] {
  border-color: rgba(172, 200, 83, 0.55);
  background: rgba(172, 200, 83, 0.18);
  color: #d4e88a;
}

.blog-like__btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.blog-like__count {
  min-width: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9b9b9b;
}

.blog-post-card__actions {
  position: absolute;
  z-index: 12;
  top: clamp(0.75rem, 2.5vw, 1.25rem);
  right: clamp(0.75rem, 2.5vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  pointer-events: auto;
}

.blog-like--card .blog-like__btn {
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(2px);
}

.blog-like--card .blog-like__count {
  color: #ececec;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* Share trigger + modal */
.share-open-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #acc853;
  user-select: none;
}

.share-open-btn svg {
  flex-shrink: 0;
}

.share-open-btn:hover {
  color: #d4e88a;
}

.share-open-btn:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 3px;
  border-radius: 2px;
}

.share-open-btn--card {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 8, 8, 0.55);
  color: #ececec;
  backdrop-filter: blur(2px);
}

.share-open-btn--card:hover {
  border-color: rgba(172, 200, 83, 0.45);
  color: #d4e88a;
}

body.share-modal-open,
body.blog-pitch-modal-open {
  overflow: hidden;
}

.blog-pitch-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.blog-pitch-modal[hidden] {
  display: none;
}

.blog-pitch-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.blog-pitch-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(28rem, 100%);
  max-height: min(90vh, 40rem);
  overflow-y: auto;
  padding: clamp(1.35rem, 4vw, 1.75rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121212;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.blog-pitch-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.blog-pitch-modal__close:hover {
  color: #ececec;
  background: rgba(255, 255, 255, 0.08);
}

.blog-pitch-modal__close:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 2px;
}

.blog-pitch-modal__title {
  margin: 0 0 0.65rem;
  padding-right: 2.25rem;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f4f4f4;
}

.blog-pitch-modal__lede {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #9b9b9b;
}

.blog-pitch-modal .form-field textarea {
  min-height: 5.5rem;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.share-modal[hidden] {
  display: none;
}

.share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.share-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  padding: clamp(1.35rem, 4vw, 1.75rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121212;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.share-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.share-modal__close:hover {
  color: #ececec;
  background: rgba(255, 255, 255, 0.08);
}

.share-modal__close:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 2px;
}

.share-modal__headline {
  margin: 0 0 1.25rem;
  padding-inline: 2.5rem;
  text-align: center;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f4f4f4;
}

.share-modal__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.share-modal__icons li {
  margin: 0;
}

.share-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.share-modal__icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.share-modal__icon:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 3px;
}

.share-modal__icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.share-modal__icon--linkedin {
  background: #0a66c2;
}

.share-modal__icon--facebook {
  background: #1877f2;
}

.share-modal__icon--instagram {
  background: radial-gradient(
    circle at 30% 100%,
    #fed576 0%,
    #f47133 28%,
    #bc3081 62%,
    #4c63d2 100%
  );
}

.share-modal__icon--instagram svg {
  width: 1.45rem;
  height: 1.45rem;
}

.share-modal__icon--x {
  background: #000;
}

.share-modal__icon--email {
  background: #3d3d3d;
}

.share-modal__url-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.share-modal__url-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #ececec;
  font: inherit;
  font-size: 0.8125rem;
}

.share-modal__url-input:focus {
  outline: 2px solid rgba(172, 200, 83, 0.45);
  outline-offset: 0;
}

.share-modal__copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(172, 200, 83, 0.2);
  color: #d4e88a;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.share-modal__copy:hover {
  background: rgba(172, 200, 83, 0.32);
  color: #ecf5c8;
}

.share-modal__copy:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 2px;
}

.share-modal__copy--done {
  background: rgba(87, 128, 52, 0.45);
  color: #ecf5c8;
}

.share-modal__copy svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.blog-article-head__titles time {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #89ae47;
}

.blog-article-head__titles h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #ececec;
}

.blog-article-dek {
  width: 100%;
  max-width: none;
  margin: 0.85rem 0 0;
  padding-inline: 0;
  box-sizing: border-box;
  font-size: clamp(1.02rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: #9b9b9b;
}

.blog-article-body {
  width: 100%;
  max-width: none;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.blog-article-body p {
  margin: 0 0 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #b8b8b8;
}

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

.blog-article-body h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ececec;
}

.blog-article-body h2:first-child {
  margin-top: 0;
}

.blog-article-body ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: #b8b8b8;
  line-height: 1.65;
}

.blog-article-body li {
  margin-bottom: 0.4rem;
}

.blog-article-body .blog-article-cta {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.35rem;
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.blog-article-body .blog-article-cta__text {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ececec;
  line-height: 1.35;
}

.blog-article-body .blog-article-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.blog-article-body .blog-article-cta__btn:hover,
.blog-article-body .blog-article-cta__btn:focus-visible {
  text-decoration: none;
}

.blog-article-body .blog-article-link-accent {
  color: #acc853;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-article-body .blog-article-link-accent:hover {
  color: #c4d97a;
}

.blog-article-body .blog-article-link-accent:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .blog-post-card__media img,
  .blog-post-card__link::before {
    transition: none;
  }

  .blog-post-card:hover .blog-post-card__media img,
  .blog-post-card:focus-within .blog-post-card__media img {
    transform: scale(1.02);
  }

  .blog-post-card:hover .blog-post-card__link::before,
  .blog-post-card:focus-within .blog-post-card__link::before {
    opacity: 1;
  }
}
