/* Feng Shui Academy website (landing and content pages). Colours match the app; light and dark mode. */
:root { --bg: #faf6ef; --surface: #fff; --surface-2: #f3ece0; --text: #2b2420; --muted: #6f655c; --line: #e4d9c8; --accent: #7b2f28; --gold: #c9962b; }
@media (prefers-color-scheme: dark) { :root { --bg: #17130f; --surface: #221c17; --surface-2: #2c251e; --text: #efe7dc; --muted: #a99d90; --line: #3a3128; --accent: #eea08f; --gold: #d9a441; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1040px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.langs { font-size: 14px; color: var(--muted); } .langs b { color: var(--text); }
main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hero { text-align: center; padding: 32px 0 24px; }
.hero-zh { font: 700 64px/1 "Noto Serif SC", "Songti SC", serif; color: var(--accent); }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 14px auto 10px; max-width: 760px; }
.sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 700; border: 1px solid var(--line); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-size: 18px; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #1b1410; } }
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.soon { font-size: 14px; color: var(--muted); }
h2 { font-size: 26px; margin: 8px 0 14px; }
.shots { padding: 24px 0; }
.shot-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.shot-row figure { margin: 0; flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }
.shot-row img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0,0,0,.08); background: var(--surface); }
.shot-row figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 16px 0 24px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.feat .fi { font-size: 28px; } .feat h3 { margin: 6px 0 4px; font-size: 19px; } .feat p { margin: 0; color: var(--muted); font-size: 16px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; } .faq details p { margin: 8px 0 0; color: var(--muted); }
.support { padding: 18px 0 8px; } .small { font-size: 14px; color: var(--muted); }
footer { max-width: 1040px; margin: 24px auto 0; padding: 20px 16px 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.launch { display: inline-block; max-width: 620px; margin: 0 auto 22px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); font-size: 16px; }
/* Content pages: articles, day pillars, press */
.subnav { max-width: 1040px; margin: 0 auto; padding: 0 16px 6px; font-size: 14px; color: var(--muted); }
.art { max-width: 760px; }
.art h1 { font-size: clamp(26px, 5vw, 38px); margin: 10px 0 8px; } .art h2 { font-size: 22px; margin: 26px 0 8px; } .art h3 { font-size: 18px; margin: 18px 0 6px; }
.art p, .art li { font-size: 17px; } .lead { font-size: 19px !important; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.zh-big { font-family: "Noto Serif SC", "Songti SC", serif; color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 18px 0; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.facts span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .facts b { font-family: "Noto Serif SC", serif; font-size: 20px; color: var(--accent); margin-right: 6px; }
.tip { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border-radius: 12px; padding: 12px 14px; }
.cta-box { background: var(--surface); border: 2px solid var(--accent); border-radius: 18px; padding: 18px; margin: 26px 0; text-align: center; }
.cta-box h2 { margin-top: 0; }
.pnav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0; font-size: 15px; }
.art-list { display: grid; gap: 12px; margin: 18px 0; }
.art-card { display: block; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.art-card b { display: block; font-size: 18px; color: var(--accent); margin-bottom: 4px; } .art-card span { color: var(--muted); font-size: 15px; }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; } .tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-wrap { overflow-x: auto; }
ul.more li { margin-bottom: 4px; }
.tbl td, .tbl th { overflow-wrap: anywhere; hyphens: auto; }
.facts-tbl th { white-space: nowrap; hyphens: none; overflow-wrap: normal; padding-right: 14px; }
/* Nine-palace charts on the content pages */
.g9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 360px; margin: 14px 0; }
.g9 > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; min-height: 84px; line-height: 1.2; }
.g9 > div.c { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.g9 > div.f { border: 2px solid var(--gold); }
.g9 > div.w { border: 2px solid color-mix(in srgb, #b8433a 60%, transparent); }
.g9 .d { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.g9 .mw { display: flex; justify-content: space-around; font-weight: 700; font-size: 17px; }
.g9 .m { color: #3d6b4f; } .g9 .wa { color: #2f5f8f; }
@media (prefers-color-scheme: dark) { .g9 .m { color: #8fd1a6; } .g9 .wa { color: #8fbbe8; } }
.g9 .b { font-size: 26px; font-weight: 700; }
.g9 .tg { font-size: 11px; color: #b8433a; font-weight: 700; }
.legend { font-size: 14px; color: var(--muted); }
.legend .m { color: #3d6b4f; font-weight: 700; } .legend .wa { color: #2f5f8f; font-weight: 700; }
.facing-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.facing-list a { display: block; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 15px; }
.facing-list a b { color: var(--accent); }
