:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #14202e;
  --muted: #5b6b7d;
  --line: #dde4ec;
  --accent: #1f6feb;
  --blue: #2563eb;
  --red: #dc2626;
  --black: #111827;
  --draft-bg: #fff4d6;
  --draft-text: #6b4e00;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1520;
    --surface: #152030;
    --text: #e8eef5;
    --muted: #9aabbd;
    --line: #26354a;
    --accent: #6aa8ff;
    --black: #e8eef5;
    --draft-bg: #3a2f10;
    --draft-text: #f5d98a;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1520;
  --surface: #152030;
  --text: #e8eef5;
  --muted: #9aabbd;
  --line: #26354a;
  --accent: #6aa8ff;
  --black: #e8eef5;
  --draft-bg: #3a2f10;
  --draft-text: #f5d98a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  padding: 20px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

header.site img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

main { padding: 8px 0 48px; }

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 36px 0 8px;
}

h3 { font-size: 18px; margin: 24px 0 4px; }

p, ul, ol { margin: 0 0 14px; }

li { margin-bottom: 6px; }

.lead {
  font-size: 20px;
  color: var(--muted);
}

.hero {
  text-align: center;
  padding: 32px 0 8px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero h1 { font-size: 40px; margin-top: 20px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.card h3 { margin-top: 0; }

.card p { margin: 0; color: var(--muted); font-size: 16px; }

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

.panel > :last-child { margin-bottom: 0; }

.draft {
  background: var(--draft-bg);
  color: var(--draft-text);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0;
  font-weight: 600;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
}

.muted { color: var(--muted); }

.note { font-size: 15px; color: var(--muted); }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 15px;
  color: var(--muted);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

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

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 18px; }
}
