/* ─── Grow Hemp · Blog ─────────────────────────────────────────────────
   Builds on site.css tokens, nav, hero and footer.
   Only adds: blog listing grid + article prose typography.
─────────────────────────────────────────────────────────────────────── */

/* Static blog pages don't use the JSX .stage wrapper, so give the shell
   full width here (the JSX pages inherit width from .stage.frame-desktop). */
.site { width: 100%; }

/* ─── Listing header ─────────────────────────────────────────────────── */
.blog-head {
  padding: 44px var(--gutter-mobile) 8px;
  background: var(--paper);
}
.blog-head-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.blog-h {
  font-family: var(--display);
  font-size: clamp(36px, 6.4cqw, 60px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.blog-sub {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

@container (min-width: 720px) { .blog-head { padding: 56px var(--gutter-tablet) 8px; } }
@container (min-width: 1100px) { .blog-head { padding: 72px var(--gutter-desktop) 8px; } }

/* ─── Post grid ──────────────────────────────────────────────────────── */
.posts {
  padding: 32px var(--gutter-mobile) 48px;
  background: var(--paper);
}
.posts-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px 24px;
}

@container (min-width: 720px) {
  .posts { padding: 40px var(--gutter-tablet) 56px; }
}
@container (min-width: 1100px) {
  .posts { padding: 48px var(--gutter-desktop) 72px; }
  .post-grid { gap: 36px 28px; }
}

/* Post card */
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.post-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: #eaeaea;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  padding: 6px 10px 5px;
  border-radius: 3px;
  line-height: 1;
}
.post-card-body {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-card-date {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
}
.post-card-title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-excerpt {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.post-card-more {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 2px;
  line-height: 1.2;
}

@container (min-width: 720px) { .post-card-title { font-size: 22px; } }

/* "From the blog" teaser (e.g. bottom of CBD Seeds) — reuses .post-grid for cards */
.blog-teaser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.blog-teaser-all {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.blog-teaser-all:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.blog-teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@container (min-width: 720px) {
  .blog-teaser-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
}

/* ─── Article (contained layout, trishfab-style) ─────────────────────── */
.article {
  background: var(--paper);
  padding: clamp(32px, 5vw, 52px) var(--gutter-mobile) clamp(48px, 6vw, 72px);
}
.article-inner { max-width: 720px; margin: 0 auto; }

.article-back {
  display: inline-block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 22px;
}
.article-back:hover { color: var(--accent); }

.article-title {
  font-family: var(--display);
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.article-meta {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 30px;
}

.article-figure {
  margin: 0 0 38px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #eaeaea;
}
.article-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Diagram figure — natural height, framed panel instead of a cropped photo */
.article-figure.is-diagram {
  aspect-ratio: auto;
  overflow: visible;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(18px, 3vw, 30px);
}
.article-figure.is-diagram svg { width: 100%; height: auto; display: block; }
/* Diagram placed inline within the body needs its own vertical breathing room */
.article-body .article-figure { margin: 30px 0 28px; }

.article-body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.article-body p { margin: 0 0 20px; }
.article-body h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  margin: 40px 0 14px;
}
.article-body h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 28px 0 10px;
}
.article-body ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-body ul li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
  color: var(--ink-2);
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
  word-break: break-word;
}
.article-body a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .btn { margin-top: 6px; }

/* Reference callout (e.g. "Read the regulations") */
.ref-note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--paper-2);
  padding: 15px 18px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.ref-note a { font-weight: 600; }
