/* Hero marajoara — study 05 approved for implementation. */
.hero-art {
  background-image: url('assets/hero-comprimida-q90.webp');
  background-position: center center;
  background-size: cover;
  transform: scale(1.015);
  animation: art-enter-marajoara 1.8s cubic-bezier(.22,1,.36,1) both;
}

/* A continuous charcoal veil protects the header and lower navigation text. */
.hero-shade {
  background: linear-gradient(
    180deg,
    rgba(25, 24, 22, .62) 0%,
    rgba(25, 24, 22, .43) 9%,
    rgba(25, 24, 22, .22) 20%,
    rgba(25, 24, 22, .08) 33%,
    rgba(25, 24, 22, .015) 46%,
    rgba(25, 24, 22, .04) 56%,
    rgba(25, 24, 22, .28) 67%,
    rgba(25, 24, 22, .62) 78%,
    rgba(25, 24, 22, .84) 90%,
    rgba(25, 24, 22, .94) 100%
  );
}

.site-nav {
  left: clamp(20px, 4vw, 76px);
  right: clamp(20px, 4vw, 76px);
  top: clamp(16px, 2.4vw, 38px);
  color: #f1eadb !important;
}

html body .site-nav :is(a, span, button, nav) {
  color: #f1eadb !important;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo {
  display: block;
  width: clamp(170px, 14vw, 270px) !important;
  height: auto !important;
  aspect-ratio: 1979.22 / 657.88;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .22));
}

body .brand-role {
  margin-top: 8px;
  color: #f1eadb !important;
  font-family: Didact, Pogonia, Arial, sans-serif;
  font-size: clamp(10px, .75vw, 13px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: .09em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.site-nav nav {
  gap: clamp(15px, 1.7vw, 30px);
  padding-top: 10px;
  font-size: clamp(13px, .98vw, 19px);
  text-shadow: 0 1px 9px rgba(0, 0, 0, .58);
}

.menu-toggle {
  color: #f1eadb !important;
  text-shadow: 0 1px 9px rgba(0, 0, 0, .58);
}

.hero {
  position: relative;
}

.section-links,
.section-links > a {
  color: #f1eadb !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.section-links > span {
  color: #bd7d54 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

/* Keep each separator attached to the title before it when the line wraps. */
.section-links > span[aria-hidden="true"] {
  display: none;
}

.section-links > a:not(:last-of-type)::after {
  content: "\00a0/\00a0";
  color: #bd7d54;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

/* Terracotta rollover echoes the hand-painted accents in the hero artwork. */
.section-links > a {
  transition: color .28s ease, text-shadow .28s ease;
}

.section-links > a:hover,
.section-links > a:focus-visible {
  color: #d58a61 !important;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .46);
}

.section-links > a:hover .section-tip,
.section-links > a:focus-visible .section-tip {
  color: #f1eadb !important;
}

.hero-citation {
  position: absolute;
  z-index: 2;
  top: 56%;
  left: clamp(22px, 4.15vw, 80px);
  width: min(31vw, 440px);
  margin: 0;
  color: rgba(241, 234, 219, .88);
  font-family: Didact, Pogonia, Arial, sans-serif;
  font-size: clamp(14px, 1.1vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .005em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

.hero-citation::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-bottom: 16px;
  background: #bd7d54;
  opacity: .9;
}

.hero-citation span {
  display: block;
}

@keyframes art-enter-marajoara {
  from { transform: scale(1.065); filter: blur(5px); }
  to { transform: scale(1.015); filter: blur(0); }
}

@media (min-width: 1800px) {
  .hero-art { transform: scale(1.015); }
}

@media (max-width: 700px) {
  .hero-art {
    background-position: 70% center;
    transform: scale(1.04);
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(25, 24, 22, .68) 0%,
      rgba(25, 24, 22, .45) 12%,
      rgba(25, 24, 22, .2) 26%,
      rgba(25, 24, 22, .04) 42%,
      rgba(25, 24, 22, .14) 58%,
      rgba(25, 24, 22, .58) 75%,
      rgba(25, 24, 22, .94) 100%
    );
  }

  .site-nav {
    left: 16px;
    right: 16px;
    top: 12px;
    gap: 15px;
  }

  .brand-logo {
    width: 138px !important;
  }

  body .brand-role {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.4;
  }

  .site-nav nav {
    gap: 17px;
    padding: 22px 25px;
    background: rgba(234, 229, 217, .97);
    text-shadow: none;
  }

  html body .site-nav nav.open,
  html body .site-nav nav.open a {
    color: #1b1a18 !important;
  }

  .hero-citation {
    top: 52%;
    left: 18px;
    width: min(68vw, 270px);
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-citation::before {
    margin-bottom: 10px;
  }
}

