/* ============================================================
   Thunder Ridge Farms — Blog / Journal styles
   Extends styles.css (same tokens). Aman-register luxury.
   Reuses: .nav .footer .btn .btn-ghost .btn-ghost-dark
           .container .section-pad .eyebrow .rule-h .reveal
           .img-reveal .faq-item/.faq-question/.faq-answer
   Adds only article + listing specific layout.
   ============================================================ */

/* ---------- Make the fixed nav usable on light pages ---------- */
/* Blog pages open on a dark article/listing hero, so the transparent
   nav reads fine at top; script.js adds .scrolled once you scroll. */

/* ============================================================
   ARTICLE HERO (dark, mirrors homepage hero treatment)
   ============================================================ */
.article-hero {
  position: relative;
  background: var(--ink);
  min-height: clamp(440px, 64vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.article-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.40) saturate(0.7) sepia(0.18);
  transform: scale(1.03);
}
.article-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,20,16,0.45) 0%, transparent 35%, rgba(12,20,16,0.72) 72%, rgba(12,20,16,0.97) 100%),
    linear-gradient(to right, rgba(12,20,16,0.55) 0%, transparent 65%);
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  z-index: 1;
  mix-blend-mode: overlay;
}
.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  padding-top: calc(var(--nav-h) + 3rem);
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 300;
  color: var(--porcelain);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0.75rem 0 1.5rem;
}
.article-hero h1 em { font-style: italic; color: var(--brass-pale); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.breadcrumb a { color: rgba(194,168,120,0.85); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--brass-light); }
.breadcrumb .sep { color: rgba(247,244,238,0.5); }
.breadcrumb .current { color: rgba(247,244,238,0.7); }

/* ---------- Post meta row ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brass-hairline);
}
.post-meta-item {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brass); opacity: 0.5; }

/* ============================================================
   ARTICLE BODY (light, long-form reading column)
   ============================================================ */
.article-wrap { background: var(--porcelain); }
.article-body {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 2rem);
}
.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > blockquote,
.article-body > h2,
.article-body > h3,
.article-body > figure { max-width: none; }

.article-body p {
  font-size: clamp(1.1rem, 1.4vw, 1.2rem);
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  max-width: none;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 3.25rem 0 1.1rem;
  padding-top: 0.5rem;
}
.article-body h2::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brass);
  opacity: 0.65;
  margin-bottom: 1.25rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.6rem 1.3rem;
  color: var(--text-mid);
}
.article-body li {
  font-size: clamp(1.08rem, 1.35vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 0.6rem;
  padding-left: 0.35rem;
}
.article-body li::marker { color: var(--brass); }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ease), text-decoration-color var(--ease);
}
.article-body a:hover { color: var(--brass); text-decoration-color: var(--brass-light); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body blockquote {
  border-left: 2px solid var(--brass);
  padding: 0.25rem 0 0.25rem 1.75rem;
  margin: 2.75rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.35;
  color: var(--ink);
}
.article-body blockquote p { font-size: inherit; color: inherit; margin: 0; }

/* Article intro (lead paragraph) */
.article-lead {
  font-size: clamp(1.3rem, 1.9vw, 1.5rem) !important;
  line-height: 1.7 !important;
  color: var(--text-dark) !important;
  font-weight: 400;
  margin-bottom: 2rem !important;
}

/* ---------- Key takeaways box ---------- */
.takeaways {
  background: var(--porcelain-mid);
  border-left: 2px solid var(--brass);
  padding: 1.75rem 2rem;
  margin: 0 0 2.75rem;
}
.takeaways h2,
.takeaways h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8F744A;
  margin: 0 0 1rem;
}
.takeaways h2::before { display: none; }
.takeaways ul { margin: 0 0 0 1.1rem; }
.takeaways li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

/* ---------- Hero figure caption (under in-body figures, if any) ---------- */
.article-body figure { margin: 2.5rem 0; }
.article-body figcaption {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  margin-top: 0.65rem;
  font-style: italic;
}

