:root {
  --bg: #f7f5f1;
  --bg-muted: #f2ede5;
  --surface: #fffdf9;
  --surface-soft: #fcf8f2;
  --text: #17191d;
  --text-soft: #535760;
  --border: #ddd2c2;
  --border-strong: #cfbfa7;
  --accent: #967646;
  --accent-deep: #7d6138;
  --radius-sm: 10px;
  --radius-md: 14px;
  --shadow-soft: 0 6px 20px rgba(18, 20, 24, 0.06);
}

/* Base reset and typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #13161a;
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(780px, 100%);
}

.section {
  padding: 5.75rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-intro.compact {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 600;
  color: var(--accent-deep);
}

.lead {
  max-width: 70ch;
  color: #2b3038;
  font-size: 1.08rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.primary-nav ul {
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav ul a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2b3139;
}

.primary-nav ul a:hover,
.primary-nav ul a:focus-visible {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0.42rem 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.14rem;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  transition: 140ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: #2a2f36;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--border-strong);
  background: #fffcf8;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.text-link:hover,
.text-link:focus-visible {
  color: #6d542f;
}

/* Hero */
.hero {
  padding: 5.25rem 0 5rem;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  grid-template-columns: 1.15fr 1fr;
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-visual .image-placeholder {
  min-height: 362px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Cards and resource blocks */
.card-grid {
  display: grid;
  gap: 1.15rem;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.resource-image {
  height: 154px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #dbcdb9;
  background: linear-gradient(180deg, #ece2d3 0%, #f8f3ea 100%);
}

/* Ministry statement block */
.statement {
  max-width: 70ch;
  font-size: 1.11rem;
  color: #2e333b;
}

/* Signup panel */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.signup-panel {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}

.panel-copy {
  padding-right: 0.4rem;
}

.signup-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  margin-bottom: 0.34rem;
  font-size: 0.93rem;
  color: #2a2f35;
  font-weight: 500;
}

input,
select {
  width: 100%;
  border: 1px solid #d2c3af;
  border-radius: 9px;
  padding: 0.64rem 0.68rem;
  background: #fffdfa;
  font: inherit;
}

.form-note {
  min-height: 1.1em;
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #2f5a35;
}

/* Founder section */
#about p {
  max-width: 72ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.6rem 0 2.4rem;
  background: #f3eee6;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem 2rem;
  align-items: start;
}

.footer-brand {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  color: #161a1e;
}

.footer-copy,
.copyright {
  margin: 0;
  font-size: 0.92rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  font-size: 0.93rem;
  color: #2d3239;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-deep);
}

.footer-meta {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.footer-email {
  color: var(--accent-deep);
  font-size: 0.93rem;
}

/* Focus accessibility */
input:focus-visible,
select:focus-visible,
.btn:focus-visible,
a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid #a48555;
  outline-offset: 2px;
}

/* Responsive layout */
@media (max-width: 940px) {
  .section {
    padding: 5rem 0;
  }

  .hero-grid,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 4.15rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    gap: 0.9rem;
    padding: 0.95rem 4%;
    background: rgba(248, 244, 238, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav ul {
    width: 100%;
    flex-direction: column;
    gap: 0.62rem;
  }

  .nav-cta {
    width: auto;
  }

  .three-col,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual .image-placeholder {
    min-height: 280px;
  }
}
