:root {
  --black: #080808;
  --paper: #f2ead9;
  --olive: #b2aa64;
  --magenta: #ad1659;
  --yellow: #f4c400;
  --red: #bb1419;
  --rail: 260px;
  --display: Impact, "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --mono: "Courier New", Courier, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 82%, rgba(173, 22, 89, .7), transparent 25%),
    var(--black);
  color: var(--black);
  font-family: var(--mono);
}

body::after,
.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--rail);
  height: 100vh;
  padding: 22px 26px 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow: auto;
  background: var(--olive);
  border: 0;
  box-shadow: 7px 0 22px rgba(0, 0, 0, .25);
}

.brand {
  font-family: var(--display);
  font-size: 37px;
  font-weight: 900;
  line-height: .96;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.rail-intro {
  margin: 22px 0 18px;
  color: var(--magenta);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 0;
  padding: 10px 0;
  flex-direction: column;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.nav a,
.nav button {
  position: relative;
  display: block;
  min-height: 42px;
  padding: 10px 4px 8px 42px;
  color: var(--black);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .09em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.nav a::before,
.nav button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--black);
  border-radius: 50%;
}

.nav .active::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 12px;
  height: 12px;
  background: var(--magenta);
  border-radius: 50%;
}

.rail-quote {
  margin: 15px 0;
  padding: 0;
  background: none;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
}

.rail-stamp {
  width: 184px;
  min-height: 184px;
  margin: auto auto 22px;
  padding: 42px 22px;
  flex: 0 0 184px;
  display: grid;
  place-items: center;
  background: var(--magenta);
  color: var(--paper);
  clip-path: polygon(50% 2%, 58% 12%, 68% 5%, 73% 17%, 84% 12%, 86% 24%, 96% 24%, 92% 35%, 98% 42%, 88% 49%, 94% 59%, 82% 63%, 84% 75%, 72% 72%, 67% 84%, 57% 77%, 50% 89%, 42% 79%, 32% 87%, 28% 75%, 16% 80%, 16% 67%, 5% 63%, 12% 52%, 3% 43%, 13% 35%, 7% 24%, 20% 22%, 20% 10%, 33% 16%, 41% 7%);
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
}

.scroll-cue {
  margin: 0 -26px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span {
  font-family: Arial, sans-serif;
  font-size: 29px;
  line-height: 1;
}

.page {
  max-width: none;
  margin: 0 0 0 var(--rail);
  padding: 0;
}

.manifesto {
  position: relative;
  background:
    linear-gradient(90deg, var(--magenta) 0 20%, var(--paper) 20% 100%);
}

.hero {
  position: relative;
  z-index: 1;
  height: 248px;
  padding: 18px 40px 20px;
  overflow: hidden;
  background: var(--black) url("assets/lunar-hero.jpg") right bottom / auto 100% no-repeat;
  color: var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .98) 0 62%, rgba(0, 0, 0, .05) 85%);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(70px, 9.1vw, 148px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title-line {
  white-space: nowrap;
}

.hero .kicker {
  position: absolute;
  left: 42px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .2em;
}

.hero .subtitle {
  display: none;
}

.reading-lead {
  position: relative;
  padding: 29px 48px 60px calc(20% + 48px);
}

.reading-lead p,
.manifesto > p,
.manifesto > ul,
.manifesto > blockquote,
.manifesto > h2 {
  width: min(68%, 830px);
  margin-right: 48px;
  margin-left: calc(20% + 48px);
  overflow-wrap: break-word;
}

.reading-lead p {
  width: auto;
  max-width: 830px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.52;
  overflow-wrap: break-word;
}

.orbit-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  height: 100%;
  overflow: hidden;
  background: var(--magenta);
}

.orbit-art i {
  position: absolute;
  top: 54px;
  width: 205px;
  height: 280px;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.orbit-art i:nth-child(1) {
  left: -102px;
  background: var(--red);
}

.orbit-art i:nth-child(2) {
  left: 34px;
  background: var(--yellow);
}

.orbit-art i:nth-child(3) {
  left: 100px;
  background: var(--paper);
}

.manifesto > h2 {
  margin-top: 0;
  padding-top: 58px;
  border-top: 2px solid var(--black);
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.manifesto > p,
.manifesto > li,
.manifesto > ul {
  font-size: 15px;
  line-height: 1.62;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.manifesto > p {
  margin-top: 0;
  margin-bottom: 20px;
}

.manifesto > ul {
  padding-left: 25px;
}

.manifesto > h2:last-of-type {
  scroll-margin-top: 20px;
}

.concept {
  padding: 0;
  color: var(--magenta);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--magenta);
  border-radius: 0;
  font-family: inherit;
  font-weight: 700;
}

.concept:hover,
.concept:focus-visible {
  background: var(--yellow);
  color: var(--black);
  filter: none;
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(8, 8, 8, .24);
  pointer-events: none;
}

.overlay.open {
  display: block;
}

.panel {
  position: absolute;
  top: 232px;
  right: 5%;
  width: min(435px, calc(100vw - var(--rail) - 40px));
  height: auto;
  max-height: calc(100vh - 260px);
  padding: 70px 26px 18px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--black);
  box-shadow: -13px 14px 24px rgba(0, 0, 0, .48);
  pointer-events: auto;
}

.panel-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 58px;
  padding: 0 62px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--magenta);
  color: var(--paper);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.close {
  position: absolute;
  top: 7px;
  right: 9px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  float: none;
  background: var(--black);
  color: white;
  border: 3px solid var(--paper);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 35px;
  line-height: 1;
}

