/* One photographic backdrop across the gallery and reading rooms. */
body {
  --galaxy: url("assets/galaxy-wide.webp");
  --sky-veil: linear-gradient(105deg, #080d1638, transparent 56%, #090e180d);
}
.galactic-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--sky-veil), var(--galaxy) center / cover no-repeat, var(--paper);
}
::selection { background: #c6ac89; color: #0b1119; }
.gesture { color: #d0d3d5; }
.model-buttons { background: #0b121ca8; }
.planet-deck { border-top: 0; }
.planet-picker::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c3bfba59 15%, #c3bfba59 85%, transparent);
}
.planet-picker button { transition: color .15s, background-color .15s; }
.planet-picker button:hover { color: #eee4d3; background: #c1c6d609; }
.planet-picker button[aria-pressed=true] { background: linear-gradient(0deg,#dbbd8b14,transparent 85%); }
@media (min-width: 900px) {
  .planetarium {
    background: linear-gradient(to bottom, transparent 65%, #080d16ce),
      radial-gradient(ellipse 28% 50% at 83% 50%, #080d168f, transparent),
      linear-gradient(to bottom, #070c1526, transparent 38%);
  }
}

.exhibit-frame {
  border-color: #a3b4c343;
  background: linear-gradient(112deg, #101823f7 8%, #111925df 64%, #111a24a3);
}
.technical-note { border-color: var(--line); }
.technical-note summary { padding-block: 4px; }
.exhibit-controls select, .answer-picks button, .text-action { background-color: #111b26; }
.disc-chart, .signal-plot { border-color: #8b99ab58; }
.disc-chart i { box-shadow: inset 0 0 0 1px #fff2; }

.section-header h2, .guest-invite h2 { font-weight: 500; }
.essay-row { padding-block: 24px; }
.metadata { color: #d3b991; }
.essay-list, .essay-row { border-color: var(--line); }
.discussion-card {
  position: relative;
  padding: clamp(20px,2vw,32px);
  border: 1px solid #a6b3c247;
  background: linear-gradient(155deg,#0d17249c,#0c131fee 78%);
  border-radius: 3px;
}
.discussion-card .text-link { color: #ebd0a7; }
.guest-invite {
  border: 1px solid #b1bdca40;
  border-radius: 3px;
  background: linear-gradient(110deg,#101b27ec,#0d17279c 65%,#111c2780);
}
.site-footer { margin-top: 0; padding-inline: 0; border-top: 1px solid var(--line); }
.footer-details { justify-content: flex-end; }
.footer-details a:hover { color: var(--ink); }
body:has(:is(.read-page, .index-page):not([hidden])) {
  --sky-veil: linear-gradient(90deg,#080d1652 0%, #080d16ac 18%, #0a1019ee 35%, #0a1019ed 66%, #080d1694 81%,#070c144d);
}
.read-page { position: relative; }
.read-header { position: relative; padding-block: 14px 26px; }
.read-header .standfirst { color: #c8c9c7; }
.prose { color: #deded8; }
.read-discussion { border-left-color: #bca17e; }
.interaction-form :is(input,textarea):focus-visible { outline-offset: 2px; }

@media (max-width:800px) {
  body { --galaxy: url("assets/galaxy-portrait.webp"); }
  body:has(:is(.read-page, .index-page):not([hidden])) {
    --sky-veil: linear-gradient(180deg,#080d1640 0%,#080d168c 23%,#080d16ed 57%,#080d16f2);
  }
  .site-footer { align-items: flex-start; }
  .footer-details { flex-direction: column; align-items: flex-end; gap: 5px; }
}
@media (max-width:630px) {
  .planetarium { background: linear-gradient(180deg,#080d162c,transparent 36%,#080d1659 65%,#080d16ce); }
  .read-header { padding-top: 8px; }
  .prose { background: linear-gradient(#0a1019bb, #0a1019d9); box-shadow: 0 0 22px 9px #0a1019ac; }
}

.index-page {
  width: min(760px, calc(100% - 48px));
  min-height: 70svh;
  margin: clamp(38px,7vw,94px) auto 64px;
}
.index-page .section-header { align-items: baseline; flex-wrap: wrap; margin-bottom: 28px; }
.index-page h1 { font: 500 clamp(32px,4vw,54px)/1.3 var(--serif); }

/* Open the text on a quiet, narrow page against the fixed night sky. */
article.read-page {
  width: min(36em, calc(100% - 48px));
  font-size: 19px;
}
article.read-page .read-header {
  border-bottom-color: #baa48462;
  margin-bottom: 1.5em;
  padding-bottom: 1.25em;
}
article.read-page .read-header h1 { font-weight: 545; letter-spacing: .005em; line-height: 1.36; }
article.read-page .standfirst { color: #d4c8b6; }
article.read-page .prose { font-size: 1em; font-weight: 425; line-height: 2; letter-spacing: .015em; color: #e7e1d6; }
article.read-page .prose p { margin-bottom: .9em; }
article.read-page .prose p + p { text-indent: 2em; }
article.manuscript .prose p.keywords { text-indent: 0; margin-top: .8em; color: #c8beac; font: 14px/1.8 var(--sans); }
article.read-page .prose h2 { margin: 1.8em 0 .65em; font-weight: 550; }
article.read-page .prose > :first-child, article.manuscript .paper-layout .prose > :first-child { margin-top: 0; }
@media (max-width: 630px) {
  article.read-page { width: calc(100% - 40px); font-size: 17px; }
  article.read-page .prose { line-height: 1.95; }
}
