/* ---------- tokens (light, warm, matches live site) ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #faf7f5;
  --bg-cream: #f8ecf4;
  --bg-pink: #fbdbeb;
  --bg-card: #ffffff;
  --bg-dark: #f8ecf4;

  --line: #ebe6e2;
  --line-soft: #f1ede9;

  --ink: #111113;
  --ink-2: #32303a;
  --ink-3: #6b6770;
  --ink-4: #9b9699;

  --accent: #a855c7;        /* purple-pink, pulled pinker from logo */
  --accent-ink: #ffffff;
  --accent-soft: #f3dbf0;

  --pink: #f6bcd6;
  --peach: #ffd8a6;
  --lav: #d0a9e0;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 6px rgba(20, 10, 5, 0.04);
  --shadow: 0 4px 24px rgba(20, 10, 5, 0.06);
  --shadow-lg: 0 30px 60px -24px rgba(20, 10, 5, 0.18);

  --container: 1200px;
  --gutter: 24px;

  --font-sans: "Inter Tight", "Inter", "Noto Sans SC", "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  --font-display: "Instrument Serif", "Noto Serif SC", "Noto Serif TC", "Playfair Display", Georgia, serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Locale-scoped typography: for CJK, prefer Noto Serif/Sans CJK (Instrument Serif + Inter have no CJK glyphs). */
html[lang="zh-CN"] {
  --font-sans: "Noto Sans SC", "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Noto Serif SC", "Instrument Serif", Georgia, serif;
}
html[lang="zh-TW"] {
  --font-sans: "Noto Sans TC", "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Noto Serif TC", "Instrument Serif", Georgia, serif;
}
/* Noto Serif CJK has no italic, so fake a slant for the accent phrase. */
html[lang="zh-CN"] .display em,
html[lang="zh-TW"] .display em {
  font-style: normal;
  transform: skewX(-6deg);
  display: inline-block;
  font-weight: 500;
}

[data-theme="dark"] {
  --bg: #0b0b0e;
  --bg-soft: #121215;
  --bg-cream: #14110f;
  --bg-pink: #1a1216;
  --bg-card: #161619;
  --line: #26252a;
  --line-soft: #1f1e22;
  --ink: #f6f4f2;
  --ink-2: #cdc9c5;
  --ink-3: #8b868a;
  --ink-4: #5c585c;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 500; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 13px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.display em {
  font-style: italic;
  color: var(--accent);
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }
.body { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.body-lg { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(0.95); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); filter: brightness(0.96); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-dark { background: #fff; color: #000; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

section { padding: 100px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

.hidden-sm { }
@media (max-width: 720px) { .hidden-sm { display: none !important; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
