/* Doudou landing site — shared stylesheet (no build step, no external deps). */

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang TC", "PingFang SC", "Helvetica Neue", sans-serif;
  background: #faf6ee;
  color: #2b2622;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}
.hero .tagline {
  font-size: 1.1rem;
  color: #5a5148;
  margin: 0 0 1.75rem;
}
.hero .badges {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #8a7f72;
  margin: 1.25rem 0 0;
}

/* App Store button (text link, no image asset needed) */
.store-btn {
  display: inline-block;
  background: #2b2622;
  color: #faf6ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
}
.store-btn:hover { background: #4a423a; }

/* Sections */
section { margin: 3rem 0; }
h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e5dcc9;
}
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.3rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin: 1.25rem 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  background: #e5dcc9;
  color: #2b2622;
  font-weight: 700;
}
.steps strong { display: block; font-size: 1.05rem; }

/* Mechanism fact cards */
.facts { padding: 0; margin: 0; list-style: none; }
.facts li {
  background: #fffdf8;
  border: 1px solid #e5dcc9;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0.9rem 0;
}
.facts strong { display: block; margin-bottom: 0.25rem; }

/* FAQ */
.faq h3 { margin-top: 1.5rem; }
.faq p { margin-top: 0.3rem; }

/* Footer */
footer {
  margin: 4rem auto 0;
  border-top: 1px solid #e5dcc9;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  font-size: 0.9rem;
  color: #5a5148;
}
footer nav a { margin-right: 1.25rem; color: #5a5148; }
footer .lang-switch { margin-bottom: 0.75rem; display: block; }

a { color: #7a5c2e; }
code { background: #efe8d8; border-radius: 4px; padding: 0 0.3rem; font-size: 0.9em; }

/* Hexagram archive pages (2026-11-04; pages generated by
   docs/landing/tools/gen_hexagram_pages.py) */
.hexhead .crumb { font-size: 0.85rem; color: #8a7f72; margin: 0 0 0.75rem; }
.hexhead .en-name { font-size: 1.1rem; font-weight: 400; color: #5a5148; }
.hexfig { max-width: 380px; margin: 1.25rem auto 1.5rem; }
.hexline { display: flex; align-items: center; gap: 0.7rem; margin: 0.45rem 0; }
.hexline .strokes {
  display: flex; width: 150px; flex: none;
  justify-content: space-between;
}
.hexline .bar { width: 100%; height: 12px; background: #2b2622; border-radius: 3px; }
.hexline .half { width: 66px; height: 12px; background: #2b2622; border-radius: 3px; }
.hexline .hexno { color: #8a7f72; font-size: 0.8rem; width: 1.1rem; text-align: right; }
.hexline .hexlab { color: #8a7f72; font-size: 0.8rem; }
.facts-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.facts-table th {
  text-align: left; vertical-align: top; white-space: nowrap;
  padding: 0.45rem 0.9rem 0.45rem 0; color: #5a5148;
  border-bottom: 1px solid #e5dcc9; font-weight: 600;
}
.facts-table td { padding: 0.45rem 0; border-bottom: 1px solid #e5dcc9; }
.scenario { margin: 1.25rem 0; }
.scenario h3 { margin: 0 0 0.4rem; }
.quotes { padding-left: 1.1rem; }
.quotes li { margin: 0.5rem 0; }
.hexlist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.hexlist li { margin: 0.3rem 0; break-inside: avoid; }
.hexlist .kw { color: #8a7f72; font-size: 0.8rem; margin-left: 0.35rem; }
@media (max-width: 560px) { .hexlist { columns: 1; } }
