:root {
  --bg: #fff8e7;
  --bg-alt: #ffe9a8;
  --primary: #ff4d8d;
  --primary-dark: #d81159;
  --secondary: #ffd23f;
  --accent: #00c2cb;
  --accent2: #7b2cbf;
  --text: #241a3a;
  --text-muted: #5c4b7a;
  --border: #241a3a;
  --shadow: 4px 4px 0 var(--border);
  --shadow-lg: 7px 7px 0 var(--border);
  --radius: 16px;
  --stripes: repeating-linear-gradient(
    90deg,
    var(--primary) 0 20px,
    var(--secondary) 20px 40px,
    var(--accent) 40px 60px,
    var(--accent2) 60px 80px
  );
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: "Fredoka One", "Comic Sans MS", cursive;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 0.4em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1em; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Header / Navigation */
.site-header {
  background: var(--bg-alt);
  border-bottom: 6px solid;
  border-image: var(--stripes) 6;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 0 rgba(36, 26, 58, 0.08);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.logo:hover { text-decoration: none; color: var(--primary); transform: rotate(-2deg) scale(1.03); }

.logo span {
  color: var(--accent2);
}

nav ul {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: var(--secondary);
  border-color: var(--border);
  box-shadow: 3px 3px 0 var(--border);
  text-decoration: none;
  transform: translate(-1px, -1px);
}

/* Hero */
.hero {
  background:
    radial-gradient(rgba(255, 255, 255, 0.55) 3px, transparent 3px) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%, var(--accent2) 100%);
  padding: 4rem 0 5rem;
  text-align: center;
  border-bottom: 6px solid;
  border-image: var(--stripes) 6;
}

.hero h1 {
  margin-bottom: 0.5em;
  color: #fff;
  text-shadow: 3px 3px 0 var(--border);
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(36, 26, 58, 0.5);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
}

.btn.secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 3px solid var(--primary);
}

.btn.secondary:hover {
  background: var(--secondary);
  color: var(--text);
  border-color: var(--border);
}

/* Main / Sections */
main {
  flex: 1;
  padding: 3rem 0;
}

section {
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title::after {
  content: "✦ ✦ ✦";
  display: block;
  color: var(--accent2);
  letter-spacing: 0.3em;
  font-size: 1.1rem;
  margin-top: 0.3rem;
}

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

.card {
  background: #fff;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-alt) 0 14px,
      #fff 14px 28px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  overflow: hidden;
  border-bottom: 3px solid var(--border);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img img.gallery-thumb {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.card-img img.gallery-thumb:hover {
  transform: scale(1.06);
}

.card-body {
  padding: 1.2rem 1.4rem 1.6rem;
}

.card-body h3 {
  color: var(--accent2);
  margin-bottom: 0.3em;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36, 26, 58, 0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(420px, 80vw);
  max-height: 50vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 4px solid #fff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.lightbox p {
  color: #fff;
  margin-top: 1rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--primary-dark);
}

/* Content layout */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.about-grid img,
.about-grid .photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  object-fit: cover;
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-grid .photo-placeholder,
  .about-grid img {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* Contact */
.contact-box {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--border);
  padding: 2rem 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-box .contact-item {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.contact-box .label {
  display: block;
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  color: var(--accent2);
  margin-bottom: 0.2rem;
}

/* Forms / Admin */
.form-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--border);
  padding: 2rem 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 2px 2px 0 var(--border);
}

.input-with-mic {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.input-with-mic input {
  flex: 1;
}

.mic-btn {
  display: none;
  flex: none;
  width: 44px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mic-btn:hover {
  border-color: var(--primary);
}

.mic-btn.listening {
  background: var(--primary);
  border-color: var(--border);
  animation: mic-pulse 1s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.btn.full-width {
  display: block;
  width: 100%;
  text-align: center;
}

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 2px solid;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.alert-error {
  background: #ffe1ea;
  color: #a0104f;
  border-color: var(--primary);
}

.alert-error::before { content: "⚠️ "; }

.alert-success {
  background: #d9fff2;
  color: #0d7a63;
  border-color: var(--accent);
}

.alert-success::before { content: "🎉 "; }

.admin-bar {
  background: var(--accent);
  color: #fff;
  border-bottom: 3px solid var(--border);
  padding: 0.7rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

.account-list {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  background: #fff;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-list .account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 2px solid var(--bg-alt);
}

.account-list .account-row:last-child { border-bottom: none; }

.account-list .account-row .you {
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 6px solid;
  border-image: var(--stripes) 6;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer nav ul {
  justify-content: center;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--primary-dark);
}
