:root {
  --bg: #f4f1ec;
  --bg-2: #ebe6de;
  --ink: #1f1c19;
  --ink-2: #5d5750;
  --ink-3: #8b847b;
  --line: #d8d1c6;
  --accent: #a3264a;
  --accent-ink: #fff;
  --chat-bg: #fbfaf8;
  --chat-sub: #77706a;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161514;
    --bg-2: #1e1c1b;
    --ink: #ece7df;
    --ink-2: #b3aca2;
    --ink-3: #807970;
    --line: #34312d;
    --accent: #e46b8b;
    --accent-ink: #1a0b10;
    --chat-bg: #1b1a19;
    --chat-sub: #948d84;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: .9em; }
p code, .hint code, .sub code { background: var(--bg-2); padding: .1em .35em; border-radius: 3px; }
h1, h2, h3 { line-height: 1.4; font-weight: 700; }

.wordmark { font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: .04em; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 700; font-size: 14px; border: 1px solid var(--accent); cursor: pointer;
  font-family: inherit;
}
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-plain { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-plain:hover { color: var(--ink); border-color: var(--ink-3); filter: none; }

.hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
