/* === Polished and Refined for Story Presentation === */
:root {
  --font-body: 'Lora', serif;
  --font-head: 'Playfair Display', serif;

  --bg-light: #fdfaf5;
  --bg-dark: #0b1114;

  --text-light: #1e2022;
  --text-dark: #f8fafc;

  --accent: #f4a261;
  --shadow: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #0b1114;
    --text-light: #f8fafc;
    --accent: #ffc887;
    --shadow: rgba(255, 255, 255, 0.03);
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.125rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

header img {
  width: 90vw;
  max-width: 600px;
  border-radius: 1rem;
  box-shadow: 0 6px 20px var(--shadow);
}

h1 {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: clamp(2.25rem, 6vw, 3rem);
  margin: 1rem 0 0.2rem;
}

h2 {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

main {
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

section {
  margin: 3rem auto;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease forwards;
  animation-delay: calc(var(--i, 1) * 0.2s);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section img {
  display: block;
  margin: 0 auto 1.5rem;
  width: 95%;
  max-width: 720px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 4px 14px var(--shadow);
}

.small-photo {
  width: auto;
  max-width: 300px;
  max-height: 300px;
  display: block;
  margin: 2rem auto 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 3px 10px var(--shadow);
}

p {
  max-width: 90%;
  margin: 1.1rem auto;
  font-size: 1.2rem;
  line-height: 1.75;
  padding: 0 1rem;
  text-align: left;
  text-wrap: pretty;
}

footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0.5rem auto;
}

/* PDF & Share Links */
footer .download-link {
  font-weight: 500;
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
}

footer .download-link a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}



.divider {
  border: none;
  border-top: 2px dashed var(--accent);
  width: 65%;
  margin: 4.5rem auto 3rem;
}

.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
  width: 100%;
}

.back-to-top:hover {
  text-decoration: underline;
}

.credits p {
  font-size: 1.1rem;
  margin-top: 1rem;
}

@media screen and (max-width: 480px) {
  section {
    margin: 2rem auto;
    padding: 1rem 0.5rem;
  }

  p {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .small-photo {
    max-width: 85%;
    height: auto;
  }
}
.dedication {
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  margin: 1rem auto 0.5rem;
  max-width: 80%;
  opacity: 0.9;
}

.dedication-divider {
  border: none;
  border-top: 1px solid var(--accent);
  width: 50%;
  margin: 1.5rem auto 2rem;
}
