/* shansakhan — neon pink & turquoise, modern alientee-inspired structure */
:root {
  --ivory: #ffe9f8;
  --lotus: #ff12b0;
  --lotus-deep: #ff007a;
  --petal: #ff4de0;
  --teal: #00b8c6;
  --teal-deep: #07141c;
  --turquoise: #00ffe8;
  --turquoise-soft: #9ffff6;
  --gold: #ffd000;
  --gold-light: #ffe86a;
  --ink: #140018;
  --ink-soft: #3a0a32;
  --mut: #5a2a4a;
  --line: rgba(255, 18, 176, 0.28);
  --glass: rgba(255, 246, 252, 0.78);
  --txt-on-dark: #fff7fb;
  --max: 1100px;
  --nav-h: 64px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0.9rem;
  --shadow: 0 8px 28px rgba(20, 0, 24, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.6 var(--font);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #1a0514;
  background-image:
    radial-gradient(900px 600px at 85% -5%, rgba(255, 18, 176, 0.42), transparent 60%),
    radial-gradient(800px 560px at 5% 8%, rgba(0, 255, 232, 0.32), transparent 60%),
    radial-gradient(1200px 900px at 50% 110%, rgba(255, 208, 0, 0.16), transparent 65%),
    linear-gradient(180deg, #ff6ad8 0%, #ffe3f8 40%, #6ffff0 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
/* Large pink/turquoise tiger behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/images/art/tiger-bg.webp") center 18% / min(92vw, 780px) auto no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lotus-deep); }
:focus-visible { outline: 2px solid var(--lotus); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 0.6rem; }

/* Sticky glass header, content centered */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(20, 0, 24, 0.18);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 232, 248, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1.2rem;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  font: 600 0.9rem var(--font);
  cursor: pointer;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 0.55rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255, 18, 176, 0.12);
  color: var(--lotus-deep);
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .site-header.is-open .nav-list { display: flex; }
  .site-header.is-open { position: sticky; }
  .site-header.is-open::before { background: rgba(255, 232, 248, 0.94); }
}

/* Hero glass panel — centered, alientee-like structure */
.hero {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  text-align: center;
}
.hero-panel,
.page-hero,
.card, .event-card, .form-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, var(--shadow);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.2rem 2.1rem;
}
.hero-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  width: 620px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 18, 176, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-panel > * { position: relative; }

/* Single large portrait — full image, face not cropped */
.hero-frame {
  width: min(500px, 88vw);
  margin: 0 auto 1.25rem;
  padding: 7px;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, var(--gold), var(--lotus) 52%, var(--turquoise));
  box-shadow:
    0 0 0 1px rgba(255, 208, 0, 0.7),
    0 12px 36px rgba(255, 0, 140, 0.35),
    0 0 48px rgba(0, 255, 232, 0.28);
}
.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.95rem;
  object-fit: contain;
  background: #1a0812;
}

/* Homepage: centered links, temple + tiger flanks */
.home-banner {
  display: none;
}
.home-stage {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 440px) minmax(180px, 1fr);
  align-items: stretch;
  gap: 0;
  text-align: center;
}
.home-flank {
  pointer-events: none;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible;
}
.home-flank img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}
.home-flank-left { justify-content: flex-end; margin-right: -2rem; }
.home-flank-right { justify-content: flex-start; margin-left: -2rem; }
.home-center {
  position: relative;
  z-index: 3;
  align-self: center;
  min-width: 0;
  margin: 1.6rem 0 2rem;
  padding: 2rem 1.2rem 2.1rem;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, var(--shadow);
}
.home-center h1 { margin-top: 0.1em; }
@media (max-width: 760px) {
  .home-banner {
    display: block;
    position: relative;
    z-index: 2;
    width: min(100%, calc(100% - 1.5rem));
    margin: 0.7rem auto 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .home-banner img {
    width: 100%;
    height: auto;
    display: block;
  }
  .home-stage {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }
  .home-flank {
    overflow: hidden;
    margin: 0;
    align-items: stretch;
  }
  .home-flank img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-flank-left img { object-position: 12% center; }
  .home-flank-right img { object-position: 88% center; }
  .home-center {
    margin: 0.7rem 0.15rem 1.2rem;
    padding: 1.4rem 0.7rem 1.5rem;
  }
  .home-center .links { width: 100%; max-width: 100%; }
  .link-card { min-width: 0; max-width: 100%; }
}

h1, h2, .page-hero h1, .section h2, .event-card h2 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: var(--ink);
  margin: 0.2em 0 0.45em;
  text-shadow: none;
}
h1, .hero h1, .page-hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.12;
}
h2, .section h2, .links-col h2, .event-card h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 1.1rem 0 0.7rem;
}
.tagline, .lede {
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--mut);
  margin: 0 auto 0.9rem;
  max-width: 62ch;
  text-align: center;
}
.divider {
  width: min(280px, 70%);
  height: 28px;
  margin: 0.15rem auto 0.9rem;
}

.page-hero {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  padding: 1.8rem 1.2rem 1.4rem;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 246, 252, 0.45), rgba(255, 246, 252, 0.82)),
    url("/images/art/temple-hero.webp") center 60% / cover no-repeat;
  opacity: 0.9;
  z-index: -1;
}

.section, .home-main {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.6rem;
  text-align: center;
}

