

/* ---------------------------------------
   GLOBAL PAGE BACKGROUND + TYPOGRAPHY
---------------------------------------- */

body {
  background-color: #d9c9b8; /* warm parchment */
  background-image:
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  color: #2e241c; /* rich walnut */
  font-family: 'Alegreya', serif;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------
   NAVIGATION BAR (dark forest)
---------------------------------------- */

nav {
  background-color: #3f4a39; /* deep forest sage */
  padding: 1rem 2rem;
  border-bottom: 3px solid #b8a999; /* aged oat */
  font-family: "Cormorant Garamond", serif;
  position: relative;
  z-index: 1000;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  color: #f2e9dd; /* warm linen */
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
}

/* Underline hover */
.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #9e4f4f; /* dusty rose */
  transition: width 0.25s ease;
}

.menu > li > a:hover::after {
  width: 100%;
}

/* Dropdowns */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #7c583d; /* lighter forest green */
  border: 1px solid #b8a999;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  display: none;
  z-index: 1100;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #f2e9dd;
  text-decoration: none;
  font-size: 1rem;
}

.submenu li a:hover {
  background-color: #c58e67;
}

/* ---------------------------------------
   PAGE TITLE (storybook spellbook)
---------------------------------------- */

h1 {
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  color: #2e241c;
  letter-spacing: 0.5px;
  position: relative;
  background: rgba(63, 74, 57, 0.15); /* forest tint */
  padding: 1rem 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  background-color: #9e4f4f; /* dusty rose */
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

.homepage-intro {
    max-width: 640px;
    margin: 0 auto 3rem;
    padding: 1.75rem 2rem;
    position: relative;
    font-family: 'Alegreya', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #3a352f;

    /* soft parchment wash */
    background: linear-gradient(
        to bottom right,
        rgba(244, 239, 228, 0.35),
        rgba(230, 225, 210, 0.15)
    );
    border-radius: 8px;
}

/* Ornate corner glyphs with color */
.homepage-intro::before,
.homepage-intro::after {
    position: absolute;
    font-size: 1.6rem;
    color: #8f9c84; /* light green */
    opacity: 0.75;
    font-family: 'Cormorant Garamond', serif;
}

/* Top-left ornate curl */
.homepage-intro::before {
    content: "❦";
    top: -2px;
    left: 4px;
}

/* Bottom-right ornate curl */
.homepage-intro::after {
    content: "❧";
    bottom: -2px;
    right: 4px;
}

/* Drop cap */
.homepage-intro p::first-letter {
    font-size: 2.4rem;
    font-family: 'Cormorant Garamond', serif;
    float: left;
    line-height: 1;
    padding-right: 8px;
    padding-top: 4px;
    color: #5a4a3a;
}

/* Gentle text shadow */
.homepage-intro p {
    text-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.homepage-flourish {
    position: relative;
    width: 95%;
    margin: 3.5rem auto 4rem;
    height: 60px; /* space for the flourish curves */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Left flourish */
.homepage-flourish::before {
    content: "";
    position: absolute;
    left: 0;
    width: 40%;
    height: 100%;
    border-radius: 100% 0 0 0; /* creates a sweeping curve */
    transform: rotate(2deg);
}

/* Right flourish */
.homepage-flourish::after {
    content: "";
    position: absolute;
    right: 0;
    width: 40%;
    height: 100%;
    border-radius: 0 100% 0 0; /* mirrored sweeping curve */
    transform: rotate(-2deg);
}

/* Center glyph */
.center-glyph {
    font-size: 1.5rem;
    color: #9e4f4f;
    font-family: 'Cormorant Garamond', serif;
    background: transparent;
    padding: 0 1rem;
    z-index: 2;
}
