/* ──────────────────────────────────────────────────────────────
   splash.css — Snowyla landing (public/index.html)
   Full-viewport parallax splash, left-aligned SNOWYLA wordmark,
   bottom-right ROMYILANO byline linked to romyilano.com.
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Pirata One';
  src: url('fonts/pirata-one-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/libre-baskerville-latin-400italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.splash-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Parallax background — fixed attachment on desktop,
   scaled cover image. On mobile iOS `fixed` is ignored,
   which is fine — the image still fills the viewport. */
.splash-bg {
  position: fixed;
  inset: 0;
  background-image: url('assets/images/splash/skatepark.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
  will-change: transform;
}

/* Dark scrim for legibility — stronger on the left
   (where SNOWYLA sits) and bottom-right (byline). */
.splash-scrim {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.30) 35%,
      rgba(0,0,0,0.15) 60%,
      rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.00) 40%,
      rgba(0,0,0,0.50) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Snow canvas — flakes rising upward ─────────────── */
.splash-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ── SNOWYLA wordmark + tagline ─────────────────────── */
.splash-headline {
  position: absolute;
  top: clamp(1.5rem, 5vw, 4rem);
  left: clamp(1.5rem, 6vw, 6rem);
  z-index: 2;
  display: inline-block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease;
}

.splash-headline:hover,
.splash-headline:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 24px rgba(255, 255, 255, 0.15));
  outline: none;
}

.splash-headline:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 8px;
}

.splash-wordmark {
  margin: 0;
  font-family: 'Pirata One', 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  font-size: clamp(4rem, 15vw, 16rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.splash-tagline {
  margin: 0.4em 0 0 0.15em;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.splash-tagline em { font-style: italic; }

/* ── ROMYILANO byline (bottom right, linked) ────────── */
.splash-byline {
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 5vw, 4rem);
  z-index: 2;

  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);

  padding: 0.25em 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0);
  transition: border-color 180ms ease, transform 180ms ease;
}

.splash-byline:hover,
.splash-byline:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  outline: none;
}

.splash-byline:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 6px;
}

/* ── Mobile tweaks ──────────────────────────────────── */
@media (max-width: 640px) {
  .splash-headline { left: 1.25rem; }
  .splash-wordmark {
    font-size: clamp(3rem, 16vw, 6rem);
  }
  .splash-tagline {
    font-size: 0.95rem;
  }
  .splash-byline {
    right: 1.25rem;
    bottom: 1.5rem;
    font-size: 1.1rem;
  }
}

/* Reduced motion: drop parallax (fixed bg already static,
   but keep hover transform off). */
@media (prefers-reduced-motion: reduce) {
  .splash-byline:hover,
  .splash-byline:focus-visible { transform: none; }
}
