/* The published examples keep Booka's warm paper beside its deep green ink. */
.showcase-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(46px, 7vw, 92px) 0;
  align-items: center;
}
.showcase-hero .hero-copy h1 {
  font-size: clamp(49px, 6.4vw, 91px);
  line-height: 1.04;
  letter-spacing: -.065em;
  margin: 0 0 26px;
}
.showcase-hero .hero-description {
  max-width: 30em;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}
.showcase-cover {
  isolation: isolate;
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0;
  padding: 27px 32px 15px;
  background:
    radial-gradient(ellipse at 48% 34%, #677858 0%, #395644 42%, #254536 100%);
  border-radius: 4px 36px 4px 36px;
  overflow: hidden;
}
.cover-sheet {
  position: absolute;
  width: 42%;
  height: 64%;
  top: 13%;
  background: center/contain no-repeat url('/assets/showcase-paper-086.webp');
  filter: drop-shadow(0 12px 12px #18271a67);
}
.cover-sheet-left {
  left: 5%;
  transform: rotate(-13deg);
}
.cover-sheet-right {
  right: 5%;
  transform: rotate(12deg);
  background-image: url('/assets/showcase-paper-044.webp');
}
.showcase-cover figcaption {
  z-index: 1;
  color: #faf2df;
  font-size: .875rem;
  text-align: center;
  margin: 15px 0 0;
}
.world-reader {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  min-width: 0;
  padding: 15px 11px 9px;
  background: #f0e9db;
  border: 1px solid #d5c9b3;
  border-radius: 21px;
  box-shadow: 0 0 0 5px #254f3c, 0 18px 35px #101c1a55;
  color: #202820;
}
.world-post-header {
  min-width: 0;
  padding: 0 6px 10px;
}
.world-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.world-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  object-fit: cover;
  background: #d5d9cd;
  clip-path: polygon(6% 3%, 94% 3%, 98% 7%, 99% 12%, 97% 17%, 55% 94%, 50% 98%, 45% 94%, 3% 17%, 1% 12%, 2% 7%);
}
.world-profile-details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
  line-height: 1.35;
  font-size: .9rem;
}
.world-profile-details time {
  color: #505c50;
}
.world-relay-part {
  color: #285a46;
  font-size: .875rem;
  font-weight: 500;
  margin: 1px 0 0;
}
.world-place {
  margin: 4px 0 0;
  color: #465347;
  font-size: .8125rem;
}
.world-paper-header {
  margin-bottom: 13px;
}
.world-paper-header h2 {
  color: #202820;
  font: 600 clamp(1.9rem, 3.15vw, 2.48rem)/1.13 var(--serif);
  letter-spacing: -.04em;
  margin: 0;
}
.world-byline {
  font-size: .9rem;
  margin: 3px 0 0;
}
.world-stack {
  position: relative;
  display: grid;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}
