/* The one site header (parts/site-header.php), Direction A "private studio editorial", approved Nov 14 2026.
   Loaded on every template after the page's own CSS. Colors and fonts are the site's existing values, aliased here
   because the homepage and inner pages define some tokens differently. */
.bh-hdr,.bh-menu,.bh-skip{--h-surface:#FAF7F2;--h-ink:#2A2420;--h-line:rgba(42,36,32,.12);--h-cta:#E6D3A8;--h-accent:#C5A063;
  --h-serif:'Fraunces',Georgia,serif;--h-sans:'Hanken Grotesk',-apple-system,BlinkMacSystemFont,sans-serif}
.bh-hdr *,.bh-menu *{box-sizing:border-box;margin:0}
.bh-hdr a,.bh-menu a{text-decoration:none;color:inherit}
.bh-hdr button,.bh-menu button{font-family:inherit;-webkit-appearance:none;appearance:none}

/* Skip link: hidden until focused, above the header */
.bh-skip{position:absolute;left:16px;top:-100px;z-index:10000;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;background:var(--h-surface);color:var(--h-ink);border:2px solid var(--h-ink);font:600 14px/20px var(--h-sans);text-decoration:none}
.bh-skip:focus{top:8px}

/* Bar: opaque cream, in normal flow, sticky. Above the film-grain layer (9998), below the cookie banner (10001+). */
.bh-hdr{position:sticky;top:0;z-index:9999;background:var(--h-surface);border-bottom:1px solid var(--h-accent);font-family:var(--h-sans);color:var(--h-ink);padding-top:env(safe-area-inset-top)}
.bh-hdr__row{max-width:1200px;margin:0 auto;min-height:80px;padding:0 24px;display:flex;align-items:center;gap:24px}
.bh-hdr__brand{display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;min-height:44px;color:var(--h-ink)}
.bh-hdr__mark{height:44px;width:auto;display:block;flex:0 0 auto}
.bh-hdr__name{font-family:var(--h-serif);font-size:22px;line-height:24px;font-weight:500;letter-spacing:0;white-space:nowrap}
.bh-hdr__links{display:flex;align-items:center;gap:2px;margin-left:auto}
.bh-hdr__links a{position:relative;display:inline-flex;align-items:center;min-height:44px;min-width:44px;justify-content:center;padding:0 11px;font-size:14px;line-height:20px;font-weight:500;letter-spacing:.01em;color:var(--h-ink)}
.bh-hdr__links a::after{content:'';position:absolute;left:11px;right:11px;bottom:9px;height:2px;background:var(--h-ink);transform:scaleX(0);transform-origin:left;transition:transform .15s}
.bh-hdr__links a:hover::after,.bh-hdr__links a:focus-visible::after,.bh-hdr__links a[aria-current]::after{transform:scaleX(1)}
.bh-hdr__links a[aria-current]{font-weight:600}
.bh-hdr__book{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;min-width:184px;padding:0 22px;background:var(--h-cta);border:1px solid var(--h-ink);border-radius:2px;font-size:14px;line-height:20px;font-weight:600;color:var(--h-ink);white-space:nowrap;transition:background-color .15s}
.bh-hdr__book:hover,.bh-hdr__book:active{background:var(--h-accent)}
.bh-hdr a:focus-visible,.bh-hdr button:focus-visible,.bh-menu a:focus-visible,.bh-menu button:focus-visible{outline:2px solid var(--h-ink);outline-offset:3px}
.bh-hdr__toggle,.bh-hdr__services{display:none}
.bh-hdr__icon,.bh-hdr__icon::before,.bh-hdr__icon::after{display:block;width:20px;height:2px;background:var(--h-ink);border-radius:1px}
.bh-hdr__icon{position:relative}
.bh-hdr__icon::before,.bh-hdr__icon::after{content:'';position:absolute;left:0}
.bh-hdr__icon::before{top:-6px}.bh-hdr__icon::after{top:6px}
/* Bag (Shop slot, same switch as the Shop link), just before Book. Count hidden at 0; shop.js sets it on store pages. */
.bh-hdr .bh-bag{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:44px;min-height:44px;margin:0;color:var(--h-ink)}
.bh-hdr .bh-bag-count{position:absolute;top:4px;right:2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--h-accent);color:var(--h-ink);font-size:11px;font-weight:700;line-height:17px;text-align:center}
.bh-hdr .bh-bag-count[data-count="0"]{display:none}

