:root {
  color-scheme: light;
  --paper: #f4f2ed;
  --paper-deep: #e9e6df;
  --white: #fbfaf7;
  --ink: #171714;
  --muted: #68655e;
  --line: #c9c5bc;
  --line-dark: #8e8a81;
  --accent: #274d3f;
  --max: 1280px;
  --text: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}

.site-title,
.method-link,
.site-header nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a,
.method-link {
  color: var(--muted);
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.method-link:hover,
.method-link:focus-visible {
  color: var(--ink);
}

.method-link {
  justify-self: end;
}

main {
  overflow: clip;
}

.hero {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 128px 0 118px;
  border-bottom: 1px solid var(--line-dark);
}

.eyebrow,
.section-label,
.channel-number,
.contact-group > h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1120px;
  margin: 34px 0 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 10.4vw, 150px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.standfirst {
  max-width: 790px;
  margin: 0 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.12;
}

.premise,
.synthesis,
.evidence-note {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 116px);
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0 96px;
}

.premise > div,
.synthesis > div,
.evidence-note > div {
  max-width: 900px;
}

.premise h2,
.synthesis h2,
.evidence-note h2 {
  margin: -0.12em 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.premise p,
.synthesis p,
.evidence-note p {
  max-width: var(--text);
  margin: 0 0 1.05em;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.52;
}

.premise {
  padding-top: 110px;
  padding-bottom: 118px;
}

.channel {
  padding: 106px max(32px, calc((100vw - var(--max)) / 2)) 118px;
  border-top: 1px solid var(--line-dark);
}

.channel:nth-of-type(odd) {
  background: var(--white);
}

.channel-header {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 10px clamp(34px, 7vw, 116px);
  margin-bottom: 64px;
}

.channel-number {
  grid-row: 1 / span 2;
}

.channel-header h2 {
  max-width: 900px;
  margin: -0.14em 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.channel-header > p:last-child {
  max-width: 820px;
  margin: 0;
  font-size: clamp(18px, 1.65vw, 23px);
}

.artifact-grid {
  display: grid;
  gap: 42px 28px;
}

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

.artifact {
  min-width: 0;
  margin: 0;
}

.artifact > button {
  display: flex;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-deep);
  color: inherit;
  cursor: zoom-in;
}

.artifact > button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.artifact > button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artifact-email > button {
  aspect-ratio: auto;
  height: min(750px, 64vw);
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  background: #e8e5de;
  cursor: zoom-in;
  scrollbar-color: var(--line-dark) transparent;
  scrollbar-width: thin;
}

.artifact-email > button img {
  width: 100%;
  height: auto;
  object-fit: unset;
}

.artifact figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 14px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.artifact figcaption strong {
  font-size: 13px;
}

.artifact figcaption span {
  color: var(--muted);
}

.artifact figcaption a {
  font-weight: 700;
  white-space: nowrap;
}

.channel-reading {
  max-width: 900px;
  margin: 76px 0 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 37px);
  line-height: 1.24;
}

.contact-group {
  margin-top: 70px;
}

.contact-group:first-of-type {
  margin-top: 0;
}

.contact-group > h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
}

.synthesis {
  padding-top: 124px;
  padding-bottom: 132px;
  border-top: 1px solid var(--line-dark);
}

.synthesis h2 {
  font-size: clamp(52px, 6.7vw, 92px);
}

.evidence-note {
  padding-top: 86px;
  padding-bottom: 98px;
  border-top: 1px solid var(--line);
}

.evidence-note h2 {
  font-size: clamp(42px, 4.6vw, 64px);
}

.evidence-note p {
  font-size: 16px;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.document-links a {
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.document-links a:hover,
.document-links a:focus-visible {
  background: var(--ink);
  color: #fff;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px max(32px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

footer p {
  margin: 0;
}

dialog {
  width: min(1180px, calc(100vw - 36px));
  max-width: none;
  height: min(92vh, 980px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--white);
  color: var(--ink);
}

dialog::backdrop {
  background: rgb(18 18 16 / 0.78);
  backdrop-filter: blur(5px);
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  min-height: 92px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.lightbox-bar h2 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.lightbox-bar p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

#lightbox-close {
  padding: 8px 11px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-canvas {
  display: flex;
  height: calc(100% - 142px);
  align-items: flex-start;
  justify-content: center;
  padding: 22px;
  overflow: auto;
  background: var(--paper-deep);
}

#lightbox-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

#lightbox-source {
  display: block;
  height: 50px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

#lightbox-source[hidden] {
  display: none;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 86px;
  }

  .premise,
  .synthesis,
  .evidence-note,
  .channel-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .channel-number {
    grid-row: auto;
  }

  .artifact figcaption {
    grid-template-columns: auto 1fr;
  }

  .artifact figcaption a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 54px;
    padding: 0 16px;
  }

  .site-title,
  .method-link {
    font-size: 10px;
  }

  .hero,
  .premise,
  .synthesis,
  .evidence-note {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 72px 0 68px;
  }

  .hero h1 {
    margin: 25px 0 32px;
    font-size: clamp(60px, 21.5vw, 86px);
    line-height: 0.86;
  }

  .standfirst {
    font-size: 25px;
  }

  .premise,
  .synthesis,
  .evidence-note {
    padding: 64px 0 70px;
  }

  .premise h2,
  .synthesis h2,
  .evidence-note h2 {
    margin-bottom: 24px;
    font-size: 43px;
  }

  .premise p,
  .synthesis p {
    font-size: 18px;
  }

  .channel {
    padding: 70px 16px 78px;
  }

  .channel-header {
    margin-bottom: 42px;
  }

  .channel-header h2 {
    font-size: 49px;
  }

  .channel-header > p:last-child {
    font-size: 18px;
  }

  .artifact-grid-two,
  .artifact-grid-email {
    grid-template-columns: 1fr;
  }

  .artifact-grid {
    gap: 38px;
  }

  .artifact > button {
    aspect-ratio: auto;
    min-height: 260px;
  }

  .artifact > button img {
    width: 100%;
    height: auto;
    max-height: 70vh;
  }

  .artifact-email > button {
    height: 620px;
    min-height: 0;
  }

  .artifact-email > button img {
    max-height: none;
  }

  .artifact figcaption {
    grid-template-columns: 1fr auto;
  }

  .artifact figcaption span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .artifact figcaption a {
    grid-column: 2;
    grid-row: 1;
  }

  .channel-reading {
    margin-top: 56px;
    font-size: 26px;
  }

  .contact-group {
    margin-top: 58px;
  }

  .document-links {
    display: grid;
  }

  .document-links a {
    text-align: center;
  }

  footer {
    padding: 22px 16px;
  }

  dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }

  .lightbox-bar {
    min-height: 112px;
    padding: 14px;
  }

  .lightbox-bar h2 {
    font-size: 20px;
  }

  .lightbox-bar p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .lightbox-canvas {
    height: calc(100% - 162px);
    padding: 10px;
  }

  #lightbox-source {
    padding-left: 14px;
  }
}

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