:root {
  --green: #00563f;
  --green-deep: #003f31;
  --green-pale: #edf5f1;
  --ink: #172321;
  --muted: #55625f;
  --rule: #bac7c3;
  --paper: #fffefa;
  --white: #ffffff;
  --red: #b64b3a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
  --section-space: clamp(3rem, 5vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--green-deep);
  transform: translateY(-150%);
}

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

.utility-bar {
  color: var(--white);
  background: var(--green);
  font-size: 0.84rem;
}

.utility-bar__inner,
.utility-bar nav,
.site-header__inner,
.footer-meta,
.footer-meta nav {
  display: flex;
  align-items: center;
}

.utility-bar__inner {
  justify-content: space-between;
  min-height: 42px;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.utility-bar nav,
.footer-meta nav {
  gap: 1.5rem;
}

.utility-bar a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 254, 250, 0.98);
  transition: box-shadow 220ms ease;
}

.site-header__inner {
  justify-content: space-between;
  min-height: 116px;
  gap: 2rem;
  transition: min-height 220ms ease, gap 220ms ease;
}

.wordmark {
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
  transition: font-size 220ms ease;
}

.wordmark span {
  display: block;
}

.site-header.is-compact {
  box-shadow: 0 4px 16px rgba(0, 63, 49, 0.08);
}

.site-header.is-compact .site-header__inner {
  min-height: 68px;
  gap: 1rem;
}

.site-header.is-compact .wordmark {
  font-size: clamp(1rem, 1.65vw, 1.5rem);
  white-space: nowrap;
}

.site-header.is-compact .wordmark span {
  display: inline;
}

.site-header.is-compact .primary-nav {
  gap: clamp(1rem, 2vw, 2rem);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.7vw, 2.8rem);
}

.primary-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 3px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 1px solid var(--green);
  padding: 0.55rem 0.8rem;
  color: var(--green-deep);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.hero {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: end;
  gap: clamp(2rem, 4vw, 5rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--green-deep);
  font-family: var(--serif);
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.15rem, 4.15vw, 4.7rem);
  letter-spacing: -0.04em;
}

.hero__lede {
  max-width: 49ch;
  margin-bottom: 2rem;
  color: #34413e;
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 52px;
  border: 1px solid var(--green);
  padding: 0.82rem 1.25rem;
  color: var(--white);
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.button:hover {
  color: var(--green-deep);
  background: var(--white);
}

.button--outline {
  color: var(--green-deep);
  background: transparent;
}

.button--outline:hover {
  color: var(--white);
  background: var(--green);
}

.hero__illustration {
  margin: 0;
  overflow: hidden;
}

.hero__illustration img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  object-position: center;
}

.project-scope {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2.25rem 0;
}

.project-scope__grid {
  display: grid;
  grid-template-columns: 0.75fr 2.25fr;
  gap: 3rem;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  border-left: 1px solid var(--rule);
  padding: 0.3rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

.at-a-glance,
.section--tint {
  background: var(--green-pale);
}

.at-a-glance {
  padding: 3rem 0;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.glance-grid article {
  min-height: 145px;
  border-left: 1px solid var(--rule);
  padding: 0.35rem 2rem;
}

.glance-grid article:first-child {
  border-left: 0;
  padding-left: 0;
}

.glance-grid h2 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
}

.glance-grid p,
.section-intro,
.team p {
  max-width: 58ch;
  color: var(--muted);
}

.section {
  padding: var(--section-space) 0;
}

.section-title {
  max-width: 16ch;
  margin-bottom: 0.6rem;
  font-size: clamp(2.6rem, 4vw, 4.25rem);
  letter-spacing: -0.035em;
}

.finding-list {
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.finding-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--rule);
}

.finding-list span {
  color: #7f8d89;
  font-size: 1.45rem;
  font-weight: 700;
}

.finding-list p {
  margin: 0;
  font-size: 1.1rem;
}

.finding-list li > div {
  padding: 1.4rem 0;
}

