:root {
  --bg: #05070c;
  --gradient-top: #0d1526;
  --surface: #0B1220;
  --accent: #22C55E;
  --accent-dark: #16A34A;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(120% 70% at 50% -10%, var(--gradient-top) 0%, var(--bg) 55%) fixed;
  color: var(--text-primary);
  line-height: 1.5;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: inline-block;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

nav a.active,
nav a:hover {
  color: var(--accent);
}

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

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

section {
  margin-top: 26px;
}

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

p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 4px;
  white-space: pre-line;
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a {
  color: var(--text-faint);
}

.index-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.index-links a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.index-links a:hover {
  border-color: var(--accent);
}
