:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1b1f2e;
  --muted: #5b6275;
  --border: #e3e6ee;
  --accent: #6b4fd8;
  --accent-soft: #efeafd;
  --warn-bg: #fff4e5;
  --warn-text: #7a4b00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161b2e;
    --surface: #1e2438;
    --text: #eceef5;
    --muted: #a9afc2;
    --border: #2e3550;
    --accent: #b9a6ff;
    --accent-soft: #2a2550;
    --warn-bg: #3a2e14;
    --warn-text: #f5d495;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent); }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .inner, main, footer.site .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }

.lead { color: var(--muted); font-size: 18px; margin-top: 0; }
.updated { color: var(--muted); font-size: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0;
}

.callout {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 20px 0;
}

ol li, ul li { margin: 6px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

th { color: var(--muted); font-weight: 600; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero img { width: 112px; height: 112px; border-radius: 26px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.features .card { margin: 0; }
.features h3 { margin-top: 0; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}

footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  nav a { margin: 0 14px 0 0; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  td:first-child { font-weight: 700; }
}
