/* An optical aperture, then one continuous photographic sky.
   The final linen frame stays fixed while the scroll distance is collapsed. */
html.lunar-js { scroll-behavior: auto !important; overflow-anchor: none; }
html.lunar-js .lunar-entrance { display: block; }
.lunar-entrance[hidden] { display: none !important; }
html.lunar-finishing .lunar-entrance { height: 0 !important; }
body.home-lunar-page { overflow-x: clip; }
html.lunar-js:not(.lunar-handoff):not(.lunar-finishing) body.home-lunar-page > header.sf-nav,
html.lunar-js:not(.lunar-handoff):not(.lunar-finishing) body.home-lunar-page > .sf-announcement,
html.lunar-js:not(.lunar-handoff):not(.lunar-finishing) body.home-lunar-page > .flash-messages,
html.lunar-js:not(.lunar-handoff):not(.lunar-finishing) body.home-lunar-page > main,
html.lunar-js:not(.lunar-handoff):not(.lunar-finishing) body.home-lunar-page > footer.sf-footer {
  visibility: hidden;
  pointer-events: none;
}
html.lunar-js:not(.lunar-finishing) body.home-lunar-page .pr-subscribe-rail:not([hidden]) { display: none; }

.lunar-entrance {
  --lunar-fog: #302a35;
  --lunar-ink: #f7f0e7;
  --lunar-night: #050506;
  --lunar-home: #f2ede6;
  position: relative;
  display: none;
  height: 1020vh;
  height: 1020svh;
  font-family: 'Calluna', Georgia, serif;
}
.lunar-entrance,
.lunar-entrance *,
.lunar-entrance *::before,
.lunar-entrance *::after { box-sizing: border-box; }

/* The stage does not rise out of frame. After the last warm frame, the
   entrance collapses behind a still-fixed lens before the home is revealed. */
.lunar-viewport {
  position: fixed;
  z-index: 1100;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background: var(--lunar-fog);
  opacity: 1;
  transition: opacity 1.45s cubic-bezier(.22, .61, .36, 1);
}
.lunar-dissolve .lunar-viewport {
  opacity: 0;
}

/* A little paper grain stays stationary while the type and sky advance. */
.lunar-viewport::after {
  position: fixed;
  z-index: 9;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.5'/%3E%3C/svg%3E");
}
html.lunar-js .lunar-viewport::after {
  animation: storm-grain-in 24s ease-in-out 36s forwards;
}
@keyframes storm-grain-in { to { opacity: .075; } }