.finding-list h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.finding-list .finding-sources {
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.publication-summary {
  min-width: 0;
  padding: 1.25rem 0;
}

.publication-summary p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.publication-summary .publication-detail {
  font-size: 0.85rem;
}

.study-doi {
  margin-top: 1rem;
}

.study-page__content blockquote {
  margin: 1.5rem 0;
  border-left: 3px solid var(--green);
  padding: 1rem 1.25rem;
  background: var(--green-pale);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.study-page__content blockquote p {
  margin-bottom: 0;
}

.latest-study__grid,
.study-page__header-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.latest-study h2 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  letter-spacing: -0.03em;
}

.authors {
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.5rem;
}

.study-brief,
.study-page__question {
  border-left: 1px solid var(--rule);
  padding-left: 2.25rem;
}

.study-brief dl,
.study-page__meta dl {
  margin: 0;
}

.study-brief dl > div {
  margin-bottom: 1.3rem;
}

dt {
  color: var(--green-deep);
  font-family: var(--serif);
  font-weight: 700;
}

dd {
  margin: 0.25rem 0 0;
}

.publication-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.publication-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--rule);
}

.publication-number {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.publication-status {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.publication-list a {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.coming-soon {
  margin-top: 1.25rem;
  color: var(--muted);
}

.team {
  border-top: 1px solid var(--rule);
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 1.5rem;
  background: var(--white);
}

.partner-lockup {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1px minmax(0, 620px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
}

.partner-rule {
  width: 1px;
  height: 76px;
  background: var(--rule);
}

.partner-logo--kings {
  width: 280px;
  height: auto;
}

.partner-logo--sshrc {
  width: min(100%, 600px);
}

.footer-meta {
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-meta p {
  margin: 0;
}

.footer-meta a {
  color: inherit;
}

.study-page__header h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.articles { border-top: 1px solid var(--rule); }
.article-list { margin-top: 2rem; }
.research-article {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding: 3rem 0;
  scroll-margin-top: 90px;
}
.research-article:last-child { padding-bottom: 0; }
.research-article h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
  letter-spacing: -0.025em;
}
.article-takeaway {
  max-width: 65ch;
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
}
.research-article .button-row { align-items: center; margin-top: 1.5rem; }
.research-article__details {
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
  margin: 0;
}
.research-article__details > div + div { margin-top: 1.25rem; }
@media (max-width: 900px) {
  .research-article { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .research-article__details {
    border-left: 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rule);
  }
}

.study-subtitle {
  max-width: 52ch;
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.35;
}

.study-back {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.scope-intro {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.study-contents:empty {
  display: none;
}

.study-contents {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}

.study-contents ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.study-page__question {
  align-self: start;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.study-page__body {
  display: grid;
  grid-template-columns: 270px minmax(0, 720px);
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.study-page__meta dl > div {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}

.study-page__meta .button {
  width: 100%;
  margin-top: 1.4rem;
}

.study-page__content h2 {
  margin: 3.5rem 0 1rem;
  font-size: 2.35rem;
}

.study-page__content h2:first-child {
  margin-top: 0;
}

.study-page__content h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.5rem;
}

.study-page__content p {
  max-width: 66ch;
  font-size: 1.08rem;
}

.error-page {
  min-height: 55vh;
}

@media (max-width: 900px) {
  .hero__grid,
  .latest-study__grid,
  .study-page__header-grid,
  .team__grid {
    grid-template-columns: 1fr;
  }

  .hero__illustration img {
    aspect-ratio: 2 / 1;
  }

  .project-scope__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .scope-list,
  .glance-grid {
    grid-template-columns: 1fr;
  }

  .scope-list li,
  .glance-grid article,
  .glance-grid article:first-child {
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding: 1.2rem 0;
  }

  .study-brief,
  .study-page__question {
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding: 2rem 0 0;
  }

  .study-page__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .utility-bar nav {
    display: none;
  }

  .site-header__inner {
    min-height: 92px;
  }

  .site-header.is-compact .site-header__inner {
    min-height: 60px;
    gap: 0.6rem;
  }

  .site-header.is-compact .wordmark {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  .site-header.is-compact .wordmark span:last-child {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .primary-nav {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }

  .primary-nav[data-open="true"] {
    display: grid;
  }

  .primary-nav a {
    padding: 0.8rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__illustration img {
    aspect-ratio: 1.25 / 1;
  }

  .finding-list li {
    grid-template-columns: 52px 1fr;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .publication-list li {
    grid-template-columns: 50px 1fr;
    gap: 0.35rem 1rem;
    padding: 0.85rem 0;
  }

  .publication-summary {
    grid-column: 2;
    padding: 0.3rem 0 0.6rem;
  }

  .partner-lockup {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 2rem;
  }

  .partner-rule {
    width: 100%;
    height: 1px;
  }

  .partner-logo--sshrc {
    width: 100%;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
