/* ===========================================================
   ala's drawings — stylesheet
   palette derived from Ala's own star wallpaper:
   void #0D0414 · purple #67248C · magenta #C11B7E
   =========================================================== */

:root {
  --void:        #0a0410;
  --void-2:      #150823;
  --deep:        #21103b;
  --purple:      #7b2fd6;
  --purple-lt:   #a855f7;
  --magenta:     #d6248f;
  --pink:        #ff3ba0;
  --pink-soft:   #ff8fd4;
  --glow:        #ffd9f4;
  --star:        #fff2fb;
  --ink:         #f0e6f6;
  --ink-dim:     #c9b6d8;

  --font-bubble: "Rubik Bubbles", system-ui, sans-serif;
  --font-round:  "Fredoka", system-ui, sans-serif;
  --font-body:   "Space Grotesk", system-ui, sans-serif;
  --font-mono:   "Space Mono", ui-monospace, monospace;

  --edge: 1px solid rgba(255, 139, 212, 0.28);
  --shadow-pink: 0 0 28px rgba(255, 59, 160, 0.45);
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--void);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--pink); color: var(--void); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--pink);
  color: var(--void);
  padding: 10px 16px;
  font-family: var(--font-mono);
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- fixed wallpaper + darkening veil ---------- */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/background.webp");
  background-size: cover;
  background-position: center top;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(10, 4, 16, 0.25), rgba(10, 4, 16, 0.78) 70%),
    linear-gradient(180deg, rgba(10, 4, 16, 0.35), rgba(10, 4, 16, 0.6));
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 4, 16, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 139, 212, 0.18);
}
.nav__mark {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--pink-soft);
  display: flex;
  gap: 6px;
  text-shadow: 0 0 14px rgba(255, 59, 160, 0.5);
}
.nav__mark span { color: var(--purple-lt); }
.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  text-transform: lowercase;
}
.nav__links a {
  color: var(--ink-dim);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--pink); border-color: var(--pink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px clamp(18px, 5vw, 40px) 90px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-bubble);
  font-weight: 400;
  font-size: clamp(3.6rem, 15vw, 9rem);
  line-height: 0.92;
  color: var(--pink-soft);
  letter-spacing: 1px;
  text-shadow:
    0 0 18px rgba(255, 59, 160, 0.55),
    0 0 44px rgba(123, 47, 214, 0.55),
    0 6px 0 rgba(33, 16, 59, 0.6);
  animation: bloom 5.5s ease-in-out infinite;
}
@keyframes bloom {
  0%, 100% { text-shadow: 0 0 18px rgba(255,59,160,.5), 0 0 44px rgba(123,47,214,.5), 0 6px 0 rgba(33,16,59,.6); }
  50%      { text-shadow: 0 0 30px rgba(255,59,160,.85), 0 0 70px rgba(168,85,247,.7), 0 6px 0 rgba(33,16,59,.6); }
}

.hero__name {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  letter-spacing: 1px;
  margin-top: 26px;
  color: var(--star);
}

.hero__tag {
  font-size: clamp(0.98rem, 2.6vw, 1.15rem);
  color: var(--ink-dim);
  max-width: 30ch;
  margin: 16px auto 0;
}

.stamps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.stamp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border: 1px dashed rgba(255, 139, 212, 0.5);
  border-radius: 999px;
  background: rgba(33, 16, 59, 0.45);
  color: var(--pink-soft);
  backdrop-filter: blur(4px);
}

.scrollcue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scrollcue__arrow { font-size: 1.2rem; color: var(--pink); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* sparkle particles (filled by JS) */
.sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.spark {
  position: absolute;
  color: var(--glow);
  opacity: 0;
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  text-shadow: 0 0 8px rgba(255, 139, 212, 0.9);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  50%      { opacity: 0.9; transform: scale(1) rotate(40deg); }
}

/* ---------- section heads ---------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: 0.5px;
  background: linear-gradient(95deg, var(--pink), var(--purple-lt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--purple-lt);
}

/* ---------- gallery ---------- */
.gallery-section {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0;
  background: rgba(9, 4, 15, 0.86);
  border-top: 1px solid rgba(255, 139, 212, 0.14);
  border-bottom: 1px solid rgba(255, 139, 212, 0.14);
}

.masonry {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 0 clamp(16px, 5vw, 40px);
  column-count: 3;
  column-gap: 22px;
}
@media (max-width: 980px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; column-gap: 0; } }

