@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* One lockup across the landing, catalog, property details and opening curtain. */
.brand {
  --brand-ink: #242422;
  --brand-secondary: #85847e;
  --brand-blue: #194577;
  --brand-red: #d5282c;
  --brand-shadow: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  gap: 3px;
  width: max-content;
  height: auto;
  color: var(--brand-ink);
  font-family: Manrope, Arial, sans-serif;
  text-align: left;
  text-shadow: var(--brand-shadow);
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.25;
}
.brand .brand-name {
  display: block;
  margin: 0;
  color: var(--brand-ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -1.1px;
  line-height: 1.25;
}
.brand .brand-name span {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 400;
  letter-spacing: inherit;
}
.brand .brand-affiliation {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--brand-secondary);
  font-family: Manrope, Arial, sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 1.4px;
  line-height: 1.3;
  text-transform: uppercase;
}
.brand .brand-affiliation > span {
  display: inline;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}
.brand .brand-affiliation .remax {
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.brand .brand-affiliation .remax b {
  margin: 0;
  color: var(--brand-red);
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
}
/* Transparent lockup: use the light variant over the hero and blue overlays. */
.site-header .brand,
.entry-signature .brand {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body > .site-header:not(.is-scrolled) .brand,
.buy-intro > .site-header:not(.is-scrolled) .brand,
body.menu-open .site-header .brand,
.entry-signature .brand {
  --brand-ink: #fff;
  --brand-secondary: #ffffffd9;
  --brand-blue: #fff;
  --brand-red: #fff;
  --brand-shadow: 0 1px 5px #0003;
}
.entry-signature .brand .brand-name { font-size: 32px; letter-spacing: -1.6px; }
.entry-signature .brand .brand-affiliation { font-size: 9px; letter-spacing: 1.5px; }
.entry-signature .brand .brand-affiliation .remax { font-size: 12px; }
.message-bottom .brand .brand-name { font-size: 16px; letter-spacing: -.8px; }
.message-bottom .brand .brand-affiliation { font-size: 6.5px; letter-spacing: .8px; gap: 5px; }
.message-bottom .brand .brand-affiliation .remax { font-size: 8px; }

/* Keep the complete signature visible in compact catalog headers. */
.detail-header .brand { min-width: 0; flex-shrink: 1; }
.detail-header .brand .brand-name { font-size: 18px; letter-spacing: -.9px; }
.detail-header .brand .brand-name span { display: inline; }
.detail-header .brand .brand-affiliation { display: flex; font-size: 7px; letter-spacing: 1px; }
.detail-header .brand .brand-affiliation .remax { font-size: 9px; }
@media (max-width: 700px) {
  .site-header .brand .brand-name { font-size: 18px; letter-spacing: -.9px; }
  .site-header .brand .brand-affiliation { font-size: 6.5px; letter-spacing: .85px; gap: 5px; }
  .site-header .brand .brand-affiliation .remax { font-size: 9px; }
  .entry-signature .brand .brand-name { font-size: 28px; }
  .entry-signature .brand .brand-affiliation { font-size: 8px; letter-spacing: 1.2px; }
  .entry-signature .brand .brand-affiliation .remax { font-size: 10px; }
}
@media (max-width: 430px) {
  .detail-header .brand { gap: 2px; }
  .detail-header .brand .brand-name { font-size: 17px; letter-spacing: -.8px; }
  .detail-header .brand .brand-affiliation { font-size: 6.2px; letter-spacing: .65px; gap: 5px; }
  .detail-header .brand .brand-affiliation .remax { font-size: 8.5px; }
}

/* User-approved signature artwork, stored locally with a transparent alpha. */
.brand { --brand-image-filter: none; }
.brand .brand-signature {
  display: block;
  width: 210px;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: var(--brand-image-filter);
}
body > .site-header:not(.is-scrolled) .brand,
.buy-intro > .site-header:not(.is-scrolled) .brand,
body.menu-open .site-header .brand,
.entry-signature .brand { --brand-image-filter: brightness(0) invert(1); }
.site-header .brand .brand-signature { width: 252px; }
.entry-signature .brand .brand-signature { width: clamp(240px, 31vw, 470px); }
.site-footer .brand .brand-signature,
.message-bottom .brand .brand-signature { width: 170px; }
.detail-header .brand .brand-signature { width: 155px; max-width: 100%; }
@media(max-width:700px) {
  .site-header .brand .brand-signature { width: 180px; }
  .entry-signature .brand .brand-signature { width: 255px; }
  .detail-header .brand .brand-signature { width: 125px; }
  .message-bottom .brand .brand-signature { width: 135px; }
}
@media(max-width:350px) {
  .detail-header .brand .brand-signature { width: 105px; }
  .detail-header .back-results span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
