:root {
  color-scheme: dark;
  --night: #100c2e;
  --night-soft: #1a1448;
  --paper: #f4f1e8;
  --muted: #9ca19a;
  --leaf: #ffb03a;
  --leaf-dark: #5a3fa8;
  --line: rgba(244, 241, 232, 0.12);
  --coral: #ff8a3d;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -8rem, rgba(120, 90, 220, 0.35), transparent 31rem),
    var(--night);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: #ffc65c; text-underline-offset: 0.18em; }
a:hover { color: #ffd98a; }

.page {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.flower {
  position: relative;
  width: 28px;
  height: 28px;
}

.flower::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--coral);
  border-radius: 52% 48% 54% 46%;
  clip-path: polygon(50% 0, 63% 31%, 100% 25%, 74% 53%, 93% 84%, 59% 70%, 50% 100%, 39% 70%, 7% 84%, 25% 53%, 0 25%, 37% 31%);
}

.flower::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 10.5px;
  top: 10.5px;
  border-radius: 50%;
  background: #f3c669;
}

.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a[aria-current="page"] { color: var(--paper); }

.eyebrow {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 14px;
  max-width: 620px;
  font-size: clamp(42px, 8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0 0 42px;
  max-width: 610px;
  color: #c7cbc5;
  font-size: 20px;
  line-height: 1.55;
}

.updated {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
}

.card {
  margin: 18px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(26, 20, 72, 0.6);
}

.card h2, section h2 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: 22px;
  line-height: 1.3;
}

.card p, section p { margin: 0; color: #b8bdb6; }

section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

section ul { margin: 12px 0 0; padding-left: 1.25em; color: #b8bdb6; }
section li + li { margin-top: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 24px;
  border-radius: 999px;
  color: white;
  background: #e07a1f;
  text-decoration: none;
  font-weight: 750;
}

.button:hover { color: white; background: #f08a2c; }

.note {
  padding: 18px 20px;
  border-left: 3px solid var(--leaf);
  border-radius: 0 14px 14px 0;
  color: #c7cbc5;
  background: rgba(255, 176, 58, 0.08);
}

footer {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #737a73;
  font-size: 14px;
}

@media (max-width: 560px) {
  .page { width: min(100% - 30px, 720px); padding-top: 28px; }
  .nav { margin-bottom: 48px; }
  .nav-links { gap: 14px; }
  .lede { font-size: 18px; }
  .card { padding: 21px 20px; }
}

/* Piano mark in place of the flower */
.flower::before { border-radius: 6px; clip-path: none; background: #fff; inset: 3px 2px; }
.flower::after { width: 4px; height: 12px; left: 6px; top: 3px; border-radius: 0 0 2px 2px; background: #100c2e; box-shadow: 8px 0 0 #100c2e; }

/* Language: both shown until the script picks one (no-JS readers get both). */
.langs { display: flex; gap: 8px; margin: 0 0 8px; }
.langs button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--night); background: var(--leaf); border-color: var(--leaf); }
html[data-lang="en"] [lang="zh-Hans"], html[data-lang="zh"] [lang="en"] { display: none; }
