:root {
  --bg: #f8f7f2;
  --surface: #ffffff;
  --ink: #1f1f1c;
  --muted: #6b675f;
  --line: #dedad0;
  --line-soft: #ebe8df;
  --accent: #273d35;
  --accent-soft: #edf1ed;
  --max: 1040px;
  --narrow: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--accent-soft);
}

a {
  color: inherit;
}

.site-header {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.brand {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 42px);
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  border-color: var(--ink);
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 78px;
}

.home-page {
  padding-top: 66px;
}

.narrow-page {
  width: min(var(--narrow), calc(100% - 32px));
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.link-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  background: var(--bg);
  padding: 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin-top: 0;
}

.link-card h1,
.page-title h1 {
  margin-bottom: 14px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.18;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.link-card p,
.page-title p,
.text-block p {
  color: var(--muted);
  font-size: 0.98rem;
}

.link-card p {
  margin-bottom: 0;
}

.card-link {
  width: fit-content;
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.card-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-title {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.page-title p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

.content-stack {
  display: grid;
  gap: 0;
}

.text-block {
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.text-block h2 {
  margin-bottom: 10px;
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 520;
  letter-spacing: -0.01em;
}

.text-block p {
  max-width: 680px;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: var(--ink);
  color: var(--bg);
}

.note-block {
  color: var(--muted);
}

.topic-grid {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.topic-card {
  background: var(--bg);
  padding: 28px;
}

.topic-card h2 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 520;
  letter-spacing: -0.01em;
}

.topic-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.simple-lead p:last-child {
  max-width: 720px;
}

.form-section {
  padding-top: 34px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--ink);
  outline-offset: 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.form-note {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form .button {
  width: fit-content;
  cursor: pointer;
  background: transparent;
}

.contact-form .button:hover {
  background: var(--ink);
  color: var(--bg);
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 28px;
  }

  .nav {
    gap: 12px 22px;
  }

  .page,
  .home-page {
    padding-top: 42px;
    padding-bottom: 54px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: auto;
    padding: 26px 22px;
  }
}

.project-page {
  padding-top: 64px;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
}

.project-copy {
  max-width: 560px;
}

.project-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.project-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-figure {
  margin: 0;
}

.project-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .project-page {
    padding-top: 42px;
  }

  .project-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-copy {
    max-width: 680px;
  }
}
.about-opening {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

.home-intro,
.research-section {
  max-width: var(--narrow);
  margin-inline: auto;
}

.home-intro {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.home-intro h1,
.research-section h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.home-intro h1 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.home-intro p,
.research-topic p {
  color: var(--muted);
  line-height: 1.7;
}

.home-intro p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.research-section {
  padding-top: 38px;
}

.research-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
}

.research-topic {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.research-topic h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 550;
}

.research-topic p:last-child {
  margin-bottom: 0;
}

.research-topic .card-link {
  display: inline-block;
}

.home-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: clamp(24px, 5vw, 44px);
  align-items: start;
}

.home-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 560px) {
  .home-with-photo {
    grid-template-columns: 1fr;
  }

  .home-photo {
    width: min(100%, 300px);
  }
}

.rural-intro {
  align-items: start;
}

.rural-intro .project-figure img {
  width: 80%;
  margin-inline: auto;
}

.rural-intro .project-copy p + p {
  margin-top: 16px;
}

.rural-lenses {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.rural-lenses > p {
  max-width: 680px;
  color: var(--muted);
}

.rural-lenses .topic-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 550;
}

