:root {
  --bg0: #0f1412;
  --bg1: #1a2420;
  --ink: #eef3ef;
  --muted: #9aaca2;
  --line: rgba(238, 243, 239, 0.12);
  --accent: #6fd3a0;
  --accent-dim: #3f8f68;
  --surface: rgba(255, 255, 255, 0.04);
  --max: 42rem;
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-body: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(111, 211, 160, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(63, 143, 104, 0.16), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #121816);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #9be8c0;
}

.wrap {
  width: min(100% - 2.5rem, 56rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding: 4.5rem 0 3rem;
  animation: rise 0.7s ease both;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0d1511;
}

.btn-primary:hover {
  background: #9be8c0;
  color: #0d1511;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: rgba(111, 211, 160, 0.45);
  color: var(--ink);
}

.page {
  padding: 2.5rem 0 4rem;
  animation: rise 0.65s ease both;
}

.page header {
  margin-bottom: 2rem;
  max-width: var(--max);
}

.page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: var(--max);
}

.prose h2 {
  margin: 2.1rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: #d5e0d9;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.note {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent-dim);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

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

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 3rem;
  }
}
