/* ---------- GENERAL PAGE ---------- */
body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background: #fdf6e3; /* cream background */
  color: #1a1a1a; /* dark black text */
}

.wrap {
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.header h1 {
  text-align: center;
  font-family: 'Playfair Display Black', serif;
  font-weight: 900;
  font-size: 2.8em;
  color: #1a1a1a; /* bold black */
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.header .small {
  text-align: center;
  font-size: 0.95em;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

/* ---------- TREE ---------- */
.tree {
  position: relative;
  margin-left: 50%;
  transform: translateX(-50%);
  height: 1000px;
}

.trunk {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #1a1a1a; /* black trunk */
  transform: translateX(-50%);
}

/* ---------- NODE LINKS ---------- */
.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 90px;
  font-size: 0.85em;
  color: #333;
  transition: transform 0.2s;
}

.node:hover {
  transform: scale(1.05);
}

/* Align left/right nodes */
.node.left {
  left: calc(50% - 120px);
}

.node.right {
  left: calc(50% + 40px);
}

/* ---------- NODE CONTENT ---------- */
.node .title {
  font-weight: 700;
  font-size: 0.95em;
  text-align: center;
  color: #1a1a1a;
}

.node .icon {
  font-size: 1.8em;
  margin-bottom: 5px;
  transition: transform 0.3s;
  animation: float 3s ease-in-out infinite;
}

.node .percent {
  font-size: 0.75em;
  margin-bottom: 3px;
  color: #333;
}

/* ---------- ICON FLOAT ANIMATION ---------- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

/* ---------- NODE HOVER EFFECT ---------- */
.node:hover .icon {
  transform: scale(1.2) rotate(-3deg);
  color: #1a1a1a;
}

.node:hover .title {
  color: #1a1a1a;
}

/* ---------- MINI PROGRESS BAR ---------- */
.node .bar {
  width: 50px;
  height: 6px;
  background: #e6e1da; /* subtle cream */
  border-radius: 12px;
  overflow: hidden;
}

.node .bar .fill {
  width: 0;
  height: 100%;
  background: #1a1a1a; /* black fill */
  border-radius: 12px;
  transition: width 0.4s ease;
}

/* ---------- PAGE TASK LIST ---------- */
.page {
  background: #fdf6e3;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.page h1 {
  font-size: 1.8em;
  font-family: 'Playfair Display Black', serif;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.taskList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
}

.task label {
  font-size: 0.9em;
  color: #333;
  font-weight: 500;
}

/* ---------- BACK LINK ---------- */
.back {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  transition: color 0.2s;
}

.back:hover {
  color: #555;
}