/* Inceptra blog — standalone styles matching the Next.js marketing site.
   Brand tokens: ink #0B0B0C, gold #C9A227, gold-light #E4C56A, cream #F7F5EF. */

:root {
  --ink: #0b0b0c;
  --ink-2: #0b1828;
  --gold: #c9a227;
  --gold-light: #e4c56a;
  --cream: #f7f5ef;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-2);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(201, 162, 39, 0.3); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo img { display: block; object-fit: contain; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: rgba(247, 245, 239, 0.8); transition: color 0.15s; }
.main-nav a:hover { color: var(--gold); }
.header-cta { padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--ink); }
.mobile-nav a { color: rgba(247, 245, 239, 0.85); }

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .mobile-nav { display: flex; }
}

/* -------------------------------------------------------------- blog list */
.blog-hero { text-align: center; padding: 80px 0; border-bottom: 1px solid var(--line); background: var(--ink); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0; }
.blog-hero h1 { font-family: var(--display); font-size: 3rem; font-weight: 600; margin: 16px 0 12px; color: var(--cream); }
.blog-hero p { max-width: 560px; margin: 0 auto; color: rgba(247, 245, 239, 0.6); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 64px 0;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(201, 162, 39, 0.4); transform: translateY(-3px); }
.card-thumb { position: relative; height: 208px; background-size: cover; background-position: center; }
.card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.card-cat {
  position: absolute; bottom: 16px; left: 16px; z-index: 1;
  border: 1px solid rgba(201, 162, 39, 0.4); background: rgba(201, 162, 39, 0.12);
  color: var(--gold); border-radius: 999px; padding: 4px 12px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card-body h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; margin: 0; color: var(--cream); transition: color 0.15s; }
.card:hover .card-body h2 { color: var(--gold); }
.card-excerpt { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.6; color: rgba(247, 245, 239, 0.55); flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-size: 0.75rem; color: rgba(247, 245, 239, 0.4); }
.card-meta .more { color: var(--gold); }

/* -------------------------------------------------------------- single post */
.post-banner { height: 320px; background-size: cover; background-position: center; position: relative; }
.post-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink-2), rgba(11,24,40,0.3), transparent); }
@media (max-width: 600px) { .post-banner { height: 220px; } }

.post-wrap { max-width: 720px; margin: -64px auto 0; position: relative; z-index: 1; padding: 0 24px 96px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(247, 245, 239, 0.5); margin-bottom: 32px; transition: color 0.15s; }
.back-link:hover { color: var(--gold); }
.post-cat {
  display: inline-block; border: 1px solid rgba(201, 162, 39, 0.4); background: rgba(201, 162, 39, 0.1);
  color: var(--gold); border-radius: 999px; padding: 4px 12px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.post-title { font-family: var(--display); font-size: 2.75rem; font-weight: 600; line-height: 1.15; margin: 16px 0 0; color: var(--cream); }
@media (max-width: 600px) { .post-title { font-size: 2rem; } }
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0 0; padding-bottom: 32px; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: rgba(247, 245, 239, 0.4); }

/* Body typography — mirrors .prose-inceptra from the Next site */
.post-body { margin-top: 40px; color: rgba(247, 245, 239, 0.75); font-size: 1.0625rem; line-height: 1.8; }
.post-body p { margin: 0 0 1.4em; }
.post-body h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--cream); margin: 2.2em 0 0.6em; }
.post-body h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--cream); margin: 1.8em 0 0.5em; }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.post-body li { margin-bottom: 0.5em; }
.post-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--gold-light); }
.post-body blockquote { margin: 1.6em 0; padding: 0.4em 1.2em; border-left: 3px solid var(--gold); color: rgba(247, 245, 239, 0.85); font-style: italic; }
.post-body strong { color: var(--cream); }

/* Images in post bodies are ALWAYS centered, responsive, and nicely framed. */
.post-body img,
.post-body figure {
  display: block;
  margin: 2em auto;
  max-width: 100%;
  height: auto;
}
.post-body img { border-radius: 12px; }
.post-body figure img { margin: 0 auto; }
.post-body figcaption { text-align: center; font-size: 0.85rem; color: rgba(247, 245, 239, 0.45); margin-top: 0.6em; }

/* Post CTA */
.post-cta { margin-top: 64px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 16px; padding: 32px; text-align: center; }
.post-cta h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin: 0; color: var(--cream); }
.post-cta p { margin: 8px 0 20px; font-size: 0.9rem; color: rgba(247, 245, 239, 0.6); }

/* -------------------------------------------------------------- empty state */
.empty { text-align: center; padding: 80px 0; color: rgba(247, 245, 239, 0.5); }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); margin-top: 64px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 56px 0 32px; }
.footer-tag { max-width: 360px; margin: 16px 0 0; color: rgba(247, 245, 239, 0.55); font-size: 0.9rem; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(247, 245, 239, 0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding: 20px 0 40px; border-top: 1px solid var(--line); font-size: 0.8rem; color: rgba(247, 245, 239, 0.4); }
