/* =====================================================
   Blog Moon Villa C27 — Article typography & layout
   Extends styles.css (Lakeside Mist palette + Fraunces)
   ===================================================== */

/* ============ BLOG LISTING HERO ============ */
.blog-hero {
  padding: 140px 0 60px;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(212, 222, 203, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 85% 100%, rgba(232, 237, 223, 0.7) 0%, transparent 60%);
  text-align: center;
}
.blog-hero .display { margin-top: 16px; }

/* ============ ARTICLE HEADER ============ */
.article {
  background-color: var(--cream);
}
.article__hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 620px;
  overflow: hidden;
  margin-top: 70px;
}
.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 68, 48, 0.15) 0%, rgba(46, 68, 48, 0) 40%, rgba(46, 68, 48, 0.55) 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 60px;
  margin-bottom: 40px;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.article__header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}
.article__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 20px 0 28px;
  max-width: 22ch;
}
.article__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}
.article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article__meta-item svg { color: var(--green-dark); }

/* ============ ARTICLE CONTENT (prose) ============ */
.article__content {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto;
}

.article__content > * + * { margin-top: 1.5em; }

.article__content h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 50;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 2.4em;
  margin-bottom: 0.6em;
}
.article__content h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  line-height: 1.25;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.4em;
}
.article__content h4 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.article__content p {
  margin: 1.1em 0;
}

.article__content a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: var(--green-mid);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article__content a:hover {
  text-decoration-color: var(--green-dark);
}

.article__content strong {
  color: var(--text);
  font-weight: 600;
}
.article__content em { font-style: italic; }

.article__content ul,
.article__content ol {
  padding-left: 24px;
  margin: 1.2em 0;
}
.article__content ul li,
.article__content ol li {
  margin: 0.5em 0;
  padding-left: 8px;
}
.article__content ul li::marker { color: var(--green-dark); }
.article__content ol li::marker { color: var(--green-dark); font-weight: 600; }

.article__content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2em 0;
  box-shadow: var(--shadow-md);
}

.article__content blockquote {
  margin: 2em 0;
  padding: 20px 28px;
  border-left: 4px solid var(--gold);
  background: var(--cream-light);
  border-radius: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--text);
}
.article__content blockquote p { margin: 0; }

.article__content code {
  background: var(--cream-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--green-darker);
}

.article__content pre {
  background: var(--green-darker);
  color: var(--cream-light);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
}
.article__content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article__content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3em auto;
  max-width: 80px;
}

/* ============ ARTICLE CTA ============ */
.article__cta {
  max-width: 680px;
  margin: 80px auto 0;
  padding: 44px 40px;
  background: var(--cream-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.article__cta h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.article__cta p {
  color: var(--text-muted);
  margin-bottom: 26px;
}
.article__cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ BLOG GRID (listing + related) ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.blog-card {
  background: var(--cream-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }

.blog-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.blog-card__body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.blog-card__body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card__more {
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.related-section { padding-bottom: 120px; }

/* ============ FOOTER LINKS ============ */
.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 180, 138, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__links a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .article__hero { height: 50vh; min-height: 360px; }
  .article__title { font-size: clamp(32px, 5vw, 48px); }
}

@media (max-width: 720px) {
  .blog-hero { padding: 100px 0 40px; }
  .article__hero { height: 40vh; min-height: 280px; }
  .breadcrumb { padding-top: 40px; margin-bottom: 28px; font-size: 12px; }
  .article__header { margin-bottom: 44px; padding-bottom: 28px; }
  .article__title { font-size: clamp(28px, 7vw, 38px); }
  .article__meta { gap: 14px; font-size: 12px; }
  .article__content { font-size: 16px; }
  .article__content h2 { font-size: 26px; }
  .article__content h3 { font-size: 21px; }
  .article__cta { padding: 32px 24px; margin-top: 60px; }
  .article__cta h3 { font-size: 24px; }
  .article__cta-buttons { flex-direction: column; }
  .article__cta-buttons .btn { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-card__body { padding: 22px 24px 26px; }
  .related-section { padding-bottom: 80px; }
  .footer__links { gap: 22px; }
  .footer__links a { font-size: 13px; }
}
