@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Quicksand:wght@500;600;700&family=Poppins:wght@400;500;700&display=swap');
@font-face {
    font-family: 'Amsterdam';
    src: url('./fonts/amsterdam.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
:root {
  --cream: #fffaf3;
  --white: #ffffff;
  --ink: #232323;
  --pink: #f5a7bd;
  --yellow: #f6d66b;
  --blue: #75c7df;
  --green: #9bd8a5;
  --teal: #7fd6c2;
  --orange: #f4a35d;
  --shadow: 0 18px 45px rgba(0,0,0,0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(117,199,223,0.26), transparent 24%),
    radial-gradient(circle at 90% 16%, rgba(155,216,165,0.24), transparent 25%),
    radial-gradient(circle at 15% 42%, rgba(245,167,189,0.18), transparent 24%),
    radial-gradient(circle at 88% 52%, rgba(246,214,107,0.22), transparent 26%),
    radial-gradient(circle at 18% 82%, rgba(127,214,194,0.22), transparent 24%),
    radial-gradient(circle at 85% 90%, rgba(244,163,93,0.16), transparent 24%),
    var(--cream);
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  line-height: 1.08;
}

p {
  line-height: 1.75;
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 34px 28px 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(117,199,223,0.28), transparent 24%),
    radial-gradient(circle at 88% 20%, rgba(155,216,165,0.25), transparent 26%),
    radial-gradient(circle at 18% 78%, rgba(245,167,189,0.18), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(246,214,107,0.2), transparent 26%),
    transparent;
}

.hero::before,
.hero::after {
  content: "✦";
  position: absolute;
  font-size: 3.2rem;
  opacity: 0.35;
  animation: twinkle 3s infinite ease-in-out;
  pointer-events: none;
}

.hero::before {
  top: 24%;
  left: 9%;
  color: var(--blue);
}

.hero::after {
  bottom: 22%;
  right: 10%;
  color: var(--green);
  animation-delay: 1.2s;
}

/* NAV */

.nav {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.nav-links {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 26px;
  margin-bottom: 28px;
}

.nav-links a {
  font-family: 'Quicksand', sans-serif;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

/* CLICKABLE TEXT LINKS */
a.location-link,
a.location-link:link,
a.location-link:visited {
  display: inline;
  color: #389bb7 !important;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: #75c7df !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition:
    color 0.25s ease,
    text-decoration-color 0.25s ease;
}

a.location-link:hover,
a.location-link:focus-visible,
a.location-link:active {
  color: #5fa76c !important;
  text-decoration-color: #9bd8a5 !important;
}

/* LOGO */

.logo-card {
  align-self: center;
  display: inline-block;
  background: rgba(255,252,247,0.22);
  backdrop-filter: blur(8px);
  padding: 26px 72px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  margin-bottom: 8px;
}

.logo {
  width: 520px;
  max-width: 92vw;
  display: block;
}

.hero-content {
  max-width: 990px;
  margin: 38px auto 0;
  text-align: center;
}

h1 {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
}

.hero-text {
  max-width: 640px;
  margin: 30px auto 0;
  font-size: 1.12rem;
}

.buttons {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  color: var(--ink);
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.primary {
  background: var(--blue);
}

.secondary {
  background: var(--white);
  border: 2px solid rgba(117,199,223,0.5);
}

/* SECTIONS */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 105px 28px;
  text-align: center;
}

.section-label {
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  max-width: 820px;
  margin: 0 auto 26px;
}

.section > p:not(.section-label) {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.about,
.promise,
.events,
.visit {
  background: rgba(255,255,255,0.88);
  border-radius: 42px;
  box-shadow: var(--shadow);
  margin-top: 44px;
  position: relative;
  overflow: hidden;
}

.about { border-top: 10px solid var(--blue); }
.promise { border-top: 10px solid var(--green); }
.events { border-top: 10px solid var(--yellow); }
.visit { border-top: 10px solid var(--pink); }

/* BOOK CARDS */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.shelf-book {
  background: var(--white);
  border-radius: 28px;
  padding: 34px 28px;
  text-align: center;
  min-height: 230px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: 0.22s ease;
}

.shelf-book:hover {
  transform: translateY(-7px);
}

.shelf-book span {
  font-size: 2.1rem;
  display: inline-block;
  margin-bottom: 20px;
}

.shelf-book h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.shelf-book.blue h3 { color: #389bb7; }
.shelf-book.green h3 { color: #5fa76c; }
.shelf-book.yellow h3 { color: #c79b16; }
.shelf-book.teal h3 { color: #3aa991; }
.shelf-book.pink h3 { color: #d96f8d; }
.shelf-book.orange h3 { color: #d68233; }

/* EVENTS + VISIT */

.event-box {
  margin: 42px auto 0;
  max-width: 580px;
  background: rgba(246,214,107,0.16);
  border: 2px dashed rgba(199,155,22,0.55);
  border-radius: 30px;
  padding: 30px;
}

.event-box h3 {
  font-size: 1.8rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.visit-grid div {
  background: var(--white);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.visit-grid h3 {
  color: #d96f8d;
  font-size: 1.6rem;
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 90px 28px 65px;
}

.footer-logo {
  width: 170px;
  margin-bottom: 22px;
}

.footer h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 10px;
}

.copyright {
  margin-top: 30px;
  font-size: 0.92rem;
  opacity: 0.75;
}

.signature-line {
    font-family: 'Amsterdam', cursive;
    font-size: 2.2rem;
    color: rgba(35,35,35,.82);
    margin-top: 48px;
    transform: rotate(-1deg);
    line-height: 1.2;
}

/* SHOOTING STAR */

.shooting-star {
  position: absolute;
  top: 12%;
  left: -120px;
  width: 140px;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0),
    rgba(255,255,255,0.95)
  );
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255,255,255,0.9);
  transform: rotate(-18deg);
  animation: shootingStar 22s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.shooting-star::after {
  content: "✦";
  position: absolute;
  right: -8px;
  top: -13px;
  font-size: 1.1rem;
  color: #fff8c6;
  text-shadow:
    0 0 10px #fff,
    0 0 18px #ffe89b;
}

/* PAGE SPARKLES */

.page-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-sparkle {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: pageTwinkle 4s ease-in-out infinite;
}

.s1  { top: 7%;  left: 6%;  color: var(--blue);   animation-delay: 0s; }
.s2  { top: 13%; right: 8%;  color: var(--green);  animation-delay: 1.1s; }
.s3  { top: 22%; left: 14%; color: var(--yellow); animation-delay: 2.2s; }
.s4  { top: 29%; right: 13%; color: var(--pink);   animation-delay: 0.7s; }

.s5  { top: 38%; left: 7%;  color: var(--teal);   animation-delay: 1.8s; }
.s6  { top: 44%; right: 6%; color: var(--orange); animation-delay: 2.8s; }
.s7  { top: 51%; left: 18%; color: var(--green);  animation-delay: 0.4s; }
.s8  { top: 57%; right: 17%; color: var(--blue);   animation-delay: 1.5s; }

.s9  { top: 65%; left: 5%;  color: var(--pink);   animation-delay: 2.4s; }
.s10 { top: 71%; right: 9%; color: var(--yellow); animation-delay: 0.9s; }
.s11 { top: 78%; left: 15%; color: var(--orange); animation-delay: 1.9s; }
.s12 { top: 84%; right: 16%; color: var(--teal);  animation-delay: 2.9s; }

.s13 { top: 91%; left: 8%;  color: var(--blue);   animation-delay: 0.5s; }
.s14 { top: 96%; right: 7%; color: var(--green);  animation-delay: 1.6s; }
.s15 { top: 34%; left: 48%; color: var(--yellow); animation-delay: 2.6s; }
.s16 { top: 73%; left: 52%; color: var(--pink);   animation-delay: 1.2s; }

.s1,
.s6,
.s11,
.s15 {
  font-size: 0.85rem;
}

.s3,
.s8,
.s13 {
  font-size: 1.55rem;
}

/* ANIMATIONS */

@keyframes twinkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.25;
  }

  50% {
    transform: scale(1.3) rotate(12deg);
    opacity: 0.7;
  }
}

@keyframes shootingStar {
  0% {
    transform: translate(-120px, -40px) rotate(-18deg);
    opacity: 0;
  }

  2% {
    opacity: 1;
  }

  7% {
    transform: translate(1450px, 340px) rotate(-18deg);
    opacity: 0;
  }

  100% {
    transform: translate(1450px, 340px) rotate(-18deg);
    opacity: 0;
  }
}
@keyframes pageTwinkle {
  0%,
  100% {
    opacity: 0.08;
    transform: scale(0.8) rotate(0deg);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.25) rotate(12deg);
  }
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

/* INNER PAGE NAVIGATION */

.inner-nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.inner-logo-link {
  display: inline-block;
  flex-shrink: 0;
}

.inner-logo {
  display: block;
  width: 190px;
  height: auto;
}

.inner-hero {
  min-height: auto;
  padding-bottom: 70px;
}

.inner-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}

.inner-nav-links a {
  font-family: 'Quicksand', sans-serif;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  transition: 0.2s ease;
}

.inner-nav-links a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

@media (max-width: 850px) {
  .inner-nav {
    padding: 16px 18px;
    flex-direction: column;
    gap: 15px;
  }

  .inner-logo {
    width: 150px;
  }

  .inner-nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .inner-nav-links::-webkit-scrollbar {
    display: none;
  }

  .inner-nav-links a {
    flex: 0 0 auto;
    font-size: 0.94rem;
  }
}

/* HOMEPAGE BOOKSHELF FEATURE */

.bookshelf-feature {
  background:
    radial-gradient(circle at top left, rgba(117,199,223,0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(245,167,189,0.16), transparent 34%),
    rgba(255,255,255,0.94);
  border-top: 10px solid var(--blue);
  border-radius: 42px;
  box-shadow: var(--shadow);
  margin-top: 44px;
  position: relative;
  overflow: hidden;
}

.bookshelf-feature > p:not(.section-label) {
  max-width: 760px;
}

.dedication-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.dedication-card {
  background: var(--white);
  border-radius: 28px;
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.dedication-card span {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 2.2rem;
}

.dedication-card h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  color: #389bb7;
}

.dedication-card p {
  margin: 0;
  font-size: 0.98rem;
}

.home-preview {
  margin-top: 44px;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 850px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
  }

  .hero {
    width: 100%;
    min-height: auto;
    padding: 18px 0 64px;
    overflow: hidden;
  }

  .hero::before {
    top: 19%;
    left: 4%;
    font-size: 2rem;
  }

  .hero::after {
    right: 5%;
    bottom: 10%;
    font-size: 2rem;
  }

    .dedication-details {
  grid-template-columns: 1fr;
  gap: 17px;
  margin-top: 34px;
}

.dedication-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 27px 22px;
  border-radius: 24px;
}

.bookshelf-feature {
  border-radius: 28px;
  margin-top: 28px;
}
    
  /* NAVIGATION */

  .nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 21px;
    margin: 0 0 22px;
    padding: 10px 18px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 4px 0;
    font-size: 0.94rem;
  }

  /* LOGO */

  .logo-card {
    width: calc(100% - 36px);
    max-width: 430px;
    margin: 0 auto;
    padding: 15px 18px;
    border-radius: 26px;
  }

  .logo {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
  }

  /* HERO TEXT */

  .hero-content {
    width: calc(100% - 36px);
    max-width: 600px;
    margin: 27px auto 0;
    padding: 0;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
    line-height: 1.04;
  }

  .hero-text {
    width: 100%;
    max-width: 500px;
    margin: 21px auto 0;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .buttons {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
  }

  .btn {
    width: 100%;
    max-width: 275px;
    padding: 14px 20px;
    text-align: center;
  }

  /* HOMEPAGE SECTIONS */

  .section {
    width: calc(100% - 32px);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 58px 20px;
  }

  .section-label {
    margin-bottom: 16px;
    font-size: 0.92rem;
    letter-spacing: 1.5px;
  }

  .section h2 {
    max-width: 100%;
    margin-bottom: 21px;
    font-size: clamp(2rem, 8.6vw, 2.85rem);
    line-height: 1.08;
  }

  .section > p:not(.section-label) {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .about,
  .promise,
  .events,
  .visit {
    margin-top: 28px;
    border-radius: 28px;
  }

  /* BOOK CARDS */

  .book-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 34px;
  }

  .shelf-book {
    width: 100%;
    max-width: 360px;
    min-height: auto;
    margin: 0 auto;
    padding: 27px 22px;
    border-radius: 24px;
  }

  .shelf-book span {
    margin-bottom: 13px;
    font-size: 1.9rem;
  }

  .shelf-book h3 {
    margin-bottom: 9px;
    font-size: 1.5rem;
  }

  .shelf-book p {
    margin-bottom: 0;
    font-size: 0.94rem;
  }

  /* STORYTIME */

  .event-box {
    width: 100%;
    max-width: 360px;
    margin: 30px auto 0;
    padding: 24px 20px;
    border-radius: 24px;
  }

  /* VISIT */

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .visit-grid div {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 25px 20px;
    border-radius: 24px;
  }

  .visit-grid h3 {
    font-size: 1.48rem;
  }

  .location-link {
    margin: 3px 0;
    overflow-wrap: anywhere;
  }

  /* FOOTER */

  .footer {
    width: 100%;
    margin: 0 auto;
    padding: 65px 18px 48px;
  }

  .footer-logo {
    width: 135px;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .footer h2 {
    font-size: clamp(1.9rem, 8vw, 2.65rem);
    line-height: 1.08;
  }

  .signature-line {
    margin-top: 34px;
    margin-left: 0;
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .copyright {
    margin-top: 26px;
    font-size: 0.78rem;
    line-height: 1.6;
  }

  /* SPARKLES */

  .shooting-star {
    display: none;
  }

  .page-sparkle {
    font-size: 0.8rem;
  }

  .s3,
  .s8,
  .s13 {
    font-size: 1.05rem;
  }
}
