/* PortusSophia™ shoreline identity header.
 * Activated only by header_variant: shoreline-identity.
 */

.site-header--shoreline-identity {
  min-height: var(--shoreline-height, clamp(13rem, 27vh, 21rem));
  background-color: var(--ps-navy, #0d1b2a);
  background-image: var(--shoreline-image);
  background-position: var(--shoreline-position, center 48%);
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.shoreline-identity-header-inner {
  position: relative;
  width: min(calc(100% - 2.5rem), var(--shell, 76rem));
  min-height: var(--shoreline-height, clamp(13rem, 27vh, 21rem));
  margin-inline: auto;
  padding: 0;
}

.shoreline-identity-logo {
  position: absolute;
  top: var(--shoreline-horizon, 36%);
  left: 0;
  width: clamp(6.5rem, 9vw, 8.5rem);
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 1px 0 rgba(13, 27, 42, 0.85)) drop-shadow(0 0.45rem 0.9rem rgba(13, 27, 42, 0.5));
}

.shoreline-identity-copy {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.35rem);
  right: 5rem;
  left: clamp(8.5rem, 12vw, 11rem);
}

.shoreline-identity-title {
  margin: 2px;
  color: var(--parchment, #faf8f5);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: clamp(2.25rem, 4.5vw, 4.2rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow: 0 1px 0 rgba(13, 27, 42, 0.9), 0 0.35rem 1rem rgba(13, 27, 42, 0.65);
}

.shoreline-identity-declaration {
  max-width: 48rem;
  margin: 0;
  color: var(--ps-navy, #0d1b2a);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(0.95rem, 1.65vw, 1.28rem);
  font-weight: revert;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(13, 27, 42, 0.9), 0 0.25rem 0.8rem rgba(13, 27, 42, 0.72);
}

.site-header--shoreline-identity .anchor-menu {
  position: absolute;
  top: clamp(0.65rem, 1.6vw, 1rem);
  right: 0;
}

.site-header--shoreline-identity .anchor-menu > summary.menu-trigger {
  color: var(--ps-navy, #0d1b2a);
  filter: drop-shadow(0 1px 0 rgba(13, 27, 42, 0.9)) drop-shadow(0 0.3rem 0.55rem rgba(13, 27, 42, 0.7));
}

@media (max-width: 52rem) {
  .shoreline-identity-logo {
    width: clamp(5.25rem, 10vw, 6.5rem);
  }

  .shoreline-identity-copy {
    right: 4.5rem;
    left: clamp(6.75rem, 13vw, 8rem);
  }

  .shoreline-identity-title {
    font-size: clamp(2.1rem, 6vw, 3.35rem);
  }
}

@media (max-width: 40rem) {
  .site-header--shoreline-identity {
    background-size: cover;
  }

  .shoreline-identity-header-inner {
    width: min(calc(100% - 1.5rem), var(--shell, 76rem));
  }

  .shoreline-identity-logo {
    top: 45%;
    width: 4.75rem;
  }

  .shoreline-identity-copy {
    top: 0.8rem;
    right: 3.9rem;
    left: 5.6rem;
  }

  .shoreline-identity-title {
    font-size: clamp(1.9rem, 9vw, 2.75rem);
  }

  .shoreline-identity-declaration {
    font-size: 0.92rem;
  }
}

@media (max-width: 28rem) {
  .shoreline-identity-declaration {
    display: none;
  }
}
