/* Lumirua Learn & Editorial Static Pages — aligned with main app palette */
:root {
  --bg: #F4F1EA;
  --surface: #FFFEFB;
  --surface-alt: #EFECE3;
  --border: #D4CFC1;
  --ink: #16181D;
  --ink-muted: #55544E;
  --accent: #8B5E34;
  --accent-bg: #F5EDE1;
  --wood: #2E6F40;
  --fire: #B8422A;
  --earth: #9C7228;
  --metal: #5E6873;
  --water: #255C8A;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Newsreader', Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.header-nav a {
  color: var(--ink-muted);
  font-weight: 500;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--ink);
  text-decoration: none;
}
.nav-cta {
  background: var(--ink);
  color: #FFFEFB !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.nav-cta:hover {
  opacity: 0.9;
}

/* Main container */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.page-wrap.wide {
  max-width: 1080px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--ink-muted);
}
.breadcrumb a:hover {
  color: var(--ink);
}
.breadcrumb span {
  margin: 0 6px;
}

/* Hero / Article Header */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
h1 {
  font-family: 'Newsreader', Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.22;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.lead {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.65;
}
.meta-row {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Article prose */
.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 40px;
}
.article-body h2 {
  font-family: 'Newsreader', Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.3;
  margin: 34px 0 12px;
  padding-top: 8px;
  color: var(--ink);
}
.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
}
.article-body h3 {
  font-size: 17px;
  margin: 22px 0 8px;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 16px;
  font-size: 15.5px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.article-body li {
  margin-bottom: 8px;
  font-size: 15.5px;
}

/* Callout / Key takeaways */
.callout {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 22px 0;
  border-radius: 0 4px 4px 0;
}
.callout-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 6px;
}
.callout p:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: none;
}

/* Diagram card */
.diagram-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin: 24px 0;
  text-align: center;
}
.diagram-box svg {
  max-width: 100%;
  height: auto;
}
.diagram-caption {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* Element badges */
.el-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
}
.el-wood { background: var(--wood); }
.el-fire { background: var(--fire); }
.el-earth { background: var(--earth); }
.el-metal { background: var(--metal); }
.el-water { background: var(--water); }

/* FAQ block */
.faq-list {
  margin-top: 16px;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 6px;
}
.faq-a {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* CTA Banner */
.cta-card {
  margin-top: 36px;
  background: var(--ink);
  color: #F4F1EA;
  border-radius: 6px;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cta-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  margin: 0 0 6px;
  color: #FFFEFB;
}
.cta-card p {
  margin: 0;
  font-size: 14.5px;
  color: #D4CFC1;
  max-width: 520px;
}
.cta-btn {
  display: inline-block;
  background: #FFFEFB;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.cta-btn:hover {
  background: #EFECE3;
  text-decoration: none;
}

/* Cards Grid (Hub & Related) */
.section-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--ink);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(22, 24, 29, 0.06);
  text-decoration: none;
}
.guide-card-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.guide-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink);
}
.guide-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

.related-box {
  margin-top: 36px;
}
.related-box h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  margin: 0 0 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-muted);
  padding: 28px 24px;
  font-size: 13px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-brand {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: var(--ink-muted);
}
.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 680px) {
  .article-body {
    padding: 24px 20px;
  }
  .header-inner {
    padding: 0 16px;
  }
  .header-nav {
    gap: 12px;
    font-size: 13px;
  }
  .cta-card {
    padding: 22px 20px;
  }
}
