/* The existing /studio/ link stays a real anchor in both PHP and React headers. */
.site-header.has-studio-link {
  padding-left: 44px !important;
}
.site-header.has-studio-link::before {
  display: none !important;
}
.site-header.has-studio-link > .studio-link {
  position: absolute !important;
  display: block !important;
  box-sizing: border-box;
  left: 0;
  top: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--plum, #8f315f);
  font-size: 0 !important;
  line-height: 0;
  transform: translateY(-50%) !important;
  z-index: 2;
  text-decoration: none;
}
.site-header.has-studio-link > .studio-link > span {
  display: none;
}
.site-header.has-studio-link > .studio-link::before {
  content: "" !important;
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--rose, #d98aa3), var(--plum, #8f315f));
  box-shadow: 0 0 0 7px #d98aa324;
  transform: translate(-50%, -50%);
  transition: box-shadow .16s ease;
}
.site-header.has-studio-link > .studio-link:hover::before,
.site-header.has-studio-link > .studio-link:focus-visible::before {
  box-shadow: 0 0 0 9px #d98aa33d;
}
.site-header.has-studio-link > .studio-link:focus-visible {
  outline: 2px solid var(--plum, #8f315f);
  outline-offset: -2px;
}
.site-header.has-studio-link > .studio-link::after {
  content: "Моето студио";
  position: absolute;
  left: 4px;
  top: calc(100% + 8px);
  width: max-content;
  padding: 8px 12px;
  border-radius: 9px;
  background: #5b233e;
  color: #fff;
  font: 12px/1.4 system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
html[lang="en"] .site-header.has-studio-link > .studio-link::after {
  content: "My studio";
}
.site-header.has-studio-link > .studio-link:hover::after,
.site-header.has-studio-link > .studio-link:focus-visible::after {
  visibility: visible;
  opacity: 1;
}
/* The mobile menu keeps a secondary entrance, presented as an ordinary link. */
.mobile-studio-link {
  background: transparent !important;
  color: var(--plum, #8f315f) !important;
  box-shadow: none !important;
  border: 0;
  border-top: 1px solid #8f315f22;
  border-radius: 0;
  margin-top: 12px;
  padding: 12px 0;
  min-height: 44px;
  font-size: 12px;
  font-weight: 400;
}
/* Keep the wordmark readable where the full navigation no longer fits. */
@media (min-width: 761px) and (max-width: 1000px) {
  .site-header.has-studio-link { grid-template-columns: minmax(0, 1fr) auto auto; }
  .site-header.has-studio-link > nav { display: none; }
  .site-header.has-studio-link > .mobile-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 44px;
    padding: 0 12px;
    gap: 8px;
    border: 1px solid #8f315f29;
    border-radius: 999px;
    color: var(--plum, #8f315f);
    background: transparent;
    font: 12px system-ui, sans-serif;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.has-studio-link > .studio-link::before { transition: none; }
}

/* Phone typography: preserve the display face, with room for the paintings. */
@media (max-width: 680px) {
  .home-identity { padding: 18px 20px; }
  .home-identity h1 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1;
    max-width: 9ch;
  }
  .home-identity > span { letter-spacing: .15em; line-height: 1.5; }
  .home-identity a { margin-top: 10px; }
  .section-heading h2,
  .home-exhibitions-copy h2 {
    font-size: clamp(30px, 8.2vw, 36px);
    line-height: 1.1;
    letter-spacing: -.035em;
  }
  .section-heading { gap: 20px; margin-bottom: 30px; }
  .material-note.page-section { padding-top: 46px; padding-bottom: 48px; }
  .material-note blockquote {
    margin: 20px 0 28px;
    font-size: clamp(27px, 7.4vw, 32px);
    line-height: 1.18;
    letter-spacing: -.025em;
  }
  .post-card { padding: 24px 22px; }
  .post-card h3 {
    margin: 14px 0;
    font-size: clamp(26px, 7.2vw, 30px);
    line-height: 1.14;
    letter-spacing: -.02em;
  }
  .post-card > p:not(.post-date) { font-size: 16px; line-height: 1.6; }
  .post-card a { margin-top: 18px; }
}
