/* Phosphor poster stage. Header paint is ritual-site-chrome.css.
   The page is a normal document: no 100vh lock, no overflow clip on Y.
   Departure Mono is the only face this page loads. */

@font-face {
  font-family: "Departure Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/DepartureMono-Regular.woff2") format("woff2");
}

html, body {
  background: #000;
  color: #f3fff4;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  display: flex;
  flex-direction: column;
  font-family: "Departure Mono", ui-monospace, monospace;
  overflow-x: clip;
  overflow-y: visible;
}

.rr-poster-stage {
  --rr-head-space: 64px;
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--rr-head-space));
  min-height: calc(100dvh - var(--rr-head-space));
  padding: clamp(28px, 6vh, 72px) clamp(16px, 4vw, 48px);
  text-align: center;
}
.rr-poster-stage:focus {
  outline: none;
}
.rr-poster-stage:focus-visible {
  outline: 2px solid #f3fff4;
  outline-offset: -4px;
}
.rr-poster-lock {
  position: relative;
  z-index: 2;
  max-width: 100%;
  pointer-events: none;
}
.rr-poster-stage h1,
.rr-poster-lede,
.rr-poster-nav a {
  font-family: "Departure Mono", ui-monospace, monospace;
  font-synthesis: none;
  font-weight: 400;
}
.rr-poster-stage h1 {
  margin: 0;
  max-width: 100%;
  font-size: 28px;
  letter-spacing: .34em;
  padding-left: .34em;
  color: #f3fff4;
  text-shadow: 0 0 18px rgba(0, 255, 65, .5), 0 0 2px #00ff41;
  line-height: 1;
  white-space: nowrap;
  text-wrap: nowrap;
}
.rr-poster-lede {
  margin: 14px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #f3fff4;
  text-wrap: balance;
}
.rr-poster-nav {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 6px 8px;
  width: min(100%, 720px);
  max-width: 100%;
}
.rr-poster-nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 calc((100% - 24px) / 4);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  max-width: calc((100% - 24px) / 4);
  padding: 10px 12px;
  color: #9dffb0;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  touch-action: manipulation;
}
.rr-poster-nav a:hover {
  color: #00ff41;
  text-shadow: 0 0 12px rgba(0, 255, 65, .55);
}
.rr-poster-nav a:focus-visible {
  color: #f3fff4;
  outline: 2px solid #f3fff4;
  outline-offset: 2px;
}
.rr-poster-nav a::after {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 18px 4px rgba(0, 255, 65, .72);
  transition: opacity 120ms ease-out;
}
.rr-poster-nav a:active::after,
.rr-poster-nav a.is-pressed::after {
  opacity: 1;
}
.rr-poster-nav a:active,
.rr-poster-nav a.is-pressed {
  color: #f3fff4;
  text-shadow: 0 0 10px #00ff41, 0 0 22px rgba(0, 255, 65, .9);
}
.rr-poster-nav__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  text-transform: none;
}

/* The black veil in the document head lifts first. Doors then fade in
   one after another. With JS they leave the flow so the wordmark stays put. */
.rr-top,
.rr-poster-lock {
  animation: rr-emerge 900ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}
html.rr-doors .rr-poster-nav {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  pointer-events: none;
}
html.rr-doors .rr-poster-nav a {
  position: absolute;
  left: var(--rr-x, 0px);
  top: var(--rr-y, 0px);
  flex: none;
  grid-column: auto;
  width: max-content;
  max-width: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
html.rr-doors .rr-poster-stage.is-floating .rr-poster-nav a {
  pointer-events: auto;
  opacity: 1;
  animation:
    rr-emerge 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--rr-emerge, 820ms) both,
    rr-drift var(--rr-dur, 5.4s) ease-in-out var(--rr-drift-delay, -1.8s) infinite alternate;
}
html.rr-doors .rr-poster-stage.is-settled .rr-poster-nav a:hover,
html.rr-doors .rr-poster-stage.is-settled .rr-poster-nav a:focus,
html.rr-doors .rr-poster-stage.is-settled .rr-poster-nav a:focus-visible {
  animation-play-state: paused;
}

@keyframes rr-emerge {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rr-drift {
  from { translate: 0 0; }
  to { translate: var(--rr-dx, 0px) var(--rr-dy, 0px); }
}

/* Reduced motion freezes the ticker and the doors. Hover never pauses the ticker. */
@media (prefers-reduced-motion: reduce) {
  .rr-ticker__track { animation: none; }
  .rr-top,
  .rr-poster-lock {
    animation-duration: 120ms;
    animation-delay: 0s;
  }
  html.rr-doors .rr-poster-stage.is-floating .rr-poster-nav a {
    animation: rr-emerge 140ms ease-out both;
    animation-delay: 0s;
    translate: 0 0;
  }
  .rr-poster-nav a,
  .rr-poster-nav a::after,
  .rr-top__brand-text,
  .rr-tab,
  .rr-top__link,
  .rr-top__cart {
    transition: none;
  }
}

@media (min-width: 768px) {
  .rr-poster-stage h1 { font-size: 52px; }
  .rr-poster-lede { font-size: 18px; }
  .rr-poster-nav { margin-top: 44px; }
  .rr-poster-nav a { font-size: 15px; letter-spacing: .22em; padding: 10px 14px; }
}
/* Phone: two columns, then a row of three. Seven doors never leave one alone.
   Floating mode replaces this grid; it stays as the no-JS layout. */
@media (max-width: 767px) {
  .rr-poster-stage { padding: 32px 16px 48px; }
  .rr-poster-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(360px, 100%);
    margin-top: 36px;
    gap: 4px 6px;
  }
  .rr-poster-nav a {
    grid-column: span 3;
    flex: none;
    max-width: none;
    padding: 12px 4px;
    font-size: 12px;
    letter-spacing: .12em;
  }
  .rr-poster-nav a:nth-child(n + 5) {
    grid-column: span 2;
  }
}
/* Wide: all seven doors on one row, spaced like the original poster. */
@media (min-width: 1280px) {
  .rr-poster-stage h1 { font-size: 78px; letter-spacing: .34em; padding-left: .34em; }
  .rr-poster-lede { font-size: 18px; }
  .rr-poster-nav {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    max-width: 100%;
    margin-top: 44px;
    gap: 4px 6px;
  }
  .rr-poster-nav a {
    flex: 0 0 auto;
    max-width: none;
    padding: 10px 14px;
    font-size: 16px;
    letter-spacing: .26em;
  }
}
@media (min-width: 1920px) {
  .rr-poster-nav a { font-size: 18px; letter-spacing: .26em; padding: 10px 16px; }
}