.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 12px 12px 0;
  background: linear-gradient(160deg, rgba(33, 16, 59, 0.9), rgba(15, 8, 35, 0.95));
  border: var(--edge);
  border-radius: 12px;
  cursor: pointer;
  break-inside: avoid;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s, border-color 0.35s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  -webkit-tap-highlight-color: transparent;
}
.tile:hover,
.tile:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), var(--shadow-pink);
  border-color: var(--pink);
  outline: none;
  z-index: 3;
}
.tile img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--deep);
}
.tile__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 2px 11px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--pink-soft);
}
.tile__bar .sig { color: var(--purple-lt); }

/* scroll reveal — opacity only, so it never overrides the tile's tilt/hover transform */
.reveal { opacity: 0; transition: opacity 0.7s ease; }
.reveal.is-visible { opacity: 1; }

/* ---------- about ---------- */
.about-section {
  padding: clamp(70px, 11vw, 140px) clamp(16px, 5vw, 40px);
  display: grid;
  place-items: center;
}
.about-card {
  max-width: 640px;
  width: 100%;
  padding: clamp(28px, 6vw, 52px);
  text-align: center;
  border-radius: 22px;
  background: rgba(15, 8, 35, 0.7);
  border: 1px solid rgba(255, 139, 212, 0.35);
  box-shadow: 0 0 0 6px rgba(123, 47, 214, 0.12), 0 24px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  position: relative;
}
.about-card::before,
.about-card::after {
  content: "✦";
  position: absolute;
  font-size: 1.4rem;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255,59,160,.7);
}
.about-card::before { top: 14px; left: 16px; }
.about-card::after  { bottom: 14px; right: 16px; }

.about-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 16px;
}
.about-name {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.1;
  color: var(--pink-soft);
}
.about-name span { display: block; color: var(--star); font-size: 0.78em; }
.about-body { margin: 22px 0 26px; }
.about-body p { color: var(--ink); margin-bottom: 14px; font-size: 1.02rem; }
.about-body p:last-child { margin-bottom: 0; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(214,36,143,0.22), rgba(123,47,214,0.22));
  border: 1px solid rgba(255,139,212,0.35);
  color: var(--pink-soft);
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 54px 20px 64px;
  background: rgba(9, 4, 15, 0.9);
  border-top: 1px solid rgba(255, 139, 212, 0.14);
}
.footer__stars { color: var(--pink); letter-spacing: 0.5em; margin-bottom: 14px; text-shadow: 0 0 12px rgba(255,59,160,.6); }
.footer__line { font-family: var(--font-round); font-weight: 600; color: var(--pink-soft); }
.footer__meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-dim); margin-top: 8px; }

/* ===========================================================
   LIGHTBOX
   =========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(7, 3, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lb__stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}
.lb__img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 139, 212, 0.4);
  box-shadow: 0 0 50px rgba(255, 59, 160, 0.3), 0 30px 80px rgba(0,0,0,0.6);
  background: var(--deep);
}
.lb__caption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--pink-soft);
}

.lb__close,
.lb__nav {
  position: absolute;
  z-index: 4;
  background: rgba(33, 16, 59, 0.7);
  border: 1px solid rgba(255, 139, 212, 0.4);
  color: var(--pink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}
.lb__close:hover, .lb__nav:hover,
.lb__close:focus-visible, .lb__nav:focus-visible {
  background: var(--pink); color: var(--void); border-color: var(--pink);
}
.lb__close {
  top: clamp(12px, 3vw, 26px);
  right: clamp(12px, 3vw, 26px);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}
.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 64px;
  border-radius: 12px;
  font-size: 2rem;
  line-height: 1;
}
.lb__nav:hover, .lb__nav:focus-visible { transform: translateY(-50%) scale(1.06); }
.lb__prev { left: clamp(10px, 2.5vw, 28px); }
.lb__next { right: clamp(10px, 2.5vw, 28px); }

@media (max-width: 560px) {
  .lb__nav { top: auto; bottom: 18px; transform: none; width: 60px; height: 48px; }
  .lb__nav:hover, .lb__nav:focus-visible { transform: scale(1.06); }
  .lb__prev { left: 18px; }
  .lb__next { right: 18px; }
  .lb__img { max-height: 72vh; }
}

/* ===========================================================
   reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title { animation: none; }
  .scrollcue__arrow { animation: none; }
  .spark { display: none; }
  .reveal { opacity: 1; transition: none; }
  .tile { transition: box-shadow 0.2s, border-color 0.2s; }
  .tile:hover, .tile:focus-visible { transform: rotate(0deg); }
  .lightbox { transition: none; }
}
