:root {
  --bg: #fffafa; --surface: #ffffff; --ink: #2b2d42; --muted: #6b6e86; --line: #f3e3e5; --accent: #e5383b; --todo: #fff3c4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1c1d2e; --surface: #262840; --ink: #f4f2fa; --muted: #b5b4ca; --line: #3a3c58; --accent: #ff6b6e; --todo: #4a3d10; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #1c1d2e; --surface: #262840; --ink: #f4f2fa; --muted: #b5b4ca; --line: #3a3c58; --accent: #ff6b6e; --todo: #4a3d10; color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-block: max(24px, env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main { max-width: 68ch; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
h1, h2 { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 2rem; margin: 8px 0 12px; }
h2 { font-size: 1.15rem; margin: 22px 0 4px; }
p, ul { margin: 0 0 10px; }
a { color: var(--accent); }
.back { font-size: .9rem; }
.todo { background: var(--todo); padding: 0 4px; border-radius: 4px; }
.muted { color: var(--muted); font-size: .9rem; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 8px; }
.brand img { width: 40px; height: 54px; object-fit: contain; }
.brand span { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; }
.brand b { color: var(--accent); }
.brand i { font-style: normal; color: var(--muted); }
