:root {
  --ink: #0c1410;
  --muted: #5a6b62;
  --line: rgba(12, 20, 16, 0.12);
  --paper: #f4f7f4;
  --card: #ffffff;
  --green: #0f8a4b;
  --green-deep: #0a5c32;
  --accent: #c8f071;
  --shadow: 0 18px 50px rgba(12, 20, 16, 0.08);
  --radius: 18px;
  --max: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(200, 240, 113, 0.35), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(15, 138, 75, 0.18), transparent 55%),
    linear-gradient(180deg, #eef5ef 0%, var(--paper) 45%, #e8efe9 100%);
}
a { color: var(--green-deep); }
code {
  font-size: 0.92em;
  background: rgba(15, 138, 75, 0.08);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #8fd94a 45%, var(--green));
  color: #0c1410;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(15, 138, 75, 0.25);
}
.brand-text { font-size: 15px; }
nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
nav a:hover { color: var(--green-deep); }

.hero, .doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 14px;
}
h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 36px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.meta strong { color: var(--ink); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(12, 20, 16, 0.12);
}
.card h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
}
.card-link {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 0.95rem;
}

.doc h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}
.doc h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}
.doc p, .doc li { color: #24332b; }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }
.doc section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.notice {
  border-left: 4px solid var(--green);
  background: rgba(15, 138, 75, 0.06);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 10px 0;
  background: #fafcfa;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
}
.cta:hover { background: var(--green-deep); }
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 6px 0; }
.lang {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
}
.lang a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.lang a.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .doc section { padding: 22px 18px; }
}
