:root{
  --brand-color: #0f172a;
  --accent: #2563EB;
  --watermark-opacity: 0.06;
  --watermark-scale-lg: 0.75;
  --watermark-scale-sm: 1.2;
}

.brand {
  display:flex;
  align-items:center;
  gap:0.6rem;
  text-decoration:none;
  z-index:2;
}

.brand-img {
  display:block;
  height:44px;
  width:auto;
  flex-shrink:0;
  object-fit:contain;
  border-radius:4px;
}

.brand-name{
  font-family: "Playfair Display", serif;
  font-size:1.6rem;
  font-weight:700;
  color:var(--brand-color);
  line-height:1;
  letter-spacing:-0.02em;
}

@media(min-width:1024px){
  .brand-img { height:56px; }
  .brand-name { font-size:2.0rem; }
}

.brand-background{
  position:relative;
  z-index:1;
  overflow:visible;
}

.brand-background::before{
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background-image: url('/assets/avara-logo.png');
  background-repeat: no-repeat;
  background-position: 50% 20%;
  background-size: calc(var(--watermark-scale-lg) * 100%);
  opacity: var(--watermark-opacity);
  filter: saturate(0%) blur(0.2px);
  pointer-events: none;
  z-index: 0;
  transform: translateY(-4%);
  mix-blend-mode: multiply;
}

@media(max-width:768px){
  .brand-background::before{
    background-size: calc(var(--watermark-scale-sm) * 100%);
    opacity: calc(var(--watermark-opacity) * 0.6);
    background-position: 50% 10%;
  }
}

.brand-background > * {
  position: relative;
  z-index: 2;
}

.header-links a {
  color: rgba(15,23,42,0.75);
  text-decoration: none;
  transition: color .18s ease, transform .12s ease;
  padding: 0 0.5rem;
}
.header-links a:hover{ color: var(--accent); transform: translateY(-2px); }

.brand-background a,
.brand-background button,
.brand-background input,
.brand-background textarea{
  position: relative;
  z-index: 3;
}

@media (prefers-contrast: more) {
  .brand-name { color: #000; }
  .brand-img { filter: none; }
}
