/* Colour, type, and geometry tokens live in /assets/css/tokens.css,
   which is loaded before this file on every page of the site. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--warm-50);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3,
h4,
p,
dl,
dd,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-950);
  font-family: var(--serif);
  text-wrap: balance;
}

h1 {
  max-width: 710px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.043em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.72rem, 3.2vw, 2.55rem);
  line-height: 1.17;
  letter-spacing: -0.027em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}

h4 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  line-height: 1.4;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink-950);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.content-wrap,
.head-inner,
.hero-inner,
.footer-inner {
  width: min(var(--content), calc(100% - (2 * var(--page-pad))));
  margin-inline: auto;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--ink-200);
  backdrop-filter: blur(14px);
}

.head-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  min-width: max-content;
  color: var(--ink-950);
  text-decoration: none;
}

.brand:hover {
  color: var(--red);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.67rem;
  line-height: 1;
  letter-spacing: 0.035em;
}

.head-actions,
.lang-switch {
  display: flex;
  align-items: center;
}

.head-actions {
  gap: 24px;
}

.back-link {
  color: var(--ink-600);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link::before {
  content: "←";
  margin-right: 7px;
  color: var(--red);
}

.lang-switch {
  padding: 3px;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
}

.lang-button {
  min-width: 38px;
  min-height: 30px;
  padding: 3px 8px;
  color: var(--ink-600);
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-button.is-active {
  color: var(--white);
  background: var(--ink-900);
}

.hero {
  padding: clamp(58px, 8vw, 106px) 0;
  overflow: hidden;
  background: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(340px, 0.87fr);
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
}

.funding-mark {
  width: fit-content;
  margin-bottom: 32px;
  padding: 9px 12px;
  color: var(--white);
  background: var(--ink-900);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.eyebrow,
.small-label,
.card-label {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 14px;
  color: var(--ink-600);
  font-size: clamp(1.03rem, 1.7vw, 1.23rem);
  font-weight: 300;
  line-height: 1.72;
}

.hero-context {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--ink-600);
  font-size: 0.98rem;
  line-height: 1.72;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.hero-actions,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 6px 16px rgba(117, 48, 34, 0.18);
}

.button-primary:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-secondary {
  color: var(--ink-800);
  background: var(--white);
  border-color: var(--ink-300);
}

.button-secondary:hover {
  color: var(--red);
  border-color: var(--red);
}

.result-preview {
  position: relative;
  min-height: 470px;
  padding: clamp(24px, 4vw, 34px);
  overflow: hidden;
  background: var(--warm-50);
  border: 1px solid var(--ink-200);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-200);
  color: var(--ink-500);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.preview-heading strong {
  color: var(--teal-dark);
}

.preview-map {
  position: relative;
  height: 126px;
  margin: 18px 0;
}

.preview-map span {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 4px solid var(--warm-50);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(28, 27, 25, 0.14);
}

.preview-core {
  top: 0;
  left: 7%;
  width: 126px;
  height: 126px;
  background: var(--teal);
  font-size: 1.5rem;
}

.preview-team {
  width: 74px;
  height: 74px;
  background: var(--red);
}

.preview-team-b { top: 4px; left: 42%; }
.preview-team-c { top: 52px; left: 61%; background: #b46e5e; }
.preview-team-d { top: 12px; right: 1%; background: #c99688; }

.preview-priority {
  padding: 18px 19px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
}

.preview-priority > span,
.preview-details span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Styled like a heading but not one. This is sample output inside a decorative
   card, and as an <h2> it was announcing itself as the first section of the
   page to screen readers and to search engines. */
.preview-priority > .preview-priority-title {
  margin: 0 0 7px;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.preview-priority p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.78rem;
  line-height: 1.55;
}

.preview-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.preview-details > div {
  padding: 13px 14px;
  background: var(--teal-soft);
  border: 1px solid #c8ddd8;
  border-radius: var(--radius-sm);
}

.preview-details > div:last-child {
  background: var(--red-soft);
  border-color: #ead1c9;
}

.preview-details strong {
  display: block;
  color: var(--ink-800);
  font-size: 0.75rem;
  line-height: 1.42;
}

.plain-section,
.resource-section,
.evidence-section {
  padding: clamp(62px, 8vw, 96px) 0;
}

/* The definition used to sit fourth of seven and reversed out of near-black,
   which is the least comfortable place on the page to read carefully. It is
   the passage a newcomer needs most, so it now runs second, on warm paper. */
.plain-section {
  color: var(--ink-700);
  background: var(--warm-50);
  border-bottom: 1px solid var(--ink-200);
}

.definition-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(380px, 1.24fr);
  gap: clamp(44px, 8vw, 96px);
}

.plain-section h2 {
  color: var(--ink-950);
}

.definition-copy {
  padding-left: 30px;
  border-left: 1px solid var(--ink-200);
}

.definition-copy p {
  line-height: 1.76;
}

/* The illustration sits under the sentence it illustrates. Its paper is the
   same warm off-white as the band, so it needs no frame. */
.definition-figure {
  margin: 26px 0 0;
}

.definition-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.resource-section {
  background: var(--white);
}

.educator-section {
  background: var(--warm-50);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading-wide {
  max-width: 900px;
}

.section-heading > p:last-child {
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.72;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tool-copy {
  padding: clamp(26px, 5vw, 48px);
}

.teal-label {
  color: var(--teal-dark);
}

.tool-copy > p:not(.card-label) {
  max-width: 690px;
  color: var(--ink-600);
  line-height: 1.7;
}

.tool-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.tool-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 42px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--teal-dark);
}