.world-page {
  grid-area: 1 / 1;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  padding: 22px clamp(17px, 5%, 25px) 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: center / 100% 100% no-repeat var(--world-paper);
}
.world-page[hidden] { display: none; }
[data-world-page="003"] { --world-paper: url('/assets/showcase-paper-003.webp'); }
[data-world-page="086"] { --world-paper: url('/assets/showcase-paper-086.webp'); }
[data-world-page="023"] { --world-paper: url('/assets/showcase-paper-023.webp'); }
[data-world-page="044"] { --world-paper: url('/assets/showcase-paper-044.webp'); }
[data-world-page="008"] { --world-paper: url('/assets/showcase-paper-008.webp'); }
[data-world-page="016"] { --world-paper: url('/assets/showcase-paper-016.webp'); }
[data-world-page="030"] { --world-paper: url('/assets/showcase-paper-030.webp'); }
[data-world-page="037"] { --world-paper: url('/assets/showcase-paper-037.webp'); }
[data-world-page="057"] { --world-paper: url('/assets/showcase-paper-057.webp'); }
[data-world-page="078"] { --world-paper: url('/assets/showcase-paper-078.webp'); }
[data-world-page="085"] { --world-paper: url('/assets/showcase-paper-085.webp'); }
.world-stack[data-ready] .world-page { visibility: hidden; }
.world-stack[data-ready] .world-page[data-current],
.world-stack[data-ready] .world-page[data-incoming] { visibility: visible; }
.world-page[data-current] { z-index: 1; }
.world-stack[data-turning] { user-select: none; cursor: grabbing; }
.world-story {
  font: 1.05rem/1.47 var(--serif);
  margin: 0;
}
.world-story:not([dir="rtl"])::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: .79;
  margin: .07em .10em 0 0;
  color: #223b2e;
}
.world-page:lang(hi) .world-story {
  font-family: 'Noto Serif Devanagari', 'Kohinoor Devanagari', 'Nirmala UI', serif;
  line-height: 1.65;
}
.world-page:lang(ja) .world-story {
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK JP', serif;
  line-height: 1.65;
}
.world-page:lang(ar) .world-story {
  font-family: 'Geeza Pro', 'Noto Naskh Arabic', 'Segoe UI', serif;
  line-height: 1.65;
  width: 100%;
}
.world-opening-word {
  float: right;
  font-size: 2.5em;
  line-height: 1;
  margin-left: .2em;
  color: #223b2e;
}
.world-page:lang(hi) .world-story:not([dir="rtl"])::first-letter,
.world-page:lang(ja) .world-story:not([dir="rtl"])::first-letter {
  line-height: 1;
  margin-top: 0;
}
.world-page .world-art {
  margin: auto 0;
  padding: 12px 0 10px;
  align-self: center;
  max-width: 100%;
  width: 100%;
}
.world-art img {
  width: 100%;
  height: auto;
}
.relay-reader-cover {
  margin-top: clamp(24px, 4vw, 40px);
}
.relay-reader-cover .world-reader {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr);
  column-gap: clamp(12px, 3vw, 32px);
  width: min(100%, 760px);
  padding: 16px;
}
.relay-reader-cover .world-post-header,
.relay-reader-cover .world-stack,
.relay-reader-cover .world-navigation {
  grid-column: 1;
}
.relay-reader-cover .world-page {
  justify-content: flex-start;
}
.relay-reader-cover .world-art {
  margin: 0;
}
.relay-reader-cover .world-art img {
  max-height: 350px;
  object-fit: contain;
}
.relay-part-index {
  grid-area: 1 / 2 / span 3;
  padding: 4px 0 0 14px;
  min-width: 0;
  border-inline-start: 1px solid var(--line);
}
.relay-part-index h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.relay-part-index ol {
  display: grid;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.relay-part-index button {
  display: grid;
  grid-template-columns: 1.15rem 35px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: start;
  line-height: 1.2;
}
.relay-part-index button:hover,
.relay-part-index button[aria-current="step"] {
  background: #e0e8d9;
  border-color: #b7c6b3;
}
.relay-part-index .world-avatar {
  width: 35px;
  height: 35px;
}
.relay-part-name strong, .relay-part-name small { display: block; }
.relay-part-name strong { font-size: .9rem; }
.relay-part-number, .relay-part-name small {
  color: #506653;
  font-size: .8rem;
}
.relay-part-number { font-variant-numeric: tabular-nums; }
.world-credits {
  color: #325642;
  font-size: .75rem;
  line-height: 1.45;
  text-underline-offset: 3px;
}
.world-source { font-weight: 600; }
.world-credits p { margin: 3px 0 0; }
.world-fold {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(var(--fold-angle, 90deg),
    #675d48bb, #fcf4df33 25%, #fff8ea99 49%, #ac98712b 75%, #64583e88),
    center / 100% 100% no-repeat var(--world-paper);
  background-size: var(--fold-width, 28%) 100%, 100% 100%;
  background-position: var(--fold-position, 50%) center, center;
  background-repeat: no-repeat;
  background-color: #ebdfc8;
  filter: drop-shadow(0 2px 4px #5948354f);
}
.world-navigation:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2px;
  padding-top: 4px;
}
.world-navigation button {
  padding: 0 2px;
  min-height: 44px;
  border: 0;
  color: #25543f;
  background: transparent;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
}
.world-navigation button:first-child { text-align: left; }
.world-navigation button:last-child { text-align: right; }
.world-navigation button[aria-disabled="true"] { opacity: .52; cursor: default; }
.world-navigation span {
  padding: 0 .15em;
  color: #465448;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.world-navigation button:focus-visible,
.world-credits a:focus-visible {
  outline: 2px solid #2f6650;
  outline-offset: 2px;
  border-radius: 3px;
}
.showcase-screen {
  display: block;
  overflow: hidden;
  border: 1px solid #d4cbb8;
  border-radius: 12px;
  box-shadow: 0 14px 32px #2d3d2b15;
  background: #f3eadb;
}
.showcase-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.relay-showcase, .showcase-section {
  border-top: 1px solid var(--line);
  padding: clamp(46px, 7vw, 88px) 0;
}
.showcase-intro {
  min-width: 0;
}
.showcase-intro .eyebrow {
  color: #59633f;
  margin: 0 0 10px;
}
.showcase-intro h2 {
  font-size: clamp(34px, 4.5vw, 61px);
  line-height: 1.12;
  letter-spacing: -.048em;
  margin: 0 0 18px;
}
.showcase-intro > p:not(.eyebrow, .showcase-caption) {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  max-width: 42em;
  margin: 0;
  color: var(--muted);
}
.relay-showcase > .showcase-intro { max-width: 50rem; }
.route-screens figcaption,
.showcase-caption {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.route-screens {
  display: grid;
  gap: clamp(12px, 2.8vw, 34px);
}
.route-screens figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}
.relay-transcript {
  border: solid var(--line);
  border-width: 1px 0;
  margin: 16px 0 0;
}
.relay-transcript summary {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 16px 0;
}
.relay-transcript ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0 0 0 1.5em;
  margin: 0 0 24px;
}
.relay-transcript li {
  padding: 14px 20px 15px 10px;
  border-top: 1px solid var(--line);
}
.relay-transcript li::marker { color: #59633f; }
.relay-transcript li > div {
  display: flex;
  align-items: baseline;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.relay-author { font-weight: 600; }
.relay-language { color: var(--muted); }
.relay-transcript li p {
  color: #202820;
  margin: 6px 0 0;
  font: 1.05rem/1.55 var(--serif);
}

.showcase-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 6vw, 96px);
}
.route-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paper-showcase { grid-template-columns: minmax(0, 1fr) minmax(0, .67fr); }
.paper-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  margin: 28px 0 0;
}
.paper-palette img { display: block; width: 100%; height: auto; }
.showcase-single {
  margin: 0;
  width: min(100%, 265px);
  justify-self: center;
}
.security-showcase {
  grid-template-columns: minmax(0, 1fr);
  background: #203f32;
  color: #fff7e8;
  padding: clamp(25px, 6vw, 76px);
  border: 0;
  border-radius: 4px 28px 4px 28px;
  margin-bottom: clamp(24px, 4vw, 45px);
}
.security-showcase .showcase-intro { max-width: 680px; }
.security-showcase .showcase-intro p,
.security-showcase .showcase-intro > p:not(.eyebrow, .showcase-caption) {
  color: #e5eadc;
}
.security-showcase .quiet-link {
  display: inline-block;
  color: #fff2cf;
  margin-top: 20px;
}
.security-showcase .showcase-intro h2 { color: #fff7e8; }
.security-settings {
  margin-top: 14px;
  color: #fff2cf;
  font-size: .9rem;
}
.security-settings summary {
  width: fit-content;
  cursor: pointer;
}
.security-settings .showcase-single { margin-top: 16px; }
.security-showcase :focus-visible { outline-color: #fff2cf; }

.chat-demo {
  width: min(100%, 730px);
  min-width: 0;
  justify-self: center;
  margin: 0;
}
.chat-perspectives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.chat-perspective {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}
.chat-perspective-title {
  color: #fff2cf;
  text-align: center;
  font: 500 .875rem/1.35 var(--sans);
}
.chat-phone {
  display: flex;
  flex-direction: column;
  padding: 14px clamp(10px, 3vw, 17px) 16px;
  border: 1px solid #d5c9b3;
  border-radius: 23px;
  background: #f0e9db;
  color: #202820;
  box-shadow: 0 0 0 5px #2a5341, 0 18px 35px #101c1a55;
}
.chat-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  line-height: 1.25;
}
.chat-header .world-avatar { width: 38px; height: 38px; }
.chat-header strong { display: block; font-weight: 500; }
.chat-header small { display: block; margin-top: 3px; color: #48534b; }
.chat-back, .chat-more { font-size: 1.25rem; }
.chat-day {
  margin: 23px 0 10px;
  text-align: center;
  font-size: .79rem;
}
.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chat-message {
  max-width: 86%;
  padding: 10px 12px 8px;
  color: #202820;
  font-size: .91rem;
  line-height: 1.4;
  background: center / 100% 100% no-repeat;
  overflow-wrap: anywhere;
}
.chat-message--outgoing {
  align-self: flex-end;
}
.chat-message--incoming {
  align-self: flex-start;
}
.chat-message[data-chat-paper="003"] {
  background-image: url('/assets/showcase-paper-003.webp');
}
.chat-message[data-chat-paper="023"] {
  background-image: url('/assets/showcase-paper-023.webp');
}
.chat-message p { margin: 0; }
.chat-speaker {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.chat-time {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #50594d;
  font-size: .7rem;
}
.chat-delivered {
  position: relative;
  width: 13px;
  height: 9px;
  color: #27513e;
}
.chat-delivered::before, .chat-delivered::after {
  content: '';
  position: absolute;
  top: 1px;
  width: 8px;
  height: 4px;
  border: solid currentColor;
  border-width: 0 0 1px 1px;
  transform: rotate(-45deg);
}
.chat-delivered::after { left: 4px; }
.chat-composer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: .85rem;
}
.chat-composer > span {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #315744;
  border-radius: 999px;
  background: #faf6ec;
  color: #515c52;
}
.chat-composer > i {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  height: 34px;
  border-radius: 50%;
  background: #ded7c9;
}
.chat-composer > i::before {
  content: '';
  width: 15px;
  height: 15px;
  background: #616e63;
  clip-path: polygon(0 5%, 100% 50%, 0 95%, 0 61%, 62% 50%, 0 39%);
}
.chat-demo figcaption {
  margin-top: 14px;
  color: #e5eadc;
  font-size: .82rem;
  text-align: center;
}

@media (max-width: 780px) {
  .showcase-hero, .showcase-section { grid-template-columns: minmax(0, 1fr); }
  .showcase-cover { width: min(100%, 455px); }
  .relay-reader-cover { width: 100%; }
  .showcase-hero .hero-copy h1 { font-size: clamp(43px, 11.6vw, 63px); }
  .route-screens { width: min(100%, 540px); }
  .showcase-single { width: min(68%, 252px); }
}
@media (max-width: 680px) {
  .chat-demo { max-width: 350px; }
  .chat-perspectives {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .relay-reader-cover .world-reader {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 440px);
    padding: 12px;
  }
  .relay-part-index {
    grid-area: auto / 1;
    padding: 12px 0 0;
    margin-top: 4px;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .relay-part-index ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 4px;
  }
  .relay-part-index button {
    grid-template-columns: .95rem 28px minmax(0, 1fr);
    gap: 4px;
    padding-inline: 4px;
  }
  .relay-part-index .world-avatar { width: 28px; height: 28px; }
  .relay-part-name { overflow-wrap: anywhere; }
}
@media (max-width: 470px) {
  .showcase-cover { padding: 19px 12px 12px; }
  .world-reader { padding-inline: 8px; }
  .relay-transcript ol { grid-template-columns: minmax(0, 1fr); }
  .relay-transcript li { padding-right: 0; }
}