@media (max-width:1199px){
  .bh-hdr__row{min-height:64px}
  .bh-hdr__links{display:none}
  .bh-hdr__mark{height:40px}
  .bh-hdr__name{font-size:20px}
  .bh-hdr__book{margin-left:auto;min-width:176px}
  .bh-hdr .bh-bag{margin-left:auto}
  .bh-hdr .bh-bag+.bh-hdr__book{margin-left:0}
  .bh-hdr__toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;min-height:44px;min-width:44px;padding:0 12px;margin-right:-12px;background:none;border:0;font:500 14px/20px var(--h-sans);color:var(--h-ink);cursor:pointer}
  .bh-hdr__services{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--h-line)}
  .bh-hdr--shop .bh-hdr__services{grid-template-columns:1fr 1fr 1fr}
  .bh-hdr__services a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:8px 12px;font-size:14px;line-height:20px;font-weight:600;text-align:center;color:var(--h-ink)}
  .bh-hdr__services a+a{border-left:1px solid var(--h-line)}
  .bh-hdr__services a[aria-current]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
}
@media (max-width:599px){
  .bh-hdr__row{padding:0 16px;gap:8px}
  .bh-hdr__brand{gap:8px}
  .bh-hdr__mark{height:32px}
  .bh-hdr__name{font-size:16px;line-height:17px;white-space:normal}
  .bh-hdr__name span{display:block}
  /* The row never clips: the name and the Book label may wrap (Book to two lines inside its 44px+ target). */
  .bh-hdr__brand{flex:0 1 auto;min-width:0}
  .bh-hdr__book{flex:0 1 auto;min-width:0;padding:4px 14px;white-space:normal;text-align:center;line-height:18px}
  .bh-hdr__toggle{width:44px;padding:0;margin-right:-6px}
  .bh-hdr__toggle-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .bh-hdr__services a{padding:8px 6px}
}
@media (max-width:379px){.bh-hdr__name{display:none}}

/* Menu: one modal sheet (native <dialog>), opaque, full height, natural top-down flow */
.bh-menu{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--h-surface);color:var(--h-ink);font-family:var(--h-sans)}
.bh-menu[open]{display:flex;flex-direction:column}
.bh-menu::backdrop{background:rgba(42,36,32,.25)}
.bh-menu__top{flex:0 0 auto;min-height:64px;display:flex;align-items:center;justify-content:space-between;padding:env(safe-area-inset-top) 16px 0 24px;border-bottom:1px solid var(--h-accent)}
.bh-menu__title{margin:0;font-family:var(--h-serif);font-size:24px;line-height:28px;font-weight:500}
.bh-menu__close{display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:0 14px;background:none;border:1px solid rgba(42,36,32,.3);border-radius:2px;font:500 14px/20px var(--h-sans);color:var(--h-ink);cursor:pointer}
.bh-menu__close span{font-size:20px;line-height:1}
.bh-menu__body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 24px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
.bh-menu__body a{display:flex;align-items:center;flex:0 0 auto;min-height:52px;border-bottom:1px solid var(--h-line);font-size:18px;line-height:24px;font-weight:500;color:var(--h-ink)}
.bh-menu__body a.bh-menu__svc{font-family:var(--h-serif);font-size:22px;line-height:28px}
.bh-menu__body a[aria-current]{font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.bh-menu__body a.bh-menu__book{margin-top:24px;justify-content:center;border:1px solid var(--h-ink);border-radius:2px;background:var(--h-cta);font-size:16px;font-weight:600}
.bh-menu__body a.bh-menu__book:hover{background:var(--h-accent)}
@media (prefers-reduced-motion:reduce){.bh-hdr__links a::after,.bh-hdr__book{transition:none}}

/* Without JavaScript, or without <dialog> support: no menu button, every link in a wrapped row (html.bh-hdr-plain) */
html.bh-hdr-plain .bh-hdr__toggle{display:none}
@media (max-width:1199px){html.bh-hdr-plain .bh-hdr__row{flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
  html.bh-hdr-plain .bh-hdr__links{display:flex;flex-wrap:wrap;width:100%;margin-left:0}}

/* Page layout with the in-flow header (the old fixed headers needed this space added back by each page).
   --bh-hdr-h is the header's real height, kept current by assets/header.js; the fallbacks match the default sizes. */
:root{--bh-hdr-h:81px}
@media (max-width:1199px){:root{--bh-hdr-h:110px}}
html{scroll-padding-top:calc(var(--bh-hdr-h) + 16px)}
.page-top{padding-top:40px}
@media (max-width:1199px){.page-top{padding-top:32px}}
@media (max-width:599px){.page-top{padding-top:24px}}
/* Homepage: the cover photo and the pinned "craft to result" section start below the bar, not under it */
.cover{height:calc(100svh - var(--bh-hdr-h))}
@media (min-width:861px){.pin-stage{top:var(--bh-hdr-h);height:calc(100svh - var(--bh-hdr-h))}}
