:root {
  --charcoal: #2f3338;
  --charcoal-dark: #1f2328;
  --bluegray: #5f7484;
  --bluegray-dark: #465968;
  --ivory: #faf8f4;
  --paper: #ffffff;
  --stone: #efede8;
  --stone-dark: #ded8ce;
  --border: #d6d1c8;
  --text: #111111;
  --muted: #555555;
  --link: #3f6174;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.site-header {
  text-align: center;
  padding: 31px 16px 23px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 11px;
  letter-spacing: .01em;
}

.site-header .subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  margin: 0;
  color: #222;
}

.navbar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-dark);
}

.navbar a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 12px 6px;
  display: block;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.96rem;
  border-right: 1px solid rgba(255,255,255,.08);
}

.navbar a:last-child {
  border-right: none;
}

.navbar a:hover,
.navbar a.active {
  background: var(--bluegray-dark);
  box-shadow: inset 0 -4px 0 var(--stone-dark);
}

.hero {
  width: 100%;
  min-height: 410px;
  background: linear-gradient(135deg, #f7f5ef, #ded7cd);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
  border-bottom: 1px solid var(--border);
}

.hero img {
  width: 100%;
  height: min(58vh, 560px);
  object-fit: cover;
  display: block;
}

.hero.has-image {
  min-height: auto;
  display: block;
  background: none;
}

.placeholder {
  max-width: 760px;
  padding: 28px;
}

.placeholder strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 26px 70px;
}

.home-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: start;
}

.profile-card {
  border: 1px solid var(--border);
  background: var(--ivory);
  padding: 18px;
}

.headshot-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #ddd, #f8f8f8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 20px;
  margin-bottom: 16px;
}

.profile-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.profile-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--charcoal);
}

.profile-card ul {
  padding-left: 20px;
}

.main-copy h2,
.page h2 {
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 18px;
}

.main-copy p,
.page p {
  margin: 0 0 16px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
  align-items: stretch;
}

.feature {
  border: 1px solid var(--border);
  background: var(--ivory);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.feature h3 {
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--charcoal);
}

.feature p {
  margin-bottom: 16px;
}

.feature .image-placeholder {
  margin-top: auto;
}

.feature img,
.project-card img,
.field-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--stone);
  margin-top: 12px;
}

.image-placeholder {
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #555;
  padding: 12px;
  margin-top: 12px;
}

.page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 500;
  margin: 0 0 28px;
}

.page-section {
  margin-bottom: 36px;
}

.project-grid,
.course-grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.project-card,
.course-card,
.field-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.course-card h2,
.project-card h2,
.field-card h2 {
  background: var(--stone-dark);
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 1.45rem;
  color: var(--text);
}

.project-card .image-placeholder,
.field-card .image-placeholder {
  margin-top: auto;
}

.pub {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.buttons {
  margin-top: 20px;
}

.button {
  display: inline-block;
  border: 1px solid var(--bluegray-dark);
  color: var(--bluegray-dark);
  padding: 8px 13px;
  text-decoration: none;
  margin: 0 8px 8px 0;
  background: #fff;
}

.button:hover {
  background: var(--stone);
}

.cv-page {
  max-width: 980px;
}

.cv-entry {
  margin-bottom: 22px;
}

.cv-entry h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  color: var(--charcoal);
}

.cv-section {
  margin-bottom: 34px;
}

.cv-list {
  padding-left: 22px;
}

.cv-list li {
  margin-bottom: 8px;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 24px 16px;
  font-size: .95rem;
  background: var(--ivory);
}

.note {
  background: #f4f1ea;
  border: 1px solid var(--border);
  padding: 14px;
  color: #333;
}

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

@media (max-width: 980px) {
  .navbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .navbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-grid,
  .three-col,
  .project-grid,
  .course-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 30px 18px 54px;
  }
}