/* ──────────────────────────────────────────────────────────────
   MLYN — blog styles. Loaded only on /[lang]/blog* pages (Base.astro
   adds it when page === 'blog'). Reuses the brand tokens defined in
   landing.css (--mlyn, --paper, --ink, --bristol, --maxw, …) — this
   file only adds blog-specific layout/typography. Existing pages
   are untouched.
   ────────────────────────────────────────────────────────────── */

/* Push content below the fixed header. */
.blog-main { padding-top: 96px; }
@media (min-width: 720px) { .blog-main { padding-top: 110px; } }

/* ---- Breadcrumb ---------------------------------------------------------- */
.crumb {
  font-size: 13.5px;
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 18px;
}
.crumb a { color: var(--soft); text-decoration: none; }
.crumb a:hover { color: var(--mlyn); }
.crumb .sep { opacity: .5; }
.crumb [aria-current] { color: var(--ink-2); }

/* ---- Article ------------------------------------------------------------- */
.article { max-width: 760px; margin: 0 auto; padding: 0 20px 16px; }

.article-head { margin-bottom: 22px; }
.article-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mlyn);
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--bristol);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.04;
  font-size: clamp(28px, 6vw, 44px);
  color: var(--ink);
  margin: 0 0 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 14px;
  color: var(--soft);
}
.article-meta .dot { opacity: .5; }

/* ---- Hero ---------------------------------------------------------------- */
.article-hero {
  margin: 24px auto 30px;
  border-radius: var(--radius, 18px);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 24px 60px -28px rgba(43, 38, 32, .45);
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---- Body typography ----------------------------------------------------- */
.article-body { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 {
  font-family: var(--bristol);
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: clamp(22px, 4.4vw, 30px);
  line-height: 1.12;
  color: var(--ink);
  margin: 1.7em 0 .55em;
}
.article-body h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  margin: 1.4em 0 .5em;
}
.article-body a { color: var(--mlyn); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--mlyn-deep); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul,
.article-body ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.article-body li { margin: 0 0 .4em; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--mlyn);
  color: var(--ink);
  font-size: 19px;
}
.article-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.2em 0; }
.article-body hr { border: 0; border-top: 1px solid var(--hair, #e7ddca); margin: 2em 0; }

/* ---- In-article order CTA ------------------------------------------------ */
.article-cta {
  margin: 40px auto 8px;
  max-width: 760px;
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--hair, #e7ddca);
  border-radius: var(--radius, 18px);
  padding: 30px 24px;
}
.article-cta h2 {
  font-family: var(--bristol);
  text-transform: uppercase;
  font-size: clamp(22px, 5vw, 30px);
  color: var(--mlyn);
  margin: 0 0 8px;
  line-height: 1.04;
}
.article-cta p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }

/* ---- Blog index ---------------------------------------------------------- */
.blog-hero { text-align: center; max-width: 720px; margin: 0 auto 36px; padding: 0 20px; }
.blog-hero .kicker { justify-content: center; }
.blog-hero h1 {
  font-family: var(--bristol);
  text-transform: uppercase;
  font-size: clamp(32px, 8vw, 54px);
  line-height: .98;
  color: var(--ink);
  margin: 8px 0 14px;
}
.blog-hero p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 0; }

.blog-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 8px;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--hair, #e7ddca);
  border-radius: var(--radius, 18px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(43, 38, 32, .5); }
.blog-card-img { background: var(--cream); aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--mlyn); margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 20px; line-height: 1.18; color: var(--ink); margin: 0 0 8px; font-weight: 800;
}
.blog-card p { font-size: 14.5px; line-height: 1.55; color: var(--soft); margin: 0 0 14px; }
.blog-card .blog-card-meta { margin-top: auto; font-size: 13px; color: var(--soft); }

/* ---- Empty state --------------------------------------------------------- */
.blog-empty { text-align: center; color: var(--soft); padding: 30px 20px 60px; }

/* ---- Home teaser --------------------------------------------------------- */
.blog-teaser { background: var(--paper); }
.blog-teaser .rev-head { text-align: center; margin-bottom: 28px; }
.blog-teaser .rev-head .kicker { justify-content: center; }
.blog-teaser h2 {
  font-family: var(--bristol); text-transform: uppercase;
  font-size: clamp(28px, 7vw, 44px); line-height: 1; color: var(--ink); margin: 6px 0 0;
}
.blog-teaser .teaser-more { text-align: center; margin-top: 30px; }
