:root {
  color-scheme: light;
  --background: #f8faf7;
  --surface: #ffffff;
  --ink: #111613;
  --muted: #637067;
  --line: #dce5dc;
  --accent: #1f6f4a;
  --accent-soft: #dff3e5;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration-color: rgba(31, 111, 74, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid rgba(31, 111, 74, 0.28);
  outline-offset: 4px;
}

.site-header,
main,
.site-footer {
  max-width: 860px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 6px 10px;
  text-decoration: none;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.lead {
  color: var(--muted);
  font-size: 1.04rem;
}

.text-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 150px 1fr;
  padding: 16px 0;
}

.text-panel h2 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.text-panel p,
.text-panel li,
.page-title p {
  color: var(--muted);
}

.page-title {
  border-top: 1px solid var(--line);
  padding: 32px 0 20px;
}

.text-panel ol {
  margin: 0;
  padding-left: 1.4rem;
  text-align: left;
}

.text-panel li + li {
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  margin-top: 8px;
  padding: 18px 0 28px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .page-title {
    padding-top: 24px;
  }

  .text-panel {
    display: block;
    padding: 14px 0;
  }

  .text-panel h2 {
    margin-bottom: 6px;
  }
}
