/*
  Semantic HTML defaults. Tailwind CDN injects Preflight in a <style> node that typically
  appears *after* linked stylesheets, so `h1 { … }` loses to `h1,h2,…{ font-size: inherit }`
  at the same specificity. Scoping with `html` → `html h1` raises specificity (0,0,2) so project
  defaults win without !important. Utilities on the element (.text-3xl etc.) still override.
*/

::selection {
  background-color: var(--color-brand-light);
  color: var(--color-brand-darkest);
}

html {
  /* ~17px: 17 ÷ UA default (normally 16px) × 1rem; rem-based sizes scale consistently */
  font-size: calc(17 / 16 * 1rem);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: "Figtree", sans-serif;
  background-color: #000;
}

html h1 {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
}

@media (min-width: 768px) {
  html h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  html h1 {
    font-size: 4rem;
  }
}

html h2 {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: var(--color-brand-darker);
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
}

@media (min-width: 768px) {
  html h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
  }
}

@media (min-width: 1024px) {
  html h2 {
    font-size: 3rem;
    margin: 0 0 2rem 0;
  }
}

html h3 {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.25;
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: var(--color-brand-darker);
}

@media (min-width: 1024px) {
  html h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
  }
}

html h4 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
  font-size: 1.125rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-neutral-darkest);
}

@media (min-width: 1024px) {
  html h4 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
  }
}

html h5 {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-neutral-darker);
}

html p {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.625;
  font-weight: 400;
  margin: 0 0 2rem 0;
  color: var(--color-neutral-darkest);
}

html ul,
html ol {
  margin: 0 0 1rem 0;
  padding-inline-start: 1.5rem;
  color: var(--color-neutral-darkest);
  line-height: 1.625;
}

html ul {
  list-style-type: disc;
}

html ol {
  list-style-type: decimal;
}

html li {
  margin: 0 0 1rem 0;
}

html li:last-child {
  margin-bottom: 0;
}

.font-serif-custom {
  font-family: "Inria Serif", serif;
}

iconify-icon {
  stroke-width: 1.5px;
}

/* Class on h1 already outranks Preflight; keep for clarity next to html h1 defaults */
h1.home-hero-title {
  font-family: "Figtree", sans-serif;
  font-weight: 900 !important;
}

@media (min-width: 1024px) {
  h1.home-hero-title {
    font-size: 6rem;
  }
}

h1.home-hero-title > span:first-of-type {
  font-weight: 300;
  font-size: 0.65em;
}
/*
h1.home-hero-title > span:last-of-type {
  font-weight: 900 !important;
}
*/
.page-description {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: -0.025em;
  color: rgb(255 255 255 / 0.9);
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
  max-width: 100%;
}

@media (min-width: 768px) {
  .page-description {
    font-size: 1.5rem;
    line-height: 1.35;
  }
}

@media (min-width: 768px) {
  .destination-single-hero .page-description {
    max-width: 75vw;
  }
}

@media (min-width: 1024px) {
  .page-description {
    max-width: 64rem;
  }

  .destination-single-hero .page-description {
    max-width: 40vw;
  }
}

section {
  background-color: white;
}

.section-gradient {
  background: var(--color-brand-darker);
}

.section-gradient h2 {
  color: white;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
input:not([type]),
textarea {
  border: 1px solid rgba(0, 0, 0, 0.4) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-neutral-midtone) !important;
}
