/* Zenthya theme — palette, type and shapes follow zenthya.com (Shopify store):
   warm cream paper, near-black ink, bronze accent, Cormorant headings with
   wide tracking, Urbanist body, soft rounded cards and pill buttons. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Urbanist:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;700&display=swap");

:root {
  --paper: #faf4ee;
  --paper-2: #f2e9df;
  --card: #fffdf8;
  --ink: #1f1a15;
  --ink-2: #5b524a;
  --ink-3: #8a8077;
  --line: #e3dace;
  /* Accent tokens (names kept for the existing pages): bronze is the brand accent. */
  --jade: #856643;
  --jade-2: #a07e57;
  --jade-soft: #f1e7da;
  --cinnabar: #923a1d;
  --cinnabar-soft: #f5e1d8;
  --gold: #b08d5f;
  --gold-soft: #f4ead9;
  --button: #030302;
  --button-hover: #313121;
  --button-text: #ffffff;
  --tongue: #e39a9a;
  --tongue-2: #d97f82;
  --shadow: 0 1px 2px rgba(42, 33, 26, .05), 0 10px 30px rgba(42, 33, 26, .07);
  --radius: 22px;
  --serif: "Cormorant", "Noto Serif SC", Georgia, serif;
  --zh: "Noto Serif SC", "Songti SC", serif;
  --sans: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16120e; --paper-2: #211b15; --card: #2a211a; --ink: #faf4ee; --ink-2: #d6cbbf; --ink-3: #a3978b;
    --line: #3b3027; --jade: #c9a77c; --jade-2: #dcbf98; --jade-soft: #33291f; --cinnabar: #e0876a; --cinnabar-soft: #3a241c;
    --gold: #d6b489; --gold-soft: #33291c; --button: #faf4ee; --button-hover: #e9dfd3; --button-text: #16120e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16120e; --paper-2: #211b15; --card: #2a211a; --ink: #faf4ee; --ink-2: #d6cbbf; --ink-3: #a3978b;
  --line: #3b3027; --jade: #c9a77c; --jade-2: #dcbf98; --jade-soft: #33291f; --cinnabar: #e0876a; --cinnabar-soft: #3a241c;
  --gold: #d6b489; --gold-soft: #33291c; --button: #faf4ee; --button-hover: #e9dfd3; --button-text: #16120e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; line-height: 1.1; margin: 0; }
.zh { font-family: var(--zh); }
a { color: var(--jade); }
button { font: inherit; cursor: pointer; }
img, svg { max-width: 100%; }

/* ZENTHYA wordmark (from zenthya.com), coloured by currentColor */
.logo { display: block; height: 15px; width: auto; aspect-ratio: 577 / 58; color: var(--ink); }
.logo svg { display: block; height: 100%; width: auto; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 13.5px; border: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 15px 26px; min-height: 52px; font-weight: 600; font-size: 16px; letter-spacing: .02em; transition: transform .15s ease, background .2s ease, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--button); color: var(--button-text); }
.btn-primary:hover { background: var(--button-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

/* Seal stamp (印章) — kept for the tongue-map legend */
.seal { width: 42px; height: 42px; border-radius: 10px; background: var(--cinnabar); color: #fff7f2; display: grid; place-items: center; font-family: var(--zh); font-weight: 700; font-size: 20px; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }

.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Streaming guidance: new bullets fade in, a soft pulse while writing */
.pop:not(.shown) { animation: fadeIn .45s ease both; }
.writing { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
