*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a1210;
  --panel: #111a17;
  --panel-2: #17221e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef5f0;
  --muted: #8aa396;
  --accent: #4caf50;
  --accent-2: #81c784;
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(76, 175, 80, 0.18), transparent),
    radial-gradient(ellipse 50% 35% at 100% 60%, rgba(129, 199, 132, 0.1), transparent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.5rem 0.85rem;
}

.header-top {
  max-width: 720px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #2e7d32);
  font-size: 1.1rem;
}

.brand h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav {
  max-width: 720px;
  margin: 0.85rem auto 0;
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.nav-link:hover { color: var(--text); border-color: var(--line); }
.nav-link.active {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.section-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.section-desc a { color: var(--accent-2); }

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.link-list a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.link-list a:hover {
  background: var(--panel-2);
  border-color: rgba(76, 175, 80, 0.35);
}

.link-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.url {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--muted);
  word-break: break-all;
}

.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a { color: var(--accent-2); }

.page-main { padding-top: 1.5rem; }

.content-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.source-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.source-note a { color: var(--accent-2); }

.content-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
  color: #d8e8dc;
}

.prose em { color: #b8d4be; font-style: italic; }