/* Ex Astris archive. The theme boundary starts at the first paper chapter. */
.section[data-ark-theme="exa"] {
  --archive-seam: #101626;
  --archive-slate: #172132;
  --paper: #080914;
  --ink: #f3f2ef;
  --body-copy: #dce4ed;
  --quiet: #b5bdcd;
  --panel: #131727;
  --surface-inset: #1b2134;
  --graphite: #080914;
  --on-graphite: #f3f2ef;
  --signal: #00fbec;
  --read-accent: #00fbec;
  --orbit-state: #925dff;
  --rule: #41475a;
  --control-edge: #717e93;
  --chart-ink: #0d1120;
  --card-border: var(--rule);
  --card-shadow: none;
  --panel-glow: none;
  --card-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule);
}
#events.section {
  --paper: #080914;
  --ink: #f3f2ef;
  --quiet: #b5bdcd;
  --panel: #131727;
  --control-edge: #717e93;
  --rule: #41475a;
  --read-accent: #00fbec;
  --chart-ink: #131727;
}
.section[data-ark-theme="exa"] .overline {
  color: #002fa7;
}
.section[data-ark-theme="exa"] h2 em {
  color: var(--ink);
  color: color-mix(in srgb, var(--ink) 72%, var(--quiet));
}
.section[data-ark-theme="exa"] .overline .bars,
#events.section .overline .bars {
  width: 2rem;
  height: .32rem;
  background: currentColor;
}
.section[data-ark-theme="exa"] .probe-heading {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(.65rem, 1vw, 1rem);
}
.section[data-ark-theme="exa"] .probe-heading > h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.4rem, 3.65vw, 3.65rem);
  line-height: 1.01;
}
.probe-heading > .section-finding { max-width: none }
.section[data-ark-theme="exa"] .chart-switch button { border-radius: 2rem }
.section[data-ark-theme="exa"] .chart-switch button[aria-pressed="true"] {
  color: #080914;
  background: var(--signal);
  border-color: var(--read-accent);
}
html[data-chapter]:not([data-chapter="overview"]) .chapter-nav {
  --midnight: #0c1020; --ark-signal: #00fbec; --frost: #f3f2ef; --hair: #41475a; --mist: #bac5d8;
}

