/* Nutri007 Blog - shared styles for standalone blog pages.
   Lives outside the Claude-design export, so it survives re-exports.
   Brand tokens mirror index.html :root. */

:root {
  --brand-primary: #9b8b8e;
  --brand-primary-light: #b5a7aa;
  --brand-primary-lighter: #d4cfd0;
  --brand-primary-dark: #7d6f72;
  --brand-secondary: #4a5568;
  --brand-secondary-light: #7a8fa3;
  --brand-accent: #f5f3f4;
  --ink: #1f2937;
  --muted: #6b7280;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--brand-secondary); text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

/* ── Header ─────────────────────────────────────────── */
.blog-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #eee;
}
.blog-header-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.25rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.blog-logo { display: flex; align-items: center; text-decoration: none; }
.blog-logo img { height: 2.5rem; width: auto; }
.blog-nav { display: flex; align-items: center; gap: 1.5rem; }
.blog-nav a { text-decoration: none; color: var(--ink); transition: color .2s ease; font-size: .95rem; }
.blog-nav a:hover { color: var(--brand-primary); }
.blog-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand-primary-dark); color: #fff !important;
  padding: .55rem 1.15rem; border-radius: 9999px; text-decoration: none;
  font-size: .95rem; transition: background .2s ease; white-space: nowrap;
}
.blog-btn:hover { background: var(--brand-primary); }

@media (max-width: 760px) {
  .blog-header-inner { height: auto; min-height: 4rem; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; gap: .5rem; }
  .blog-nav { flex-wrap: wrap; justify-content: flex-start; gap: .85rem; row-gap: .35rem; }
  .blog-nav a { font-size: .85rem; }
}

/* ── Generic page shell ────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary-lighter));
  padding: 3.5rem 1.25rem 3rem; text-align: center;
}
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .75rem; }
.blog-hero p { max-width: 40rem; margin: 0 auto; color: #374151; font-size: 1.1rem; }
.blog-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* ── Listing grid ──────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding: 3rem 0 4rem; max-width: 60rem; margin: 0 auto;
}
@media (min-width: 700px) { .blog-grid { grid-template-columns: 1fr 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eee; border-radius: 1rem; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.post-card.is-link:hover { box-shadow: 0 14px 28px rgba(0,0,0,.10); transform: translateY(-3px); border-color: transparent; }
.post-card.is-soon { opacity: .72; }
.post-thumb {
  height: 8.5rem; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1rem;
}
.post-thumb .post-tag {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.85); color: var(--brand-secondary);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 9999px;
}
.post-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); }
.post-title { font-size: 1.2rem; margin: 0; }
.post-card.is-link:hover .post-title { color: var(--brand-primary); }
.post-excerpt { color: #4b5563; font-size: .95rem; margin: 0; }
.post-more { margin-top: auto; padding-top: .4rem; color: var(--brand-primary); font-weight: 600; font-size: .9rem; }
.post-soon-label { margin-top: auto; padding-top: .4rem; color: var(--muted); font-weight: 600; font-size: .85rem; }

/* ── Article page ──────────────────────────────────── */
.article { max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.article-hero { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 1rem; margin-bottom: 2rem; }
.article .kicker { color: var(--brand-primary); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin: .5rem 0 .75rem; }
.article .article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.article-content { font-size: 1.075rem; color: #374151; }
.article-content h2 { font-size: 1.5rem; margin: 2.2rem 0 .75rem; }
.article-content h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.article-content p { margin: 0 0 1.1rem; }
.article-content ul, .article-content ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.article-content li { margin-bottom: .5rem; }
.article-content blockquote {
  margin: 1.5rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--brand-primary);
  background: var(--brand-accent); color: var(--brand-secondary); border-radius: 0 .5rem .5rem 0;
}
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--brand-primary); text-decoration: none; font-weight: 600; font-size: .9rem; }
.back-link:hover { text-decoration: underline; }

/* ── CTA + footer ──────────────────────────────────── */
.article-cta {
  margin: 2.5rem 0 0; padding: 2rem; border-radius: 1rem; text-align: center;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary-lighter));
}
.article-cta h3 { margin: 0 0 .5rem; }
.article-cta p { margin: 0 0 1.25rem; color: #4b5563; }

.blog-footer { background: var(--brand-secondary); color: #d1d5db; padding: 2.5rem 1.25rem; text-align: center; font-size: .9rem; }
.blog-footer a { color: #fff; text-decoration: none; }
.blog-footer a:hover { text-decoration: underline; }

/* On narrow screens: stack the footer as whole lines instead of wrapping mid-phrase */
@media (max-width: 640px) {
  .blog-footer .seg { display: block; line-height: 1.9; }
  .blog-footer .sep { display: none; }
}
