:root {
  --ink: #120f1a;
  --ink-soft: #221a2e;
  --paper: #f4eefc;
  --paper-dim: #e2d6f5;
  --mint: #b57bff;
  --mint-deep: #8b45e8;
  --mint-rgb: 181, 123, 255;
  --mute: rgba(244, 238, 252, 0.72);
  --line: rgba(244, 238, 252, 0.18);
  --font-display: "Lilita One", "Arial Black", sans-serif;
  --font-body: "Sora", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(18, 18, 18, 0));
  mix-blend-mode: normal;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.nav__brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--mint);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.nav__links a {
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
  color: var(--mint);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 20% 80%, rgba(var(--mint-rgb), 0.22), transparent 60%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.25) 0%, rgba(18, 18, 18, 0.55) 45%, rgba(18, 18, 18, 0.96) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 22px,
      rgba(var(--mint-rgb), 0.04) 22px,
      rgba(var(--mint-rgb), 0.04) 23px
    );
}

.hero__content {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.1rem, 4vw, 2.5rem) clamp(2.5rem, 6vh, 4rem);
  display: grid;
  gap: 1.1rem;
}

.hero__logo {
  width: min(220px, 52vw);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-wrap: balance;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero h1 span {
  display: block;
  color: var(--mint);
  font-size: 0.42em;
  letter-spacing: 0.08em;
  margin-top: 0.35em;
}

.hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--mute);
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--mint);
  color: var(--ink);
}

.btn--primary:hover {
  background: #d2b4ff;
}

.btn--ghost {
  border-color: rgba(244, 239, 230, 0.45);
  background: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
}

.section__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.section__head p {
  margin: 0;
  color: var(--mute);
}

.schedule {
  background:
    radial-gradient(circle at 85% 10%, rgba(var(--mint-rgb), 0.14), transparent 35%),
    linear-gradient(180deg, #171717, #101010);
}

.partners {
  margin: 0 0 1.25rem;
}

.partners__label {
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.partners__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.partners__item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--mint-rgb), 0.08);
  font-size: 0.92rem;
}

.partners__item a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-size: 0.85rem;
}

.calendar {
  width: 100%;
}

.cal {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  max-width: 100%;
}

.cal__toolbar {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cal__month {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.03em;
}

.cal__nav {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.cal__nav:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(var(--mint-rgb), 0.10);
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.75rem 0.75rem 0.25rem;
  color: var(--mute);
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.06em;
  width: 100%;
  box-sizing: border-box;
}

.cal__weekdays > *,
.cal__grid > * {
  min-width: 0;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem 0.75rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.cal-cell {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--paper);
  cursor: default;
  padding: 0.2rem;
  box-sizing: border-box;
  /* Prevent iOS Safari button min-content width from blowing out the 7-col grid */
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cal-cell__pip {
  display: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.cal-cell.is-empty {
  visibility: hidden;
}

.cal-cell__day {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1;
}

.cal-cell__time {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--mint);
  line-height: 1.1;
}

.cal-cell.is-selected .cal-cell__time {
  color: var(--ink);
}

.cal-cell__dot {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--mint);
  border-radius: 999px;
  padding: 0.18rem 0.4rem;
}

.cal-cell__venue {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.62rem, 1vw, 0.75rem);
  opacity: 0.9;
  line-height: 1.1;
}

.cal-cell.is-today {
  border-color: rgba(244, 239, 230, 0.35);
}

.cal-cell.has-event {
  cursor: pointer;
  background: rgba(var(--mint-rgb), 0.10);
  border-color: rgba(var(--mint-rgb), 0.32);
}

.cal-cell.has-event:hover {
  transform: translateY(-1px);
  background: rgba(var(--mint-rgb), 0.16);
}

