/* styles.css */

/* Custom Fonts */
/* Add as many custom fonts as you want using this pattern: */

/* Example: Add a custom font
@font-face {
  font-family: 'YourFontName';
  src: url('assets/fonts/YourFontName.woff2') format('woff2'),
       url('assets/fonts/YourFontName.woff') format('woff'),
       url('assets/fonts/YourFontName.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  /* Warm, earthy, paper-inspired palette */
  --text-primary: #3a3226;
  --text-muted: rgba(58, 50, 38, 0.65);
  --accent: #c86428;
  --accent-warm: #d89161;
  --paper-bg: #f9f6f0;
  --paper-cream: #fef9ed;
  --paper-tan: #e8dcc8;
  --ink-brown: #5a4a3a;
  --surface-card: rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius-medium: 16px;
  --radius-organic: 18px 16px 17px 19px / 17px 19px 16px 18px;
  
  /* Enhanced spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

/* --- Base & Typography --- */
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

h1, h2 {
  font-family: "Fredoka One", cursive;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  opacity: 0.85;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  width: min(1000px, 90vw);
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container {
    width: min(1000px, 95vw);
  }
}

/* --- Paper-textured Background --- */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #f9f6f0;
  background-image: 
    radial-gradient(at 20% 30%, rgba(232, 220, 200, 0.6) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(216, 145, 97, 0.35) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(200, 100, 68, 0.18) 0px, transparent 50%);
  background-size: 400% 400%;
  animation: subtleShift 30s ease infinite;
}

/* Add subtle paper noise texture */
.background-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIgLz48ZmVDb2xvck1hdHJpeCB0eXBlPSJzYXR1cmF0ZSIgdmFsdWVzPSIwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI25vaXNlKSIgb3BhY2l0eT0iMC4wMyIvPjwvc3ZnPg==');
  opacity: 0.6;
  pointer-events: none;
}

@keyframes subtleShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.blob {
  position: absolute;
  opacity: 0.25;
  filter: blur(80px);
  mix-blend-mode: multiply;
}

.blob-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(200, 100, 68, 0.4), transparent 70%);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: organicFloat 30s ease-in-out infinite alternate;
}

.blob-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(232, 220, 200, 0.6), transparent 70%);
  border-radius: 40% 60% 70% 30% / 60% 30% 70% 40%;
  animation: organicFloat 35s ease-in-out infinite alternate-reverse;
}

/* YAY THE MOVEMENT IS BACK! */
@keyframes organicFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  50% {
    transform: translate(15px, -20px) rotate(5deg);
    border-radius: 40% 60% 70% 30% / 60% 30% 70% 40%;
  }
  100% {
    transform: translate(-10px, 10px) rotate(-3deg);
    border-radius: 70% 30% 40% 60% / 40% 70% 30% 60%;
  }
}

/* Respecte les préférences utilisateurs pour réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .background-container { background-size: auto; animation: none; }
  .blob { display: none; }
  .btn::after { display: none; }
}

/* Manual reduce-motion toggle via class on <body> */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
}
body.reduce-motion .background-container { background-size: auto; animation: none; }
body.reduce-motion .blob { display: none; }
body.reduce-motion .btn::after { display: none; }
body.reduce-motion .site-header__nav a::after { display: none; }
body.reduce-motion .site-header__nav a { transform: none !important; }
body.reduce-motion .btn { transform: none !important; }
body.reduce-motion .hero__cta::before { display: none; }
body.reduce-motion .hero::before { animation: none; }
body.reduce-motion .hero::after { animation: none; }
body.reduce-motion .page-blob { animation: none; }
body.reduce-motion .hero__title::before { animation: none; }
body.reduce-motion .hero__poster::after { display: none; }
body.reduce-motion .members-card::before { display: none; }
body.reduce-motion .event-card::after { display: none; }
body.reduce-motion .content-box::before { display: none; }
body.reduce-motion .site-header__nav a,
body.reduce-motion .btn {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--paper-cream) !important;
}

/* Toggle button active state */
#toggle-anim-btn[aria-pressed="true"] {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}

