:root {
  --bg: #f4f0e8;
  --paper: #ffffff;
  --ink: #1c1a17;
  --muted: #5e584f;
  --sage: #5aa276;
  --sage-ink: #2f6b4a;
  --sage-soft: #e7f2eb;
  --terracotta: #ee871f;
  --terracotta-deep: #e85400;
  --lilac: #cfbcf9;
  --stripe-sage: #a8c4b1;
  --line: rgba(28, 26, 23, 0.08);
  --shadow: 0 12px 32px rgba(28, 26, 23, 0.06);
  --display: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Fira Sans", Helvetica, Arial, sans-serif;
  --max: 1080px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  display: block;
  width: 2.7rem;
  height: auto;
}

.logo span {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stripe {
  height: 0.7rem;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 1.35rem,
    var(--stripe-sage) 1.35rem 2.7rem,
    var(--terracotta-deep) 2.7rem 4.05rem,
    var(--lilac) 4.05rem 5.4rem
  );
}

.nav-toggle {
  display: none;
  border: 0;
  border-bottom: 2px solid var(--sage-ink);
  background: transparent;
  color: var(--ink);
  padding: 0.3rem 0;
  font: inherit;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.2rem;
}

.site-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.8fr);
  gap: 2rem 3rem;
  align-items: end;
  padding: 3.4rem 0 2.8rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--sage-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-aside,
.lede {
  margin: 0;
}

.lede,
.panel p,
.card p,
.section p,
.work p,
.study p {
  color: var(--muted);
}

.lede {
  font-size: 1.2rem;
  max-width: 28rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: var(--sage-ink);
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.button:hover {
  background: #24553a;
  color: #fff;
}

.button-secondary {
  background: var(--paper);
  color: var(--sage-ink);
  box-shadow: inset 0 0 0 2px var(--sage-ink);
}

.button-secondary:hover {
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.panel {
  padding: 2.6rem 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section {
  padding: 2.8rem 0 1rem;
}

.split {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.facts {
  color: var(--ink) !important;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  display: block;
  min-height: 11rem;
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  border-top: 7px solid var(--terracotta);
}

.card:nth-child(2) {
  border-top-color: var(--sage);
}

.card h3,
.study h3,
.study h3 a,
.person h3,
.person li a,
.work h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card:hover {
  transform: translateY(-2px);
}

.contact-band {
  margin-top: 2.5rem;
  padding: 2.8rem 0;
  background: var(--sage-ink);
  color: #fff;
}

.contact-band h2,
.contact-band p,
.contact-band a {
  color: #fff;
}

.contact-band .facts {
  color: #fff !important;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.links a,
.contact-band .links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-weight: 600;
}

.section .links a,
.keyword-results .links a {
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-footer {
  background: var(--ink);
  color: #f4f0e8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.keywords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.keyword {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 12.5rem;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  border-top: 7px solid var(--sage);
}

.keywords li:nth-child(2) .keyword {
  border-top-color: var(--terracotta);
}

.keywords li:nth-child(3) .keyword {
  border-top-color: var(--terracotta-deep);
}

.keywords li:nth-child(4) .keyword {
  border-top-color: #8d74d6;
}

.keywords li:nth-child(5) .keyword {
  border-top-color: var(--sage-ink);
}

.keyword strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.keyword span {
  display: block;
  color: var(--muted);
}

.keyword:hover,
.keyword[aria-current="true"] {
  outline: 2px solid var(--sage-ink);
  outline-offset: 0;
}

.keyword[aria-current="true"] {
  background: var(--sage-soft);
}

.keyword[aria-current="true"] strong {
  color: var(--sage-ink);
}

.keyword-results {
  margin-top: 1.8rem;
}

.accent-rule {
  width: 4.5rem;
  height: 4px;
  margin: 1.2rem 0 1rem;
  border-radius: 999px;
  background: var(--sage);
}

.work,
.path {
  margin: 0;
  padding: 0;
  list-style: none;
}

.missing {
  min-height: 70vh;
  display: grid;
  align-content: center;
}

.view-toggle {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}

.view-toggle button,
.filters select,
.filters input,
.person button {
  font: inherit;
  color: var(--ink);
}

.view-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.view-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 0.85rem 1rem;
  margin: 0 0 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.filters label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-ink);
}

.filters input,
.filters select {
  border: 0;
  border-bottom: 2px solid rgba(47, 107, 74, 0.25);
  border-radius: 0;
  background: transparent;
  padding: 0.4rem 0;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--ink);
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-bottom-color: var(--sage-ink);
}

.result-count {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.studies,
.researchers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.study,
.person {
  padding: 1.15rem 1.15rem 1rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--sage);
}

.study h3 a,
.person li a {
  color: inherit;
  text-decoration: none;
}

.study h3 a:hover,
.person li a:hover,
.card:hover h3 {
  color: var(--sage-ink);
}

.study p,
.person li {
  margin: 0.25rem 0 0;
}

.meta {
  color: var(--sage-ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.person button {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
}

.person button:hover {
  color: var(--sage-ink);
}

.person ul {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.empty {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--sage-ink);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .cards,
  .keywords,
  .filters,
  .studies,
  .researchers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    z-index: 5;
    padding: 0.4rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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