/* Shared navigation: keep all three links visible on narrow screens. */
/* Blur only the content behind the navigation; its logo and text stay sharp. */
:root .header,
:root .header.is-scrolled {
  background:rgb(245 243 233 / 78%);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
:root[data-theme="dark"] .header { background:rgb(20 28 25 / 78%); }
.header nav a[aria-current="page"] { color:var(--accent); }
/* Use the supplied SVG silhouette with the existing theme's logo color. */
body .header .brand-mark.brand-logo {
  display:block;
  flex-shrink:0;
  width:58px;
  height:40px;
  background-color:var(--ink);
  -webkit-mask:url('./img/logo.svg') center / contain no-repeat;
  mask:url('./img/logo.svg') center / contain no-repeat;
  transition:width .22s ease,height .22s ease;
}
body .header.is-scrolled .brand-mark.brand-logo,
body.project-page .header .brand-mark.brand-logo,
body.content-page .header .brand-mark.brand-logo {
  width:46.4px;
  height:32px;
}
@media (max-width:760px) {
  body .header .brand-mark.brand-logo,
  body .header.is-scrolled .brand-mark.brand-logo,
  body.project-page .header .brand-mark.brand-logo,
  body.content-page .header .brand-mark.brand-logo {
    width:40.6px;
    height:28px;
  }
}
@media (prefers-reduced-motion:reduce) {
  body .header .brand-mark.brand-logo { transition:none; }
}
@media (max-width:600px) {
  body .header { gap:12px; }
  body .header .brand, body .header.is-scrolled .brand { gap:8px; font-size:12px; letter-spacing:.4px; min-width:0; }
  body .header .brand small { display:none; }
  body .header .brand-mark, body .header.is-scrolled .brand-mark { width:28px; font-size:36px; letter-spacing:-4px; flex-shrink:0; }
  body .header nav { gap:clamp(12px,3vw,18px); font-size:12px; flex-shrink:0; }
  body .header .theme-toggle { width:36px; height:36px; min-width:36px; min-height:36px; flex:0 0 36px; padding:6px; border-radius:50%; }
}
@media (max-width:359px) {
  body .header nav { gap:10px; }
}
