/* ---------
   Shiny — 1 page, responsive, prefers-color-scheme
   --------- */

:root {
  --bg: #fff7ed;
  --fg: #140a24;
  --muted: rgba(20, 10, 36, .62);

  /* used for subtle focus ring */
  --card: rgba(255, 255, 255, .62);
  --cardBorder: rgba(0, 0, 0, .08);

  --shadow: 0 24px 60px rgba(20, 10, 36, .10);
  --radius: 28px;

  /* slogan gradient (light) — derived from hero.png */
  --g1: #fbbf24;
  /* amber */
  --g2: #fb923c;
  /* orange */
  --g3: #1f0f29;
  /* deep indigo */
}


@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07040a;
    --fg: #fff7ed;
    --muted: rgba(255, 247, 237, .72);

    --card: rgba(255, 255, 255, .06);
    --cardBorder: rgba(255, 255, 255, .10);

    --shadow: 0 26px 70px rgba(0, 0, 0, .50);

    /* slogan gradient (dark) — derived from hero.png */
    --g1: #f59e0b;
    /* amber */
    --g2: #f97316;
    /* orange */
    --g3: #fde047;
    /* yellow */
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background:
    radial-gradient(800px 600px at 15% 20%, color-mix(in oklab, var(--g2) 24%, transparent) 0%, transparent 60%),
    radial-gradient(900px 700px at 90% 10%, color-mix(in oklab, var(--g1) 20%, transparent) 0%, transparent 55%),
    radial-gradient(900px 700px at 60% 90%, color-mix(in oklab, var(--g3) 18%, transparent) 0%, transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

.wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.2vw, 28px);
}

.stage {
  width: min(720px, 92vw);
  text-align: center;

  /* no visible frame behind the image */
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;

  /* provides depth for the image tilt */
  perspective: none;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Clickable image without default button styles */
.imgButton {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 22px;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.imgButton:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--g1) 35%, transparent);
}

.hero {
  width: min(62vw, 520px);
  max-width: 100%;
  height: auto;
  display: block;

  transform: none;
  will-change: transform;
  transition: transform 120ms ease-out, filter 240ms ease;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18));
}

@media (prefers-color-scheme: dark) {
  .hero {
    filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .45));
  }
}

/* Slight “lift” on hover for devices that support it */
@media (hover:hover) and (pointer:fine) {
  .imgButton:hover .hero {
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .22));
  }
}

.slogan {
  margin: clamp(14px, 2.4vw, 22px) 0 0;
  line-height: 1;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
}

.slogan span {
  background: linear-gradient(110deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* subtle glow that adapts */
  text-shadow:
    0 0 22px color-mix(in oklab, var(--g2) 20%, transparent),
    0 0 32px color-mix(in oklab, var(--g1) 18%, transparent);
}

/* Reduced motion: keep it calm */
@media (prefers-reduced-motion: reduce) {
  .hero {
    transition: none;
  }

  .stage {
    transition: none;
  }
}