#introduction.section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4.25rem, 8.5vw, 8rem);
  border-block: 1px solid #394557;
  background: radial-gradient(ellipse at 61% 45%, #172538, #0c1020 50%, #080914 85%);
}
#introduction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/exa-horizon.svg") center / cover no-repeat;
  opacity: .64;
  pointer-events: none;
}
#introduction .story-opening {
  grid-template-columns: minmax(0, .80fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5.2rem);
  align-items: center;
}
#introduction .story-copy h2 {
  font: 450 clamp(3.3rem, 5.5vw, 6rem)/.97 var(--serif);
  letter-spacing: -.06em;
  margin-bottom: clamp(1.35rem, 2.4vw, 2.6rem);
}
#introduction .story-copy > p { color: var(--body-copy); max-width: 48ch }
#introduction .story-copy blockquote {
  margin-block: clamp(1.35rem, 2.35vw, 2.5rem);
  max-width: 29ch;
  padding: 0;
  border: 0;
  color: #c7f9f2;
  font: italic 450 clamp(1.3rem, 1.85vw, 2.125rem)/1.26 var(--serif);
  letter-spacing: -.035em;
}
#introduction .intro-findings {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  grid-template-areas: "orbit heading" "orbit findings";
  align-content: center;
  align-items: center;
  gap: 0 clamp(.8rem, 2vw, 2.1rem);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#introduction .intro-findings h3 {
  grid-area: heading;
  margin: 0 0 .8rem;
  font: 480 clamp(1.65rem, 2.3vw, 2.4rem)/1.15 var(--serif);
  letter-spacing: -.04em;
}
.intro-findings .finding-orbit { grid-area: orbit }
#introduction .intro-findings ol { grid-area: findings }
#introduction .intro-findings li { position: relative; border-color: #435268 }
#introduction .intro-findings li:last-child { border-bottom: 1px solid #435268 }
#introduction .intro-findings li a { align-items: baseline; gap: .55rem; padding-block: .8rem; }
#introduction .intro-findings a span { color: #96a8bc; font: 500 .74rem/1.4 var(--mono) }
#introduction .intro-findings a strong { font-size: clamp(.88rem, 1vw, 1.01rem); line-height: 1.42 }
#introduction .intro-findings a::after { opacity: .6 }
#introduction .intro-findings li[data-preview] a :is(span,strong),
#introduction .intro-findings a:is(:hover,:focus-visible) :is(span,strong) { color: #97f4ea }
#introduction .intro-findings li[data-preview]::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 2.55rem; border-top: 2px solid var(--signal);
}
.finding-orbit {
  position: relative;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 1;
  margin: auto;
  color: #b1fff3;
  --orbit-angle: 0deg;
  background: radial-gradient(closest-side, #28404c91, #0b102400);
}
.finding-orbit svg { display: block; width: 100%; height: auto; overflow: visible }
.orbit-guides { stroke: #8295ad; opacity: .62; stroke-width: .85 }
.orbit-arc { stroke: var(--signal); transform-origin: 160px 160px; transform: rotate(calc(-108deg + var(--orbit-angle))) }
.orbit-scenes { stroke: currentColor; stroke-width: 1.35; stroke-linecap: round }
.orbit-scenes [data-specimen] { display: none }
.finding-orbit[data-finding="1"] [data-specimen="1"],
.finding-orbit[data-finding="2"] [data-specimen="2"],
.finding-orbit[data-finding="3"] [data-specimen="3"],
.finding-orbit[data-finding="4"] [data-specimen="4"],
.finding-orbit[data-finding="5"] [data-specimen="5"] { display: inline }
.orbit-stops button {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid #8099ad;
  border-radius: 100%;
  background: #111b2c;
  color: #d4dfeb;
  width: clamp(1.8rem, 2.6vw, 2.65rem);
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  font: 600 .77rem/1 var(--mono);
  cursor: pointer;
}
.orbit-stops button:nth-child(1) { left: 50%; top: 9% }
.orbit-stops button:nth-child(2) { left: 89%; top: 37.2% }
.orbit-stops button:nth-child(3) { left: 74%; top: 82.8% }
.orbit-stops button:nth-child(4) { left: 26%; top: 82.8% }
.orbit-stops button:nth-child(5) { left: 11%; top: 37.2% }
.orbit-stops button[aria-pressed="true"] { background: var(--signal); color: var(--graphite); border-color: var(--signal) }
.orbit-stops button:is(:hover, :focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px }
@media screen and (max-width: 800px), screen and (hover: none) and (pointer: coarse) {
  #introduction .intro-findings li a {
    grid-template-columns: 2ch minmax(0, 1fr);
    min-height: 44px;
  }
  #introduction .intro-findings a::after { content: none }
}
@media (max-width: 1100px) {
  #introduction .story-opening { grid-template-columns: minmax(0, .87fr) minmax(0, 1fr) }
  #introduction .intro-findings { grid-template-columns: 1fr 11rem; grid-template-areas: "heading orbit" "findings findings" }
  #introduction .intro-findings h3 { font-size: clamp(1.7rem,3vw,2.2rem) }
  #introduction .intro-findings .finding-orbit { max-width: 11rem }
}
@media (max-width: 800px) {
  #introduction .story-opening { grid-template-columns: minmax(0, 1fr); gap: 2.1rem }
  #introduction .intro-findings { grid-template-columns: minmax(0,.75fr) minmax(0,1fr); grid-template-areas: "orbit heading" "orbit findings" }
  #introduction .intro-findings .finding-orbit { max-width: 15rem }
}
@media (max-width: 540px) {
  #introduction.section { padding-block: 3.4rem }
  #introduction .story-copy h2 { font-size: clamp(2.7rem, 12vw, 4rem) }
  #introduction .intro-findings { grid-template-columns: minmax(0,1fr) minmax(8rem,.82fr); grid-template-areas: "heading orbit" "findings findings" }
  #introduction .intro-findings h3 { font-size: 1.8rem }
  #introduction .intro-findings .finding-orbit { max-width: 11rem }
  #introduction .intro-findings li a { padding-block: .9rem; gap: .8rem }
  .orbit-stops button { width: 1.85rem; font-size: .68rem }
}
@media (prefers-reduced-motion: no-preference) {
  .orbit-arc { transition: transform .65s cubic-bezier(.18,.75,.16,1) }
  .orbit-scenes [data-specimen] { transform-origin: 160px 160px; animation: folio-specimen-in .38s ease-out }
  @keyframes folio-specimen-in { from { opacity: .15; transform: translateY(4px) scale(.94) } to { opacity: 1; transform: none } }
}
@media print {
  #introduction.section { background: white; color: black }
  #introduction::before, .finding-orbit, .chart-switch { display: none }
  #introduction .story-copy :is(blockquote,p), #introduction .intro-findings :is(h3, a strong, a span) { color: black }
  #introduction .intro-findings { display: block }
}
