/**
 * everosenthal.com — Eve's homepage.
 * Bright confetti palette on cream; the one dark thing on the page is the
 * Neon Nebula card, which borrows the game's own tokens so it reads as a
 * doorway into the game rather than a link in a list.
 */

:root {
  --cream: #fffdf7;
  --cream-deep: #fff6e6;
  --ink: #241b3a;
  --ink-soft: #5c5170;
  --magenta: #ff4fa3;
  --tangerine: #ff8a3d;
  --sunshine: #ffd23f;
  --mint: #34d399;
  --sky: #38bdf8;
  --lilac: #a78bfa;

  /* Borrowed from neon.everosenthal.com/www/styles.css */
  --space: #020617;
  --space-2: #0f172a;
  --space-cyan: #22d3ee;
  --space-indigo: #6366f1;
  --space-emerald: #10b981;
  --space-rose: #f43f5e;

  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-game: "Orbitron", "Trebuchet MS", sans-serif;

  --radius: 22px;
  --shell: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a {
  color: var(--magenta);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 6px 0 #d92e7f;
}

.btn-primary:hover {
  box-shadow: 0 8px 0 #d92e7f;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.btn-play {
  background: var(--space-cyan);
  color: #04212b;
  box-shadow: 0 6px 0 #0e8ba3, 0 0 32px rgba(34, 211, 238, 0.45);
}

.btn-play:hover {
  box-shadow: 0 8px 0 #0e8ba3, 0 0 44px rgba(34, 211, 238, 0.6);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1.5rem clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--cream-deep), var(--cream));
}

/* Scattered confetti dots, drawn entirely with gradients. */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(circle, var(--magenta) 60%, transparent 61%),
    radial-gradient(circle, var(--sky) 60%, transparent 61%),
    radial-gradient(circle, var(--sunshine) 60%, transparent 61%),
    radial-gradient(circle, var(--mint) 60%, transparent 61%),
    radial-gradient(circle, var(--lilac) 60%, transparent 61%),
    radial-gradient(circle, var(--tangerine) 60%, transparent 61%);
  background-size: 14px 14px, 10px 10px, 16px 16px, 11px 11px, 13px 13px, 9px 9px;
  background-position: 4% 12%, 18% 62%, 33% 22%, 71% 78%, 88% 30%, 57% 8%;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hello {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-soft);
  transform: rotate(-3deg);
  transform-origin: left center;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  margin: 0.15em 0 0.35em;
  background: linear-gradient(100deg, var(--magenta), var(--tangerine) 45%, var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 22ch;
}

.lede::after {
  content: "";
  display: block;
  width: 6.5rem;
  height: 8px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: var(--sunshine);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-photo {
  position: relative;
  transform: rotate(1.5deg);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 8px solid #fff;
  box-shadow: 0 18px 40px rgba(36, 27, 58, 0.18), 0 0 0 1px rgba(36, 27, 58, 0.05);
}

/* --- Neon Nebula -------------------------------------------------------- */

.neon {
  padding: clamp(1rem, 4vw, 2.5rem) 1.5rem;
}

.neon-card {
  position: relative;
  overflow: hidden;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-radius: 32px;
  background: radial-gradient(120% 100% at 15% 0%, var(--space-2), var(--space) 65%);
  color: #e2e8f0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

/* Two offset dot layers read as a starfield without any JS. */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, var(--space-cyan), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent),
    radial-gradient(1px 1px at 40px 180px, var(--space-indigo), transparent);
  background-size: 220px 220px;
}

.neon-shot {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5), 0 0 50px rgba(34, 211, 238, 0.25);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.neon-shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.8), 0 0 70px rgba(34, 211, 238, 0.4);
}

.neon-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* The screenshot is cropped mid-button; fade the cut edge into the card. */
.neon-shot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0), var(--space));
}

.neon-copy {
  position: relative;
}

.eyebrow {
  font-family: var(--font-game);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--space-cyan);
}

.neon-title {
  font-family: var(--font-game);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  margin: 0.35rem 0 1rem;
  color: #fff;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.75);
}

.neon-copy p + p {
  margin-top: 0.85rem;
}

.neon-copy p {
  color: #cbd5e1;
  font-size: 1.05rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.5rem 0;
}

