:root {
  --ink: #10241f;
  --muted: #4a5f57;
  --brand: #0d6b55;
  --brand-deep: #085042;
  --paper: #f2f7f4;
  --panel: rgba(255, 255, 255, 0.84);
  --line: rgba(16, 36, 31, 0.12);
  --shadow: 0 22px 56px rgba(16, 36, 31, 0.12);
  --font-display: "Fraunces", "Noto Serif SC", Georgia, serif;
  --font-body: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 6% -10%, #c9e6d8 0%, transparent 55%),
    radial-gradient(820px 460px at 100% 0%, #d7ebe3 0%, transparent 48%),
    linear-gradient(180deg, #f7fbf9 0%, var(--paper) 45%, #eaf2ee 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

.wrap { width: min(920px, calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #12866a, #0a5342);
  box-shadow: 0 10px 24px rgba(10, 83, 66, 0.28);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}
.nav-links a:hover { color: var(--brand-deep); }

.hero {
  padding: 2.4rem 0 1.4rem;
  animation: rise 0.75s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}
.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  backdrop-filter: blur(10px);
  animation: rise 0.85s ease 0.08s both;
}
.doc h1, .doc h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.doc h1 { margin-top: 0; font-size: 2rem; }
.doc h2 {
  margin-top: 1.7rem;
  font-size: 1.28rem;
}
.doc .meta {
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.panel {
  background: rgba(13, 107, 85, 0.08);
  border: 1px solid rgba(13, 107, 85, 0.16);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.3rem;
}
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--brand-deep); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .doc { border-radius: 18px; }
}
