:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #232420;
  --muted: #6f7168;
  --line: #deded7;
  --accent: #2f7d5c;
  --accent-soft: #dbeadf;
  --gold: #a77c2b;
  --stone: #74736a;
  --shadow: 0 18px 60px rgba(46, 49, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  border-bottom: 1px solid rgba(222, 222, 215, 0.8);
  background: rgba(247, 247, 244, 0.9);
  backdrop-filter: blur(8px);
}

.site-header-inner,
.site-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header-inner,
.site-nav,
.site-footer-inner,
.site-footer-nav {
  display: flex;
  align-items: center;
}

.site-header-inner,
.site-footer-inner {
  justify-content: space-between;
  gap: 20px;
}

.site-header-inner {
  min-height: 64px;
}

.site-brand,
.site-nav a,
.site-footer-nav a {
  text-decoration: none;
}

.site-brand {
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav,
.site-footer-nav {
  gap: 16px;
}

.site-nav a,
.site-footer-nav a,
.site-footer p {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(222, 222, 215, 0.8);
}

.site-footer-inner {
  min-height: 72px;
}

.site-footer p {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

.section-heading.compact {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
}

.stat-value,
.amount,
.project-money strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.primary-link,
.secondary-link,
.primary-button,
.secondary-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-link,
.primary-button {
  min-height: 44px;
  padding: 0 16px;
  width: 100%;
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}

.primary-button,
.secondary-button {
  cursor: pointer;
}

.secondary-link,
.secondary-button,
.ghost-link {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary-link {
  min-height: 44px;
  margin-top: 20px;
  padding: 0 16px;
}

.primary-link.compact {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.primary-link:hover,
.secondary-link:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.primary-link:active,
.secondary-link:active,
.primary-button:active,
.secondary-button:active,
.ghost-link:active {
  transform: translateY(0) scale(0.98);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.field small {
  color: var(--muted);
  line-height: 1.4;
}

.center-shell {
  display: grid;
  width: min(1100px, calc(100% - 48px));
  min-height: calc(100dvh - 136px);
  margin: 0 auto;
  place-items: center;
  padding: 32px 0;
}

.form-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.form-alert.error {
  background: #f3e7e6;
  color: #8b3f39;
}

.form-alert.notice {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 860px) {
  .site-header-inner,
  .site-footer-inner,
  .center-shell {
    width: min(100% - 32px, 680px);
  }
}

@media (max-width: 540px) {
  .site-header-inner,
  .site-footer-inner {
    width: min(100% - 24px, 680px);
  }

  .site-header-inner,
  .site-footer-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer-nav {
    flex-wrap: wrap;
  }

  .section-heading.compact {
    align-items: start;
    flex-direction: column;
  }
}