.cal-cell.is-selected {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

.cal-cell.is-selected .cal-cell__dot {
  background: var(--ink);
  color: var(--mint);
}

.cal-cell.is-selected .cal-cell__pip {
  background: var(--ink);
}

.cal-cell:disabled:not(.has-event) {
  opacity: 0.45;
}

.cal-detail {
  border-top: 1px solid var(--line);
  padding: 1rem 1rem 1.1rem;
  min-height: 6.5rem;
  background: rgba(0, 0, 0, 0.22);
}

.cal-detail__card {
  display: grid;
  gap: 0.35rem;
}

.cal-detail__when {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: baseline;
}

.cal-detail__when strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.cal-detail__when span,
.cal-detail__time {
  color: var(--mint);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cal-detail__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.cal-detail__body p {
  margin: 0 0 0.3rem;
  color: var(--mute);
  font-size: 0.92rem;
}

.cal-detail__location {
  color: var(--paper) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cal-detail__maps {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cal-detail__maps:hover {
  color: #d2b4ff;
}

.cal-detail__empty {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.schedule__note {
  margin-top: 1.25rem;
  color: var(--mute);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .cal__weekdays {
    gap: 0.25rem;
    padding: 0.65rem 0.55rem 0.2rem;
    font-size: 0.72rem;
  }

  .cal__grid {
    gap: 0.25rem;
    padding: 0.3rem 0.55rem 0.75rem;
  }

  .cal-cell {
    gap: 0.16rem;
    border-radius: 12px;
    padding: 0.15rem 0.1rem;
  }

  .cal-cell__day {
    font-size: clamp(1.1rem, 4.2vw, 1.45rem);
  }

  .cal-cell__time {
    font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  }

  .cal-cell__dot {
    font-size: clamp(0.55rem, 2vw, 0.68rem);
    padding: 0.1rem 0.28rem;
  }

  .cal-cell__venue {
    font-size: clamp(0.5rem, 1.8vw, 0.62rem);
  }
}

/* Phones: keep cells tappable; details live in the panel below */
@media (max-width: 640px) {
  .schedule .section__inner {
    width: 100%;
    max-width: 100%;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    box-sizing: border-box;
  }

  .partners__item {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
  }

  .calendar {
    max-width: 100%;
  }

  .cal {
    border-radius: 18px;
    width: 100%;
  }

  .cal__toolbar {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    padding: 0.75rem 0.55rem;
  }

  .cal__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.35rem;
  }

  .cal__month {
    font-size: 1.25rem;
  }

  .cal__weekdays {
    gap: 0.15rem;
    padding: 0.55rem 0.4rem 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .cal__grid {
    gap: 0.15rem;
    padding: 0.2rem 0.4rem 0.65rem;
  }

  .cal-cell {
    aspect-ratio: 1;
    min-height: 0;
    gap: 0.15rem;
    border-radius: 10px;
    padding: 0.15rem 0.05rem;
  }

  .cal-cell__day {
    font-size: 1.05rem;
  }

  /* Hide dense labels; use a real pip (Safari-safe, not button::after) */
  .cal-cell__time,
  .cal-cell__dot,
  .cal-cell__venue {
    display: none;
  }

  .cal-cell.has-event .cal-cell__pip {
    display: block;
  }

  .cal-cell.has-event {
    background: rgba(var(--mint-rgb), 0.18);
    border-color: rgba(var(--mint-rgb), 0.55);
  }

  .cal-detail {
    padding: 0.9rem 0.85rem 1rem;
    min-height: 0;
  }

  .cal-detail__when {
    flex-direction: column;
    gap: 0.2rem;
  }

  .cal-detail__when strong {
    font-size: 1.05rem;
  }

  .cal-detail__time {
    font-size: 1rem;
  }

  .cal-detail__body h3 {
    font-size: 1.05rem;
  }

  .cal-detail__body p {
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  .cal-cell__day {
    font-size: 0.95rem;
  }

  .cal__weekdays {
    font-size: 0.62rem;
  }
}

.gallery {
  background: var(--paper);
  color: var(--ink);
}

.gallery .section__head p {
  color: rgba(18, 18, 18, 0.7);
}

.gallery__grid {
  column-count: 3;
  column-gap: 0.85rem;
}

.gallery__grid figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 0.85rem;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper-dim);
}

.gallery__grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.gallery__grid figure:hover img {
  transform: scale(1.03);
  filter: brightness(1.03);
}

@media (min-width: 1100px) {
  .gallery__grid {
    column-count: 4;
  }
}

.about {
  background:
    linear-gradient(135deg, rgba(var(--mint-rgb), 0.12), transparent 40%),
    var(--ink-soft);
}

.about__copy {
  max-width: 46rem;
  font-size: 1.05rem;
  color: var(--mute);
}

.about__copy p + p {
  margin-top: 1rem;
}

.connect {
  background: #0b0b0b;
  border-top: 1px solid var(--line);
}

.contact__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}

.contact__handle {
  margin: 0;
  color: var(--mute);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.connect__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 12rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.social:hover {
  border-color: var(--mint);
  background: rgba(var(--mint-rgb), 0.08);
  transform: translateY(-2px);
}

.social strong {
  display: block;
  font-size: 0.95rem;
}

.social span {
  display: block;
  font-size: 0.8rem;
  color: var(--mute);
}

.footer {
  padding: 1.5rem clamp(1.1rem, 4vw, 2.5rem) 2.2rem;
  color: var(--mute);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 800px) {
  .nav__links a:not(.nav__cta) {
    display: none;
  }

  .gallery__grid {
    column-count: 2;
  }
}

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

  .hero__media img,
  .hero__logo,
  .hero h1,
  .hero__lead,
  .hero__cta,
  .gallery__grid img {
    animation: none !important;
    transition: none !important;
  }
}
