:root {
  --sc-paper: #fffefa;
  --sc-purple: #7040db;
  --sc-deep: #231b35;
  --sc-border: #282034;
  --sc-muted: #645e74;
  --sc-ring: #f7a72a;
}

html {
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

section[id], main[id], article[id] {
  scroll-margin-top: 7rem;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--sc-ring);
  outline-offset: 4px;
}

:where(button, a) {
  touch-action: manipulation;
}

:where(img, video) {
  height: auto;
}

:where(input, select, textarea) {
  max-width: 100%;
}

.sc-skip-link {
  position: fixed;
  left: 1rem;
  top: .5rem;
  z-index: 99999;
  padding: .7rem 1rem;
  color: #151123;
  background: #b8ff2c;
  border: 2px solid var(--sc-border);
  border-radius: .9rem;
  font-weight: 800;
  transform: translateY(-180%);
}

.sc-skip-link:focus {
  transform: translateY(0);
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 254, 252, .92);
  border-bottom: 1px solid rgba(35, 27, 53, .09);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

#navbar .logo-img {
  background: #fff;
  flex-shrink: 0;
}

#navbar .logo-img img {
  object-fit: contain;
  padding: 2px;
}

#navbar .nav-links-row a,
#navbar [data-nav-menu] a {
  border-radius: .5rem;
}

#navbar [data-nav-toggle] {
  position: relative;
  font-weight: 900;
}

#navbar [data-nav-toggle] i {
  display: none;
}

#navbar [data-nav-toggle]::before {
  content: "☰";
  display: block;
  font: 800 1.4rem/1 system-ui, sans-serif;
}

#navbar [data-nav-toggle][aria-expanded="true"]::before {
  content: "×";
  font-size: 2rem;
}

#navbar [data-nav-menu] {
  z-index: 95;
}

#navbar [data-nav-menu] a {
  display: block;
  padding: .4rem .7rem;
}

#navbar [data-nav-menu] a:hover,
#navbar [data-nav-menu] a:focus-visible {
  color: #5624c2;
  background: #f2ebff;
}

.sc-home-hero {
  min-height: 0 !important;
  background: radial-gradient(circle at 5% 25%, rgba(190, 255, 132, .18), transparent 35%), radial-gradient(circle at 97% 4%, rgba(188, 161, 255, .3), transparent 32%), var(--sc-paper);
  padding-top: 1.4rem !important;
  padding-bottom: clamp(3.25rem, 5vw, 5.5rem);
  isolation: isolate;
}

.sc-home-hero .hero-bg {
  opacity: .11 !important;
  background-position: center 32%;
  background-attachment: scroll;
  pointer-events: none;
}

.sc-home-hero .hero-bg-motion {
  transform: none !important;
  will-change: auto !important;
  animation: none !important;
}

.sc-home-hero .hero-content-shell {
  width: 100%;
  max-width: 76rem;
  padding-top: clamp(1rem, 2.5vw, 2.75rem) !important;
  padding-bottom: 1rem !important;
}

.sc-hero-wordmark {
  max-width: 15rem !important;
  margin-bottom: 1rem !important;
}

.sc-hero-wordmark img {
  aspect-ratio: auto;
}

.sc-home-hero .hero-title {
  margin-bottom: 1rem !important;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.sc-home-hero .hero-para {
  color: #49435a;
  max-width: 36rem;
  line-height: 1.55;
  margin-bottom: 1.7rem !important;
}

.sc-home-hero .hero-cta {
  gap: 1rem;
}

.sc-home-hero .hero-social {
  margin-top: 1.3rem !important;
}

.sc-explore-label {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto .75rem;
  color: #463a5a;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.sc-hero-destinations {
  width: min(100%, 62rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.3rem);
  text-align: left;
}

.sc-destination-card {
  display: block;
  position: relative;
  min-width: 0;
  aspect-ratio: 1.58;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid var(--sc-border);
  border-radius: 1.15rem;
  background: #e9deff;
  box-shadow: 4px 5px 0 var(--sc-border);
  color: #fff;
}

.sc-destination-card::after {
  content: "";
  position: absolute;
  inset: 24% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(13, 11, 22, .75));
}

.sc-destination-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sc-destination-tag {
  position: absolute;
  z-index: 2;
  bottom: .85rem;
  left: 1rem;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 850;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.sc-destination-arrow {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: #b8ff2c;
  border: 2px solid var(--sc-border);
  border-radius: 50%;
  color: #181321;
  font-size: 1.15rem;
  font-weight: 900;
}

.sc-destination-card:hover,
.sc-destination-card:focus-visible {
  border-color: #7140dc;
  box-shadow: 4px 5px 0 #7140dc;
}

.sc-home-hero .hero-scroll {
  display: none;
}

:where(.card-cartoon, .event-card-cartoon, .feedback-card) {
  border-radius: 1.5rem;
}

:where(.card-cartoon, .event-card-cartoon, .feedback-card) :where(img) {
  object-position: center;
}

:where(.btn-primary, .btn-secondary, .social-btn) {
  text-decoration: none;
}

#home-events-list :where(article, a),
#live-itinerari-grid :where(article, a) {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  #navbar {
    min-height: 4.5rem;
    height: 4.5rem;
  }

  #navbar [data-nav-menu] .max-w-7xl {
    padding-bottom: .75rem;
  }

  #navbar [data-nav-menu] > div > div {
    max-height: calc(100dvh - 5.3rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sc-home-hero {
    padding-top: .85rem !important;
    padding-bottom: 2.5rem;
  }

  .sc-home-hero .hero-content-shell {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  .sc-hero-wordmark {
    max-width: 10.5rem !important;
    margin-bottom: .9rem !important;
  }

  .sc-home-hero .hero-title {
    font-size: clamp(2.1rem, 10vw, 3rem) !important;
    line-height: 1.06 !important;
  }

  .sc-home-hero .hero-para {
    font-size: 1rem;
  }

  .sc-home-hero .hero-cta a {
    width: 100%;
    max-width: 23rem;
  }

  .sc-hero-destinations {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 21rem);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .2rem;
    gap: 1rem;
    padding: .2rem .15rem .55rem;
    scrollbar-width: thin;
    scrollbar-color: #ad91ec transparent;
  }

  .sc-destination-card {
    scroll-snap-align: start;
    aspect-ratio: 1.55;
  }

  section[class*="py-32"] {
    padding-top: 4.25rem !important;
    padding-bottom: 4.25rem !important;
  }

  :where(.card-cartoon, .event-card-cartoon, .feedback-card) {
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