/* --- Layout & Components --- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  padding: 24px 0;
  background: rgba(254, 249, 237, 0.92);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 2px solid rgba(200, 100, 68, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(90, 74, 58, 0.08);
  transition: all 0.3s ease;
}

.site-header--scrolled {
  padding: 16px 0;
  background: rgba(254, 249, 237, 0.97);
  border-bottom-color: rgba(200, 100, 68, 0.22);
  box-shadow: 0 4px 16px rgba(90, 74, 58, 0.12);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fredoka One", cursive;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.site-header__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.site-header__nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

main.container {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

/* Floating blob decorations - scattered randomly across the page */
.page-blob {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  filter: blur(2px);
}

/* Random positioning and sizing for each blob */
.page-blob--1 {
  top: 8%;
  right: 12%;
  width: 120px;
  height: 120px;
  animation: organicFloat1 25s ease-in-out infinite;
  animation-delay: -2s;
}

.page-blob--2 {
  bottom: 15%;
  left: 5%;
  width: 90px;
  height: 90px;
  animation: organicFloat2 22s ease-in-out infinite reverse;
  animation-delay: -5s;
}

.page-blob--3 {
  top: 35%;
  right: 3%;
  width: 70px;
  height: 70px;
  opacity: 0.12;
  animation: organicFloat3 28s ease-in-out infinite;
  animation-delay: -8s;
}

.page-blob--4 {
  top: 60%;
  left: 8%;
  width: 110px;
  height: 110px;
  animation: organicFloat4 24s ease-in-out infinite;
  animation-delay: -3s;
}

.page-blob--5 {
  top: 15%;
  left: 25%;
  width: 65px;
  height: 65px;
  opacity: 0.1;
  animation: organicFloat5 30s ease-in-out infinite reverse;
  animation-delay: -10s;
}

.page-blob--6 {
  bottom: 25%;
  right: 18%;
  width: 95px;
  height: 95px;
  animation: organicFloat6 26s ease-in-out infinite;
  animation-delay: -6s;
}

.page-blob--7 {
  top: 50%;
  left: 15%;
  width: 80px;
  height: 80px;
  opacity: 0.13;
  animation: organicFloat7 23s ease-in-out infinite reverse;
  animation-delay: -12s;
}

.page-blob--8 {
  bottom: 40%;
  right: 8%;
  width: 75px;
  height: 75px;
  animation: organicFloat8 27s ease-in-out infinite;
  animation-delay: -4s;
}

.page-blob--9 {
  top: 25%;
  right: 30%;
  width: 85px;
  height: 85px;
  opacity: 0.11;
  animation: organicFloat9 29s ease-in-out infinite reverse;
  animation-delay: -7s;
}

.page-blob--10 {
  bottom: 10%;
  left: 30%;
  width: 100px;
  height: 100px;
  animation: organicFloat10 21s ease-in-out infinite;
  animation-delay: -9s;
}

/* Unique animation for each blob - random movement patterns */
@keyframes organicFloat1 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% { 
    transform: translate(-25px, 30px) rotate(95deg) scale(1.15);
  }
  50% { 
    transform: translate(18px, -15px) rotate(185deg) scale(0.88);
  }
  75% { 
    transform: translate(-12px, 20px) rotate(275deg) scale(1.08);
  }
}

@keyframes organicFloat2 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  30% { 
    transform: translate(20px, -25px) rotate(110deg) scale(1.2);
  }
  60% { 
    transform: translate(-15px, 12px) rotate(230deg) scale(0.92);
  }
}

@keyframes organicFloat3 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% { 
    transform: translate(-18px, 22px) rotate(125deg) scale(1.12);
  }
  66% { 
    transform: translate(22px, -10px) rotate(245deg) scale(0.95);
  }
}

@keyframes organicFloat4 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  28% { 
    transform: translate(15px, 20px) rotate(100deg) scale(1.18);
  }
  56% { 
    transform: translate(-20px, -8px) rotate(200deg) scale(0.9);
  }
  84% { 
    transform: translate(10px, -15px) rotate(300deg) scale(1.05);
  }
}

