/* ===== Fonts (self-hosted) =====
   Put the .woff2 files in fonts/. Until they're there, the
   rounded system fonts in the fallback stacks below are used. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("fonts/mplusrounded1c-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("fonts/mplusrounded1c-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* ===== Colors & base =====
   Palette taken from the costume: black bat cape, purple skirt,
   green hair and cat ears, gold buttons — plus the red of the Type-0 uniform. */
:root {
  --primary: #8b6cf0;
  --primary-dark: #5f3fc4;
  --accent: #27794d;
  --gold: #c9a24a;
  --red: #c0292f;
  --ink: #231c2e;
  --ink-soft: #625873;
  --bg: #faf8fd;
  --bg-tint: #f2edfb;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(60, 40, 100, 0.12);
  --font-head: "M PLUS Rounded 1c", ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--primary-dark);
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.center {
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(95, 63, 196, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(95, 63, 196, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-small {
  padding: 0.4em 1.1em;
  font-size: 0.95rem;
}

.btn-large {
  font-size: 1.2rem;
  padding: 0.9em 2em;
}

/* ===== Header / navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 108, 240, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
  margin-left: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 108, 240, 0.25), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(39, 121, 77, 0.3), transparent 45%),
    radial-gradient(circle at 60% 10%, rgba(201, 162, 74, 0.25), transparent 35%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
}

.accent {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
}

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

.hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: 40% 40% var(--radius) var(--radius);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Photo placeholders ===== */
.photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #d9cdfb, #c9ece6);
  color: #fff;
  font-size: 2.5rem;
}

.photo-placeholder.alt {
  background: linear-gradient(135deg, #f3c9cb, #e9d9a8);
}

.photo-placeholder.alt2 {
  background: linear-gradient(135deg, #f3e7c8, #d9cdfb);
}

.photo-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(58, 47, 74, 0.45);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-tinted {
  background: var(--bg-tint);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
}

.section-title::after {
  content: " ✦";
  color: var(--gold);
  font-size: 0.7em;
}

.section-intro {
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Stats */
.stats {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats strong {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--primary-dark);
  min-width: 3.5em;
}

.stats span {
  color: var(--ink-soft);
}

/* Character cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.card:hover {
  transform: translateY(-6px);
}

.card .photo-placeholder,
.card img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body p {
  margin: 0;
}

.card-meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0 !important;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img,
.gallery-item .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img,
.gallery-item:hover .photo-placeholder {
  transform: scale(1.05);
}

/* Events */
.event-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.event {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-date {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red), #7a1a1f);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  line-height: 1.1;
}

.event-date span {
  display: block;
  font-size: 1.7rem;
}

.event-info h3 {
  margin: 0 0 0.2em;
  font-size: 1.2rem;
}

.event-info p {
  margin: 0;
  color: var(--ink-soft);
}

/* FAQ */
.faq-item {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  padding: 0 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

/* Contact */
.section-contact {
  background:
    radial-gradient(circle at 20% 80%, rgba(139, 108, 240, 0.25), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(39, 121, 77, 0.3), transparent 45%);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.socials a {
  display: inline-block;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: color 0.2s, transform 0.2s;
}

.socials a:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--ink);
  color: #ece6f7;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer .small {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(30, 20, 40, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Fade in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Mobile ===== */
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0 2rem;
    background: var(--bg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 340px;
    margin-inline: auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
}

/* ===== Bat-wing edge under the hero (like the cape hem) ===== */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 30px;
  background: radial-gradient(circle at 50% 0, transparent 29px, var(--bg) 30px);
  background-size: 60px 30px;
  background-position: center bottom;
}

img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Character sheet ===== */
.char-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 3rem;
}

.char-sheet div {
  padding: 0.9rem 1.2rem;
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.char-sheet dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.char-sheet dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
}


.sub-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

/* "Also cosplayed" tags */
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
}

.also span {
  padding: 0.25em 0.9em;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(139, 108, 240, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
}