/* Centered link cards — easy to tap */
.links {
  display: grid;
  gap: 0.7rem;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 56px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 252, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 4px 16px rgba(20, 0, 24, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 18, 176, 0.55);
  box-shadow: 0 0 22px rgba(255, 18, 176, 0.22), 0 8px 24px rgba(20, 0, 24, 0.12);
  color: var(--ink);
}
.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--turquoise), var(--teal));
  color: #042424;
  flex: 0 0 auto;
}
.link-icon svg { width: 18px; height: 18px; fill: currentColor; }
.link-text { display: flex; flex-direction: column; min-width: 0; }
.link-text strong { font-weight: 700; font-size: 0.98rem; }
.link-text span { font-size: 0.8rem; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-arrow { margin-left: auto; color: var(--lotus); font-size: 1.15rem; }

/* Buttons / CTAs */
.btn, .ig-cta {
  display: inline-block;
  text-decoration: none;
  font: 700 1rem var(--font);
  color: #2a0518;
  background: linear-gradient(180deg, #ff8ad8, var(--lotus-deep));
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 18, 176, 0.55), 0 4px 18px rgba(255, 18, 176, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn:hover, .ig-cta:hover {
  transform: translateY(-1px);
  color: #2a0518;
  box-shadow: 0 0 0 1px #ffd0f0, 0 6px 28px rgba(255, 18, 176, 0.55);
}
.cta-wrap { display: flex; justify-content: center; margin-bottom: 1.4rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #2a1020;
  aspect-ratio: 2 / 3;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.gallery-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 18, 176, 0.55);
  box-shadow: 0 0 22px rgba(255, 18, 176, 0.22);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 22, 0.92);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1.5rem;
  text-align: center;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(92vw, 720px);
  max-height: 86vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-radius: 8px;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: transparent;
  border: 1px solid var(--gold-light);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
}
.lightbox-close { top: 1rem; right: 1rem; width: 42px; height: 42px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* About / event / form — single centered column */
.about-grid, .about-art, .bio, .event-card, .form-card {
  margin-inline: auto;
  text-align: center;
}
.about-grid {
  display: grid;
  gap: 1.3rem;
  justify-items: center;
  max-width: 560px;
}
.about-art img {
  width: min(100%, 420px);
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.card, .event-card, .form-card {
  max-width: 560px;
  width: 100%;
  padding: 1.5rem 1.3rem 1.6rem;
}
.bio p { margin: 0 0 0.85rem; }
.bio ul { list-style: none; margin: 0; padding: 0; }
.bio li { margin: 0.3rem 0; }

.event-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lotus-deep);
  margin: 0 0 0.5rem;
}
.event-dates {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0.5rem 0 0.8rem;
}
.event-card p { margin: 0 auto; max-width: 32rem; color: var(--mut); }
.event-card h2 { margin-top: 0.2rem; }

form { display: grid; gap: 0.85rem; text-align: left; }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
input, textarea, select {
  font: 400 1rem var(--font);
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus {
  outline: 2px solid var(--lotus);
  border-color: var(--lotus);
}
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-card .btn { width: fit-content; margin: 0.2rem auto 0; display: inline-block; }
.form-status { min-height: 1.3rem; font-size: 0.95rem; margin: 0.2rem 0 0; text-align: center; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #9b2c4a; }
.form-alt { text-align: center; color: var(--mut); font-size: 0.95rem; margin: 1.1rem 0 0; }

/* Footer */
.site-footer {
  margin-top: auto;
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 20, 28, 0.92), #07141c);
  color: #dce8ea;
  padding: 1.6rem 1rem 1.5rem;
  text-align: center;
}
.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}
.footer-brand { font-weight: 700; color: var(--gold-light); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
.footer-nav a { color: #e8f6f4; text-decoration: none; }
.footer-nav a:hover { color: var(--turquoise); }
.credits { font-size: 0.85rem; color: rgba(220, 232, 234, 0.75); max-width: 40rem; margin: 0 auto; }

/* Floating lotuses (subtle; falling petals are the main motion) */
.float-lotus {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  width: 56px;
}
.float-lotus.a { left: 2vw; bottom: 12vh; }
.float-lotus.b { right: 3vw; top: 22vh; width: 46px; }
.float-lotus.c { display: none; }

/* Falling pale-pink cherry / lotus petals — light, translucent SVG */
.petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
.fall-petal {
  position: absolute;
  top: -8vh;
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: petal-fall;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  animation-iteration-count: infinite;
}
.fall-petal svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
@keyframes petal-fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(var(--r0, -15deg));
    opacity: 0;
  }
  8% { opacity: var(--fade, 0.62); }
  25% {
    transform: translate3d(var(--d1, 22px), 22vh, 0) rotate(var(--r1, 25deg));
  }
  50% {
    transform: translate3d(var(--d2, -16px), 52vh, 0) rotate(var(--r2, -20deg));
  }
  75% {
    transform: translate3d(var(--d3, 28px), 80vh, 0) rotate(var(--r3, 35deg));
  }
  90% { opacity: var(--fade, 0.62); }
  100% {
    transform: translate3d(var(--d4, 8px), 112vh, 0) rotate(var(--r4, 70deg));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petal-layer, .fall-petal { display: none !important; animation: none !important; }
  .link-card, .btn, .ig-cta, .gallery-grid a { transition: none !important; }
}
