/* ── Base reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Nunito', sans-serif;
  background-color: #faf5eb;
  color: #1e3a5f;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background-color: rgba(201, 123, 93, 0.3); color: #0c1b30; }

/* ── Layout ── */
.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header { padding: 32px 0; border-bottom: 1px solid rgba(30, 58, 95, 0.1); margin-bottom: 48px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #c97b5d; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: #1e3a5f; }
.back-link svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.back-link:hover svg { transform: translateX(-3px); }
.logo-text {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.5rem;
  color: #1e3a5f; text-decoration: none; font-variation-settings: 'SOFT' 30, 'WONK' 1;
}

/* ── Titles ── */
.page-title {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: #1e3a5f; margin-bottom: 12px; line-height: 1.2;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
}
.page-subtitle { font-size: 1.05rem; color: rgba(30, 58, 95, 0.7); margin-bottom: 32px; max-width: 640px; }

/* ── Post meta (individual post) ── */
.post-meta {
  font-size: 0.85rem; color: rgba(30, 58, 95, 0.55);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; margin-bottom: 12px;
}
.post-meta .tag { color: #c97b5d; }
.post-meta .divider { margin: 0 8px; opacity: 0.4; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #c97b5d; color: #faf5eb;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #b26a4d; transform: translateY(-1px); }

/* ── Post body (markdown output) ── */
.post-body { margin-top: 32px; }
.post-body h2 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.6rem; color: #1e3a5f;
  margin-top: 40px; margin-bottom: 16px; padding-top: 16px;
  border-top: 1px solid rgba(30, 58, 95, 0.08);
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
}
.post-body h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 1.15rem; color: #1e3a5f;
  margin-top: 28px; margin-bottom: 10px;
}
.post-body p { margin-bottom: 16px; font-size: 1rem; color: rgba(30, 58, 95, 0.88); }
.post-body strong { color: #1e3a5f; font-weight: 700; }
.post-body em { font-style: italic; }
.post-body ul, .post-body ol { padding-left: 0; margin-bottom: 20px; }
.post-body ul { list-style: none; }
.post-body ul li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  font-size: 0.98rem; color: rgba(30, 58, 95, 0.88);
}
.post-body ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background-color: #c97b5d;
}
.post-body ol { padding-left: 24px; list-style: decimal; }
.post-body ol li { margin-bottom: 10px; font-size: 0.98rem; color: rgba(30, 58, 95, 0.88); padding-left: 6px; }
.post-body a { color: #c97b5d; text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.post-body a:hover { color: #1e3a5f; text-decoration: underline; }
.post-body blockquote {
  background: rgba(201, 123, 93, 0.06);
  border-left: 3px solid #c97b5d;
  border-radius: 0 12px 12px 0;
  padding: 16px 24px; margin: 20px 0;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code {
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(30, 58, 95, 0.06);
  padding: 2px 6px; border-radius: 4px; font-size: 0.9em;
}
.post-body pre {
  background: #1e3a5f; color: #faf5eb;
  padding: 20px; border-radius: 12px; overflow-x: auto;
  margin: 20px 0; font-size: 0.9em; line-height: 1.6;
}
.post-body pre code { background: transparent; padding: 0; color: inherit; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; }
.post-body hr { border: none; border-top: 1px solid rgba(30, 58, 95, 0.15); margin: 32px 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 20px 0; }
.post-body thead { background: rgba(30, 58, 95, 0.06); }
.post-body th {
  text-align: left; padding: 12px 16px; font-weight: 700;
  color: #1e3a5f; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.04em; border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}
.post-body td { padding: 12px 16px; border-bottom: 1px solid rgba(30, 58, 95, 0.06); color: rgba(30, 58, 95, 0.88); }

/* ── Industry grid (used on landing pages) ── */
.post-body .industry-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 24px 0;
}
.post-body .industry-card {
  background: rgba(30, 58, 95, 0.04);
  border: 1px solid rgba(30, 58, 95, 0.1);
  border-radius: 14px; padding: 20px;
}
.post-body .industry-card h3 { margin-top: 0; font-size: 1rem; margin-bottom: 8px; }
.post-body .industry-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ── Final CTA ── */
.final-cta {
  background: #1e3a5f; color: #faf5eb;
  border-radius: 20px; padding: 40px 32px; margin: 48px 0 32px;
  text-align: center;
}
.final-cta h2 {
  color: #faf5eb; border-top: none; padding-top: 0; margin-top: 0;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.6rem;
  margin-bottom: 12px; font-variation-settings: 'SOFT' 30, 'WONK' 1;
}
.final-cta p { color: rgba(250, 245, 235, 0.85); margin-bottom: 24px; font-size: 1rem; }
.final-cta .btn-primary { background: #c97b5d; color: #faf5eb; }
.final-cta .btn-primary:hover { background: #e88b6d; }

/* ── Post list (index page) ── */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card {
  display: block;
  background: rgba(30, 58, 95, 0.03);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 14px; padding: 24px;
  text-decoration: none; color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  background: rgba(30, 58, 95, 0.05);
  border-color: rgba(201, 123, 93, 0.4);
  transform: translateY(-1px);
}
.post-card .post-card-meta {
  font-size: 0.8rem; color: rgba(30, 58, 95, 0.55);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
  margin-bottom: 8px;
}
.post-card .post-card-meta .tag { color: #c97b5d; }
.post-card h2 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.3rem; color: #1e3a5f;
  margin-bottom: 8px; line-height: 1.3;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
}
.post-card p { font-size: 0.95rem; color: rgba(30, 58, 95, 0.75); margin-bottom: 0; }
.post-list-empty {
  padding: 48px 24px; text-align: center;
  color: rgba(30, 58, 95, 0.5); font-style: italic;
}

/* ── Footer ── */
.site-footer {
  margin-top: 48px; padding: 32px 0;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
  text-align: center;
}
.footer-business { font-size: 0.85rem; color: rgba(30, 58, 95, 0.5); line-height: 1.8; }
.footer-business a { color: rgba(30, 58, 95, 0.6); text-decoration: none; }
.footer-business a:hover { color: rgba(30, 58, 95, 0.9); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .site-header { padding: 24px 0; margin-bottom: 32px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .post-body h2 { font-size: 1.35rem; }
  .final-cta { padding: 32px 20px; }
  .post-card { padding: 20px; }
}
