/* An image-led world, with an ordinary document underneath it. */
:root {
  --gutter: clamp(24px, 4vw, 72px);
}
.site-header {
  height: 100px;
  border: 0;
}
.wordmark {
  gap: 24px;
  letter-spacing: 0;
}
.initials {
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
  letter-spacing: -3px;
}
.wordmark-name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.site-header nav {
  font-size: 13px;
  gap: 35px;
}
.nav-number {
  display: none;
}
.site-footer {
  padding-top: 35px;
  padding-bottom: 30px;
}
.footer-bottom {
  margin-top: 25px;
}
.worlds-page {
  background: #112c2d;
  color: #fff8e8;
}
.worlds-page .site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: #fff8e8;
  text-shadow: 0 1px 15px #0005;
}
.worlds-page .site-footer {
  display: none;
}
.worlds-page .wordmark-name {
  display: none;
}
.worlds-page .site-header nav a {
  padding: 8px 0;
}
.worlds-page .site-header nav a:after {
  opacity: 0.65;
}
.worlds-page .skip-link {
  color: var(--ink);
  text-shadow: none;
}
.world-stage {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.world-enhanced .world-stage {
  display: block;
}
.world-fallback {
  display: none;
  position: absolute;
  inset: -2%;
}
.world-failed .world-fallback {
  display: block;
}
/* No photographic stand-in is painted before the renderer's first frame. */
.worlds-booting .worlds-page .world-section {
  background-image: none;
}
.worlds-booting .worlds-page > .site-header,
.worlds-booting .worlds-page > main {
  visibility: hidden;
}
.world-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  opacity: 0;
}
.world-fallback img:first-child {
  opacity: 1;
}
#world-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
}
#world-canvas.ready {
  opacity: 1;
}
.world-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      #0b1b223a,
      transparent 18%,
      transparent 55%,
      #081b2580
    ),
    linear-gradient(90deg, #0b202329, transparent 40%);
}
.world-section {
  height: 110svh;
  min-height: 800px;
  position: relative;
  padding: 0 var(--gutter);
  isolation: isolate;
  background-image:
    linear-gradient(0deg, #081b2577, transparent 65%), var(--scene);
  background-size: cover;
  background-position: center;
}
.world-section:first-child {
  height: 100svh;
}
.world-enhanced .world-section {
  background: none;
}
.world-section a {
  text-shadow: 0 1px 15px #0003;
}
.world-opening {
  position: relative;
}
.opening-whisper {
  position: absolute;
  top: 27%;
  left: var(--gutter);
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.tiny-cross {
  font-size: 23px;
  font-weight: 400;
  opacity: 0.85;
}
.opening-identity {
  position: absolute;
  bottom: 17%;
  left: var(--gutter);
}
.opening-identity .eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.opening-identity h1 {
  font-family: var(--serif);
  font-size: clamp(65px, 7.5vw, 118px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.opening-footnote {
  position: absolute;
  right: calc(var(--gutter) + 35px);
  bottom: 17%;
  font-size: 13px;
  line-height: 1.8;
}
.opening-footnote > a {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-top: 24px;
  font-size: 12px;
}
.opening-footnote > a span {
  font-size: 22px;
  transition: transform 0.3s;
}
.opening-footnote > a:hover span {
  transform: translateY(5px);
}
.world-hud {
  position: fixed;
  z-index: 8;
  bottom: 30px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #fff8e8c9;
  pointer-events: none;
}
.world-name {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hud-rule {
  width: 45px;
  height: 1px;
  background: #fff8e850;
}
.motion-toggle {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: #102d3129;
  padding: 8px 0 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  pointer-events: auto;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-symbol {
  width: 11px;
  font-size: 13px;
}
.world-rail {
  position: fixed;
  z-index: 8;
  right: 28px;
  top: 45%;
  display: grid;
  gap: 17px;
}
.world-rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  color: #fff8e8;
  min-height: 22px;
}
.world-rail span {
  opacity: 0;
  font-size: 12px;
  transition: opacity 0.3s;
}
.world-rail i {
  width: 10px;
  height: 1px;
  background: #fff8e875;
  transition:
    width 0.5s,
    background 0.5s;
}
.world-rail a[aria-current] i {
  width: 27px;
  background: #fff8e8;
}
.world-rail a:hover span,
.world-rail a[aria-current] span {
  opacity: 1;
}
.world-section-heading {
  position: absolute;
  top: 20%;
  left: var(--gutter);
}
.world-section-heading .eyebrow {
  font-size: 12px;
  margin-bottom: 25px;
}
.world-section h2 {
  font-family: var(--serif);
  font-size: clamp(70px, 7vw, 115px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.floating-writing {
  position: absolute;
  width: min(52%, 740px);
  right: calc(var(--gutter) + 35px);
  bottom: 18%;
}
.floating-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 19px;
  border-bottom: 1px solid #fff8e869;
  font-size: 12px;
}
.floating-caption > a {
  display: flex;
  gap: 15px;
}
.floating-essay {
  display: grid;
  grid-template-columns: 22px 1fr 25px;
  align-items: start;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid #fff8e836;
  transition:
    background 0.3s,
    transform 0.3s;
}
.floating-essay:hover {
  transform: translateX(8px);
}
.floating-number {
  font-size: 12px;
  padding-top: 4px;
  opacity: 0.7;
}
.floating-meta {
  display: block;
  font-size: 12px;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  opacity: 0.75;
}
.floating-essay h3 {
  font-family: var(--serif);
  font-size: clamp(29px, 2.5vw, 42px);
  line-height: 1.05;
  text-wrap: balance;
}
.floating-arrow {
  font-size: 24px;
  padding-top: 10px;
}
.person-fragment {
  position: absolute;
  top: 25%;
  left: calc(53% + 20px);
  right: calc(var(--gutter) + 35px);
}
.person-fragment > .eyebrow {
  font-size: 12px;
  margin-bottom: 30px;
}
.person-fragment h2 {
  font-size: clamp(78px, 7vw, 115px);
}
.person-summary {
  font-size: 14px;
  line-height: 1.9;
  margin-top: 28px;
}
.world-link {
  display: inline-flex;
  gap: 35px;
  border-bottom: 1px solid #fff8e866;
  padding-bottom: 9px;
  margin-top: 30px;
  font-size: 13px;
}
.world-link:hover {
  border-color: currentColor;
}
.final-invitation {
  position: absolute;
  left: var(--gutter);
  bottom: 15%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.final-invitation {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 38px);
  right: var(--gutter);
}
/* The archive remains inside the landscape. */
.archive-page,
.about-page,
.post-page {
  background: #102e30;
  color: #fff8e8;
  position: relative;
  isolation: isolate;
}
.archive-page:before,
.about-page:before,
.post-page:before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-size: cover;
}
.archive-page:before {
  background-image:
    linear-gradient(90deg, #09292b30, #08292dd9 80%),
    url("/static/images/undercurrent.png");
}
.archive-page .site-header,
.about-page .site-header,
.post-page .site-header {
  color: #fff8e8;
}
.archive-page .archive {
  padding-top: 55px;
}
.archive-heading {
  margin: 0 0 65px;
}
.archive-heading h1 {
  font-size: clamp(85px, 8vw, 132px);
  margin-top: 26px;
}
.archive-heading > p,
.archive-row time,
.archive-topic,
.archive-labels,
.archive-end p {
  color: #fff8e8ab;
}
.archive-list,
.archive-labels {
  margin-left: 20%;
}
.archive-labels {
  border-color: #fff8e880;
}
.archive-row {
  border-color: #fff8e830;
  grid-template-columns: 100px 1fr 90px 20px;
  column-gap: 25px;
}
.archive-labels {
  grid-template-columns: 100px 1fr 90px 20px;
  column-gap: 25px;
}
.archive-row h2 {
  font-size: clamp(29px, 2.65vw, 41px);
}
.archive-row:hover {
  background: #fff8e809;
}
.archive-end {
  margin-left: 20%;
}
.archive-end .mark {
  color: #cbb78f;
}
.archive-page .site-footer,
.about-page .site-footer,
.post-page .site-footer {
  background: none;
  color: #fff8e8ab;
}
.archive-page .footer-bottom,
.about-page .footer-bottom,
.post-page .footer-bottom {
  border-color: #fff8e830;
  color: #fff8e8ab;
}
/* A human voice suspended in the last landscape. */
.about-page:before {
  background-image:
    linear-gradient(90deg, #122d3740, #122d37c9),
    url("/static/images/afterlight.png");
}
.about-intro {
  padding-top: 35px;
}
.about-title-row {
  margin-bottom: 65px;
}
.about-title-row h1 {
  font-size: clamp(75px, 7vw, 115px);
}
.about-star,
.portrait {
  display: none;
}
.about-grid {
  display: block;
}
.biography {
  max-width: 650px;
  margin-left: auto;
  padding: 35px 0 0 35px;
}
.biography .bio-lead {
  color: #fff8e8;
}
.biography > p {
  color: #fff8e8d1;
}
.about-closing {
  background: none;
  text-align: left;
  padding-top: 20px;
  padding-bottom: 80px;
}
.about-closing > p:not(.eyebrow) {
  font-size: clamp(60px, 6vw, 96px);
}
/* The reader is a quiet sheet of paper within the same world. */
.post-page:before {
  background-image:
    linear-gradient(#112b3340, #112b3340), url("/static/images/aperture.png");
}
.post-page .article {
  color: var(--ink);
  background: #f4f0e7fa;
  max-width: 1130px;
  margin: 50px auto 90px;
  padding: 55px clamp(25px, 5vw, 80px) 70px;
}
.post-page .article-body-grid {
  grid-template-columns: 110px minmax(0, 730px);
  gap: 35px;
}
.post-page .article-header h1 {
  font-size: clamp(55px, 6vw, 92px);
}
.post-page .site-footer {
  max-width: 1260px;
  margin: auto;
}
@media (min-width: 1800px) {
  .world-section {
    min-height: 1000px;
  }
  .floating-writing {
    bottom: 22%;
  }
  .opening-identity {
    bottom: 18%;
  }
}
@media (max-width: 1000px) {
  .world-section {
    min-height: 850px;
  }
  .opening-footnote {
    right: calc(var(--gutter) + 15px);
  }
  .world-section-heading {
    top: 15%;
  }
  .world-section h2 {
    font-size: 75px;
  }
  .floating-writing {
    width: 62%;
    bottom: 15%;
  }
  .world-rail {
    right: 13px;
  }
  .world-rail a {
    gap: 8px;
  }
  .world-rail a[aria-current] i {
    width: 20px;
  }
  .person-fragment {
    left: 43%;
  }
  .person-fragment h2 {
    font-size: 85px;
  }
  .archive-list,
  .archive-labels,
  .archive-end {
    margin-left: 10%;
  }
  .archive-labels,
  .archive-row {
    grid-template-columns: 80px 1fr 80px 20px;
    column-gap: 20px;
  }
  .post-page .article {
    margin-left: 24px;
    margin-right: 24px;
  }
  .post-page .article-body-grid {
    grid-template-columns: 80px minmax(0, 730px);
    gap: 25px;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 80px;
  }
  .site-header nav {
    gap: 24px;
    font-size: 12px;
  }
  .initials {
    font-size: 30px;
  }
  .wordmark-name {
    display: none;
  }
  .world-section {
    height: 115svh;
    min-height: 850px;
  }
  .world-section:first-child {
    height: 100svh;
    min-height: 700px;
  }
  .opening-whisper {
    top: 20%;
    font-size: 12px;
    gap: 10px;
  }
  .opening-identity {
    bottom: 26%;
  }
  .opening-identity h1 {
    font-size: clamp(57px, 12.6vw, 83px);
  }
  .opening-identity .eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }
  .opening-footnote {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 14%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    font-size: 12px;
  }
  .opening-footnote > a {
    font-size: 12px;
    margin: 0;
    gap: 15px;
  }
  .world-hud {
    font-size: 12px;
    bottom: 19px;
  }
  .world-name {
    gap: 10px;
  }
  .hud-rule {
    width: 22px;
  }
  .world-name > span:last-child {
    display: none;
  }
  .motion-toggle {
    font-size: 12px;
  }
  .world-rail {
    right: 12px;
    top: 43%;
    gap: 13px;
  }
  .world-rail span {
    display: none;
  }
  .world-rail i {
    width: 7px;
  }
  .world-rail a[aria-current] i {
    width: 15px;
  }
  .world-section-heading {
    top: 13%;
  }
  .world-section-heading .eyebrow {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .world-section h2 {
    font-size: 72px;
  }
  .floating-writing {
    left: var(--gutter);
    right: calc(var(--gutter) + 7px);
    width: auto;
    bottom: 12%;
  }
  .floating-caption {
    font-size: 12px;
    padding-bottom: 13px;
  }
  .floating-essay {
    padding: 17px 0;
    grid-template-columns: 16px 1fr 20px;
    gap: 12px;
  }
  .floating-meta {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .floating-essay h3 {
    font-size: 29px;
  }
  .floating-arrow {
    font-size: 19px;
  }
  .person-fragment {
    left: var(--gutter);
    right: calc(var(--gutter) + 20px);
    top: 28%;
  }
  .person-fragment h2 {
    font-size: 85px;
  }
  .person-summary {
    font-size: 13px;
    line-height: 1.9;
  }
  .person-fragment > .eyebrow {
    font-size: 12px;
  }
  .final-invitation {
    bottom: 15%;
  }
  .final-invitation > span:first-child {
    font-size: 34px;
  }
  .archive-page .archive {
    padding-top: 40px;
  }
  .archive-heading h1 {
    font-size: 80px;
  }
  .archive-list,
  .archive-labels,
  .archive-end {
    margin-left: 0;
  }
  .archive-heading {
    margin-bottom: 35px;
  }
  .archive-row {
    grid-template-columns: 1fr 24px;
    gap: 10px;
    padding: 26px 0;
  }
  .archive-labels {
    grid-template-columns: 1fr 24px;
  }
  .archive-row h2 {
    font-size: 32px;
  }
  .archive-page:before {
    background-image:
      linear-gradient(#09292b85, #08292dd9),
      url("/static/images/undercurrent.png");
  }
  .about-title-row h1 {
    font-size: 62px;
  }
  .about-title-row {
    margin-bottom: 25px;
  }
  .biography {
    padding: 20px 0 0;
  }
  .biography .bio-lead {
    font-size: 38px;
  }
  .about-closing {
    padding-top: 0;
  }
  .about-page:before {
    background-image:
      linear-gradient(#122d3780, #122d37b9),
      url("/static/images/afterlight.png");
  }
  .post-page .article {
    margin: 20px 12px 40px;
    padding: 30px 22px 45px;
  }
  .post-page .article-header h1 {
    font-size: 46px;
  }
  .post-page .article-body-grid {
    display: block;
  }
  .post-page .article-content {
    font-size: 17px;
  }
  .post-page .site-header {
    margin: 0 24px;
  }
  .post-page .article-content > p:first-child {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #world-canvas {
    transition: none;
  }
}
.world-person {
  color: #233839;
  background-image: linear-gradient(#fff0, #fff1e020), var(--scene);
}
.world-person a {
  text-shadow: none;
}
.world-person .world-link {
  border-color: #23383977;
}
body[data-active-world="2"] .world-hud,
body[data-active-world="2"] .world-rail a {
  color: #233839;
}
body[data-active-world="2"] .world-rail i {
  background: #23383977;
}
body[data-active-world="2"] .world-rail a[aria-current] i {
  background: #233839;
}
body[data-active-world="2"] .hud-rule {
  background: #23383977;
}
body[data-active-world="2"] .motion-toggle {
  background: transparent;
}
.world-writing h2 {
  text-shadow: 0 2px 30px #05242666;
}
/* Give the camera room to travel while the opening remains within one viewport. */
.world-section,
.world-section:first-child {
  height: 140svh;
  min-height: 1000px;
}
.world-section:last-child {
  height: 180svh;
}
.opening-whisper {
  top: 27svh;
}
.opening-identity {
  top: calc(100svh - 290px);
  bottom: auto;
}
.opening-footnote {
  top: calc(100svh - 250px);
  bottom: auto;
}
.world-writing .world-section-heading {
  top: 19svh;
}
.floating-writing {
  top: 43svh;
  bottom: auto;
}
.person-fragment {
  top: 28svh;
}
.final-invitation {
  top: 94svh;
  bottom: auto;
}
@media (max-width: 700px) {
  .world-section,
  .world-section:first-child {
    height: 145svh;
    min-height: 1050px;
  }
  .world-section:last-child {
    height: 180svh;
  }
  .opening-whisper {
    top: 20svh;
  }
  .opening-identity {
    top: max(360px, calc(100svh - 245px));
  }
  .opening-footnote {
    top: max(460px, calc(100svh - 135px));
  }
  .world-writing .world-section-heading {
    top: 12svh;
  }
  .floating-writing {
    top: max(315px, 44svh);
  }
  .person-fragment {
    top: 28svh;
  }
  .final-invitation {
    top: 98svh;
  }
}

/* A short scroll dwell before each camera journey. The original text
   layout stays pinned while the section's extra distance is consumed. */
.world-section,
.world-section:first-child,
.world-section:last-child {
  --travel-length: max(140svh, 1000px);
  --reading-hold: 65svh;
  height: calc(var(--travel-length) + var(--reading-hold));
  min-height: 0;
  padding: 0;
}
.world-section:last-child {
  --travel-length: max(180svh, 1000px);
}
.world-content {
  position: sticky;
  top: 0;
  height: var(--travel-length);
  width: 100%;
}
@media (max-width: 700px) {
  .world-section,
  .world-section:first-child {
    --travel-length: max(145svh, 1050px);
  }
  .world-section:last-child {
    --travel-length: max(180svh, 1050px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-section,
  .world-section:first-child,
  .world-section:last-child { --reading-hold: 0px; }
}
