/* ════════════════════════════════════════════════════════════
   AEROCHEF X5 — content pages (blog + standalone pages)
   Layered on top of style.css: same tokens, same type scale.
   No GSAP here — these pages are plain documents.
   ════════════════════════════════════════════════════════════ */

.content-body { background: var(--bg); }

/* the landing page fades its nav in on scroll; content pages need it solid
   from the first pixel, and the page has to start below it */
.nav--solid {
  background: rgba(245, 245, 247, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after { transform: scaleX(1); }

.content-main { padding-top: clamp(96px, 11vw, 132px); }

/* ─────────────────────────── Page head ─────────────────────────── */

.page-head {
  padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-head__title {
  font-family: var(--font-d);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.06;
  font-size: clamp(32px, 5vw, 60px);
  max-width: 18ch;
}
.page-head__sub {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 16.5px; line-height: 1.75; color: var(--mut);
}
.page-head__cover {
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ─────────────────────────── Category chips ─────────────────────────── */

.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 32px 0 6px;
}
.chips a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--mut);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.chips a:hover { color: var(--ink); border-color: rgba(16, 16, 20, 0.22); transform: translateY(-1px); }
.chips a.is-current {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.chips a b { font-weight: 700; opacity: 0.5; }

/* ─────────────────────────── Post grid ─────────────────────────── */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: clamp(36px, 5vw, 60px) 0;
}

.post-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.post-card__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.post-card__cat {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--heat);
}
.post-card__title {
  font-family: var(--font-d);
  font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em;
}
.post-card__excerpt { font-size: 14.5px; line-height: 1.65; color: var(--mut); flex: 1; }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding-top: 8px;
  font-size: 12px; color: var(--mut-2);
}
.post-card__meta span + span::before { content: '·'; margin-inline-end: 10px; }
.post-card__draft {
  align-self: flex-start;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 92, 31, 0.12); color: var(--heat);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}

/* ─────────────────────────── Pagination ─────────────────────────── */

.pager {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 clamp(50px, 7vw, 80px);
}
.pager a, .pager span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel);
  font-size: 13px; font-weight: 600; color: var(--mut);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.pager a:hover { color: var(--ink); border-color: rgba(16, 16, 20, 0.22); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-disabled { opacity: 0.4; }

/* ─────────────────────────── Article ─────────────────────────── */

.article { padding: clamp(30px, 4vw, 50px) 0 clamp(56px, 7vw, 90px); }
.article__inner { max-width: 760px; margin: 0 auto; }

.article__meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 22px;
  font-size: 12.5px; color: var(--mut-2);
}
.article__meta a { color: var(--heat); font-weight: 600; }

.prose { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-d); font-weight: 700; letter-spacing: -0.02em;
  font-size: 28px; line-height: 1.25; color: var(--ink);
  margin-top: 1.9em;
}
.prose h3 {
  font-family: var(--font-d); font-weight: 700;
  font-size: 21px; line-height: 1.3; color: var(--ink);
  margin-top: 1.6em;
}
.prose a { color: var(--heat); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose img { border-radius: 16px; margin: 1.6em 0; }
.prose blockquote {
  border-inline-start: 3px solid var(--heat);
  padding-inline-start: 20px;
  font-size: 19px; line-height: 1.65; color: var(--ink);
}
.prose pre {
  background: var(--dark); color: #e6e6ec;
  padding: 18px 20px; border-radius: 14px;
  overflow-x: auto;
  font-size: 14px; line-height: 1.6;
}
.prose code { font-size: 0.92em; }
.prose :not(pre) > code {
  background: rgba(16, 16, 20, 0.06);
  padding: 2px 6px; border-radius: 6px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; }

/* ─────────────────────────── Read next ─────────────────────────── */

.readnext { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; }
.readnext__head {
  font-family: var(--font-d); font-weight: 700;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--mut-2);
  margin-bottom: 26px;
}

/* ─────────────────────────── Empty state ─────────────────────────── */

.empty {
  padding: clamp(50px, 8vw, 100px) 0;
  text-align: center;
  color: var(--mut);
}
.empty h2 { font-family: var(--font-d); font-size: 22px; color: var(--ink); margin-bottom: 10px; }

/* ─────────────────────────── Footer additions ─────────────────────────── */

.footer__contact p { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); }

/* ─────────────────────────── Maintenance ─────────────────────────── */

.maintenance {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 40px;
}
.maintenance h1 { font-family: var(--font-d); font-size: clamp(28px, 5vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
.maintenance p { max-width: 46ch; font-size: 16px; line-height: 1.75; color: var(--mut); }

/* ─────────────────────────── Small screens ─────────────────────────── */

@media (max-width: 860px) {
  /* no burger menu on these pages — the links become a scrollable strip */
  .nav--solid { flex-wrap: wrap; padding: 12px 18px; gap: 12px; }
  .nav--solid .nav__links {
    order: 3; width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav--solid .nav__links::-webkit-scrollbar { display: none; }
  .nav--solid .nav__links a { white-space: nowrap; }
}
