.site-header {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(0, 720px);
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 3vw, 30px) clamp(16px, 4vw, 32px) 0;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 8px clamp(12px, 3vw, 30px) -18px;
  z-index: 0;
  opacity: var(--paper-texture-hero-opacity, 0.19);
  mix-blend-mode: multiply;
  background-image: url("/papertexture.webp");
  background-size: 900px auto;
  background-position: center top;
  pointer-events: none;
}

.site-header .shared-brand-link {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: 6px;
}

.site-header .brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.site-header .shared-brand-link:focus-visible {
  outline: 2px solid #302d2a;
  outline-offset: 3px;
}

.site-header--home {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-bottom: clamp(12px, 2vw, 22px);
}

.site-header--home .shared-brand-link,
.site-header--home .brand-logo {
  width: min(560px, 100%);
  max-width: 560px;
}

.site-header .hero-copy {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: clamp(16px, 2.6vw, 28px) 0;
}

.site-header .eyebrow {
  margin: 0 0 8px;
  color: var(--wood, var(--gold, #b89566));
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header .hero-title {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5.4vw, 5.05rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.site-header .hero-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 55%;
  left: 51%;
  width: 118%;
  height: 88%;
  background: var(--accent, var(--blush, #d8b4a8));
  opacity: 0.48;
  mask: url("/watercolorsplat.webp") center / 100% 100% no-repeat;
  -webkit-mask: url("/watercolorsplat.webp") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  pointer-events: none;
}

.site-header .hero-title span {
  display: block;
}

.site-header .hero-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted, #6f6962);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 650;
  line-height: 1.55;
}

.site-header .feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-header .feature-badges span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 22px 0 13px;
  border: 1px solid rgba(196, 154, 108, 0.38);
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.78);
  color: var(--ink, #302d2a);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.site-header .feature-badges span::before {
  content: "\2713";
  margin-right: 7px;
  color: var(--wood, var(--gold, #b89566));
  font-weight: 900;
}

.site-header .feature-badges span::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 58px;
  height: 58px;
  pointer-events: none;
  background: url("/assets/roses/rose-09.webp") center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-8deg);
}

.site-header .feature-badges span:nth-child(2)::after {
  background-image: url("/assets/roses/rose-06.webp");
  opacity: 0.16;
  transform: rotate(6deg);
}

.site-header .feature-badges span:nth-child(3)::after {
  background-image: url("/assets/roses/rose-01.webp");
  opacity: 0.17;
  transform: rotate(11deg);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    text-align: center;
  }

  .site-header .brand-logo {
    width: min(380px, 90vw);
  }

  .site-header .hero-title {
    width: auto;
    justify-items: center;
  }

  .site-header .hero-copy > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .site-header .feature-badges {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header:not(.site-header--home) > .brand-logo,
  .site-header:not(.site-header--home) > .shared-brand-link {
    display: none;
  }

  .site-header {
    gap: 8px;
    padding: 16px 12px 0;
  }

  .site-header::after {
    inset: 2px 8px -10px;
    background-size: 760px auto;
  }

  .site-header--home .brand-logo {
    width: min(300px, 82vw);
  }

  .site-header--home .hero-title {
    font-size: clamp(2.15rem, 10vw, 2.7rem);
  }

  .site-header .feature-badges span {
    min-height: 32px;
    padding-right: 14px;
    font-size: 0.75rem;
  }
}

@media print {
  .site-header {
    display: none;
  }
}