@keyframes organicFloat5 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  35% { 
    transform: translate(-22px, 18px) rotate(130deg) scale(1.1);
  }
  70% { 
    transform: translate(16px, -20px) rotate(260deg) scale(0.93);
  }
}

@keyframes organicFloat6 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  27% { 
    transform: translate(25px, -22px) rotate(105deg) scale(1.14);
  }
  54% { 
    transform: translate(-12px, 15px) rotate(215deg) scale(0.89);
  }
  81% { 
    transform: translate(8px, -18px) rotate(320deg) scale(1.07);
  }
}

@keyframes organicFloat7 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  32% { 
    transform: translate(-20px, 25px) rotate(115deg) scale(1.16);
  }
  64% { 
    transform: translate(18px, -12px) rotate(235deg) scale(0.94);
  }
}

@keyframes organicFloat8 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  29% { 
    transform: translate(22px, 20px) rotate(108deg) scale(1.13);
  }
  58% { 
    transform: translate(-16px, -18px) rotate(218deg) scale(0.91);
  }
  87% { 
    transform: translate(12px, 10px) rotate(328deg) scale(1.06);
  }
}

@keyframes organicFloat9 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  36% { 
    transform: translate(-18px, -22px) rotate(135deg) scale(1.11);
  }
  72% { 
    transform: translate(20px, 15px) rotate(270deg) scale(0.96);
  }
}

@keyframes organicFloat10 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  26% { 
    transform: translate(28px, 18px) rotate(98deg) scale(1.19);
  }
  52% { 
    transform: translate(-14px, -20px) rotate(196deg) scale(0.87);
  }
  78% { 
    transform: translate(10px, 12px) rotate(294deg) scale(1.04);
  }
}



/* Hand-drawn circle accent behind title */
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -5%;
  width: 380px;
  height: 380px;
  background: transparent;
  border: 3px solid rgba(200, 100, 68, 0.15);
  border-radius: 48% 52% 51% 49% / 50% 51% 49% 50%;
  transform: rotate(-8deg);
  z-index: -1;
}

/* Floating paper-like shape */
.hero::after {
  content: "";
  position: absolute;
  bottom: 15%;
  right: 5%;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(232, 220, 200, 0.4), rgba(200, 100, 68, 0.2));
  border-radius: 64% 36% 55% 45% / 48% 62% 38% 52%;
  transform: rotate(15deg);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 8px 20px rgba(90, 74, 58, 0.15);
  z-index: -1;
  animation: gentleRotate 20s ease-in-out infinite;
}

@keyframes gentleRotate {
  0%, 100% { 
    transform: rotate(15deg) scale(1);
    border-radius: 64% 36% 55% 45% / 48% 62% 38% 52%;
  }
  50% { 
    transform: rotate(25deg) scale(1.05);
    border-radius: 55% 45% 64% 36% / 52% 48% 62% 38%;
  }
}

.hero__copy {
  display: grid;
  grid-auto-rows: max-content;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-self: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: "Fredoka One", cursive;
  font-size: clamp(3.5rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-brown);
  letter-spacing: -0.02em;
  text-shadow: 
    2px 2px 0 rgba(254, 249, 237, 0.8),
    4px 4px 12px rgba(90, 74, 58, 0.15);
  animation: titleSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: inline-block;
  transform-origin: left center;
  margin-bottom: 0.5rem;
}

/* Hand-drawn underline accent */
.hero__title::after {
  content: "";
  position: absolute;
  bottom: -0.15em;
  left: 0;
  width: 100%;
  height: 0.12em;
  background: var(--accent-warm);
  opacity: 0.4;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineDraw 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  border-radius: 100px;
}

