@font-face {
  font-family: "Algy Latin Modern Roman";
  src: url("assets/fonts/latin-modern-roman-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #FBFDFE;
  --ink: #161616;
  --ink-secondary: #707070;
  --baseline-color: #9BDEFA;
  --font-size: 12px;
  --baseline: 16px;
  --baseline-rule: 0.5px;
  --side: var(--baseline);
  --measure: min(58rem, calc(100vw - (var(--side) * 2)));
  --timeline-height: 0px;
  --stable-viewport-height: 100svh;
  --copy-y: 0px;
  --profile-visible-rows: 1;
  --profile-shift: 0px;
  --profile-grid-top: var(--baseline);
  --title-line-top: 0px;
  --body-start: calc(var(--baseline) * 3);
  --taxonomy-prelude: calc(var(--baseline) * 4);
  --contact-prelude: calc(var(--baseline) * 4);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Algy Latin Modern Roman", "Latin Modern Roman", "LM Roman 10", "Computer Modern Roman", "Times New Roman", Times, serif;
  font-size: var(--font-size);
  line-height: var(--baseline);
  font-weight: 400;
}

a {
  font: inherit;
}

.page {
  width: 100%;
  min-height: 100svh;
}

.sequence-stage {
  position: relative;
  min-height: 100svh;
  overflow: visible;
}

.sequence-stage::before {
  content: "";
  display: none;
}

.manuscript {
  position: relative;
  z-index: 2;
  width: var(--measure);
  padding: calc(var(--body-start) + var(--profile-shift)) 0 0;
  margin-inline: auto;
}

.copy-block {
  position: relative;
  margin: 0 0 var(--baseline);
  text-wrap: pretty;
  --block-uncovered: 0px;
  --grid-rows: 0;
}

.copy-block:has(+ .asterism) {
  margin-bottom: calc(var(--baseline) * 2);
}

.copy-block:has(+ .taxonomy) {
  margin-bottom: var(--taxonomy-prelude);
}

.copy-block:last-child {
  margin-bottom: 0;
}

.profile-header {
  position: absolute;
  top: var(--title-line-top);
  left: var(--side);
  z-index: 4;
  width: var(--measure);
}

.profile-copy {
  position: relative;
  max-height: calc(var(--profile-visible-rows) * var(--baseline));
  margin: 0;
  overflow: hidden;
  font-size: 1em;
  line-height: var(--baseline);
  font-weight: 400;
  text-wrap: pretty;
}

.baseline-anchor.profile-grid-anchor {
  position: absolute;
  top: var(--profile-grid-top);
  left: 0;
  --grid-rows: var(--profile-visible-rows);
}

.wordmark,
.profile-link,
.profile-practice {
  appearance: none;
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
}

.wordmark:hover,
.wordmark:focus-visible,
.profile-link:hover,
.profile-link:focus-visible,
.profile-practice:hover,
.profile-practice:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.profile-practice {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.profile-link {
  text-decoration: none;
}

.profile-secondary {
  color: var(--ink-secondary);
}

.profile-close-line {
  display: block;
}

.profile-continuation {
  visibility: hidden;
}

html.profile-mounted .profile-continuation {
  visibility: visible;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.asterism {
  width: 100%;
  line-height: var(--baseline);
  text-align: center;
  white-space: pre-line;
}

.contact-block {
  display: block;
  width: calc(100vw - (var(--side) * 2));
  margin-left: calc(var(--side) - ((100vw - var(--measure)) / 2));
  text-align: right;
}

.contact-link {
  display: inline;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

.contact-dot {
  display: inline-block;
  margin-right: 0.33em;
  vertical-align: baseline;
}

.taxonomy {
  max-width: 42rem;
  font-size: var(--font-size);
  line-height: var(--baseline);
  text-align: center;
}

.taxonomy.copy-block {
  margin-bottom: var(--contact-prelude);
}

.taxonomy-row + .taxonomy-row {
  margin-top: var(--baseline);
}

.taxonomy h2,
.taxonomy p {
  margin: 0;
  font-size: 1em;
  line-height: inherit;
  font-weight: 400;
}

.taxonomy-text {
  font-size: 0.85em;
  line-height: 1;
  vertical-align: baseline;
}

@supports (text-box-trim: trim-both) and (text-box-edge: cap alphabetic) {
  .taxonomy-text {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}

/* A zero-height inline box sits on the browser's own alphabetic baseline. */
.baseline-anchor {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  vertical-align: baseline;
  pointer-events: none;
}

.baseline-anchor::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100vw;
  z-index: 3;
  display: none;
  width: 200vw;
  height: calc(var(--grid-rows) * var(--baseline));
  background-image: repeating-linear-gradient(
    to bottom,
    var(--baseline-color) 0 var(--baseline-rule),
    transparent var(--baseline-rule) var(--baseline)
  );
  pointer-events: none;
}

html.js-ready .page {
  height: calc(var(--timeline-height) + 100dvh);
}

html.js-ready .sequence-stage {
  position: sticky;
  top: 0;
  height: var(--stable-viewport-height);
  min-height: 0;
  overflow: hidden;
}

html.js-ready .sequence-stage::before {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: calc(var(--body-start) + var(--profile-shift));
  background: var(--paper);
  pointer-events: none;
}

html.js-ready .manuscript {
  transform: translateY(var(--copy-y));
  will-change: transform;
}

html.js-ready .copy-block {
  visibility: hidden;
}

html.js-ready .copy-block.is-uncovered,
html.js-ready .copy-block.is-active {
  visibility: visible;
}

html.js-ready .copy-block.is-active::after {
  content: "";
  position: absolute;
  top: var(--block-uncovered);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: var(--paper);
  pointer-events: none;
}

html.js-ready .copy-block.is-active .baseline-anchor::before,
html.profile-lines-mounted .profile-grid-anchor::before {
  display: block;
}

@media (max-width: 640px) {
  :root {
    --measure: calc(100vw - (var(--side) * 4));
  }
}
