:root {
  --accent: #1f8561;
  --accent-dark: #166148;
  --accent-soft: rgba(31, 133, 97, 0.12);
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --surface: #ffffff;
  --page: #f8fafc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(165deg, var(--accent-soft) 0%, var(--page) 38%, var(--page) 100%);
}

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

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(640px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  padding: 28px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.brand-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero {
  padding: 36px 0 48px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lede {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.panel p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer {
  margin-top: auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-start {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-support {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-support a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.95rem;
  font-weight: 500;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-main {
  padding-bottom: 48px;
}

.doc-page h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.doc-meta {
  margin: 0 0 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.doc-section {
  margin-bottom: 28px;
}

.doc-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.doc-section p,
.doc-section li {
  color: var(--text-muted);
}

.doc-section ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.doc-section li + li {
  margin-top: 6px;
}

.layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.not-found {
  text-align: center;
  padding: 80px 0;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 4rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.not-found p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