.tool-aside .small-label {
  color: #c5ded9;
}

.tool-aside h4 {
  color: var(--white);
  font-size: 1.18rem;
}

.tool-aside p:last-child {
  font-size: 0.88rem;
  line-height: 1.7;
}

.audience-list {
  margin-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.audience-list p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.5;
}

.audience-list strong {
  color: var(--white);
}

.process-block {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 68px);
  margin-top: 56px;
  padding-top: 46px;
  border-top: 1px solid var(--ink-200);
}

.process-heading h3 {
  max-width: 320px;
  font-size: 1.45rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink-200);
  border-left: 1px solid var(--ink-200);
  list-style: none;
}

.process-grid li {
  min-height: 170px;
  padding: 21px;
  border-right: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.process-grid span {
  display: block;
  margin-bottom: 15px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.78rem;
}

.process-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-900);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.process-grid p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.8rem;
  line-height: 1.58;
}

.educator-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 24px 26px;
  background: var(--teal-soft);
  border: 1px solid #c8ddd8;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
}

.educator-tool .small-label {
  color: var(--teal-dark);
}

.educator-tool h3 {
  margin-bottom: 6px;
}

.educator-tool p:last-child {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--ink-700);
  font-size: 0.86rem;
  line-height: 1.6;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.case-number {
  padding-top: 28px;
  color: var(--white);
  background: var(--red);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  text-align: center;
}

.case-card:nth-child(2) .case-number {
  background: var(--teal);
}

.case-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 27px;
}

.case-body > p:not(.card-label) {
  color: var(--ink-600);
  font-size: 0.9rem;
  line-height: 1.68;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 23px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
}

.case-meta dt {
  margin-bottom: 3px;
  color: var(--ink-500);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0;
  color: var(--ink-800);
  font-size: 0.78rem;
  line-height: 1.45;
}

.case-actions {
  margin-top: auto;
}

.case-actions .button {
  flex: 1 1 170px;
  padding-inline: 14px;
}

.course-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 22px 25px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
}

.course-note .small-label {
  margin: 2px 0 0;
  color: var(--teal-dark);
}

.course-note p:last-child {
  color: var(--ink-700);
  font-size: 0.86rem;
  line-height: 1.65;
}

.evidence-section {
  background: var(--white);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.research-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--warm-50);
  border: 1px solid var(--ink-200);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-sm);
}

.research-card:nth-child(n + 3) {
  border-top-color: var(--teal);
}

.research-card > span {
  margin-bottom: 25px;
  color: var(--ink-300);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.research-card .card-label {
  margin-bottom: 8px;
}

.research-card h3 {
  font-size: 1rem;
}

.research-card > p:not(.card-label) {
  color: var(--ink-600);
  font-size: 0.8rem;
  line-height: 1.58;
}

.research-card > a {
  margin-top: auto;
  padding-top: 12px;
  color: var(--red);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.research-card > a:hover {
  text-decoration: underline;
}

.case-evidence-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 36px;
  margin: 58px 0 20px;
  padding-top: 42px;
  border-top: 1px solid var(--ink-200);
}

.case-evidence-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.case-evidence-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-600);
  font-size: 0.87rem;
  line-height: 1.65;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: var(--warm-50);
  border: 1px solid var(--ink-200);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-sm);
}

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

.evidence-status {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-status.status-current {
  color: var(--red-dark);
  background: var(--red-soft);
}

.evidence-status.status-published {
  color: var(--green);
  background: var(--green-soft);
}

.evidence-card h3 {
  margin-top: 17px;
}

.evidence-card > p:not(.citation) {
  color: var(--ink-600);
  font-size: 0.87rem;
  line-height: 1.65;
}

.citation {
  color: var(--ink-500);
  font-size: 0.75rem;
  line-height: 1.5;
}

.evidence-card > a {
  width: fit-content;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-section {
  padding: clamp(48px, 7vw, 74px) 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--teal-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.contact-section .eyebrow {
  color: #c5ded9;
}

.contact-section h2 {
  color: var(--white);
}

.contact-section p:last-child {
  max-width: 720px;
}

.button-light {
  color: var(--ink-950);
  background: var(--white);
  border-color: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

footer {
  color: rgba(255, 255, 255, 0.58);
  background: var(--ink-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px 50px;
  padding-block: 34px;
  font-size: 0.75rem;
  line-height: 1.58;
}

.footer-inner > div:first-child {
  max-width: 720px;
}

.footer-title {
  margin-bottom: 5px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-inner,
  .definition-grid,
  .tool-card,
  .process-block {
    grid-template-columns: 1fr;
  }

  .result-preview {
    min-height: 0;
  }

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

  .definition-copy {
    padding: 0;
    border-left: 0;
  }

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

@media (max-width: 680px) {
  .hero {
    padding: 52px 0 64px;
  }

  .head-actions {
    gap: 10px;
  }

  .back-link {
    display: none;
  }

  .result-preview {
    padding: 22px;
  }

  .evidence-grid,
  .research-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .preview-details,
  .process-grid,
  .educator-tool,
  .case-evidence-heading {
    grid-template-columns: 1fr;
  }

  .educator-tool {
    align-items: start;
  }

  .educator-tool .button {
    width: 100%;
  }

  .case-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .case-body {
    padding: 22px 18px;
  }

  .case-meta,
  .course-note {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

@media print {
  .site-head,
  .hero-actions,
  .case-actions,
  .contact-section,
  footer {
    display: none;
  }

  body {
    background: var(--white);
  }

  .hero,
  .plain-section,
  .resource-section,
  .evidence-section {
    padding-block: 28px;
  }
}
