:root {
  --ink: #16211f;
  --muted: #5c6a67;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #d8ded8;
  --green: #103d3a;
  --green-2: #1c625b;
  --blue: #1d4b74;
  --gold: #b8832d;
  --shadow: 0 20px 45px rgba(17, 34, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(29, 75, 116, 0.35);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  color: var(--surface);
  background: var(--green);
  border-radius: 6px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.15rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--surface);
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.8rem);
  color: #263532;
  font-size: 0.9rem;
  font-weight: 680;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #e9ece5;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: rgba(247, 248, 244, 0.28);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 7.8rem 0 4.6rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  font-weight: 700;
}

h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: #31413d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--surface);
  background: var(--green);
  border-color: var(--green);
}

.button.primary:hover {
  color: var(--surface);
  background: #0b302e;
}

.button.secondary {
  color: var(--green);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(16, 61, 58, 0.25);
}

.button.secondary:hover {
  background: var(--surface);
  border-color: var(--green);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -2.25rem auto 0;
  position: relative;
  z-index: 3;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-facts div {
  min-width: 0;
  padding: 1.25rem;
  background: var(--surface);
}

.fact-value {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.fact-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.band {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  background: #eef3f0;
  border-block: 1px solid var(--line);
}

.two-column,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-body {
  color: #33433f;
  font-size: 1.05rem;
}

.section-body p {
  margin: 0 0 1.25rem;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.research-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.research-card,
.project-card {
  min-height: 13.5rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.research-card {
  border-top: 4px solid var(--green-2);
}

.project-card {
  border-top: 4px solid var(--blue);
}

.research-card p,
.project-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.publication-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.publication-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publication-year {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.publication-item h3 a,
.project-card h3 a {
  text-decoration: none;
}

.publication-meta,
.publication-venue,
.publication-item p {
  margin: 0.4rem 0 0;
}

.publication-meta {
  color: #33433f;
  font-weight: 680;
}

.publication-venue {
  color: var(--blue);
}

.publication-item p:last-child {
  color: var(--muted);
}

.section-footer {
  margin-top: 1.6rem;
}

.text-link {
  color: var(--green);
  font-weight: 760;
}

.contact-section {
  align-items: center;
  padding-top: clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    width: 100%;
    padding: 0.9rem 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-shade {
    background: rgba(247, 248, 244, 0.82);
  }

  .hero-content {
    padding: 4.5rem 0 4rem;
  }

  .quick-facts,
  .research-grid,
  .project-grid,
  .two-column,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    margin-top: 0;
    width: 100%;
    border-inline: 0;
    box-shadow: none;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-content,
  .section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .section.band {
    padding-inline: 14px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .publication-item {
    grid-template-columns: 1fr;
  }

  .research-card,
  .project-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
