:root {
  --brand: #2e7d32;
  --brand-dark: #1b5e20;
  --text: #263238;
  --text-muted: #546e7a;
  --bg: #f8f9fa;
  --card: #ffffff;
  --border: #e0e0e0;
  --max-width: 820px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--brand-dark);
}

.site-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.site-header .meta {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

.site-header .package {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.wrap {
  max-width: var(--max-width);
  margin: -1.5rem auto 3rem;
  padding: 0 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}

.toc {
  background: #f1f8f4;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.toc h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--brand-dark);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.35rem 0;
}

.toc a {
  font-size: 0.95rem;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--brand-dark);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e8f5e9;
}

section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

p {
  margin: 0 0 0.85rem;
}

ul {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

li {
  margin: 0.35rem 0;
}

.contact-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.contact-card p {
  margin: 0.35rem 0;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--card);
}

@media print {
  .site-header {
    background: var(--brand);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .wrap {
    margin-top: 0;
  }

  .card {
    box-shadow: none;
    border: none;
  }

  .toc {
    break-after: page;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 1.5rem 1.1rem;
  }
}
