:root {
  --bg: #f6f2ea;
  --surface: #fffdf9;
  --ink: #1d2422;
  --muted: #5d6763;
  --line: #e2dbcf;
  --accent: #1f3d36;
  --accent-ink: #f6f2ea;
  --gold: #b0874b;
  --ok: #2f6b4f;
  --err: #a23b2c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917;
    --surface: #1b2220;
    --ink: #ece7dd;
    --muted: #a2aaa6;
    --line: #2c3532;
    --accent: #cfe3d9;
    --accent-ink: #13201c;
    --gold: #d2aa6e;
    --ok: #8fd0ad;
    --err: #f09a8b;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.top, main, .foot {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.brand {
  font: 600 1.25rem/1 var(--serif);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--gold); font-style: italic; }
.top-link {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
.top-link:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(56px, 12vw, 140px) 0 clamp(48px, 8vw, 96px); max-width: 760px; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
h1 {
  margin: 0;
  font: 500 clamp(2.6rem, 7vw, 4.6rem)/1.05 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede {
  margin: 28px 0 36px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.55; cursor: progress; transform: none; }
.button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars article { padding: 36px 32px 40px 0; }
.pillars article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.pillars h2 { margin: 0 0 10px; font: 500 1.5rem/1.2 var(--serif); }
.pillars p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .pillars article, .pillars article + article { padding: 28px 0; border-left: 0; }
  .pillars article + article { border-top: 1px solid var(--line); }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(64px, 10vw, 120px) 0;
  scroll-margin-top: 24px;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact-intro h2 { margin: 0 0 12px; font: 500 clamp(2rem, 4vw, 2.75rem)/1.1 var(--serif); }
.contact-intro p { margin: 0; color: var(--muted); }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

label { display: grid; gap: 6px; }
label > span { font-size: 0.9rem; font-weight: 600; }
label em { font-style: normal; font-weight: 400; color: var(--muted); }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

cap-widget {
  --cap-background: var(--bg);
  --cap-border-color: var(--line);
  --cap-border-radius: 10px;
  --cap-color: var(--ink);
  --cap-checkbox-border: 1px solid var(--muted);
  --cap-checkbox-border-radius: 6px;
  --cap-spinner-color: var(--accent);
  --cap-spinner-background-color: var(--line);
  --cap-font: var(--sans);
}

.status { margin: 0; min-height: 1.6em; font-size: 0.95rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.error { color: var(--err); }

/* Footer */
.foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 0; }
