:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --accent: #6b4c1e;
  --accent-light: #c89352;
  --text: #2a2418;
  --muted: #7a7060;
  --border: #e2dbcd;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fdfaf5 0, var(--bg) 45%, #e9e2d4 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- Top navigation ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 0;
  flex-wrap: wrap;
}

.brand {
  font-family: "Georgia", "Times New Roman", serif;
  text-decoration: none;
  display: block;
}

.brand-name {
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 2px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: #fdf8f1;
  border-color: rgba(107, 76, 30, 0.15);
}

.nav-link.is-active {
  background: #fdf8f1;
  border-color: rgba(107, 76, 30, 0.2);
}

.nav-link.nav-cta {
  background: linear-gradient(145deg, var(--accent), #4c3311);
  color: #fff;
  border-color: transparent;
}

.nav-link.nav-cta:hover {
  box-shadow: 0 8px 20px rgba(107, 76, 30, 0.25);
  transform: translateY(-1px);
}

.nav-link .nav-arrow {
  font-size: 11px;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .site-header { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}

/* ---------- Page shell ---------- */

.page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.page-narrow {
  min-height: 0;
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.card {
  max-width: 900px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 26px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}

.brand-block {
  font-family: "Georgia", "Times New Roman", serif;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 20px;
}

h1 {
  font-size: 26px;
  margin: 8px 0 12px;
  line-height: 1.2;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(107, 76, 30, 0.2);
  color: var(--accent);
  background: #fdf8f1;
  margin-bottom: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4a8b3a;
  box-shadow: 0 0 0 3px rgba(74, 139, 58, 0.18);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.feature-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.feature-list span.bullet {
  color: var(--accent);
  font-weight: 600;
}

.right-panel {
  border-left: 1px solid var(--border);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 800px) {
  .right-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 20px;
  }
}

.panel-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.panel-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cta-card {
  background: linear-gradient(160deg, #fdf8f1, #f6ecd9);
  border: 1px solid rgba(107, 76, 30, 0.15);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-top: 6px;
}

.cta-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--text);
}

.cta-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), #4c3311);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(107, 76, 30, 0.22);
}

.button:active {
  transform: translateY(0);
}

.button.button-outline {
  background: transparent;
  border: 1px solid rgba(107, 76, 30, 0.3);
  color: var(--accent);
}

.button .arrow {
  transition: transform 0.15s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.small-print {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.roadmap-list li {
  margin-bottom: 6px;
}

/* ---------- Feature cards (Challenges / Learning) ---------- */

.features-section {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.features-heading {
  text-align: center;
  margin-bottom: 18px;
}

.features-heading .panel-title {
  margin-bottom: 6px;
}

.features-heading p {
  color: var(--muted);
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 76, 30, 0.2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fdf8f1, #f6ecd9);
  border: 1px solid rgba(107, 76, 30, 0.15);
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 19px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}

.feature-cta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-card:hover .feature-cta .arrow {
  transform: translateX(3px);
}

.feature-cta .arrow {
  transition: transform 0.15s ease;
}

/* ---------- Mission page ---------- */

.mission-hero {
  text-align: center;
  padding: 26px 0 8px;
}

.mission-hero h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 30px;
}

.mission-statement {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  margin: 18px 0 28px;
  text-align: center;
}

.mission-statement p {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.mission-statement span.verse-ref {
  display: block;
  margin-top: 14px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.section-block {
  margin: 34px 0;
}

.section-block h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 21px;
  margin: 0 0 10px;
}

.section-block p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.value-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text);
}

.value-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.value-card .verse-ref {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
}

.belief-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.belief-list li {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.belief-list strong {
  color: var(--text);
}

.mission-cta {
  text-align: center;
  margin-top: 36px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fdf8f1, #f6ecd9);
  border: 1px solid rgba(107, 76, 30, 0.15);
}

.mission-cta h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 20px;
  margin: 0 0 8px;
}

.mission-cta p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
}

