:root {
  --soil: #3d2b1f;
  --ink: #2c2419;
  --muted: #6a5a46;
  --linen: #efe3cc;
  --field: #e7d7bc;
  --clay: #c4a06a;
  --moss: #4f5d38;
  --leaf: #6b7a48;
  --max: 40rem;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(107, 122, 72, 0.16), transparent 52%),
    radial-gradient(90% 70% at 100% 100%, rgba(61, 43, 31, 0.14), transparent 55%),
    var(--field);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.4rem 3rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

header > a {
  color: inherit;
  text-decoration: none;
}

.sprout {
  display: block;
  width: 1.7rem;
  height: 2.05rem;
  color: var(--moss);
}

.lang {
  display: flex;
  gap: 0.85rem;
  font-size: 0.86rem;
}

.lang button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.15rem 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.lang button[aria-pressed="true"] {
  color: var(--soil);
  font-weight: 600;
}

.lang button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 2px;
}

main { flex: 1; padding: 3.4rem 0 2.2rem; }

h1 {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(2.5rem, 8vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.55rem;
  color: var(--soil);
}

.legal-form {
  margin: 0 0 2.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.credo {
  list-style: none;
  margin: 0 0 2.1rem;
  padding: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.28rem, 3.4vw, 1.55rem);
  font-weight: 420;
  line-height: 1.35;
}

.credo li {
  position: relative;
  padding: 0.18rem 0 0.18rem 1.15rem;
}

.credo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 2px;
  background: var(--leaf);
  border-radius: 1px;
  transform: rotate(-8deg);
}

.purpose {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.purpose em { font-style: italic; color: var(--ink); }

.purpose cite {
  font-style: italic;
  font-size: 0.9em;
}

.rule {
  display: block;
  width: 100%;
  height: 18px;
  margin: 2.1rem 0 0;
  color: var(--clay);
}

section { padding-top: 0.15rem; }

section + section .rule { margin-top: 1.7rem; }

h2 {
  margin: 0 0 0.45rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 560;
  color: var(--moss);
}

p { margin: 0 0 0.85rem; }

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

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

.contact a {
  color: var(--soil);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid var(--clay);
}

.contact a:hover { border-bottom-color: var(--soil); }

.bio p {
  margin: 0 0 1.15rem;
  max-width: 34rem;
  font-size: 1.08rem;
}

.bio p:last-of-type { margin-bottom: 0; }

.bio-links {
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.bio-links a { color: inherit; }
.bio-links a:hover { color: var(--soil); }

address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

footer {
  margin-top: 2.4rem;
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--soil); }

@media (max-width: 520px) {
  .wrap { padding: 1.5rem 1.15rem 2.4rem; }
  main { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
