:root {
  --ink: #2c211a;
  --paper: #faf6f0;
  --paper-alt: #f1e9dd;
  --brand: #744c3a;
  --brand-dark: #5a3a2c;
  --accent: #b3552e;
  --border: #e2d4c1;
  --error: #b3261e;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
}

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.hero {
  padding: 56px 24px 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 8px;
  color: var(--brand-dark);
}

.tagline {
  margin: 0 0 24px;
  font-size: 1.15rem;
  color: var(--brand);
}

.lede {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

.people {
  padding: 24px 24px 48px;
}

.people h2,
.contact h2 {
  text-align: center;
  color: var(--brand-dark);
  font-size: 1.5rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.person-card {
  text-align: center;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
}

.avatar {
  display: block;
  width: 176px;
  height: 176px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand);
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar.img-missing img {
  display: none;
}

.avatar.img-missing::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-weight: 700;
  font-size: 2.25rem;
}

.person-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.person-card p {
  margin: 4px 0;
}

/* --accent fails WCAG AA contrast on the --paper-alt card background;
   use the darker brand color for links in this context instead. */
.person-card a {
  color: var(--brand-dark);
}

.person-note {
  font-size: 0.9rem;
  color: #6b5b4f;
}

.contact {
  padding: 24px 24px 64px;
}

.contact p {
  text-align: center;
  max-width: 55ch;
  margin: 8px auto 0;
}

#contact-form {
  max-width: 420px;
  margin: 32px auto 0;
}

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #6b5b4f;
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--error);
}

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

button[type="submit"] {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--brand-dark);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.form-status.success {
  color: #2e6b3e;
}

.form-status.error {
  color: var(--error);
}

.site-footer {
  padding: 24px 0 40px;
  text-align: center;
  color: #6b5b4f;
  font-size: 0.85rem;
}
