:root {
  --bg: #faf9f7;
  --bg-raised: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #9a5b13;
  --border: #e7e2dc;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0c;
    --bg-raised: #191715;
    --text: #e8e5e1;
    --text-muted: #a49e96;
    --accent: #e2a24a;
    --border: #2b2723;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header {
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}
nav a { color: var(--text-muted); font-size: 0.95rem; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Content */
main { padding: 3.5rem 0 4.5rem; }

.headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 1.4rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 38rem; }

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.8rem 0 0.8rem;
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
p + p { margin-top: 0.9rem; }
main ul { padding-left: 1.2rem; margin: 0.6rem 0; }
main li + li { margin-top: 0.35rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.card h3 { margin: 0 0 0.5rem; }
.card p { font-size: 0.95rem; color: var(--text-muted); }

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  margin-top: 1.6rem;
}
.cta:hover { text-decoration: none; opacity: 0.9; }

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin-top: 2.5rem;
}

/* Forms */
form { margin-top: 1.8rem; display: grid; gap: 1rem; max-width: 34rem; }
label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
button[type="submit"] {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  justify-self: start;
}
button[type="submit"]:hover { opacity: 0.9; }
.form-status { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0 2.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
footer nav ul { gap: 1.1rem; }