.panel h3 {
  margin: 8px 0 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
  font-family: var(--display);
  font-size: 34px;
  line-height: .98;
  text-transform: uppercase;
}

.panel .badge {
  display: none;
}

.panel h4 {
  margin: 18px 0 7px;
  color: var(--magenta);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .06em;
}

.panel p,
.panel li {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.panel p {
  margin: 6px 0;
}

.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 20px;
}

.related button {
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #777;
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-align: left;
}

.sources {
  padding: 0 0 4px 18px;
}

.registry,
.research-library,
.footer {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 70px clamp(34px, 7vw, 110px);
  background: var(--paper);
}

.registry {
  display: none;
  border-top: 12px solid var(--magenta);
}

.registry.open {
  display: block;
}

.registry h2,
.research-library h2 {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 94px);
  line-height: .9;
  text-transform: uppercase;
}

.registry details {
  border-top: 2px solid var(--black);
}

.registry summary {
  padding: 14px 0;
  color: var(--black);
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
}

.research-library {
  background: var(--black);
  color: var(--paper);
  border-top: 18px solid var(--yellow);
}

.section-label {
  color: var(--magenta);
  font-family: var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #5e5a53;
}

.research-grid a,
.research-grid button {
  min-height: 165px;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--paper);
  border-right: 1px solid #5e5a53;
  border-top: 0;
  border-left: 0;
  border-bottom: 1px solid #5e5a53;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.research-grid a:hover,
.research-grid button:hover,
.research-grid button:focus-visible {
  background: var(--magenta);
}

.research-grid strong {
  font-family: var(--display);
  font-size: 27px;
  text-transform: uppercase;
}

.research-grid span {
  margin-top: auto;
  color: #c5bdaf;
  font-size: 13px;
}

.footer {
  padding-top: 25px;
  padding-bottom: 25px;
  display: flex;
  gap: 12px 36px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--magenta);
  color: var(--paper);
  border: 0;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.design-credit {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
}

.design-credit cite {
  font-style: italic;
}

@media (max-width: 900px) {
  :root {
    --rail: 0px;
  }

  .topbar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px 20px;
    overflow: visible;
  }

  .brand {
    font-size: 28px;
  }

  .rail-intro,
  .rail-quote,
  .rail-stamp,
  .scroll-cue {
    display: none;
  }

  .nav {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 0;
  }

  .nav a,
  .nav button {
    min-height: 34px;
    padding: 7px 2px 5px 27px;
    font-size: 12px;
  }

  .nav a::before,
  .nav button::before {
    width: 14px;
    height: 14px;
  }

  .nav .active::after {
    left: 4px;
    top: 11px;
    width: 10px;
    height: 10px;
  }

  .page {
    margin-left: 0;
  }

  .hero {
    height: 310px;
    padding: 26px 20px;
    background-position: calc(100% + 34px) center;
    background-size: auto 122%;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, .98), rgba(0, 0, 0, .2));
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(62px, 20vw, 112px);
    white-space: normal;
  }

  .hero-title-line {
    display: block;
  }

  .hero .kicker {
    left: 20px;
    bottom: 22px;
    font-size: 13px;
  }

  .manifesto {
    padding-bottom: 40px;
    background: var(--paper);
  }

  .reading-lead {
    padding: 32px 24px 35px;
  }

  .orbit-art {
    display: none;
  }

  .orbit-art i {
    top: 20px;
  }

  .reading-lead p,
  .manifesto > p,
  .manifesto > ul,
  .manifesto > blockquote,
  .manifesto > h2 {
    width: auto;
    margin-right: 24px;
    margin-left: 24px;
  }

  .reading-lead p {
    margin: 0 0 18px;
  }

  .panel {
    top: 5vh;
    right: 4vw;
    width: 92vw;
    max-height: 90vh;
  }

  .close {
    right: 5px;
  }
}

@media (max-width: 560px) {
  .hero {
    height: 270px;
  }

  .hero h1 {
    font-size: 65px;
  }

  .manifesto > h2 {
    font-size: 42px;
  }

  .research-grid,
  .related {
    grid-template-columns: 1fr;
  }

  .registry,
  .research-library {
    padding: 55px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
