:root {
  --bg: #faf9fc;
  --surface: #ffffff;
  --selected: #ede9f6;
  --text: #211d2e;
  --muted: #625c73;
  --line: #e4e0ee;
  --tint: #6d4ad6;
  --on-tint: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121116;
    --surface: #1e1d24;
    --selected: #2d2840;
    --text: #f1eff6;
    --muted: #aaa5b8;
    --line: #322f3c;
    --tint: #a88cff;
    --on-tint: #17131f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--text); font-size: 20px; font-weight: 700; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--text); }

main { padding: 48px 0 64px; }

h1 { margin: 0 0 16px; font-size: clamp(32px, 7vw, 46px); line-height: 1.15; letter-spacing: -0.02em; }
h2 { margin: 36px 0 8px; font-size: 21px; line-height: 1.3; }
.lead { max-width: 620px; margin: 0 0 24px; color: var(--muted); font-size: 20px; }
.updated { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.prose { max-width: 680px; }

.button { display: inline-block; padding: 11px 20px; border-radius: 10px; background: var(--tint); color: var(--on-tint); font-weight: 600; text-decoration: none; }
.button:hover { opacity: 0.9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.card h2 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.operator { margin-top: 32px; padding: 18px 20px; border-radius: 12px; background: var(--selected); }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 15px; }
footer p { margin: 0 0 6px; }
footer a { color: inherit; }
