:root {
  --ink: #1a221c;
  --ink-soft: #3d4a42;
  --muted: #5c6b62;
  --paper: #f3f5f2;
  --paper-deep: #e4e9e4;
  --leaf: #2f5d45;
  --leaf-deep: #234836;
  --line: rgba(26, 34, 28, 0.12);
  --max: 40rem;
  --wide: 52rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(120% 80% at 10% -10%, #dfe8e1 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, #cfd9d2 0%, transparent 45%),
    linear-gradient(180deg, #eef2ee 0%, var(--paper) 42%, #e8ece8 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf-deep);
  text-underline-offset: 0.18em;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

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

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
}

.brand-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--leaf-deep);
  text-decoration: underline;
}

main {
  padding: 2.75rem 0 4rem;
}

.hero {
  width: min(100%, var(--max));
  padding: 2.5rem 0 1.5rem;
  animation: rise 0.7s ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 34rem;
}

.trust {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.trust li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.trust li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: var(--leaf);
}

.section {
  width: min(100%, var(--max));
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  animation: rise 0.8s ease both;
  animation-delay: 0.08s;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section p,
.section li {
  color: var(--ink-soft);
}

.section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.section li + li {
  margin-top: 0.4rem;
}

.note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-title {
  margin: 0 0 0.35rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  width: min(100%, var(--max));
}

.prose h2 {
  margin: 2.25rem 0 0.65rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--leaf-deep);
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .hero,
  .section {
    animation: none;
  }
}