.chip {
  padding: 0.35em 0.9em;
  border-radius: 999px;
  font-family: var(--font-game);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-easy {
  background: rgba(16, 185, 129, 0.18);
  color: var(--space-emerald);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.5);
}

.chip-medium {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.6);
}

.chip-hard {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.5);
}

.chip-super {
  background: rgba(244, 63, 94, 0.08);
  color: var(--space-rose);
  box-shadow: inset 0 0 0 1.5px var(--space-rose), 0 0 16px rgba(244, 63, 94, 0.35);
}

.chip-alt {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
}

/* --- Things I like ------------------------------------------------------ */

.likes {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.likes h2,
.photos > h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.likes-sentence {
  max-width: 34ch;
  margin: 1rem auto 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.stickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.sticker {
  flex: 0 1 200px;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform 0.18s ease;
}

.sticker svg {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sticker:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.sticker:nth-child(even) {
  transform: rotate(1.5deg);
}

.sticker:hover {
  transform: rotate(0deg) scale(1.04);
}

.sticker-magenta {
  color: #c81e6f;
  background: #ffe6f2;
  box-shadow: 0 6px 0 #ffc2de;
}

.sticker-sky {
  color: #0a6d95;
  background: #e0f4ff;
  box-shadow: 0 6px 0 #b9e5fb;
}

.sticker-sunshine {
  color: #8a6300;
  background: #fff5d6;
  box-shadow: 0 6px 0 #ffe49a;
}

.sticker-mint {
  color: #0a7053;
  background: #ddf9ef;
  box-shadow: 0 6px 0 #a9edd3;
}

.sticker-lilac {
  color: #5b35b8;
  background: #efe8ff;
  box-shadow: 0 6px 0 #d6c4ff;
}

/* --- Photos ------------------------------------------------------------- */

.photos {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  text-align: center;
}

.photo-group {
  margin-top: 3rem;
}

.group-title {
  font-size: 1.6rem;
  color: var(--magenta);
}

.group-note {
  margin: 0.35rem 0 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/*
 * A packed grid rather than CSS `columns`: the photos are a mix of tall and
 * wide, and columns balance them into ragged, half-empty stacks. Wide photos
 * take two cells and are cropped to twice the aspect of a tall one, so every
 * row lines up.
 */
.wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 1.5rem;
  text-align: left;
}

.wall-short {
  grid-template-columns: repeat(2, 1fr);
  max-width: 660px;
  margin: 0 auto;
}

.polaroid {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 10px 0;
  border: none;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(36, 27, 58, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.polaroid-wide {
  grid-column: span 2;
}

.polaroid:nth-child(3n + 1) {
  transform: rotate(-1.4deg);
}

.polaroid:nth-child(3n + 2) {
  transform: rotate(1deg);
}

.polaroid:nth-child(3n) {
  transform: rotate(-0.5deg);
}

.polaroid:hover,
.polaroid:focus-visible {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 16px 34px rgba(36, 27, 58, 0.22);
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: var(--cream-deep);
}

.polaroid-wide img {
  aspect-ratio: 8 / 5;
}

.polaroid-caption {
  display: block;
  padding: 0.85rem 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  background: var(--cream-deep);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer p + p {
  margin-top: 0.5rem;
}

/* --- Lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(20, 14, 33, 0.94);
  animation: lb-in 0.18s ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.lb-figure img {
  max-width: min(1100px, 100%);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-figure figcaption {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
}

.lb-btn {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lb-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox :focus-visible {
  outline-color: #fff;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner,
  .neon-card {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

  .wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .wall,
  .wall-short {
    grid-template-columns: 1fr;
  }

  .polaroid-wide {
    grid-column: span 1;
  }

  .sticker {
    flex-basis: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .lb-btn {
    width: 44px;
    height: 44px;
  }

  .lb-prev,
  .lb-next {
    position: absolute;
    bottom: 1.25rem;
  }

  .lb-prev {
    left: 1.25rem;
  }

  .lb-next {
    right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  .lightbox {
    animation: none !important;
    transition: none !important;
  }

  .polaroid,
  .sticker,
  .hero-photo,
  .hello {
    transform: none !important;
  }
}
