/* Paper moves. The experiment stays. A shared language for immersive journal essays. */
.journal-story {
  --story-paper: #f6f4ec;
  --story-ink: #20362d;
  --story-muted: #6b756b;
  --story-accent: #d85633;
  --story-line: #d4d8c9;
  position: relative;
  isolation: isolate;
  color: var(--story-ink);
  background: var(--story-paper);
  overflow-wrap: break-word;
}
body:has(.journal-story) {
  background: #f6f4ec;
}
body:has(.journal-story) .site-header,
body:has(.journal-story) > footer,
body:has(.journal-story) .private-preview,
body:has(.journal-story) .preview-banner {
  position: relative;
  z-index: 5;
  background: #f6f4ec;
}
body:has(.journal-story) .site-header {
  max-width: none;
  border-bottom: 1px solid #d4d8c9;
}
#main .journal-story section {
  border: 0;
  box-shadow: none;
}
.journal-story [hidden], .journal-inline-demo [hidden] {
  display: none !important;
}
.story-demo-source {
  display: none !important;
}
.story-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--story-paper);
}
.story-scene, .story-scene iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.story-scene {
  overflow: hidden;
}
.story-scene-status {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 1.5rem;
  max-width: min(520px, 90vw);
  background: var(--story-paper);
  border: 1px solid var(--story-line);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}
