@font-face {
  font-family: ET;
  src: url(/fonts/portal-et-book-regular.woff2);
  font-display: swap;
}
@font-face {
  font-family: ET;
  src: url(/fonts/portal-et-book-semibold.woff2);
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url(/fonts/lato-regular.woff2) format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --font-serif: ET, Georgia, serif;
  --nav-viewport-top: 0px;
  --mobile-nav-height: 87px;
  --space: 24px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}
body {
  --paper: #fffff8;
  --ink: #272b25;
  --accent: #8e4937;
  --muted: #73786b;
  --line: #dcded3;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    18px/1.6 var(--font-serif);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: ET, Georgia, serif;
  font-weight: 400;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
button {
  font: inherit;
  color: inherit;
}
code,
kbd,
samp,
pre {
  font-family: var(--font-serif);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 54px;
}
.skip-letter {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 30;
  background: var(--paper);
  padding: 8px 14px;
}
.skip-letter:focus {
  top: 12px;
}
.letter a {
  color: var(--accent);
}
.letter a:hover {
  color: #603023;
}

/* Letter */
.letter-cover {
  max-width: 1280px;
  padding: 0 70px 44px 48px;
}
.letter-heading {
  padding: 60px 0 30px;
  text-align: center;
}
@media (max-width: 1279px) {
  .letter-heading {
    padding-top: 30px;
  }
}
.letter-heading h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  max-width: 950px;
  margin: 0 auto 10px;
  text-wrap: balance;
}
.subhead {
  font:
    25px/1.35 ET,
    Georgia,
    serif;
}
.heading-credit {
  display: inline-block;
  font-size: 23px;
  line-height: 1.45;
  color: #737b68;
  margin-top: 5px;
}
.heading-credit a {
  text-underline-offset: 5px;
}
.foundry-brands {
  margin: 10px 0 0;
  color: #626a5b;
  font-size: calc(20px / 1.2);
  line-height: 1.65;
  white-space: nowrap;
}
.popvax-wordmark {
  font-family: Lato, Arial, sans-serif;
  font-weight: 600;
  color: #111;
}
.brand-separator {
  margin-inline: 0.2em;
  color: #000;
}
.logo.stochastic {
  display: inline;
  width: auto;
  height: 0.88em;
  vertical-align: -0.092em;
  mix-blend-mode: multiply;
}
.page-footer {
  margin: 60px 0 0;
  padding: 30px 0 60px;
  border-top: 1px solid var(--line);
  color: #626a5b;
  font: calc(20px / 1.2)/1.65 SS, Arial, sans-serif;
}
.page-footer p {
  margin: 0;
}
.letter-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: start;
}
.opening-copy > p {
  font:
    24px/1.55 ET,
    Georgia,
    serif;
}
.opening-copy > p + p {
  margin-top: 25px;
}

/* Original photographs; click, swipe or use the keyboard to shuffle. */
.family-gallery {
  min-width: 0;
  position: sticky;
  top: 32px;
}
.photo-stage {
  position: relative;
  aspect-ratio: 4/5;
  isolation: isolate;
  margin: 12px 16px 22px 0;
  touch-action: pan-y pinch-zoom;
  cursor: pointer;
}
.photo-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 12px;
}
.photo-stage,
.photo-stage img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.photo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border: 10px solid #fffef9;
  border-bottom-width: 25px;
  background: #fffef9;
  box-shadow: 0 2px 7px #35382c24;
  transform-origin: 30% 85%;
}
.photo-stage img[data-depth="0"] {
  z-index: 4;
  transform: rotate(-2deg);
}
.photo-stage img[data-depth="1"] {
  z-index: 3;
  transform: translate(7px, 1px) rotate(2deg);
}
.photo-stage img[data-depth="2"] {
  z-index: 2;
  transform: translate(14px, 3px) rotate(5deg);
}
.photo-stage img[data-depth="3"] {
  z-index: 1;
  transform: translate(21px, 5px) rotate(8deg);
}
.family-gallery figcaption {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 81px;
  margin-top: 44px;
  font-size: 18px;
  line-height: 1.5;
}
.photo-caption {
  display: block;
  color: var(--muted);
}
.photo-controls {
  display: flex;
  gap: 4px;
}
.photo-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.photo-controls button:hover {
  color: #603023;
}

