/* Projects — page-specific styles (shared layout in layout.css) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --spellbound-purple-mystic: #30195e;
  --spellbound-purple-mystic-alpha: rgba(48,25,94,0.85);
  --spellbound-lavender-1: #e6d6ff;
  --spellbound-lavender-2: #dac9f9;
  --spellbound-glow-active: 0 0 4px #ffffff, 0 0 6px #dac9f9, 0 0 10px #dac9f9;
  --spellbound-glow-hover: 0 0 2px #ffffff, 0 0 4px #dac9f9;
}

body {
  margin: 0;
  background: url('background-forest.png') no-repeat center center fixed;
  background-size: cover;
  font-family: sans-serif;
  color: #2c1b47;
  cursor: url('wand.cur'), auto;
}

/* Header & site title */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 950px;
  margin: 20px auto 5px;
}
.header-row .top-link {
  font-family: 'IM Fell English SC', serif;
  font-size: 18px;
  color: var(--spellbound-lavender-2);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}
.header-row .top-link:hover {
  text-shadow: var(--spellbound-glow-hover);
  color: var(--spellbound-lavender-1);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IM Fell English SC', serif;
  font-size: 56px;
  color: var(--spellbound-lavender-1);
  text-shadow: 3px 3px 6px #000000aa;
  white-space: nowrap;
}
.site-header .star {
  font-size: 28px;
  color: #bfaeff;
  text-shadow: 1px 1px 3px #00000066;
  margin: 0 10px;
}

/* Sticky nav */
#global-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 950px;
  margin: 0 auto;
}
#global-nav {
  background: var(--spellbound-purple-mystic-alpha);
  padding: 4px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  font-family: 'IM Fell English SC', serif;
  font-size: 22px;
}
#global-nav a { color: var(--spellbound-lavender-2); text-decoration: none; transition: color .15s, text-shadow .15s; }
#global-nav a:hover { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-hover); }
#global-nav a.active { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-active); }

/* =================
   Two-column layout
   ================= */
.columns {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.sidebar-left {
  flex: 0 0 160px;
  background-color: rgba(244, 239, 255, 0.65);
  padding: 1rem;
  border-radius: 1rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 18px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.sidebar-left a {
  display: block;
  margin: 6px 0;
  color: #2c1b47;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
}
.sidebar-left a:hover { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-hover); }
.sidebar-left a.active { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-active); font-weight: 700; }
.sidebar-left a::after {
  content: "✦";
  display: block;
  font-size: 14px;
  color: #bfaeff;
  text-align: center;
  margin: 4px 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.sidebar-left a:last-child::after { content: none; }
.sidebar-left::-webkit-scrollbar { width: 8px; }
.sidebar-left::-webkit-scrollbar-thumb {
  background-color: #bda0ff;
  border-radius: 6px;
  border: 2px solid #f4efff;
}

/* Main content box */
.content-box {
  flex: 1 1 auto;
  overflow: auto;
  overflow-x: hidden;
  background-color: rgba(244, 239, 255, 0.65);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Section headers & cards */
.section-header {
  font-family: 'IM Fell English SC', serif;
  text-align: center;
  font-size: 32px;
  color: var(--spellbound-purple-mystic);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.5px;
}
.section-card {
  background-color: rgba(244, 239, 255, 0.65);
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
}
.section-card p { margin: 0 0 1rem; color: #2c1b47; line-height: 1.5; }

/* Scene images inside cards */
.scene-img { text-align: center; margin: 0.5rem 0; }
.scene-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* Learn More links styled like pill buttons */
.section-card a {
  display: inline-block;
  margin: 0.75rem auto;
  padding: 6px 12px;
  background: rgba(189,160,255,.25);
  border: 1px solid rgba(189,160,255,.55);
  border-radius: 999px;
  font-weight: 700;
  color: #2c1b47;
  text-decoration: none;
}
.section-card a:hover {
  background: rgba(189,160,255,.45);
  text-shadow: var(--spellbound-glow-hover);
}

/* Mobile */
@media (max-width: 1024px) {
  #global-nav-wrapper { width: 100%; }
  #global-nav { flex-wrap: wrap; font-size: 20px; }
  .header-row, .content-stack { width: 90%; }
  .columns { display: block; }
  .sidebar-left { display: none; }
  .content-box { width: 100%; height: auto; }
}