.story-swap-cover {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--story-paper);
}
.story-hero {
  position: relative;
  z-index: 2;
  min-height: max(840px, 108svh);
  padding: 34px clamp(24px, 6vw, 100px) 100px;
  background: var(--story-paper);
  overflow: hidden;
}
.story-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.story-hero-top a {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.story-hero-copy {
  position: relative;
  z-index: 2;
  width: min(75%, 950px);
  padding-top: clamp(70px, 11vh, 145px);
}
.story-kicker {
  margin: 0 0 28px;
  font: 11px/1.7 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.story-kicker > span {
  color: var(--story-accent);
  margin-right: 0.55em;
}
.story-hero h1 {
  margin: 0;
  font-size: clamp(64px, 8.6vw, 138px);
  font-weight: 480;
  line-height: 0.96;
  letter-spacing: -0.065em;
  max-width: 11ch;
  text-wrap: balance;
}
.story-dek {
  max-width: 47ch;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.6;
  color: #59665b;
  margin: 36px 0 26px;
}
.story-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font: 10px/1.6 var(--mono);
  color: var(--story-muted);
}
.story-start {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--story-ink);
}
.story-start span {
  color: var(--story-accent);
  font-size: 23px;
}
.story-hero-foot {
  position: absolute;
  left: clamp(24px, 6vw, 100px);
  bottom: 30px;
  color: var(--story-muted);
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.16em;
}
.story-specimen {
  position: absolute;
  right: 4vw;
  top: 28%;
  width: 28vw;
  height: 35vw;
  max-height: 590px;
  color: #314d3a;
  transform: rotate(-8deg);
}
.story-specimen-glyph {
  font: 900 clamp(200px, 29vw, 470px)/1 Arial, sans-serif;
  position: absolute;
  top: 4%;
  left: 12%;
  color: #d4ddc4;
  letter-spacing: -0.1em;
}
.story-specimen small {
  position: absolute;
  left: 28%;
  bottom: 2%;
  transform: rotate(8deg);
  color: #76836e;
  font: 9px/1.8 var(--mono);
  letter-spacing: 0.09em;
}
.story-freckle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #667e51;
}
.story-freckle-0 {
  left: 50%;
  top: 0;
}
.story-freckle-1 {
  left: 79%;
  top: 9%;
}
.story-freckle-2 {
  left: 95%;
  top: 35%;
}
.story-freckle-3 {
  left: 86%;
  top: 70%;
}
.story-freckle-4 {
  left: 62%;
  top: 88%;
}
.story-freckle-5 {
  left: 29%;
  top: 80%;
}
.story-freckle-6 {
  left: 3%;
  top: 56%;
}
.story-freckle-7 {
  left: 9%;
  top: 22%;
}
.story-freckle-8 {
  left: 32%;
  top: 5%;
}
.story-freckle-9 {
  left: 92%;
  top: 51%;
}
.story-freckle-10 {
  left: 21%;
  top: 70%;
}
.story-freckle-11 {
  left: 68%;
  top: 5%;
}
.story-freckle:nth-of-type(3n) {
  width: 11px;
  height: 11px;
  background: var(--story-accent);
}
.story-chapters {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.story-chapter {
  margin: 0;
  padding: 0;
  scroll-margin-top: 0;
  pointer-events: none;
}
.story-curtain {
  position: relative;
  min-height: 112svh;
  width: 100%;
  padding: max(110px, 16vh) clamp(28px, 13vw, 210px) max(100px, 13vh);
  background: var(--story-paper);
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.story-curtain-inner {
  width: min(100%, 860px);
}
.story-curtain h2 {
  margin: 0 0 32px;
  max-width: 15ch;
  font-size: clamp(42px, 5.7vw, 88px);
  font-weight: 470;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.story-curtain-inner > p:not(.story-kicker) {
  max-width: 53ch;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.62;
  margin: 0 0 28px;
}
.story-text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  margin-top: 18px;
}
.story-text-link span {
  color: var(--story-accent);
}
.story-curtain-edge {
  position: absolute;
  right: 32px;
  bottom: 32px;
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.story-curtain-dark {
  background: #21372d;
  color: #f6f4ec;
}
.story-curtain-dark .story-kicker {
  color: #d4ddc4;
}
.story-curtain-dark .story-kicker > span {
  color: #f19472;
}
.story-curtain-dark .story-text-link span {
  color: #f19472;
}
.story-prelude {
  z-index: 2;
}
.story-notes {
  padding: 16svh 0 10svh;
  pointer-events: none;
}
.story-note {
  display: flow-root;
  width: min(54vw, 680px);
  margin: 0 0 35svh 9vw;
  padding: clamp(28px, 4.4vw, 68px);
  background: #fffdf7;
  border: 1px solid #d5d8cc;
  box-shadow: 0 12px 50px #1b2d2012;
  pointer-events: auto;
}
.story-note:last-child {
  margin-bottom: 16svh;
}
.story-note-right {
  margin-left: auto;
  margin-right: 7vw;
  background: #eaf0df;
}
.story-note-marker {
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.13em;
  color: #75816e;
  margin-bottom: 22px;
}
.story-note p, .story-note li {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.75;
  margin: 0;
}
.story-note p + p {
  margin-top: 1em;
}
.story-note h2 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.035em;
}
.story-note pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.7 var(--mono);
}
.story-note blockquote {
  margin: 0;
  font: italic 26px/1.6 Georgia, serif;
}
.story-play-window {
  min-height: 112svh;
  position: relative;
  padding: 55px 8vw;
  pointer-events: none;
}
.story-demo-anchor {
  position: absolute;
  top: 0;
  left: 0;
}
.story-play-sign {
  max-width: 310px;
  pointer-events: auto;
  background: var(--story-paper);
  border: 1px solid var(--story-line);
  padding: 24px;
}
.story-play-sign .story-kicker {
  color: var(--story-accent);
  font-size: 9px;
  margin-bottom: 12px;
}
.story-play-sign h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.story-play-sign p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  color: var(--story-muted);
}
.story-enhanced .story-play-sign {
  opacity: 0;
  pointer-events: none;
}
.story-no-js {
  margin-top: 1em !important;
}
.journal-story:not(.story-enhanced) .story-curtain {
  min-height: 0;
  padding-top: 80px;
  padding-bottom: 80px;
}
.journal-story:not(.story-enhanced) .story-notes {
  padding: 40px 0 0;
}
.journal-story:not(.story-enhanced) .story-note {
  margin-bottom: 40px;
}
.journal-story:not(.story-enhanced) .story-play-window {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 60px;
}
.story-rail {
  position: fixed;
  z-index: 4;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.story-rail a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 33px;
  height: 33px;
  background: #f6f4ecee;
  border: 1px solid #ced4c3;
  border-radius: 50%;
  font: 9px/1 var(--mono);
  justify-content: center;
  text-decoration: none;
}
.story-rail a[aria-current] {
  border-color: var(--story-accent);
  background: var(--story-accent);
  color: white;
}
.story-rail b {
  position: absolute;
  left: 43px;
  white-space: nowrap;
  background: var(--story-ink);
  color: #fff;
  padding: 9px 12px;
  border-radius: 3px;
  font: 11px/1.3 var(--mono);
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.story-rail a:hover b, .story-rail a:focus-visible b {
  opacity: 1;
  transform: none;
}
.story-dock {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 40px));
  min-height: 70px;
  background: #fffdf7;
  border: 1px solid #cdd4c4;
  border-radius: 6px;
  box-shadow: 0 4px 22px #172b1a17;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px 18px;
  pointer-events: auto;
}
.story-dock-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.story-dock-heading > span {
  color: var(--story-accent);
  font: 11px/1 var(--mono);
}
.story-dock-heading b {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-dock button {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 8px 0;
  color: var(--story-ink);
  white-space: nowrap;
}
.story-dock button:last-of-type {
  border-left: 1px solid var(--story-line);
  padding-left: 18px;
}
.story-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
  background: #e7ebdf;
}
.story-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--story-accent);
}
.story-ending {
  position: relative;
  z-index: 2;
  padding: 130px clamp(28px, 13vw, 210px) 120px;
  background: #21372d;
  color: #f6f4ec;
  min-height: 100svh;
  pointer-events: auto;
}
.story-ending-inner {
  max-width: 860px;
}
.story-ending h2 {
  font-size: clamp(42px, 6.2vw, 88px);
  font-weight: 470;
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 0 0 28px;
}
.story-ending-lead {
  max-width: 48ch;
  font-size: 21px;
  line-height: 1.6;
  color: #cdd7c7;
}
.story-ending .source-box {
  background: transparent;
  color: inherit;
  padding: 32px 0;
  border: 0;
  border-top: 1px solid #526052;
  margin-top: 48px;
  font-size: 12px;
}
.story-ending .source-box ul {
  line-height: 1.8;
}
.story-ending .source-box .eyebrow {
  color: #c6d2bd;
}
.story-ending .tag-list span {
  color: #dbe4d3;
  border-color: #65735e;
  background: transparent;
}
.story-ending .article-support {
  background: transparent;
  color: inherit;
}
.journal-inline-demo {
  clear: both;
  padding: 28px;
  margin: 36px 0;
  background: #f6f4ec;
  border: 1px solid #d4d8c9;
  border-radius: 6px;
}
.journal-inline-demo h3 {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 26px;
}
.journal-inline-demo > p {
  font-size: 14px;
  line-height: 1.6;
}
.journal-inline-demo iframe {
  width: 100%;
  min-height: 650px;
  border: 0;
  background: #f6f4ec;
}
.journal-inline-demo .story-demo-status {
  font: 12px/1.6 var(--mono);
}
@media (max-width: 800px) {
  .story-hero {
    min-height: 102svh;
    padding-top: 25px;
  }
  .story-hero-copy {
    width: 100%;
    padding-top: 70px;
  }
  .story-hero h1 {
    max-width: 11ch;
    font-size: clamp(57px, 11vw, 88px);
  }
  .story-dek {
    max-width: 38ch;
    font-size: 17px;
  }
  .story-specimen {
    opacity: 0.4;
    right: -7vw;
    top: 30%;
    width: 45vw;
    height: 60vw;
  }
  .story-specimen-glyph {
    font-size: 58vw;
  }
  .story-specimen small {
    display: none;
  }
  .story-hero-top > span {
    max-width: 150px;
    text-align: right;
    font-size: 8px;
  }
  .story-curtain {
    padding: 100px 9vw 110px;
  }
  .story-curtain h2 {
    font-size: clamp(43px, 7.5vw, 65px);
  }
  .story-note {
    width: 76vw;
    margin-left: 8vw;
    padding: 32px;
  }
  .story-note-right {
    margin-left: auto;
    margin-right: 8vw;
  }
  .story-rail {
    top: auto;
    left: 50%;
    bottom: 94px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 5px;
    max-width: calc(100% - 24px);
    overflow-x: auto;
    padding: 6px;
    border: 1px solid #cdd4c4;
    border-radius: 30px;
    background: #fffdf7;
    box-shadow: 0 4px 18px #172b1a12;
  }
  .story-rail a {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 9px;
  }
  .story-rail b {
    display: none;
  }
  .story-dock {
    padding: 12px 14px 16px;
    gap: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
  .story-dock-heading b {
    display: none;
  }
  .story-dock-heading {
    flex: 0;
  }
  .story-dock button {
    flex: 1;
    font-size: 11px;
  }
  .story-dock button:last-of-type {
    padding-left: 12px;
  }
  .story-ending {
    padding: 90px 9vw;
  }
  .story-ending-lead {
    font-size: 18px;
  }
}
@media (max-width: 440px) {
  .story-curtain {
    padding-left: 44px;
    padding-right: 24px;
  }
  .story-curtain-inner > p:not(.story-kicker) {
    font-size: 18px;
  }
  .story-note {
    width: calc(100% - 64px);
    margin-left: 44px;
    padding: 28px 24px;
  }
  .story-note-right {
    margin-right: 20px;
  }
  .story-note p {
    font-size: 17px;
    line-height: 1.75;
  }
  .story-hero-copy {
    padding-top: 60px;
  }
  .story-byline {
    font-size: 9px;
    gap: 6px 12px;
  }
  .story-start {
    margin-top: 26px;
  }
  .story-ending {
    padding-left: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journal-story {
    scroll-behavior: auto;
  }
  .story-rail b {
    transition: none;
  }
}
@media print {
  .story-stage, .story-dock, .story-rail, .story-specimen, .story-start, .story-text-link {
    display: none !important;
  }
  .story-hero, .story-curtain, .story-ending {
    min-height: 0;
    padding: 28px 0;
    background: white !important;
    color: #202d29 !important;
  }
  .story-hero-copy, .story-curtain-inner, .story-ending-inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .story-hero h1 {
    font-size: 42px;
    max-width: none;
  }
  .story-hero-top, .story-hero-foot, .story-curtain-edge {
    display: none;
  }
  .story-curtain h2, .story-ending h2 {
    font-size: 28px;
    max-width: none;
  }
  .story-notes {
    padding: 0;
  }
  .story-note {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    background: white;
    border: 0;
    box-shadow: none;
  }
  .story-note-marker {
    display: none;
  }
  .story-curtain-inner > p:not(.story-kicker), .story-note p, .story-note li {
    font-size: 12px;
    line-height: 1.6;
  }
  .story-play-window {
    min-height: 0;
    padding: 12px 0 28px;
  }
  .story-enhanced .story-play-sign {
    opacity: 1;
  }
  .story-play-sign {
    max-width: none;
    background: none;
    border: 0;
    padding: 0;
  }
  .story-play-sign p {
    color: inherit;
  }
  .story-no-js {
    display: none;
  }
  .story-ending .source-box, .story-ending .source-box .eyebrow, .story-ending .tag-list span {
    color: inherit;
  }
}

/* Standalone photos use the same ordered content flow in both article layouts. */
.journal-image {
  clear: both;
  margin: 2rem 0;
  max-width: 100%;
}
.journal-image img {
  display: block;
  max-width: 100%;
  height: auto;
}
.journal-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.story-note .journal-image, .story-note .barcode-figure {
  margin: 0;
}
.journal-story > .barcode-series {
  position: relative;
  z-index: 2;
  background: var(--story-paper);
}

.story-prelude .story-curtain-inner {
  display: flow-root;
}
.article-body > .barcode-figure {
  clear: both;
}
