/* The introduction and the machine have their own space. */
body.computer-hover {
  cursor: pointer;
}
body > .site-header,
body > #main-content,
body > .site-footer {
  transition: opacity 200ms ease;
}
body.computer-entry-active > .site-header,
body.computer-entry-active > #main-content,
body.computer-entry-active > .site-footer {
  opacity: var(--portal-page-opacity, 1);
}
.world {
  padding-top: clamp(32px, 4vh, 56px);
  padding-bottom: 0;
}
.cover-spread {
  display: block;
  position: relative;
  gap: 0;
  min-height: max(600px, min(calc(100svh - 160px), 60vw));
  padding-bottom: 56px;
}
.world-copy {
  width: 43%;
  max-width: 470px;
  padding-top: 0;
}
.world-copy h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero-first-name {
  display: block;
  font-size: clamp(44px, 5.2vw, 78px);
}
.world-copy h1 > em {
  display: block;
  width: max-content;
  margin: 0;
  font: 600 clamp(64px, 7.6vw, 112px) / 1.06 var(--display);
  letter-spacing: -0.04em;
}
.hero-name-text {
  color: #f6efd8;
}
.world-intro {
  color: #000;
  max-width: 28ch;
  margin: 0;
  font-size: clamp(21px, 1.8vw, 25px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.world-description {
  max-width: 35ch;
  margin-top: 18px;
  color: #000;
  font-size: 16px;
  line-height: 1.7;
}
.cover-links {
  margin-top: 26px;
}
.crt-scene-space {
  display: none;
}
.crt-terminal-controls {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgb(25 30 23 / 38%);
}
.crt-pointer-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 12px/1.6 var(--mono);
  color: #000;
}
.terminal-led {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #253b25;
  flex-shrink: 0;
}
.pointer-hint-touch {
  display: none;
}
#perspective-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 500 12px/1.4 var(--mono);
  color: #000;
}
#perspective-toggle:disabled {
  opacity: 0.55;
}
#perspective-toggle[aria-pressed="false"] .mode-label-human,
#perspective-toggle[aria-pressed="true"] .mode-label-machine {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mode-label-machine {
  color: inherit;
}
.mode-switch {
  width: 30px;
  height: 16px;
  border: 1px solid #283123;
  background: #f0e8cf;
}
.mode-switch::before {
  background: #283123;
}
/* Pause belongs to the header, rather than floating over readable content. */
.site-header .room-toolbar {
  position: static;
  inset: auto;
  z-index: auto;
}
.site-header #room-pause {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 12px;
  font-size: 0;
  gap: 0;
  box-shadow: none;
  border: 1px solid #283123;
  border-radius: 2px;
  background: #f0e8cf;
  color: #191e17;
}
.site-header #room-pause:hover {
  background: #283123;
  color: #f0e8cf;
}
/* Chat lives in the header and footer, outside the reading surface. */
.conversation-dock {
  position: static;
  z-index: auto;
  width: auto;
  max-width: none;
  min-height: 44px;
  inset: auto;
  padding: 0;
}
.conversation-dock .dock-chat {
  min-height: 44px;
  gap: 10px;
  padding: 10px 16px;
  font: 600 14px/1.4 var(--display);
}
.conversation-dock .dock-label {
  display: inline;
}
.conversation-dock .dock-mobile-label,
.conversation-dock kbd {
  display: none;
}
@media (max-width: 1099px) and (min-width: 761px) {
  .world {
    padding-top: 36px;
  }
  .world-copy {
    width: 42%;
  }
  .world-copy h1 > em {
    font-size: clamp(62px, 7.4vw, 82px);
  }
  .world-intro {
    max-width: 100%;
    font-size: 21px;
  }
  .world-description {
    max-width: 100%;
    font-size: 15px;
  }
  .world-work-link {
    font-size: 14px;
  }
  .crt-terminal-controls {
    gap: 4px;
  }
}
@media (max-width: 760px) {
  .world {
    padding-top: 24px;
  }
  .cover-spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 44px;
  }
  .world-copy {
    display: contents;
  }
  .world-copy h1 {
    grid-row: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 9px;
    margin: 0;
    white-space: nowrap;
  }
  .hero-first-name {
    display: inline-block;
    font-size: clamp(30px, 8.8vw, 56px);
  }
  .world-copy h1 > em {
    display: inline-block;
    font-size: clamp(40px, 11.8vw, 72px);
    line-height: 1.1;
  }
  .crt-scene-space {
    display: block;
    grid-row: 2;
    height: clamp(170px, min(82vw, calc(100svh - 235px)), 480px);
    pointer-events: none;
  }
  .hero-details {
    grid-row: 3;
    padding: 26px 22px;
    background: #f0e8cf;
    color: #191e17;
    border: 1px solid #283123;
  }
  .hero-details .world-description {
    color: #464b3c;
  }
  .world-intro {
    grid-row: 3;
    max-width: 100%;
    font-size: clamp(21px, 5.7vw, 25px);
  }
  .world-description {
    grid-row: 4;
    max-width: 39ch;
    margin-top: 16px;
    font-size: 16px;
  }
  .cover-links {
    grid-row: 5;
    margin-top: 22px;
  }
  .crt-terminal-controls {
    grid-row: 6;
    width: 100%;
    max-width: none;
    margin-top: 22px;
    justify-content: space-between;
    gap: 4px 12px;
  }
  .crt-pointer-hint {
    font-size: 11px;
  }
  .conversation-dock {
    min-height: 44px;
  }
  .conversation-dock .dock-chat {
    min-height: 44px;
    width: 44px;
    padding: 8px 4px;
    justify-content: center;
    font-size: 13px;
  }
  .conversation-dock .dock-chat > svg {
    display: none;
  }
  .conversation-dock .dock-label {
    display: none;
  }
  .conversation-dock .dock-mobile-label {
    display: inline;
  }
}
@media (hover: none), (pointer: coarse) {
  .pointer-hint-desktop {
    display: none;
  }
  .pointer-hint-touch {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  #room-pause {
    transition: none;
  }
}
