.site-header.refined-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: #fbf6ee;
  border-bottom: 1px solid #e9ddcf;
  box-shadow: 0 5px 18px rgba(35, 20, 12, .08);
}

.site-header.refined-header::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #b77d4c;
  content: "";
  pointer-events: none;
}

.site-header .refined-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  color: #38251c;
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.refined-mark {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e7d8c7;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 2px 8px rgba(62, 37, 22, .1);
}

.refined-mark img {
  display: block;
  width: 68px;
  height: 68px;
  flex: none;
  object-fit: contain;
}

.refined-wordmark {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  white-space: nowrap;
}

.refined-name {
  color: #43291d;
  font: 700 21px/1.05 var(--serif);
  letter-spacing: -.02em;
}

.refined-subtitle {
  color: #8c6749;
  font: 700 9px/1.2 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}

.site-header .refined-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  color: #50392b;
  font: 600 13px/1 var(--sans);
}

.refined-nav > a:not(.refined-nav-call) {
  position: relative;
  padding: 12px 0;
  transition: color 180ms ease;
}

.refined-nav > a:not(.refined-nav-call)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: #b77d4c;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.refined-nav > a:not(.refined-nav-call):hover {
  color: #9a6339;
}

.refined-nav > a:not(.refined-nav-call):hover::after {
  transform: scaleX(1);
}

.site-header .refined-nav-call {
  display: inline-flex;
  min-height: 46px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 0 19px;
  border: 1px solid #4a2c20;
  border-radius: 3px;
  background: #4a2c20;
  color: #fff8ef;
  font: 600 12px/1.1 var(--sans);
  letter-spacing: .01em;
  transition: background 180ms ease, color 180ms ease;
}

.refined-call-label {
  color: #e2c6a6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.refined-nav-call:hover {
  background: #68432e;
}

.site-header .refined-mobile-call {
  display: none;
}

.site-header.refined-header a:focus-visible {
  outline: 2px solid #a56f43;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .site-header.refined-header {
    height: 82px;
    gap: 13px;
    padding: 0 17px;
  }

  .site-header .refined-brand {
    gap: 9px;
  }

  .refined-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .refined-mark img {
    width: 54px;
    height: 54px;
  }

  .refined-name {
    font-size: 18px;
  }

  .refined-subtitle {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .site-header .refined-nav {
    gap: 18px;
    font-size: 12px;
  }

  .site-header .refined-nav-call {
    display: none;
  }

  .site-header .refined-mobile-call {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #4a2c20;
    border-radius: 3px;
    background: #4a2c20;
    color: #fff8ef;
    font: 700 11px/1 var(--sans);
    letter-spacing: .04em;
  }

  body:has(#menu:target) .site-header.refined-header {
    height: 82px;
  }

  body:has(#menu:target) .site-header.refined-header .refined-mark,
  body:has(#menu:target) .site-header.refined-header .refined-mark img {
    transition: none;
  }
}

@media (max-width: 430px) {
  .site-header.refined-header {
    height: 76px;
    gap: 9px;
    padding: 0 12px;
  }

  .site-header .refined-brand {
    gap: 7px;
  }

  .refined-mark {
    width: 51px;
    height: 51px;
    flex-basis: 51px;
  }

  .refined-mark img {
    width: 48px;
    height: 48px;
  }

  .refined-wordmark {
    gap: 4px;
  }

  .refined-name {
    font-size: 16px;
  }

  .refined-subtitle {
    font-size: 7px;
    letter-spacing: .1em;
  }

  .site-header .refined-nav {
    gap: 11px;
    font-size: 10px;
  }

  .site-header .refined-mobile-call {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  body:has(#menu:target) .site-header.refined-header {
    height: 76px;
  }

  body:has(#menu:target) .site-header.refined-header .refined-mark {
    width: 51px;
    height: 51px;
    flex-basis: 51px;
  }

  body:has(#menu:target) .site-header.refined-header .refined-mark img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 350px) {
  .site-header.refined-header {
    gap: 6px;
    padding-inline: 9px;
  }

  .site-header .refined-nav {
    gap: 8px;
    font-size: 9px;
  }

  .refined-name {
    font-size: 15px;
  }

  .site-header .refined-mobile-call {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refined-nav > a:not(.refined-nav-call),
  .refined-nav > a:not(.refined-nav-call)::after,
  .refined-nav-call {
    transition: none;
  }
}
