@font-face {
  font-family: 'Lovelo';
  src: url('lovelo_black.woff') format('woff'),
       url('lovelo_black.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --yellow: #e1f16b;
  --purple: #cb6ce6;
  --purple-dark: #a84fc4;
  --white: #ffffff;
  --text-muted: rgba(225,241,107,0.65);
  --card-bg: rgba(255,255,255,0.08);
  --card-border: rgba(225,241,107,0.20);
  --nav-h: 64px;
}

html, body {
  min-height: 100vh;
  background-color: var(--purple);
  color: var(--yellow);
  font-family: 'Lovelo', Georgia, serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(203,108,230,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(225,241,107,0.18);
  z-index: 50;
}

.nav-logo {
  font-family: 'Lovelo', serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(168, 50, 200, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
  z-index: 49;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateX(0); }

.nav-item {
  font-family: 'Lovelo', serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(225,241,107,0.5);
  text-decoration: none;
  padding: 0.6rem 2rem;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  width: 100%; text-align: center;
}
.nav-item:hover, .nav-item.active {
  color: var(--yellow);
  background: rgba(225,241,107,0.08);
}
.nav-item.active { color: var(--yellow); }

/* ── Page wrapper ── */
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
  display: flex; flex-direction: column; align-items: center;
}

/* ── Section title ── */
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 0.4rem;
  animation: fadeUp 0.6s ease both;
}
.section-title {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1; text-align: center;
  animation: fadeUp 0.6s 0.1s ease both;
  margin-bottom: 2.5rem;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(1.4rem,4vw,2.2rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.10);
}

/* ── Button ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--yellow); color: var(--purple);
  font-family: 'Lovelo', serif;
  font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 2rem; border-radius: 100px; border: none; cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 4px 20px rgba(225,241,107,0.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(225,241,107,0.42); filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent; color: var(--yellow);
  border: 1.5px solid rgba(225,241,107,0.38);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(225,241,107,0.08); box-shadow: none; filter: none; }

/* ── Footer ── */
.footer {
  margin-top: auto; padding-top: 3rem;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.28;
  text-align: center;
}

/* ── Prose text ── */
.prose {
  font-family: Georgia, serif; font-style: italic;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  line-height: 1.75; opacity: 0.78;
}

/* ── Divider ── */
.divider {
  width: 100%; height: 1px;
  background: rgba(225,241,107,0.15);
  margin: 1.8rem 0;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