/* ============================================================
   IN-ARTICLE FAQ (reuses .faq-item markup + script.js accordion)
   ============================================================ */
.article-faq { max-width: 720px; margin: 0 auto; padding-inline: clamp(1.5rem, 5vw, 2rem); }
.article-faq > .eyebrow { color: var(--brass); }
.article-faq h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 300;
  color: var(--ink);
  margin: 0.4rem 0 2rem;
}

/* Light-page FAQ — the shared .faq-* rules are colored for the dark homepage.
   Recolor questions + answers for the porcelain article surface (legible + AA). */
.article-faq .faq-question { color: var(--ink); }
.article-faq .faq-question:hover { color: var(--text-mid); }
.article-faq .faq-question[aria-expanded="true"] { color: #8F744A; }
.article-faq .faq-answer {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-mid);
}
.article-faq .faq-answer a { color: #8F744A; }

/* ============================================================
   ARTICLE CTA BAND (dark)
   ============================================================ */
.article-cta {
  background: var(--ink);
  text-align: center;
  position: relative;
}
.article-cta .eyebrow { color: var(--brass); }
.article-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--porcelain);
  max-width: 18ch;
  margin: 0.5rem auto 1.25rem;
  line-height: 1.1;
}
.article-cta p {
  color: rgba(247,244,238,0.86);
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}
.article-cta-contacts {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.article-cta-contacts a,
.article-cta-contacts span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related {
  background: var(--porcelain-mid);
}
.related-header { margin-bottom: 2.5rem; }
.related-header .eyebrow { color: var(--brass); }
.related-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--ink);
  margin-top: 0.35rem;
}

/* ============================================================
   POST CARD GRID (used by /blog/ index + related)
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--porcelain);
  border: 1px solid var(--brass-hairline);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(194,168,120,0.45); }
.post-card:focus-within { border-color: var(--brass); }
.post-card-imgwrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-mid);
}
.post-card-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25,0.46,0.45,0.94);
}
.post-card:hover .post-card-imgwrap img { transform: scale(1.05); }
.post-card-body {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.8vw, 1.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--text-mid); }
.post-card-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  flex: 1;
}
.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brass-hairline);
}
.post-card-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.post-card-read {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--ease), color var(--ease);
}
.post-card-read:hover { gap: 0.7rem; color: var(--brass); }

/* ============================================================
   BLOG INDEX HERO
   ============================================================ */
.blog-hero {
  background: var(--ink);
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.blog-hero-inner { position: relative; z-index: 2; }
.blog-hero .eyebrow { color: var(--brass); }
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--porcelain);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.5rem 0 1.25rem;
  max-width: 18ch;
}
.blog-hero h1 em { font-style: italic; color: var(--brass-pale); }
.blog-hero p {
  color: rgba(247,244,238,0.88);
  max-width: 56ch;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
}

/* ============================================================
   HOMEPAGE "FROM THE JOURNAL" TEASER (added to index.html)
   ============================================================ */
.journal-teaser { background: var(--porcelain-mid); }
.journal-teaser-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.journal-teaser-header .eyebrow { color: var(--brass); }
.journal-teaser-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--ink);
  margin-top: 0.35rem;
  max-width: 16ch;
  line-height: 1.08;
}
.journal-teaser-link {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color var(--ease);
}
.journal-teaser-link:hover { color: var(--brass); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .article-body blockquote { padding-left: 1.25rem; }
  .article-cta-contacts { gap: 1.5rem; }
  .post-meta { gap: 0.7rem; }
}


/* ============================================================
   MOBILE OPTIMIZATION PASS (blog)
   ============================================================ */
/* Let the single post column shrink below 310px on tiny phones (no clip) */
.post-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}

@media (max-width: 768px) {
  .post-card-read { min-height: 44px; }
  .journal-teaser-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  .article-hero h1 { font-size: clamp(1.95rem, 8vw, 3rem); line-height: 1.1; }
  .blog-hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
}