/* Clinical history and invitation */
.history,
.data,
.vaccine-preview,
.reports {
  max-width: 1162px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding: 40px 0 44px;
}
.section-heading h2 {
  font-size: 42px;
  line-height: 1.08;
  max-width: 240px;
}
.history-chapter {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 31px;
  margin-bottom: 31px;
  border-bottom: 1px solid var(--line);
}
.history-chapter:last-child {
  border: 0;
  padding: 0;
  margin: 0;
}
.history-chapter h3 {
  font-size: 25px;
  line-height: 1.15;
  margin-bottom: 9px;
}
.history-chapter ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-chapter li {
  padding: 0 0 23px 19px;
  border-left: 1px solid var(--line);
  position: relative;
}
.history-chapter li:last-child {
  padding-bottom: 0;
}
.history-chapter li::before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  left: -3px;
  top: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.history-chapter time {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.history-chapter li p {
  font-size: 16px;
  line-height: 1.6;
}
.data-copy {
  font-size: 20px;
  line-height: 1.65;
}
.data-copy > p {
  font: inherit;
}
.data-copy .contribution-intro {
  margin-top: 18px;
}
.contribution-list {
  margin: 12px 0 18px;
  padding-left: 22px;
  font: inherit;
}
.contribution-list li + li {
  margin-top: 6px;
}
.download {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-size: inherit;
  line-height: 1.4;
}
.download .github-icon {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
}
.contact-email {
  color: var(--accent);
}
.copy-email {
  margin-inline: 0.25em 0;
  padding: 0.1em 0.5em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  vertical-align: 0.1em;
  cursor: pointer;
}
.copy-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.data-copy .copy-email {
  font-size: inherit;
}

.reports-copy {
  font-size: 20px;
  line-height: 1.65;
}
.report-list {
  list-style: disc;
  padding-left: 24px;
  margin: 18px 0;
}
.report-list li + li {
  margin-top: 10px;
}
.report-list li::marker {
  color: var(--accent);
}
.report-list time,
.reports-source {
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 1250px) {
  .history,
  .data,
  .vaccine-preview,
  .reports {
    margin-left: 38px;
    margin-right: 38px;
  }
}
@media (max-width: 1100px) {
  .history-chapter {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .letter-cover {
    padding-left: 38px;
    padding-right: 54px;
  }
  .letter-opening {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
    gap: 36px;
  }
  .opening-copy > p {
    font-size: 22px;
  }
  .history,
  .data,
  .vaccine-preview,
  .reports {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 30px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  .letter-cover {
    padding-bottom: 36px;
  }
  .letter-heading {
    padding: 30px 0 18px;
  }
  .letter-heading h1 {
    font-size: clamp(36px, 8vw, 56px);
    letter-spacing: -0.8px;
    margin-bottom: 5px;
  }
  .subhead {
    font-size: 23px;
  }
  .heading-credit {
    font-size: 21px;
  }
  .letter-opening {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .opening-copy > p {
    font-size: 22px;
  }
  .family-gallery {
    position: static;
    order: -1;
    width: 76%;
    max-width: 290px;
    align-self: center;
  }
  .photo-stage {
    aspect-ratio: 3/4;
    margin: 10px 16px 22px 0;
  }
  .photo-stage img {
    border-width: 8px;
    border-bottom-width: 20px;
  }
  .family-gallery figcaption {
    width: min(330px, calc(100vw - 48px));
    margin-left: calc((100% - min(330px, calc(100vw - 48px))) / 2);
    margin-top: 36px;
  }
  .history,
  .data,
  .vaccine-preview {
    display: block;
    margin: 0 24px;
    padding: 36px 0 40px;
  }
  .section-heading {
    margin-bottom: 31px;
  }
  .section-heading h2 {
    font-size: 35px;
    max-width: none;
  }
  .history-chapter {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .history-chapter h3 {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .data-copy,
  .reports-copy {
    font-size: 18px;
  }
}
/* The same sidebar-to-pinned-bar behavior as the Foundry homepage. */
.yash-reading-layout {
  width: calc(100% - 76px);
  max-width: 1162px;
  margin-inline: auto;
}
.reading-content {
  min-width: 0;
}
.reading-content > section {
  display: block;
  max-width: none;
  margin-inline: 0;
}
.reading-content .section-heading {
  margin-bottom: 32px;
}
.reading-content .section-heading h2 {
  max-width: none;
}
.mobile-nav-anchor {
  display: none;
}
.package-contents {
  margin: 0 0 var(--space);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.4;
}
.package-contents ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.package-contents li {
  margin: 0;
  padding: 0;
}
.package-contents a {
  display: block;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
}
.package-contents a[aria-current="location"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (min-width: 768px) {
  .yash-reading-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 30px;
  }
  .reading-content {
    grid-column: 2;
    grid-row: 1;
  }
  .package-contents {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 32px;
    align-self: start;
    z-index: 2;
    max-height: calc(100dvh - 64px);
    margin: 40px 0 0;
    padding: 0;
    overflow-y: auto;
    border-bottom: 0;
  }
  .package-contents ul {
    display: grid;
    gap: 9px;
  }
  .reading-content > section,
  #story {
    scroll-margin-top: 32px;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .yash-reading-layout {
    width: calc(100% - 48px);
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 24px;
  }
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: calc(var(--mobile-nav-height) + 24px + env(safe-area-inset-top, 0px) + var(--nav-viewport-top));
  }
  .yash-reading-layout {
    width: calc(100% - 48px);
  }
  .mobile-nav-anchor {
    display: block;
    height: 0;
  }
  .mobile-nav-anchor.is-pinned {
    height: calc(var(--mobile-nav-height) + var(--space));
  }
  .package-contents {
    position: sticky;
    top: var(--nav-viewport-top);
    z-index: 10;
    width: 100vw;
    margin-inline: calc((100% - 100vw) / 2);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    font-size: 17px;
  }
  .package-contents.is-pinned {
    position: fixed;
    left: 0;
    margin: 0;
  }
  .package-contents ul {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 16px;
  }
  .package-contents li {
    flex: 0 0 auto;
  }
  .package-contents a {
    white-space: nowrap;
  }
  .reading-content > .history {
    padding-top: 0;
    border-top: 0;
  }
  .reading-content > section,
  #story {
    scroll-margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
