:root {
  --hero-background: #120d0a;
  --hero-slow: #e05a2b;
  --hero-mid: #f59e42;
  --hero-fast: #ffd166;
}
/* The home page is its hero: a three-body orbit full-bleed behind a clear
   header, the page's Markdown as the teaser over it, the orbit's name, period
   and masses, its paper and its clock along the bottom (hero.js). Loaded on
   the home page alone; its colours are the site's (--hero-*, set just above
   by the build). */
html,
body {
  height: 100%;
}
body {
  background-color: var(--hero-background);
}

.mdx-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.mdx-hero canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Over the hero, the header and the tabs are clear and light, whichever scheme
   the rest of the site is in, and there's nothing below. */
.md-header,
.md-tabs {
  --md-default-fg-color: #fff;
  --md-default-fg-color--light: hsla(0, 0%, 100%, 0.72);
  --md-default-fg-color--lighter: hsla(0, 0%, 100%, 0.32);
  --md-default-fg-color--lightest: hsla(0, 0%, 100%, 0.12);
  --md-default-bg-color: var(--hero-background);
  color: #fff;
}
.md-header {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.md-header__option {
  display: none;
}
.md-tabs {
  position: relative;
  z-index: 1;
  background-color: transparent;
  box-shadow: inset 0 -0.05rem 0 hsla(0, 0%, 100%, 0.1);
}
.md-tabs__item {
  color: #fff;
}
.md-main,
.md-footer {
  display: none;
}

/* The teaser lets drags through, to the attractor, but not its links. */
.mdx-teaser {
  position: absolute;
  bottom: 96px;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}
.mdx-teaser .md-grid {
  padding: 0 16px;
}
.mdx-teaser a {
  pointer-events: auto;
}
.mdx-teaser h1 {
  max-width: 460px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-shadow: 0 0 16px #000;
}
.mdx-teaser .headerlink {
  display: none;
}
.mdx-teaser p {
  max-width: 520px;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  text-shadow: 0 0 8px #000;
}
.mdx-teaser small {
  color: hsla(0, 0%, 100%, 0.72);
}
.mdx-teaser small a,
.mdx-teaser p a:not(.md-button) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mdx-teaser .md-button {
  margin: 8px 8px 0 0;
  border: none;
  background-color: hsla(0, 0%, 100%, 0.12);
  color: #fff;
  backdrop-filter: blur(4px);
  transition:
    background-color 0.25s,
    box-shadow 0.25s;
}
.mdx-teaser .md-button:hover,
.mdx-teaser .md-button:focus {
  background-color: hsla(0, 0%, 100%, 0.2);
  color: #fff;
}
.mdx-teaser .md-button--primary {
  background: linear-gradient(
    35deg,
    color-mix(in srgb, var(--hero-slow) 93%, transparent),
    color-mix(in srgb, var(--hero-fast) 82%, transparent)
  );
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}
.mdx-teaser .md-button--primary:hover,
.mdx-teaser .md-button--primary:focus {
  box-shadow: 0 0 24px color-mix(in srgb, var(--hero-mid) 45%, transparent);
}
@media (max-width: 480px) {
  .mdx-teaser h1 {
    font-size: 34px;
  }
  .mdx-teaser p {
    font-size: 15px;
  }
}

/* The orbit, bottom left, and another at the button; its paper and its clock, bottom right. */
.mdx-parameters,
.mdx-position {
  position: absolute;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  color: hsla(0, 0%, 100%, 0.72);
  font-family: var(--md-code-font-family, monospace);
  font-size: 12px;
}
.mdx-parameters {
  left: 12px;
  max-width: calc(100% - 360px);
}
.mdx-position {
  right: 12px;
}
.mdx-parameters code,
.mdx-position code {
  padding: 2px 4px;
  background: none;
  color: inherit;
}
.mdx-parameters sub,
.mdx-position sub {
  margin-left: 1px;
  color: #fff;
}
.mdx-parameters a,
.mdx-position a {
  padding: 2px 4px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: hsla(0, 0%, 100%, 0.3);
  text-underline-offset: 3px;
}
.mdx-parameters a:hover,
.mdx-position a:hover {
  color: #fff;
}
.mdx-parameter {
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  outline: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.mdx-parameter:hover,
.mdx-parameter:focus-visible {
  background: color-mix(in srgb, var(--hero-mid) 20%, transparent);
  color: var(--hero-mid);
}
@media (max-width: 600px) {
  .mdx-parameters {
    display: none;
  }
}
