/* Hey Magpie · 拾趣 public site. The app's own look (docs/design/system.md): warm cream paper, white cards,
   sandstone for the one action, jacaranda ink only on the Postmark. System fonts; Latin names in serif italic. */
:root {
  --bg: #f7f3e6; --surface: #fffefa; --sunk: #efe9d8; --ink: #22301f; --muted: #5f6658; --line: #e6dfcb;
  --accent: #a95f34; --accent-ink: #fffefa; --accent-soft: #f6e8dc; --accent-text: #8a4a26;
  --postmark: #6a4fc0; --bird: #2b6f8c; --plant: #4a7d3a; --animal: #8a5a3c; --food: #a8781a; --custom: #b2463c;
  --stage: #18201b; --stage-text: #b9c4bd; --paper: #fbfaf6;
  --shadow: 0 3px 14px rgba(60, 80, 40, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Roboto, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.latin { font-family: Georgia, "Times New Roman", "Songti SC", serif; font-style: italic; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Language: the markup carries both languages; the html data-l attribute picks one (site.js sets it). */
html[data-l="zh"] [lang="en"], html[data-l="en"] [lang="zh"] { display: none !important; }

/* Buttons: sandstone for the one action, outline for the quiet one */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 999px; padding: 13px 24px; border: 1.5px solid var(--accent); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(169, 95, 52, .25); }
.btn.alt { background: transparent; color: var(--accent-text); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn.disabled { background: var(--sunk); border-color: var(--sunk); color: var(--muted); pointer-events: none; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 20px; }
.brand span { white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.nav .links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav .links a { color: var(--muted); text-decoration: none; }
.nav .links a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.lang:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .links .hide-s { display: none; } }

/* Landing styles live in home.css */

/* Footer */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

/* Text pages (privacy, support) */
.page { max-width: 720px; margin: 0 auto; padding: 24px 0 56px; }
.page h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.page .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.page h2 { font-size: 22px; margin: 32px 0 10px; }
.page p, .page li { color: #2f3a2f; margin-bottom: 10px; }
.page ul, .page ol { padding-left: 22px; margin: 0 0 10px; }
.page .box { background: var(--surface); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); margin: 18px 0; }
.page .draft { background: var(--accent-soft); color: var(--accent-text); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 20px; }

/* Fixes seen in the first screenshots */
.nav .links a.btn { color: var(--accent-ink); }
@media (max-width: 420px) { .brand { font-size: 16px; gap: 8px; } .brand img { width: 32px; height: 32px; } }
