/* ============================= */
/* Base Layout */
/* ============================= */

html {
  scroll-behavior: smooth;
}

body {
  background: #cfdcd0;
  color: #2f3e2f;
  font-family: "Georgia", "Times New Roman", serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.8;
  overflow-x: hidden; 
}

/* ============================= */
/* Top Hanging Flowers */
/* ============================= */

.top-vines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  /* CRITICAL: Allows clicking links through the image */
  pointer-events: none; 
  z-index: 10;
  opacity: 0.9;
}

/* ============================= */
/* Header & Nav */
/* ============================= */

header {
  text-align: center;
  margin-top: 160px;
  position: relative;
  z-index: 15; /* Sits above the vines for clear clicking */
}

header h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: #3e5c3e;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

nav {
  margin: 20px 0 35px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #4f7a4f;
  font-weight: bold;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

nav a:hover {
  color: #2f3e2f;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================= */
/* Main Paper Area */
/* ============================= */

main {
  background: #fdfcf7 url("images/creampaper.png") repeat;
  padding: 60px 50px;
  border-radius: 2px; /* Sharper "paper" corners */
  border: 1px solid #e5e0d0;
  box-shadow:
    2px 2px 0 rgba(0,0,0,0.02),
    0 10px 30px rgba(0,0,0,0.08);
  position: relative;
  z-index: 5;
  margin-bottom: 60px;
}

/* Inner decorative frame */
main::before {
  content: "";
  position: absolute;
  top: 15px; left: 15px; right: 15px; bottom: 15px;
  border: 1px solid rgba(79,122,79,0.15);
  pointer-events: none;
}

.clip {
  position: absolute;
  top: -28px;
  left: 40px;
  width: 85px;
  z-index: 12;
  filter: drop-shadow(2px 5px 4px rgba(0,0,0,0.15));
}

/* ============================= */
/* Decorations */
/* ============================= */

.divider {
  display: block;
  margin: 45px auto;
  width: 90px;
  opacity: 0.6;
  filter: sepia(0.5); /* Helps it blend with paper */
}

.corner-flower, .mascot, .pixel-bunny {
  position: fixed;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.corner-flower {
  bottom: 0;
  left: 0;
  width: 240px;
  opacity: 0.6;
  z-index: 1; 
}

.mascot {
  bottom: 10px;
  right: 15px;
  width: 160px;
  opacity: 0.85;
  z-index: 1;
}

.pixel-bunny {
  top: 140px;
  right: 5%;
  width: 55px;
  z-index: 12;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.15));
  animation: float 4s ease-in-out infinite; /* Added a tiny float! */
}

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

/* ============================= */
/* Footer */
/* ============================= */

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9em;
  color: #5f7a5f;
  position: relative;
  z-index: 6;
}

/* ============================= */
/* Mobile Optimization */
/* ============================= */

@media (max-width: 768px) {
  body { padding: 10px; }
  header { margin-top: 140px; }
  main { padding: 40px 25px; }

  .corner-flower, .mascot {
    width: 120px;
    opacity: 0.3;
  }
  
  .pixel-bunny { top: 110px; width: 45px; }
  .clip { width: 65px; left: 20px; top: -20px; }
}
