/* Journey West site — matches the app: paper ground, ink text, the
   reader's semantic accent colours. */

:root {
  --bg: #faf8f4;
  --ink: #1c1c1e;
  --secondary: #6e6e73;
  --rule: #e4e0d8;
  --card: #ffffff;
  --teal: #0b6e58;
  --terracotta: #b0521e;
  --blue: #2a5db0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --ink: #f2f2f4;
    --secondary: #98989e;
    --rule: #3a3a3e;
    --card: #2a2a2d;
    --teal: #4fd0b0;
    --terracotta: #ff8a75;
    --blue: #6fc0ec;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.hanzi {
  font-family: "Songti SC", "Songti TC", "Noto Serif TC", "Noto Serif SC", serif;
}

/* --- Header / hero ------------------------------------------------------ */

header.hero { text-align: center; padding: 64px 20px 40px; }
.hero .title-zh { font-size: 64px; font-weight: 600; letter-spacing: 0.08em; }
.hero .title-en { font-size: 28px; font-weight: 650; margin-top: 8px; }
.hero .tagline { color: var(--secondary); margin-top: 12px; font-size: 19px; }
.hero .badge {
  display: inline-block; margin-top: 24px; padding: 10px 22px;
  border: 1.5px solid var(--blue); border-radius: 999px;
  color: var(--blue); font-size: 15px; font-weight: 500;
}

/* --- Screenshot gallery ------------------------------------------------- */

.gallery {
  display: flex; gap: 20px; overflow-x: auto; padding: 24px 20px 32px;
  scroll-snap-type: x proximity;
  max-width: 1100px; margin: 0 auto;
}
.gallery figure { flex: 0 0 240px; scroll-snap-align: center; }
.gallery img {
  width: 100%; border-radius: 18px; border: 1px solid var(--rule);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  display: block;
}
.gallery figcaption {
  font-size: 13.5px; color: var(--secondary); text-align: center;
  margin-top: 10px; line-height: 1.4; padding: 0 4px;
}

/* --- Feature prose ------------------------------------------------------ */

section.features { padding: 24px 0 8px; }
section.features h2 { font-size: 22px; margin: 28px 0 10px; }
section.features p { margin: 12px 0; }
section.features ul { margin: 12px 0 12px 24px; }
section.features li { margin: 6px 0; }
.accent-teal { color: var(--teal); font-weight: 600; }
.accent-terracotta { color: var(--terracotta); font-weight: 600; }
.accent-blue { color: var(--blue); font-weight: 600; }

/* --- Text pages (privacy / support) ------------------------------------- */

article.page { padding: 48px 0 24px; }
article.page h1 { font-size: 30px; margin-bottom: 4px; }
article.page .updated { color: var(--secondary); font-size: 14.5px; margin-bottom: 24px; }
article.page h2 { font-size: 20px; margin: 26px 0 8px; }
article.page p, article.page li { margin: 10px 0; }
article.page ul { margin-left: 24px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

footer {
  border-top: 1px solid var(--rule);
  margin-top: 48px; padding: 28px 20px 48px;
  text-align: center; color: var(--secondary); font-size: 14.5px;
}
footer a { color: var(--secondary); margin: 0 10px; }