.lunar-night {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(ellipse 58% 59% at 50% 46%, #1a2728 0%, #101d21 53%, transparent 100%),
    radial-gradient(ellipse 75% 90% at 70% 80%, #172324 0%, transparent 75%),
    var(--lunar-night);
}
.lunar-stars {
  position: absolute;
  z-index: 1;
  inset: -9%;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
}
/* Irregular points, not a tiled space texture. The two planes only grow toward us. */
.lunar-stars--far {
  background-image:
    radial-gradient(circle at 5% 19%, #a5b4b3 0 .65px, transparent 1.4px),
    radial-gradient(circle at 10% 64%, #d2d1c2 0 .7px, transparent 1.5px),
    radial-gradient(circle at 15% 36%, #bcc3bd 0 .65px, transparent 1.5px),
    radial-gradient(circle at 19% 81%, #b8c4c1 0 .7px, transparent 1.5px),
    radial-gradient(circle at 23% 12%, #d9d3c5 0 .7px, transparent 1.5px),
    radial-gradient(circle at 27% 53%, #abb8b5 0 .65px, transparent 1.5px),
    radial-gradient(circle at 31% 28%, #e3ddca 0 .7px, transparent 1.6px),
    radial-gradient(circle at 34% 73%, #c6ccc3 0 .7px, transparent 1.5px),
    radial-gradient(circle at 38% 9%, #a9bdbb 0 .65px, transparent 1.5px),
    radial-gradient(circle at 41% 47%, #cdd2c8 0 .7px, transparent 1.5px),
    radial-gradient(circle at 45% 88%, #d5ccbb 0 .7px, transparent 1.5px),
    radial-gradient(circle at 49% 20%, #b8c7c5 0 .65px, transparent 1.5px),
    radial-gradient(circle at 53% 67%, #ddd8c9 0 .75px, transparent 1.6px),
    radial-gradient(circle at 57% 37%, #b7c0ba 0 .65px, transparent 1.4px),
    radial-gradient(circle at 62% 92%, #d6d0c3 0 .7px, transparent 1.5px),
    radial-gradient(circle at 65% 15%, #bdcbc7 0 .65px, transparent 1.5px),
    radial-gradient(circle at 69% 59%, #d6d2c4 0 .7px, transparent 1.6px),
    radial-gradient(circle at 72% 33%, #b0c0bc 0 .7px, transparent 1.5px),
    radial-gradient(circle at 77% 83%, #d7d3c3 0 .7px, transparent 1.5px),
    radial-gradient(circle at 80% 6%, #b7c7c5 0 .65px, transparent 1.4px),
    radial-gradient(circle at 84% 49%, #e1dac8 0 .7px, transparent 1.5px),
    radial-gradient(circle at 87% 24%, #aebdbb 0 .65px, transparent 1.4px),
    radial-gradient(circle at 91% 72%, #cac9bc 0 .7px, transparent 1.5px),
    radial-gradient(circle at 95% 40%, #d9d1c2 0 .7px, transparent 1.5px);
}
.lunar-stars--near {
  background-image:
    radial-gradient(circle at 8% 42%, #eee9d9 0 1px, transparent 2px),
    radial-gradient(circle at 14% 17%, #d2ddd4 0 1px, transparent 2px),
    radial-gradient(circle at 21% 69%, #f3ecda 0 1.15px, transparent 2.1px),
    radial-gradient(circle at 29% 36%, #c8d5cf 0 1px, transparent 2px),
    radial-gradient(circle at 35% 88%, #eae5d3 0 1px, transparent 2px),
    radial-gradient(circle at 40% 13%, #f0e8d4 0 1.15px, transparent 2.1px),
    radial-gradient(circle at 47% 57%, #c8d5ce 0 1px, transparent 2px),
    radial-gradient(circle at 52% 28%, #eee7d8 0 1px, transparent 2px),
    radial-gradient(circle at 60% 76%, #d9ded3 0 1px, transparent 2px),
    radial-gradient(circle at 67% 9%, #eee6d4 0 1.1px, transparent 2px),
    radial-gradient(circle at 73% 48%, #c8d6d0 0 1px, transparent 2px),
    radial-gradient(circle at 79% 22%, #f0e7d5 0 1px, transparent 2px),
    radial-gradient(circle at 85% 83%, #d9e0d7 0 1.1px, transparent 2px),
    radial-gradient(circle at 93% 55%, #eee8d7 0 1px, transparent 2px);
}
.lunar-meteor {
  position: absolute;
  z-index: 4;
  top: 25%;
  left: 74%;
  width: clamp(95px, 12vw, 170px);
  height: 1px;
  pointer-events: none;
  opacity: 0;
  transform: rotate(-27deg);
  transform-origin: left center;
  background: linear-gradient(90deg, #fff5de 0%, rgba(223, 223, 211, .67) 20%, transparent 100%);
  will-change: transform, opacity;
}
.lunar-meteor::before {
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: '';
  background: #fff5de;
}

.lunar-moon-field {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(82vw, 80svh, 880px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.15);
  transform-origin: center center;
  will-change: transform, opacity;
}
.lunar-moon {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}
.lunar-moon img,
.lunar-moon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lunar-moon--new img { filter: brightness(1.13); }
.lunar-moon--crescent { filter: drop-shadow(0 0 15px rgba(241, 228, 193, .12)); }
.lunar-moon--half::before,
.lunar-moon--full::before {
  position: absolute;
  inset: -23%;
  border-radius: 50%;
  content: '';
  background: radial-gradient(circle, rgba(246, 228, 184, .18) 0%, rgba(229, 220, 189, .09) 38%, transparent 67%);
}
.lunar-moon--full::before {
  background: radial-gradient(circle, rgba(255, 239, 198, .16), rgba(235, 201, 150, .08) 42%, transparent 68%);
}

/* This layer is paper, not a replacement ring. Its transparent opening is
   measured from the enclosed counter of the real O in lunar-entrance.js. */
.lunar-veil {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}
.lunar-fog {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--lunar-fog);
  -webkit-mask-image: none;
  mask-image: none;
}
html.lunar-js .lunar-fog {
  animation: mauve-to-black 60s linear forwards;
}
.lunar-fog::before,
.lunar-fog::after {
  position: absolute;
  inset: -28%;
  content: '';
  opacity: 0;
  pointer-events: none;
  filter: blur(42px);
  will-change: transform, opacity;
}
.lunar-fog::before {
  background:
    radial-gradient(ellipse 47% 34% at 25% 42%, rgba(223, 197, 211, .3), transparent 83%),
    radial-gradient(ellipse 52% 37% at 74% 60%, rgba(167, 139, 157, .34), transparent 86%),
    radial-gradient(ellipse 38% 31% at 46% 83%, rgba(225, 210, 217, .22), transparent 83%);
}
.lunar-fog::after {
  background:
    radial-gradient(ellipse 52% 39% at 73% 27%, rgba(32, 25, 35, .74), transparent 84%),
    radial-gradient(ellipse 49% 37% at 19% 72%, rgba(20, 16, 23, .66), transparent 86%),
    radial-gradient(ellipse 44% 33% at 53% 54%, rgba(105, 82, 99, .35), transparent 87%);
}
html.lunar-js .lunar-fog::before {
  animation: storm-bank-one 23s ease-in-out 36s infinite alternate;
}
html.lunar-js .lunar-fog::after {
  animation: storm-bank-two 31s ease-in-out 36s infinite alternate;
}
@keyframes mauve-to-black {
  0%, 60% { background-color: var(--lunar-fog); }
  100% { background-color: #000; }
}
@keyframes storm-bank-one {
  0% { opacity: .08; transform: translate3d(-7%, -4%, 0) scale(.94); }
  48% { opacity: .42; transform: translate3d(2%, 3%, 0) scale(1.1); }
  100% { opacity: .24; transform: translate3d(9%, -3%, 0) scale(1.2); }
}
@keyframes storm-bank-two {
  0% { opacity: .12; transform: translate3d(8%, 5%, 0) scale(1.08); }
  54% { opacity: .48; transform: translate3d(-3%, -2%, 0) scale(1.18); }
  100% { opacity: .28; transform: translate3d(-10%, 4%, 0) scale(.98); }
}
.lunar-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--lunar-ink);
  font: 400 clamp(1.35rem, 2.5vw, 2.15rem)/.98 'Ogg', Georgia, serif;
  letter-spacing: .07em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  /* Before canvas measurement, place the second letter near the lens too. */
  transform: translate(-25%, -24%);
}
.lunar-wordmark:disabled { cursor: default; }
.lunar-wordmark:focus-visible {
  outline: 3px solid #594515;
  outline-offset: 8px;
}
html.lunar-js .lunar-wordmark {
  opacity: 0;
  filter: blur(1.8px);
  animation: wordmark-fog-roll 64s ease-in-out both;
}
@keyframes wordmark-fog-roll {
  0%, 3% { opacity: 0; filter: blur(2.6px); }
  6%, 8% { opacity: .38; filter: blur(1.2px); }
  12% { opacity: 0; filter: blur(2.6px); }
  25%, 28% { opacity: .38; filter: blur(1.2px); }
  32% { opacity: 0; filter: blur(2.6px); }
  46%, 49% { opacity: .38; filter: blur(1.2px); }
  56%, 92% { opacity: 0; filter: blur(2.6px); }
  96% { opacity: .38; filter: blur(1px); }
  100% { opacity: 1; filter: blur(0); }
}
html.lunar-js.lunar-travelling .lunar-wordmark {
  opacity: 1;
  filter: none;
  animation: none;
}
.lunar-wordmark__line { display: block; }
.lunar-wordmark__line + .lunar-wordmark__line {
  margin-top: .12em;
  margin-left: -.58em;
}
.lunar-letter-o {
  position: relative;
  display: inline-block;
  font-kerning: none;
}
.lunar-baseline {
  display: inline-block;
  width: 0;
  height: 0;
  padding: 0;
  vertical-align: baseline;
}
/* The Solstice has a long sunrise rather than a flash: first a diffuse,
   amber-white photographic warmth, then an exact linen frame to dissolve. */
.lunar-bloom {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: 135vmax;
  height: 135vmax;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.035);
  background: radial-gradient(circle,
    #f5d9ae 0%,
    #f6debc 14%,
    #f3e5cd 36%,
    var(--lunar-home) 74%,
    var(--lunar-home) 100%);
  will-change: transform, opacity;
}
.lunar-warmth {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background: var(--lunar-home);
  opacity: 0;
  will-change: opacity;
}

/* Only a keyboard visitor sees this exit. No permanent masthead or counters. */
/* A quiet cue so the opening dark seconds never read as a blank page. It
   leaves as soon as the visitor begins to travel. */
.lunar-cue {
  display: none;
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  margin: 0;
  transform: translateX(-50%);
  color: var(--lunar-ink);
  font: 500 .66rem/1.4 'Jost', 'Work Sans', sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
html.lunar-js.lunar-ready .lunar-cue {
  display: block;
  animation: lunar-cue-in 1.2s ease-out .9s forwards;
}
html.lunar-js.lunar-travelling .lunar-cue,
html.lunar-js.lunar-finishing .lunar-cue {
  animation: none;
  opacity: 0;
  transition: opacity .35s ease-out;
}
@keyframes lunar-cue-in { to { opacity: .72; } }

.lunar-skip {
  position: fixed;
  z-index: 1200;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  display: inline-block;
  padding: 12px 17px;
  border: 1px solid var(--lunar-ink);
  background: #f7f7ef;
  color: var(--lunar-ink);
  font: 500 .77rem/1.3 'Jost', 'Work Sans', sans-serif;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}
.lunar-skip:focus,
.lunar-skip:focus-visible { transform: translateY(0); }
.lunar-skip:focus-visible { outline: 2px solid #7a6220; outline-offset: 3px; }

@media (max-width: 767px) {
  .lunar-wordmark {
    font-size: clamp(1.3rem, 5.5vw, 1.65rem);
    letter-spacing: .042em;
  }
  .lunar-wordmark__line + .lunar-wordmark__line { margin-left: -.43em; }
  .lunar-moon-field { width: min(108vw, 78svh); }
  .lunar-meteor { top: 29%; left: 83%; width: 94px; }
}
@media (max-height: 540px) {
  .lunar-wordmark { font-size: clamp(1.3rem, 3.2vw, 2rem); }
  .lunar-moon-field { width: min(67vw, 84svh); }
}
@media (prefers-reduced-motion: reduce) {
  html.lunar-js .lunar-entrance { display: none !important; }
  .lunar-viewport { transition: none !important; }
  html.lunar-js body.home-lunar-page > header.sf-nav,
  html.lunar-js body.home-lunar-page > main,
  html.lunar-js body.home-lunar-page > footer.sf-footer,
  html.lunar-js body.home-lunar-page > .sf-announcement,
  html.lunar-js body.home-lunar-page > .flash-messages { visibility: visible !important; pointer-events: auto !important; }
  html.lunar-js body.home-lunar-page .pr-subscribe-rail:not([hidden]) { display:flex; }
}
