:root {
  --bg: #ffffff;
  --bg-subtle: #f6f7f5;
  --text: #1c211d;
  --text-muted: #545c53;
  --border: #e2e5e0;
  --accent: #1f6f4a;
  --accent-contrast: #ffffff;
  --max-width: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

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

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
}

.site-header__mark {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  padding: 2.5rem 0 1rem;
}

.hero h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0 0 2rem;
  max-width: 32rem;
}

.link-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-list a {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: var(--bg-subtle);
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--accent);
}

.link-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact a {
  color: var(--accent);
}

article {
  max-width: 100%;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

article h1 {
  font-size: 1.625rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

article h2 {
  font-size: 1.1875rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

article p {
  margin: 0 0 1rem;
}

article ul,
article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

article li {
  margin-bottom: 0.4rem;
}

article a {
  color: var(--accent);
  word-break: break-word;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-subtle: #1b1e22;
    --text: #eef0ec;
    --text-muted: #a8afa5;
    --border: #2b2f2c;
    --accent: #4fbf8a;
    --accent-contrast: #0c1210;
  }
}