/* Replace sparkle with organic dot */
.hero__title::before {
  content: "◉";
  position: absolute;
  top: -0.2em;
  right: -0.4em;
  font-size: 0.35em;
  color: var(--accent);
  animation: gentlePulse 4s ease-in-out infinite;
  opacity: 0.75;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 8px rgba(200, 100, 68, 0.3);
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes underlineDraw {
  to { transform: scaleX(1); }
}

@keyframes gentlePulse {
  0%, 100% { 
    opacity: 0.75;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero__lead {
  font-size: clamp(1.1rem, 1.75vw, 1.35rem);
  color: var(--text-muted);
  max-width: min(45ch, 36rem);
  animation: fadeInUp 1.2s ease-out 0.4s both;
  font-weight: 500;
  line-height: 1.7;
  position: relative;
  padding-left: 1.25rem;
}

/* Hand-drawn quote mark */
.hero__lead::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.15em;
  font-size: 2.5em;
  line-height: 0.6;
  color: var(--accent-warm);
  opacity: 0.35;
  font-family: Georgia, serif;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero__cta {
  justify-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  padding-inline: clamp(1.75rem, 3.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.9rem;
  animation: fadeInUp 1.2s ease-out 0.6s both;
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  border: 2px solid rgba(90, 74, 58, 0.25);
  color: var(--paper-cream);
  box-shadow: 
    0 4px 0 rgba(90, 74, 58, 0.25),
    0 10px 24px rgba(200, 100, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 7px 0 rgba(90, 74, 58, 0.25),
    0 14px 32px rgba(200, 100, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero__cta:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 rgba(90, 74, 58, 0.2),
    0 4px 12px rgba(200, 100, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Remove glass effect overlay */
.hero__cta::before {
  display: none;
}

/* Subtle shine effect */
.hero__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.hero__cta:hover::after {
  left: 120%;
}

.hero__cta .chev {
  width: 1.25rem;
  height: auto;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.hero__cta:hover .chev,
.hero__cta:focus-visible .chev {
  transform: translateX(0.35rem);
}
.hero__poster {
  position: relative;
  background: linear-gradient(145deg, var(--paper-cream), var(--paper-tan));
  border-radius: var(--radius-organic);
  padding: clamp(1.8rem, 4vw, 2.5rem);
  box-shadow: 
    0 2px 4px rgba(90, 74, 58, 0.08),
    0 8px 24px rgba(90, 74, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  animation: posterSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  transform-origin: center;
}

/* Paper edge effect - torn/organic */
.hero__poster::before {
  content: "";
  position: absolute;
  inset: clamp(0.5rem, 1.2vw, 0.7rem);
  border-radius: calc(var(--radius-medium) - 4px);
  border: 2px dashed rgba(200, 100, 68, 0.15);
  pointer-events: none;
}

/* Corner fold accent */
.hero__poster::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(225deg, rgba(90, 74, 58, 0.08) 0%, transparent 50%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
}

@keyframes posterSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.hero__poster:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 
    0 4px 6px rgba(90, 74, 58, 0.1),
    0 16px 40px rgba(90, 74, 58, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hero__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-medium) - 6px);
  box-shadow: 0 4px 12px rgba(90, 74, 58, 0.2);
}

.hero__poster--placeholder {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  color: var(--ink-brown);
  opacity: 0.5;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-family: "Fredoka One", cursive;
}
.hero__poster--placeholder strong {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  display: block;
  letter-spacing: 0.04em;
}
.hero__poster--placeholder span {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.95rem;
}

/* Underline Path - Static Line */
#squiggle-path {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  opacity: 0.6;
}

.hero__squiggle { 
  margin: -8px 0 4px;
  width: 100%;
  max-width: 100%;
  filter: drop-shadow(0 2px 4px rgba(200, 100, 68, 0.15));
}

/* --- Header nav links with paper-like hover --- */
.site-header__nav a {
  position: relative;
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.site-header__nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
  opacity: 1;
  background: rgba(254, 249, 237, 0.9);
  border-color: rgba(200, 100, 68, 0.2);
  box-shadow: 
    0 4px 12px rgba(90, 74, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-header__nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 100, 68, 0.3);
  border-radius: 12px;
}

/* Remove glow effect */
.site-header__nav a::after {
  display: none;
}

/* Active state with paper feel */
.site-header__nav a.active {
  color: var(--accent);
  background: linear-gradient(135deg, var(--paper-cream), var(--paper-tan));
  border-color: rgba(200, 100, 68, 0.25);
  box-shadow: 
    0 2px 8px rgba(90, 74, 58, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* --- Paper-inspired button (default) --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--paper-cream), var(--paper-tan));
  border: 2px solid rgba(200, 100, 68, 0.2);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 
    0 2px 0 rgba(90, 74, 58, 0.15),
    0 4px 12px rgba(90, 74, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.btn::before {
  display: none;
}

.btn::after {
  display: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 0 rgba(90, 74, 58, 0.15),
    0 8px 20px rgba(90, 74, 58, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 1;
  border-color: rgba(200, 100, 68, 0.3);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 
    0 1px 0 rgba(90, 74, 58, 0.15),
    0 2px 8px rgba(90, 74, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(200, 100, 68, 0.3),
    0 2px 0 rgba(90, 74, 58, 0.15),
    0 4px 12px rgba(90, 74, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Solid/gradient button variant */
.btn--solid {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  color: var(--paper-cream);
  border: 2px solid rgba(90, 74, 58, 0.25);
  box-shadow: 
    0 3px 0 rgba(90, 74, 58, 0.2),
    0 6px 16px rgba(200, 100, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Outline variant with paper feel */
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(200, 100, 68, 0.3);
  box-shadow: 
    0 2px 8px rgba(90, 74, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}



.content-box {
  background: linear-gradient(145deg, rgba(254, 249, 237, 0.88), rgba(249, 246, 240, 0.82)); 
  backdrop-filter: blur(20px) saturate(110%);
  border: 2px solid rgba(200, 100, 68, 0.18);
  border-radius: var(--radius-organic);
  padding: clamp(2.75rem, 5.5vw, 4.5rem);
  box-shadow: 
    0 4px 10px rgba(90, 74, 58, 0.09),
    0 16px 40px rgba(90, 74, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: contentSlideIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
  position: relative;
}

/* Paper corner accent */
.content-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(216, 145, 97, 0.2), transparent);
  border-radius: var(--radius-medium) 0 0 0;
  pointer-events: none;
}

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

.section {
  margin-bottom: 3rem;
  scroll-margin-top: 120px;
}
.section:last-child {
  margin-bottom: 0;
}

.section p {
  line-height: 1.75;
  color: var(--text-primary);
}

.section__title {
  font-size: 2.2rem;
  margin-bottom: 1.75rem;
  border-bottom: 3px solid var(--accent-warm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  opacity: 0.92;
  letter-spacing: 0.01em;
}

/* Add subtle handwritten underline effect */
.section__title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.25;
  transform: scaleX(0.95);
  border-radius: 2px;
}

.members-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.members-card {
  background: linear-gradient(135deg, rgba(254, 249, 237, 0.9), rgba(249, 246, 240, 0.85)); 
  backdrop-filter: blur(20px) saturate(110%);
  border: 2px solid rgba(200, 100, 68, 0.18);
  border-radius: calc(var(--radius-medium) - 2px);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 6px rgba(90, 74, 58, 0.08),
    0 6px 16px rgba(90, 74, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: cardFadeIn 0.6s ease-out both;
}

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

.members-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 
    0 6px 12px rgba(90, 74, 58, 0.12),
    0 16px 36px rgba(90, 74, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(200, 100, 68, 0.3);
}

.members-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  border: 3px solid var(--accent-warm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(200, 100, 68, 0.2);
}

.members-card:hover .members-card__avatar {
  transform: scale(1.05) rotate(2deg);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(200, 100, 68, 0.3);
}

.members-card__name {
  font-family: "Fredoka One", cursive;
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.members-card__role {
  font-weight: 600;
  color: var(--accent);
  margin: -0.5rem 0 0;
}

.members-card__description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

/* --- Events section --- */
.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(254, 249, 237, 0.9), rgba(249, 246, 240, 0.85)); 
  backdrop-filter: blur(20px) saturate(110%);
  border: 2px solid rgba(200, 100, 68, 0.18);
  border-radius: calc(var(--radius-medium) - 2px);
  padding: 1.5rem;
  box-shadow: 
    0 2px 6px rgba(90, 74, 58, 0.08),
    0 6px 16px rgba(90, 74, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s ease-out both;
}

.event-card:hover {
  transform: translateY(-5px) rotate(0.5deg);
  box-shadow: 
    0 8px 16px rgba(90, 74, 58, 0.14),
    0 20px 44px rgba(90, 74, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(200, 100, 68, 0.3);
}

/* NEW --- Dashed borders for all cards! */
.content-box::after,
.members-card::after,
.event-card::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border-radius: var(--radius-medium);
  border: 2px dashed rgba(200, 100, 68, 0.2);
  pointer-events: none;
  z-index: 0;
}

.event-card__media img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--accent-warm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(200, 100, 68, 0.2);
}

.event-card:hover .event-card__media img {
  transform: scale(1.05) rotate(-1deg);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(200, 100, 68, 0.3);
}
.event-card__title {
  margin: 0 0 0.5rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.badge {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: gentlePulse 3s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--soon { 
  background: linear-gradient(135deg, rgba(216, 145, 97, 0.25), rgba(200, 100, 68, 0.2));
  color: var(--ink-brown);
  border: 1px solid rgba(200, 100, 68, 0.35);
  box-shadow: 0 2px 6px rgba(200, 100, 68, 0.15);
}

/* Title icons */
.icon-title {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}
.event-card__meta {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
}
.event-card__meta .icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.35em;
}
.event-card__desc {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

@media (max-width: 540px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card__media img { width: 100%; height: 180px; }
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.contact-list li {
  padding: 0.5rem 0;
}

.contact-list a {
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
  font-weight: 600;
}

.contact-list a:hover {
  transform: translateX(6px);
  color: var(--accent-warm);
  opacity: 1;
}

.site-footer {
  margin-top: auto;
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  background: rgba(254, 249, 237, 0.92);
  border-top: 2px solid rgba(200, 100, 68, 0.15);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 -2px 10px rgba(90, 74, 58, 0.08);
}

.site-footer p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.site-footer .btn {
  animation: fadeInUp 1s ease-out 1s both;
}

/* Mobile and tablet responsive styles */
@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .site-header__brand {
    font-size: 1.3rem;
  }

  .site-header__nav {
    gap: 1.25rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 3rem;
    padding: 2rem 0;
  }

  .hero__doodle {
    top: -20px;
    right: 5%;
    width: 90px;
    height: 90px;
  }

  .hero::before {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
  }

  .hero::after {
    bottom: 8%;
    right: 50%;
    transform: translateX(50%);
    width: 160px;
    height: 160px;
  }

  .hero__copy {
    order: 1;
    justify-items: flex-start;
    gap: 1.75rem;
    max-width: none;
  }

  .hero__title {
    text-align: left;
    margin-inline: 0;
  }

  .hero__squiggle {
    justify-self: flex-start;
  }

  .hero__lead {
    text-align: left;
    justify-self: flex-start;
  }

  .hero__cta {
    justify-self: flex-start;
  }

  .hero__poster {
    order: 2;
    justify-self: center;
    margin-inline: auto;
    max-width: 380px;
    width: 100%;
  }
  
  .members-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .content-box {
    padding: clamp(2rem, 4vw, 3rem);
  }
}

/* Small mobile phones */
@media (max-width: 480px) {
  .site-header {
    padding: 14px 0;
  }

  .site-header__inner {
    gap: 0.85rem;
  }

  .site-header__brand {
    font-size: 1.15rem;
  }

  .site-header__nav {
    gap: 0.85rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header__nav a {
    padding: 0.35rem 0.65rem;
  }
  
  .hero__title {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }
  
  .members-list {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    grid-template-columns: 1fr;
  }
}

/* Very small screens and weird aspect ratios */
@media (max-width: 360px), (max-height: 600px) and (max-width: 768px) {
  .site-header {
    padding: 8px 0;
  }

  .site-header__brand {
    font-size: 1rem;
    gap: 8px;
  }

  .site-header__icon {
    width: 36px;
    height: 36px;
  }

  .site-header__nav {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .site-header__nav a {
    padding: 0.25rem 0.5rem;
  }
}