/* ---------- Tokens (Tailwind colours used by the original design) ---------- */
:root {
  --fg: #0a0a0a;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --radius-lg: 0.625rem;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  display: flex; flex-direction: column;
  background: #fff; color: var(--fg);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; background: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; line-height: 1.5; margin: 0; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
a { color: inherit; }
.container { width: 100%; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .container { max-width: 40rem; } }
@media (min-width: 48rem) { .container { max-width: 48rem; } }
@media (min-width: 64rem) { .container { max-width: 64rem; } }
@media (min-width: 80rem) { .container { max-width: 80rem; } }
@media (min-width: 96rem) { .container { max-width: 96rem; } }
.icon { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #111827; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }
.title-xl { font-size: 2.25rem; line-height: 2.5rem; }
.teal { color: var(--teal-600); }
.center { text-align: center; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--gray-800); color: #fff; box-shadow: var(--shadow-md); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.logo-link { display: flex; align-items: center; transition: opacity .15s; }
.logo-link:hover { opacity: .8; }
.logo-link img { width: 3rem; height: 3rem; object-fit: contain; }
.nav-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: #fff; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; }

.site-footer { background: var(--gray-800); padding: 1.5rem 0; }
.footer-inner { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-inner > span { color: var(--gray-300); }
.social-list { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.social-list a { color: var(--gray-300); transition: color .15s; display: block; }
.social-list a.instagram:hover { color: #f472b6; }
.social-list a.discord:hover { color: #818cf8; }
.social-list a.mail:hover { color: #60a5fa; }

/* ---------- Home hero ---------- */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-slide.active { opacity: 1; animation: kenburns 8s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: 10; background: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,.42) 50%, rgba(0,0,0,.7) 100%); }
.photo-credit { position: absolute; top: 1rem; right: 1rem; z-index: 30; color: rgba(255,255,255,.6); font-size: .75rem; }
.photo-credit a { text-decoration: underline; }
.photo-credit a:hover { color: rgba(255,255,255,.8); }
.hero-content { position: relative; z-index: 20; text-align: center; color: #fff; padding: 0 2rem; max-width: 820px; }
.hero-eyebrow, .hero h1, .hero-sub { opacity: 0; animation: fadeUp .9s forwards; }
.hero-eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 1.25rem; animation-delay: .3s; }
.hero h1 { font-family: Georgia, serif; font-size: 3.75rem; line-height: 1.08; margin-bottom: 1.5rem; animation-delay: .5s; }
.hero-sub { font-size: 1.125rem; font-weight: 300; line-height: 1.625; color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 2.5rem; animation-delay: .75s; }
.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: .625rem; }
.hero-dots button { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 9999px; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s; }
.hero-dots button:hover { background: rgba(255,255,255,.5); }
.hero-dots button[aria-current="true"] { background: var(--teal-300); transform: scale(1.25); }
.scroll-cue { position: absolute; bottom: 2rem; right: 3rem; z-index: 30; display: none; flex-direction: column; align-items: center; gap: .375rem; color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.scroll-cue div { width: 1px; height: 3rem; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); animation: scrollLine 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes kenburns { from { transform: scale(1.04) translateX(0); } to { transform: scale(1) translateX(-1%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollLine { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.5); opacity: .4; } }

/* ---------- Home: about ---------- */
.about { padding: 4rem 0; background: #fff; }
.about-inner { max-width: 56rem; margin: 0 auto; }
.about h2 { text-align: center; margin-bottom: 2rem; color: var(--teal-600); }
.about-text { text-align: center; color: var(--gray-700); display: grid; gap: 1.5rem; }
.pillars { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 3rem; }
.pillar { padding: 1.5rem; border-radius: var(--radius-lg); }
.pillar h3 { margin-bottom: .75rem; }
.about-closing { margin-top: 3rem; }
.about-closing p + p { margin-top: 1rem; }
.about-closing a { color: var(--teal-600); text-decoration: underline; }
.about-closing a:hover { color: var(--teal-700); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Events ---------- */
.events-page { padding: 4rem 1rem; }
.events-head { text-align: center; margin-bottom: 3rem; color: #000; }
.events-head h1 { color: var(--teal-600); margin-bottom: 1rem; }
.events-head p { max-width: 42rem; margin: 0 auto; }
.events-head p + p { margin-top: .5rem; }
.event-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }

.event-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.5rem; transition: box-shadow .15s; }
.event-card:hover { box-shadow: var(--shadow-lg); }
.event-card h3 { margin-bottom: .75rem; }
.event-card h3 a { text-decoration: none; }
.event-card h3 a:hover { text-decoration: underline; }
.event-card .short { color: var(--gray-700); margin-bottom: 1rem; }
.event-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--gray-700); }
.event-meta li { display: flex; align-items: center; gap: .5rem; }
.card-link { display: inline-block; margin-top: 1rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* colour themes (chosen by event id, as in the original) */
.theme-teal   { background: linear-gradient(135deg, #ccfbf1, #cffafe); --title: #0d9488; --link-hover: #0f766e; }
.theme-purple { background: linear-gradient(135deg, #f3e8ff, #fce7f3); --title: #9333ea; --link-hover: #7e22ce; }
.theme-blue   { background: linear-gradient(135deg, #dbeafe, #e0e7ff); --title: #2563eb; --link-hover: #1d4ed8; }
.theme-orange { background: linear-gradient(135deg, #ffedd5, #fef9c3); --title: #ea580c; --link-hover: #c2410c; }
.event-card h3, .card-link { color: var(--title); }
.card-link:hover { color: var(--link-hover); }
.pillar.theme-teal h3 { color: #0d9488; } .pillar.theme-purple h3 { color: #9333ea; } .pillar.theme-blue h3 { color: #2563eb; }

/* ---------- Event detail ---------- */
.detail-page { padding: 4rem 1rem; }
.detail-inner { max-width: 48rem; margin: 0 auto; }
.detail-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--teal-600); margin-bottom: 1.5rem; }
.detail-back:hover { color: var(--teal-800); text-decoration: underline; }
.detail-header h1 { color: var(--teal-600); margin-bottom: 1.5rem; }
.detail-box { background: linear-gradient(135deg, #ccfbf1, #cffafe); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: .75rem; margin-bottom: 2rem; }
.detail-box > div { display: flex; align-items: center; gap: .75rem; color: var(--gray-700); }
.detail-box .icon { color: var(--teal-600); }
.detail-about { margin-bottom: 2rem; }
.detail-about h2 { color: var(--teal-600); margin-bottom: 1rem; }
.detail-about p { color: var(--gray-700); line-height: 1.625; }
.rsvp-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--teal-600); color: #fff; padding: .75rem 1.5rem; border-radius: var(--radius-lg); text-decoration: none; transition: background .15s; }
.rsvp-btn:hover { background: var(--teal-700); }
.rsvp-note { margin-top: .75rem; color: var(--gray-600); }
.not-found { max-width: 42rem; margin: 0 auto; text-align: center; }
.not-found h1 { margin-bottom: 1rem; }
.not-found p { margin-bottom: 1.5rem; color: var(--gray-700); }
.not-found a { display: inline-flex; align-items: center; gap: .5rem; color: #7e22ce; }
.not-found a:hover { color: #581c87; text-decoration: underline; }

/* ---------- Gallery carousel ---------- */
.gallery { background: var(--gray-800); padding: 4rem 0; }
.gallery h2 { text-align: center; margin-bottom: 3rem; color: var(--teal-500); font-size: 2.25rem; line-height: 2.5rem; }
.slider { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; align-items: stretch; will-change: transform; }
.slider-track.animate { transition: transform .5s ease; }
.slide { flex: none; padding: 0 .5rem; }
.team-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: #fff; }
.team-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-200); }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 1rem; text-align: center; flex: 1; }
.team-name { color: #111827; font-weight: 600; font-size: 1.125rem; margin-bottom: .25rem; }
.team-role { color: var(--teal-600); font-weight: 500; font-size: .875rem; margin-bottom: .5rem; }
.team-bio { color: var(--gray-600); font-size: .875rem; line-height: 1.625; }
.slider-arrow { position: absolute; top: 40%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.9); border: 0; border-radius: 9999px; padding: .5rem; display: grid; place-items: center; color: var(--teal-600); cursor: pointer; box-shadow: var(--shadow-lg); transition: background .15s; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }
.slider-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.slider-dots button { position: relative; width: 1.25rem; height: 1.25rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.slider-dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: .5rem; height: .5rem; margin: -.25rem 0 0 -.25rem; border-radius: 9999px; background: var(--teal-600); opacity: .25; }
.slider-dots button[aria-current="true"]::before { opacity: .75; }

/* ---------- Contact ---------- */
.contact-page { padding: 4rem 1rem; }
.contact-inner { max-width: 42rem; margin: 0 auto; }
.contact-inner > h1 { text-align: center; margin-bottom: 1.5rem; color: var(--teal-600); }
.contact-inner > p { text-align: center; color: var(--gray-700); }
.contact-inner > p.m6 { margin-bottom: 1.5rem; } .contact-inner > p.m8 { margin-bottom: 2rem; } .contact-inner > p.m10 { margin-bottom: 2.5rem; }
.contact-list { display: grid; gap: 1.5rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; background: var(--gray-800); padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); text-decoration: none; transition: box-shadow .15s; }
.contact-card:hover { box-shadow: var(--shadow-lg); }
.contact-card:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }
.contact-card .text { flex: 1; }
.contact-card h2 { color: #fff; }
.contact-card p { color: var(--gray-300); }
.contact-card .arrow { color: var(--teal-400); }
.contact-icon { flex: none; width: 3rem; height: 3rem; border-radius: var(--radius-lg); display: grid; place-items: center; color: #fff; }
.ig { background: linear-gradient(to bottom right, #a855f7, #ec4899, #f97316); }
.dc { background: #4f46e5; }
.ml { background: var(--teal-600); }
.mail-icon { color: #60a5fa; }
.contact-about { margin-top: 3rem; background: linear-gradient(to right, #ccfbf1, #cffafe); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.contact-about h2 { color: var(--teal-600); margin-bottom: .75rem; }
.contact-about p { color: var(--gray-700); }
.contact-about p + p { margin-top: .75rem; }

/* ---------- Minigame ---------- */
.game-page { padding: 4rem 1rem; }
.game-inner { max-width: 48rem; margin: 0 auto; }
.game-inner > h1 { text-align: center; margin-bottom: 1.5rem; color: var(--teal-600); }
.game-inner > p { text-align: center; color: var(--gray-700); margin-bottom: 2rem; }
.game-area { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.game-area canvas { width: 100%; max-width: 700px; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); }
.game-controls { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; justify-content: center; color: var(--gray-700); }
.game-btn { padding: .5rem 1.25rem; background: var(--teal-600); color: #fff; border: 0; border-radius: .25rem; font: inherit; font-weight: 500; cursor: pointer; transition: background .15s; }
.game-btn:hover { background: var(--teal-700); }

@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
  .scroll-cue { display: flex; }
}
@media (max-width: 640px) {
  .slider-arrow.prev { left: .25rem; }
  .slider-arrow.next { right: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active, .scroll-cue div { animation: none; }
  .hero-eyebrow, .hero h1, .hero-sub { opacity: 1; animation: none; }
  .slider-track.animate { transition: none; }
}
