/* rickbain.com — placeholder landing page */

:root {
  --bg: #0b0b0d;
  --ink: #111;
  --paper: #fff;
  --fade: 1200ms;          /* slide crossfade duration */
  --poster-max: 620px;     /* max poster width */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(120% 90% at 50% 0%, #1a1a1f 0%, var(--bg) 60%);
  color: var(--paper);
  font-family: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4vmin 4vw 2vmin;
  gap: 2vmin;
  overflow-x: hidden;
}

/* ---------- stage ---------- */

.stage {
  width: 100%;
  max-width: var(--poster-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vmin;
  /* Pure CSS so the entrance never depends on JavaScript running. */
  animation: rise 700ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- poster / slideshow ---------- */

.poster {
  position: relative;
  margin: 0;
  aspect-ratio: 1070 / 1852;   /* reserves space so nothing jumps */
  /* Fit the poster to whichever runs out first: screen height or width. */
  height: min(64svh, calc(min(92vw, var(--poster-max)) * 1852 / 1070));
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  background: #000;
}

/* Every slide stacks in the same box; only the active one is visible. */
.poster .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fade) ease-in-out;
}

.poster .slide.is-active { opacity: 1; }

/* A single image never animates. */
.poster.is-single .slide { opacity: 1; transition: none; }

.poster img {
  display: block;
  width: 100%;
  height: 100%;
  /* contain, not cover: a future slide with a different shape is
     letterboxed rather than cropped. */
  object-fit: contain;
}

/* ---------- CUMMING SOON ---------- */

.soon,
.foot {
  position: relative;
  margin: 0;
  line-height: .95;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  transform: skewX(-8deg);            /* matches the slant of WILLIS */
  -webkit-text-stroke: .085em var(--paper);
  paint-order: stroke fill;
}

.soon { font-size: clamp(2rem, 11.5vw, 4.6rem); }
.foot { font-size: clamp(.95rem, 4vw, 1.5rem); }

/* Second copy sits behind to give the outer black edge. */
.soon::before,
.foot::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: -1;
  color: var(--ink);
  -webkit-text-stroke: .155em var(--ink);
  paint-order: stroke fill;
}

/* Browsers without -webkit-text-stroke still get readable text. */
@supports not (-webkit-text-stroke: 1px #fff) {
  .soon, .foot { color: var(--paper); }
  .soon::before, .foot::before { content: none; }
}

/* ---------- footer ---------- */

.foot { animation: fade-in 900ms ease 400ms both; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .stage, .foot { animation: none; }
  .poster .slide { transition: none; }
}
