/* Same palette and type scale as the Youzai site (youzai/web/tokens.css). */
:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --band: #f4f4f2;
  --ink: #1a1a1a;
  --muted: #8c8c8c;
  --line: #ebebeb;
  --gold: #c4a27a;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121212; --band: #1e1e1e; --ink: #ededed; --muted: #9a9a9a; --line: #2c2c2c; }
}
@media (min-width: 600px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: .9375rem; line-height: 1.65;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

/* language: English by default, Chinese when html[data-lang=zh] */
[data-zh] { display: none; }
html[data-lang="zh"] [data-zh] { display: inline; }
html[data-lang="zh"] [data-en] { display: none; }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; }
.brand-en { font-size: 1.0625rem; font-weight: 400; letter-spacing: .02em; }
.brand-zh { font-size: .8125rem; color: var(--muted); }
.lang {
  font: inherit; font-size: .8125rem; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; min-width: 44px; height: 36px; padding: 0 12px; cursor: pointer;
}
.lang:hover { border-color: var(--muted); }
.lang:focus-visible, .card:focus-visible, .brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.hero { padding-top: 72px; padding-bottom: 48px; }
.eyebrow { margin: 0 0 16px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: 2.5rem; font-weight: 300; line-height: 1.2; letter-spacing: -.01em; max-width: 16em; }
.lead { margin: 20px 0 0; color: var(--muted); max-width: 34em; }
@media (max-width: 480px) { h1 { font-size: 2rem; } .hero { padding-top: 48px; } }

.products { padding-bottom: 72px; }
.section-label { margin: 0 0 16px; font-size: .75rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.card:hover { border-color: var(--muted); background: var(--band); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 { margin: 0; font-size: 1.5rem; font-weight: 300; }
.zh-name { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.tag { font-size: .6875rem; color: #fff; background: var(--gold); border-radius: 2px; padding: 2px 6px; white-space: nowrap; }
.card p { margin: 0; }
.meta { font-size: .8125rem; color: var(--muted); }
.go { margin-top: auto; padding-top: 12px; font-size: .8125rem; }

.foot { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.foot p { margin: 0; }
