/* 滑嘟嘟 site — one stylesheet, light/dark tokens, mobile first. */
:root {
  --bg: #faf8fd;
  --surface: #ffffff;
  --surface-2: #f2edf9;
  --text: #1f1a29;
  --muted: #5d566b;
  --line: #e4ddef;
  --accent: #7a4bb3;
  --accent-strong: #5f3790;
  --accent-soft: #ece3f7;
  --pink: #f4a6d0;
  --sky: #dff1fd;
  --on-accent: #ffffff;
  --radius: 18px;
  --gutter: 16px;
  --max: 960px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141219;
    --surface: #1d1a24;
    --surface-2: #26212f;
    --text: #f1edf7;
    --muted: #b1a9bf;
    --line: #342e3f;
    --accent: #b994ea;
    --accent-strong: #d4bdf3;
    --accent-soft: #2f2640;
    --sky: #1a2632;
    --on-accent: #1a1222;
  }
}
:root[data-theme="dark"] {
  --bg: #141219;
  --surface: #1d1a24;
  --surface-2: #26212f;
  --text: #f1edf7;
  --muted: #b1a9bf;
  --line: #342e3f;
  --accent: #b994ea;
  --accent-strong: #d4bdf3;
  --accent-soft: #2f2640;
  --sky: #1a2632;
  --on-accent: #1a1222;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Heiti TC",
    "Microsoft JhengHei", "Noto Sans HK", "Noto Sans TC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

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

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero { padding: 40px 0 28px; text-align: center; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 26px; box-shadow: 0 10px 30px rgba(95, 55, 144, .22); }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: .02em; }
.hero .en-name { margin: 4px 0 0; color: var(--muted); font-size: 16px; letter-spacing: .04em; }
.hero .line { margin: 14px auto 0; font-size: 20px; max-width: 26em; }
.pill { display: inline-block; margin-top: 18px; padding: 6px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; }
.pill small { font-weight: 500; opacity: .85; }
.badge-slot { margin-top: 18px; }
.badge-slot img { height: 48px; width: auto; margin: 0 auto; }

/* Tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 8px 0 24px; margin: 0; list-style: none; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.tile img { width: 56px; height: 56px; flex: none; }
.tile h3 { margin: 0 0 4px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { flex-direction: column; }
  .hero { padding: 64px 0 36px; }
  .hero h1 { font-size: 44px; }
}

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 0 32px; margin: 0; list-style: none; }
.facts li { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 5px 14px; font-size: 14px; }

/* Content pages */
.page { padding-top: 28px; padding-bottom: 40px; }
.page h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; }
.page h2 { font-size: 20px; margin: 28px 0 6px; }
.page .meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.page p, .page li { max-width: 40em; }
.page ul { padding-left: 1.2em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 16px; margin: 16px 0; }
.lang-split { border-top: 1px dashed var(--line); margin-top: 40px; padding-top: 8px; }
.jump { font-size: 14px; color: var(--muted); }
.mascot-inline { width: 72px; height: 72px; float: right; margin: 0 0 8px 12px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-left: 22px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: ""; position: absolute; left: 2px; top: .55em; border: 6px solid transparent; border-left: 8px solid var(--accent); border-right: 0; transition: transform .15s; transform-origin: 3px 50%; }
details[open] summary::before { transform: rotate(90deg); }
details[open] summary { margin-bottom: 6px; }
details p { margin: 6px 0 2px; color: var(--muted); }

/* Fact sheet */
dl.sheet { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 12px 0; }
dl.sheet dt { font-weight: 600; margin-top: 10px; }
dl.sheet dd { margin: 0; color: var(--muted); }
@media (min-width: 720px) {
  dl.sheet { grid-template-columns: 11em 1fr; }
  dl.sheet dt { margin-top: 0; }
}
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.downloads a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--text); font-size: 14px; }
.downloads img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.site-foot .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--muted); }

/* Home: icon and one line, nothing else. */
body.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.solo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; }
.solo-icon { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 14px 36px rgba(0, 0, 0, .14); }
.solo-name { margin: 22px 0 0; font-size: 30px; line-height: 1.2; letter-spacing: .01em; }
.solo-pill { margin: 14px 0 0; padding: 8px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; }
.solo-foot { display: flex; justify-content: center; gap: 20px; padding: 0 16px 28px; font-size: 13px; }
.solo-foot a { color: var(--muted); text-decoration: none; }
