:root {
  --bg: #F8F7FF;
  --surface: #FFFFFF;
  --text: #2D2B55;
  --text-secondary: #7B7A9B;
  --border: #E8E6F5;
  --accent: #7C6FE0;
  --accent-hover: #6B5ECB;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

header.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

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

header.brand .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C6FE0 0%, #5BBCE4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

header.brand nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

header.brand nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

header.brand nav a:hover {
  background: var(--surface);
  color: var(--text);
}

header.brand nav a.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 32px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

p, li {
  font-size: 16px;
  color: var(--text);
}

ul, ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
}

.callout strong {
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

th {
  background: #F0EFFB;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  main { padding: 20px 16px 48px; }
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  header.brand { flex-direction: column; align-items: flex-start; }
  table { font-size: 13px; }
  th, td { padding: 8px 10px; }
}
