/* ==================================================
   Digital Libretto – Mobile First CSS
   ================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ece7df;
  color: #2a2a2a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.9;
}

main {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  scroll-snap-type: y mandatory;
}

section {
  background: #faf7f2;
  padding: 2rem 1.4rem;
  margin-bottom: 2.5rem;
  border-radius: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  scroll-snap-align: start;
}

.title-page {
  text-align: center;
}

.title-page h1 {
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.title-page .subtitle {
  font-size: 1rem;
  font-style: italic;
  color: #555;
}


p {
  margin-bottom: 1.5rem;
}

.notes {
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid #ddd;
  padding-top: 1.4rem;
}

a {
  color: #0a5bd3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Tablet and up */
@media (min-width: 768px) {
  body {
    font-size: 1.1rem;
  }

  main {
    max-width: 38rem;
    padding: 2.5rem 2rem 5rem;
  }

  section {
    padding: 2.5rem 2.2rem;
  }

  .title-page h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}