:root {
  --bg: #f7f4fb;
  --surface: #ffffff;
  --text: #1a1426;
  --muted: #5f5873;
  --border: #e6e0ef;
  --accent: #e8338a;
  --accent-soft: #fde6f1;
  --on-accent: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0716;
    --surface: #150e26;
    --text: #f4effc;
    --muted: #a99cc4;
    --border: #2d2249;
    --accent: #ff4fa3;
    --accent-soft: #2a1150;
    --on-accent: #0b0716;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; text-decoration: none; font-size: 19px; }
.brand img { border-radius: 7px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current='page'], nav a:hover { color: var(--text); }
main { max-width: 880px; margin: 0 auto; padding: 8px 16px 48px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 24px 0 12px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
.hero { padding: 32px 0 8px; }
.lead { font-size: 20px; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 4px 20px 12px; }
.grid h2 { font-size: 18px; margin-top: 16px; }
.note { margin-top: 32px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }
li { margin: 6px 0; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer p { max-width: 880px; margin: 0 auto; padding: 12px 16px 0; }
footer p:last-child { padding-bottom: 32px; }