.mission-cta .button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.mission-cta .button {
  width: auto;
  padding: 11px 22px;
}

/* ---------- Blog: listing ---------- */

.blog-hero-lead {
  color: var(--muted);
  font-size: 14px;
  max-width: 560px;
  margin: 8px auto 0;
}

.blog-loading,
.blog-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 76, 30, 0.2);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: linear-gradient(160deg, #fdf8f1, #f6ecd9);
}

.blog-card-img-fallback {
  background: linear-gradient(160deg, #fdf8f1, #f6ecd9);
  aspect-ratio: 1 / 1;
}

.blog-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  background: #fdf8f1;
  border: 1px solid rgba(107, 76, 30, 0.15);
  padding: 3px 9px;
  border-radius: 999px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--muted);
}

.blog-card-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.blog-card-arrow {
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.15s ease;
}

.blog-card:hover .blog-card-arrow {
  transform: translateX(3px);
}

/* ---------- Blog: post detail ---------- */

.post-not-found {
  text-align: center;
  padding: 60px 0;
}

.post-not-found h1 {
  font-family: "Georgia", "Times New Roman", serif;
}

.post-hero {
  position: relative;
  background: linear-gradient(160deg, #fdf8f1, #f0e6d0);
  padding: 40px 0 32px;
  overflow: hidden;
}

.post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253, 250, 245, 0.5), rgba(253, 250, 245, 0.92));
}

.post-hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.post-date,
.post-read-time {
  font-size: 12px;
  color: var(--muted);
}

.post-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.post-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 640px;
}

.post-author-row {
  font-size: 13px;
}

.post-author-name {
  font-weight: 700;
  color: var(--text);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 40px;
  padding-top: 36px;
  align-items: start;
}

@media (max-width: 800px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    order: 2;
  }
}

.post-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.post-toc {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.post-toc h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 10px;
}

.post-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-toc a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.post-toc a:hover {
  color: var(--accent);
}

.sidebar-share h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 10px;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.share-btn:hover {
  border-color: rgba(107, 76, 30, 0.3);
  color: var(--accent);
}

.sidebar-back {
  align-self: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-outline {
  color: var(--accent);
  border: 1px solid rgba(107, 76, 30, 0.3);
  background: transparent;
}

.btn-outline:hover {
  background: #fdf8f1;
}

.btn-ghost {
  color: var(--muted);
  border: none;
  padding-left: 0;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #4c3311);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(107, 76, 30, 0.25);
}

.post-body {
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.post-body h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 26px;
  margin: 0 0 18px;
  line-height: 1.25;
}

.post-body h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 22px;
  margin: 34px 0 14px;
  line-height: 1.3;
}

.post-body h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  margin: 26px 0 10px;
}

.post-body p {
  margin: 0 0 16px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text);
}

.post-body li {
  margin-bottom: 6px;
}

.post-body a {
  color: var(--accent);
}

.post-body strong {
  color: var(--text);
}

.post-body blockquote {
  margin: 22px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent-light);
  background: #fdf8f1;
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-style: italic;
}

.post-body blockquote p {
  margin: 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.post-body th,
.post-body td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.post-body th {
  background: #fdf8f1;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
}

.post-footer-cta {
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fdf8f1, #f6ecd9);
  border: 1px solid rgba(107, 76, 30, 0.15);
  text-align: center;
}

.post-footer-cta h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 19px;
  margin: 0 0 8px;
}

.post-footer-cta p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
}

.post-footer-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.related-posts {
  margin: 44px 0 20px;
}

.related-posts h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 19px;
  margin: 0 0 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.related-card-body {
  padding: 14px 16px 16px;
}

.related-card-body h4 {
  font-size: 14px;
  margin: 8px 0 6px;
  line-height: 1.3;
}

.related-date {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  font-size: 11px;
  color: #8a7f6a;
  margin-top: 16px;
  padding-bottom: 28px;
}
