/* ============================================
   MAR LU — Magazine (blog) styles
   Loaded AFTER /style.css — reuses its tokens.
   ============================================ */

/* ===== Magazine index ===== */
.mag-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--gray);
}
.mag-hero .eyebrow { margin-bottom: 10px; }
.mag-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  font-weight: 400;
}
.mag-hero p.mag-hero__sub {
  margin-top: 14px;
  max-width: 560px;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 48px 0 72px;
}
@media (max-width: 960px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mag-grid { grid-template-columns: 1fr; } }

.mag-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .25s ease, transform .25s ease;
}
.mag-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.mag-card__media { aspect-ratio: 16 / 10; background: var(--gray); }
.mag-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mag-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mag-card__tag {
  align-self: flex-start;
  font-size: .8rem;
  font-weight: 700;
  color: var(--clay);
  background: var(--blush);
  border-radius: 999px;
  padding: 4px 12px;
}
.mag-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.35;
}
.mag-card__excerpt { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.mag-card__meta { margin-top: auto; padding-top: 10px; color: var(--ink-mute); font-size: .85rem; }

/* featured (first) card spans full width on desktop */
.mag-card--featured { grid-column: 1 / -1; flex-direction: row; }
.mag-card--featured .mag-card__media { flex: 1.2; aspect-ratio: auto; min-height: 300px; }
.mag-card--featured .mag-card__body { flex: 1; justify-content: center; padding: 34px 38px; }
.mag-card--featured .mag-card__title { font-size: clamp(1.4rem, 3vw, 2rem); }
@media (max-width: 820px) {
  .mag-card--featured { flex-direction: column; }
  .mag-card--featured .mag-card__media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ===== Article page ===== */
.post {
  max-width: 720px;
  margin-inline: auto;
  padding: 56px 0 40px;
}
.post__head { margin-bottom: 34px; }
.post__crumbs { font-size: .85rem; color: var(--ink-mute); margin-bottom: 18px; }
.post__crumbs a { color: var(--ink-mute); }
.post__head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  line-height: 1.2;
}
.post__meta { margin-top: 14px; color: var(--ink-mute); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.post__cover { border-radius: var(--radius); overflow: hidden; margin: 30px 0 6px; }

.post__body { font-size: 1.08rem; line-height: 1.85; color: var(--ink); }
.post__body > * + * { margin-top: 1.15em; }
.post__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.post__body h3 { font-size: 1.18rem; font-weight: 700; margin-top: 1.8em; }
.post__body ul, .post__body ol { padding-inline-start: 1.5rem; }
.post__body li + li { margin-top: .5em; }
.post__body a { color: var(--clay); font-weight: 600; }
.post__body strong { font-weight: 700; }
.post__body blockquote {
  border-inline-start: 3px solid var(--clay);
  padding: 4px 20px;
  color: var(--ink-2);
  background: var(--gray);
  border-radius: var(--radius-sm);
}
.post__body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.post__body th, .post__body td { border: 1px solid var(--line-strong); padding: 10px 14px; text-align: start; }
.post__body th { background: var(--gray); font-weight: 700; }

/* fact box */
.post-note {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .98rem;
}
.post-note strong { color: var(--clay-deep); }

/* inline product CTA */
.post-cta {
  margin: 2.4em 0;
  background: var(--gray);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.post-cta__media { flex: 0 0 110px; }
.post-cta__media img { border-radius: var(--radius-sm); }
.post-cta__title { font-weight: 700; font-size: 1.05rem; }
.post-cta__sub { color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.post-cta .btn { margin-inline-start: auto; white-space: nowrap; }
@media (max-width: 620px) {
  .post-cta { flex-direction: column; align-items: flex-start; }
  .post-cta .btn { margin-inline-start: 0; width: 100%; text-align: center; }
}

/* related posts */
.post-related { border-top: 1px solid var(--line); padding: 40px 0 72px; }
.post-related h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.post-related .mag-grid { padding: 0; }

/* disclaimer */
.post-disclaimer {
  margin-top: 2.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: .85rem;
  line-height: 1.6;
}
