:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #16151a;
  --muted: #6d6974;
  --line: #e8e3da;
  --accent: #c0341f;
  --accent-dark: #a92c18;
  --accent-soft: #fbede7;
  --gold: #a47c1a;
  --gold-soft: #f3d27a;
  --jade: #1f6b58;
  --dark: #16151c;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 21, 26, 0.05), 0 8px 24px rgba(22, 21, 26, 0.06);
  --shadow-md: 0 2px 4px rgba(22, 21, 26, 0.06), 0 18px 44px rgba(22, 21, 26, 0.12);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.16;
  margin: 0 0 0.45em;
}

p { margin: 0 0 1em; }

.sr-only {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  padding: 0.85rem max(1rem, calc((100vw - 1200px) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  gap: 0.55rem;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(192, 52, 31, 0.35);
  color: #fff;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
  padding: 0.45rem 0.8rem;
}

.site-nav a:hover { background: var(--bg); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
  margin-left: 0.5rem;
  padding: 0.5rem 1.05rem;
}

.site-nav .nav-cta:hover { background: var(--accent); color: #fff; }

.site-main { min-height: 62vh; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(700px 420px at 88% -10%, rgba(243, 210, 122, 0.22), transparent 62%),
    radial-gradient(560px 420px at 8% 115%, rgba(192, 52, 31, 0.32), transparent 60%),
    linear-gradient(120deg, #141319 0%, #241a17 55%, #381f16 100%);
  border-radius: 26px;
  color: #f6f1e8;
  display: grid;
  gap: 2.6rem;
  grid-template-columns: 1.05fr 0.95fr;
  margin: 1.25rem auto 0;
  max-width: 1200px;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3.2rem);
  position: relative;
}

.hero-decor {
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
}

.hero-decor svg { height: 100%; width: 100%; }

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

.hero .eyebrow {
  align-items: center;
  color: var(--gold-soft);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  gap: 0.45rem;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero .eyebrow::before {
  background: var(--gold-soft);
  border-radius: 999px;
  content: "";
  height: 2px;
  width: 26px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 4.8vw, 3.55rem);
  font-weight: 560;
  max-width: 15ch;
}

.hero h1 em {
  color: var(--gold-soft);
  font-style: normal;
}

.hero-lead {
  color: rgba(246, 241, 232, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 1.1rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.7rem 0 1.5rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-block;
  font-size: 0.96rem;
  font-weight: 650;
  padding: 0.78rem 1.35rem;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(192, 52, 31, 0.38);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { background: transparent; color: inherit; }
.btn-ghost-light { border-color: rgba(246, 241, 232, 0.45); color: #f6f1e8; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { display: block; text-align: center; width: 100%; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(246, 241, 232, 0.88);
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
}

.trust-list li::before {
  background: var(--gold-soft);
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

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

.tool-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  padding: 1.6rem;
}

.tool-card-label {
  align-items: center;
  color: var(--gold);
  display: flex;
  font-size: 0.74rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.tool-card-label .live-dot {
  background: var(--jade);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 107, 88, 0.14);
  height: 8px;
  width: 8px;
}

.tool-card-note { color: var(--muted); font-size: 0.86rem; margin: 1rem 0 0; }
.tool-card-note a { color: var(--accent); font-weight: 600; }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 620;
  margin-bottom: 0.35rem;
}

.field-row { display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr 1fr; }

select, input[type="time"], input[type="search"], input[type="text"], input[type="email"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  padding: 0.64rem 0.72rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

select:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.check-row {
  align-items: center;
  display: flex;
  font-size: 0.84rem;
  font-weight: 400 !important;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.check-row input { width: auto; }

.stats-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem 1.25rem 0;
}

.stat-chip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
}

.stat-chip strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 620; }
.stat-chip span { color: var(--muted); font-size: 0.84rem; line-height: 1.25; }

/* ---------- Sections ---------- */

.section {
  margin: 0 auto;
  max-width: 1200px;
  padding: 3.4rem 1.25rem;
}

.section-alt {
  background:
    radial-gradient(520px 260px at 92% 0%, rgba(192, 52, 31, 0.07), transparent 65%),
    #f1eee8;
}

.section-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin: 0; }
.section-head p { color: var(--muted); margin: 0.3rem 0 0; }
.section-head .text-link { align-self: center; }

.eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 650;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- Learning paths ---------- */

.path-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: block;
  overflow: hidden;
  padding: 1.6rem 1.5rem 1.4rem;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease;
}

.path-card::before {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.path-card:hover { border-color: rgba(192, 52, 31, 0.4); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.path-card:hover::before { transform: scaleX(1); }

.path-number {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-dark);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.path-card h3 { font-size: 1.22rem; margin-top: 0.9rem; }
.path-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Reference strip ---------- */

.ref-strip { display: grid; gap: 0.8rem; grid-template-columns: repeat(4, 1fr); }

.ref-link {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  font-weight: 620;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1.05rem 1.15rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.ref-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.ref-link span:first-child { font-size: 0.95rem; }
.ref-link .ref-arrow { color: var(--gold); font-size: 1.1rem; }

.element-dots { display: inline-flex; gap: 4px; }
.element-dots i { border-radius: 50%; height: 9px; width: 9px; }
.el-wood { background: #6fae6f; }
.el-fire { background: #d4633f; }
.el-earth { background: #c9a24a; }
.el-metal { background: #9aa7b8; }
.el-water { background: #5f86c9; }

/* ---------- Articles ---------- */

.article-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: block;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease;
}

.article-card:hover { border-color: rgba(192, 52, 31, 0.4); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.article-cover {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.article-card:hover .article-cover { transform: scale(1.035); }

.article-card-body { padding: 1.25rem 1.3rem 1.35rem; }
.article-category {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-card h3 { font-size: 1.08rem; margin-top: 0.45rem; }
.article-card p { color: var(--muted); font-size: 0.92rem; }
.article-meta { color: var(--muted); font-size: 0.82rem; }

.featured-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  margin-bottom: 1.3rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.featured-card:hover { box-shadow: var(--shadow-md); }
.featured-card .article-cover { aspect-ratio: auto; height: 100%; min-height: 300px; }
.featured-card-body { align-content: center; display: grid; padding: 2rem; }
.featured-card-body h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.featured-card-body p { color: var(--muted); }

/* ---------- FAQ / Newsletter ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 0.15rem 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  padding: 0.95rem 0;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { color: var(--gold); content: "+"; float: right; font-family: var(--font-body); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 1rem; }

.newsletter {
  align-items: center;
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(243, 210, 122, 0.22), transparent 62%),
    linear-gradient(120deg, #16151c, #2b1d1a);
  border-radius: 20px;
  color: #f6f1e8;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 2.2rem 2.4rem;
}

.newsletter h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.25rem; }
.newsletter p { color: rgba(246, 241, 232, 0.78); margin: 0; }

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

.site-footer {
  background: var(--dark);
  color: #e8e6e2;
  margin-top: 3rem;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  margin: 0 auto;
  max-width: 1200px;
}

.footer-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; }
.footer-tagline, .footer-note, .footer-contact { color: #a9a6ad; font-size: 0.9rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-grid nav a { color: #e8e6e2; font-size: 0.94rem; }
.footer-grid nav a:hover { color: var(--gold-soft); }
.footer-contact a { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #7f7c84;
  font-size: 0.82rem;
  margin: 2rem auto 0;
  max-width: 1200px;
  padding-top: 1.2rem;
}

/* ---------- Inner pages ---------- */

.page-head {
  margin: 0 auto;
  max-width: 1200px;
  padding: 3.2rem 1.25rem 1.4rem;
}

.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-lead { color: var(--muted); font-size: 1.08rem; max-width: 46rem; }

.calculator-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 0.9fr 1.1fr;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.5rem 1.25rem;
}

.calc-form, .calc-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
}

.form-note { color: var(--muted); font-size: 0.82rem; margin: 0.9rem 0 0; }
.result-empty-note { color: var(--muted); }
.result-note { color: var(--muted); font-size: 0.9rem; }
.result-disclaimer { color: var(--muted); font-size: 0.82rem; margin-top: 1.2rem; }
.result-disclaimer a { color: var(--accent); }

.pillars-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem;
}

.pillar-cell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 0.5rem;
  text-align: center;
}

.pillar-label { color: var(--muted); display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pillar-char { display: block; font-family: "KaiTi", "STKaiti", "Noto Serif SC", serif; font-size: 2rem; font-weight: 600; line-height: 1.3; }
.pillar-pinyin { color: var(--muted); display: block; font-size: 0.72rem; }
.pillar-element { color: var(--muted); display: block; font-size: 0.7rem; margin-top: 0.25rem; }
.pillar-unknown { color: var(--muted); display: block; font-size: 0.82rem; padding: 1.2rem 0; }

.element-block { margin-top: 1.5rem; }
.element-block h3 { font-size: 1.02rem; }
.element-row { align-items: center; display: grid; gap: 0.6rem; grid-template-columns: 4.5rem 1fr 1.6rem; margin-bottom: 0.5rem; }
.element-name { font-size: 0.9rem; font-weight: 620; }
.element-bar { background: var(--bg); border-radius: 999px; height: 10px; overflow: hidden; }
.element-fill { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); display: block; height: 100%; }
.element-count { color: var(--muted); font-size: 0.85rem; text-align: right; }
.element-note { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }

.method-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, 1fr);
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  transition: box-shadow 0.18s ease;
}

.method-card:hover { box-shadow: var(--shadow-sm); }
.method-card > span { color: var(--gold); font-family: var(--font-display); font-size: 0.95rem; font-weight: 650; }
.method-card h3 { font-size: 1.08rem; margin-top: 0.55rem; }
.method-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.note-block {
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.6rem;
  padding: 0.65rem 1rem;
}

.note-block a { color: var(--accent); }

.path-block { border-top: 1px solid var(--line); }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { border-bottom: 1px solid var(--line); }
.step-list a { align-items: center; display: flex; gap: 1rem; padding: 0.95rem 0.3rem; transition: padding 0.15s ease; }
.step-list a:hover { color: var(--ink); padding-left: 0.6rem; }
.step-list a:hover .step-arrow { color: var(--accent); transform: translateX(3px); }
.step-index { color: var(--gold); font-family: var(--font-display); font-weight: 650; }
.step-list strong { display: block; }
.step-list small { color: var(--muted); }
.step-arrow { color: var(--line); font-size: 1.1rem; margin-left: auto; transition: transform 0.15s ease, color 0.15s ease; }

.foundation-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.foundation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.foundation-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.foundation-card h3 { margin-bottom: 0.3rem; }
.foundation-card p { color: var(--muted); margin: 0; }

.table-wrap { overflow-x: auto; }
.ref-table { border-collapse: collapse; font-size: 0.95rem; width: 100%; }
.ref-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.ref-table th, .ref-table td { border-bottom: 1px solid var(--line); padding: 0.75rem 0.85rem; }
.ref-table tbody tr { transition: background 0.12s ease; }
.ref-table tbody tr:hover { background: var(--bg); }
.char-cell { font-family: "KaiTi", "STKaiti", "Noto Serif SC", serif; font-size: 1.5rem; font-weight: 600; }
.element-cell { align-items: center; display: inline-flex; gap: 0.45rem; }

.cycle-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.cycle-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.cycle-list { list-style: none; margin: 0; padding: 0; }
.cycle-list li { border-bottom: 1px solid var(--line); display: flex; gap: 0.8rem; justify-content: space-between; padding: 0.6rem 0; }
.cycle-list li:last-child { border-bottom: 0; }
.cycle-list span { color: var(--muted); }

.glossary { display: grid; gap: 0 2rem; grid-template-columns: 1fr 1fr; margin: 0; }
.glossary div { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.glossary dt { font-family: var(--font-display); font-size: 1.05rem; font-weight: 620; }
.glossary dd { color: var(--muted); margin: 0.2rem 0 0; }

.filter-bar { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-bottom: 1.6rem; }
.filter-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 620;
  padding: 0.42rem 0.95rem;
  transition: all 0.15s ease;
}

.filter-nav a:hover { border-color: var(--ink); color: var(--ink); }
.filter-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-form { display: flex; gap: 0.5rem; }
.search-form input { width: 15rem; }
.search-form button {
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 620;
  padding: 0.55rem 1rem;
  transition: background 0.15s ease;
}

.search-form button:hover { background: var(--accent); }
.empty-state { color: var(--muted); padding: 2rem 0; }

.article-page { margin: 0 auto; max-width: 860px; padding: 3rem 1.25rem 1rem; }
.article-banner {
  aspect-ratio: 21 / 9;
  border-radius: 18px;
  display: block;
  height: auto;
  margin-bottom: 2rem;
  object-fit: cover;
  width: 100%;
}

.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.article-body p { font-size: 1.06rem; line-height: 1.8; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.7rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.16em; }
.article-footer { margin-top: 2.5rem; }

.contact-note { font-size: 1.05rem; }
.contact-note a { color: var(--accent); }
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  padding: 1.4rem;
}

.disclaimer p { color: var(--muted); margin: 0; }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .article-card, .path-card, .featured-card { transition: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .path-grid, .article-grid, .article-grid-wide { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-strip { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .article-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .calculator-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { gap: 0.1rem; }
  .site-nav .nav-cta { margin-left: 0; }
  .path-grid, .article-grid, .article-grid-wide, .method-grid, .foundation-grid, .cycle-grid, .glossary { grid-template-columns: 1fr; }
  .ref-strip, .stats-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .newsletter { padding: 1.6rem; }
}
