/* Public site header — the single source for the header on Home, About,
   Build Journal, Privacy and Terms.
   Values are dev's shared navbar (shared.css .shared-navbar / .logo-* /
   .nav-center / .mobile-menu*) resolved for dark mode, so the public site
   looks like dev without loading dev's whole stylesheet. Edit the header's
   look here and only here (behaviour: /site-header.js). */

.site-header{
  --sh-bg:#191919;
  --sh-border:#333333;
  --sh-text:#E0E0E0;
  --sh-text-2:#A0A0A0;
  --sh-accent:#D4862A;
  --sh-brand-22:#A25A0D;   /* dev's --brand-22, same in light and dark */
  --sh-font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  --sh-h:64px;
  position:sticky;top:0;z-index:1000;
  height:var(--sh-h);
  box-sizing:border-box;
  background:var(--sh-bg);              /* solid: page contour art sits behind (z-index -1) */
  border-bottom:1px solid var(--sh-border);
  box-shadow:0 1px 4px rgba(0,0,0,.3);
  font-family:var(--sh-font);font-size:16px;font-weight:400;line-height:1.6;
  text-align:left;                      /* never inherit a page's centring */
  -webkit-font-smoothing:antialiased;
  color:var(--sh-text);
}
.site-header *,.site-header *::before,.site-header *::after{box-sizing:border-box}
.site-header a:hover{opacity:1}
.site-header a:focus-visible,.sh-toggle:focus-visible{outline:2px solid var(--sh-accent);outline-offset:2px;border-radius:4px}

.sh-inner{
  box-sizing:content-box;max-width:1200px;margin:0 auto;padding:0 24px;height:100%;
  display:flex;align-items:center;justify-content:space-between;position:relative;
}

/* Brand: symbol spans both rows, wordmark over tagline, left-aligned */
.sh-logo{text-decoration:none;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:8px;color:var(--sh-text)}
.sh-logo svg{grid-row:1 / 3;width:38px;height:38px;flex-shrink:0;color:var(--sh-text)}
.sh-wordmark{display:flex;align-items:baseline;gap:0;font-size:1.5rem;line-height:1.6}
.sh-wordmark span{font-weight:300;color:var(--sh-text);letter-spacing:-.02em}
.sh-wordmark b{font-weight:700;color:var(--sh-brand-22)}
.sh-tagline{font-size:.5625rem;line-height:1;text-transform:uppercase;letter-spacing:.22em;color:var(--sh-text-2);white-space:nowrap}

/* Centre links */
.sh-nav{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:32px;align-items:center}
.sh-nav a{position:relative;color:var(--sh-text-2);text-decoration:none;font-size:.9375rem;font-weight:400;transition:color .2s ease}
.sh-nav a:hover{color:var(--sh-accent)}
/* Current page: colour + underline only (no weight change, so nothing shifts) */
.sh-nav a[aria-current="page"]{color:var(--sh-text)}
.sh-nav a[aria-current="page"]::after{content:'';position:absolute;bottom:-20px;left:0;right:0;height:2px;background:var(--sh-accent)}

/* Right: status badge (takes the place of dev's Sign In slot) */
.sh-status{display:inline-flex;align-items:center;gap:8px;font-size:.75rem;font-weight:500;letter-spacing:.02em;line-height:1.6;color:var(--sh-text-2);border:1px solid var(--sh-border);border-radius:999px;padding:5px 12px 5px 10px;white-space:nowrap}
.sh-status i{width:7px;height:7px;border-radius:50%;background:var(--sh-accent);box-shadow:0 0 0 3px rgba(212,134,42,.13)}

/* Mobile toggle + menu (dev's pattern) */
.sh-toggle{display:none;flex-direction:column;gap:4px;background:transparent;border:1px solid transparent;color:var(--sh-text-2);cursor:pointer;padding:8px;transition:background .2s ease,border-color .2s ease}
.sh-toggle:hover{background:#1F1F1F;border-color:var(--sh-accent)}
.sh-toggle span{display:block;width:24px;height:2px;background:var(--sh-text);transition:all .3s ease}
.sh-toggle[aria-expanded="true"] span:nth-child(1){transform:rotate(45deg) translate(6px,6px)}
.sh-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.sh-toggle[aria-expanded="true"] span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px)}

.sh-menu{display:none;position:absolute;top:var(--sh-h);left:0;right:0;flex-direction:column;gap:20px;padding:24px;background:var(--sh-bg);border-bottom:1px solid var(--sh-border);box-shadow:0 4px 6px rgba(0,0,0,.3)}
.sh-menu.open{display:flex}
.sh-menu a{color:var(--sh-text-2);text-decoration:none;font-size:1rem;font-weight:400;padding:8px 0}
.sh-menu a:hover{color:var(--sh-accent)}
.sh-menu a[aria-current="page"]{color:var(--sh-text);font-weight:600}
.sh-menu .sh-status{align-self:flex-start}

@media (max-width:768px){
  .sh-nav,.sh-inner>.sh-status{display:none}
  .sh-toggle{display:flex}
}
