/* ─────────────────────────────────────────────────────────────────────────
   Shared site chrome: masthead + footer, used verbatim (via
   partials/header.html and partials/footer.html) on every page that
   doesn't run its own bespoke header/footer.

   Every value below is `var(--token, fallback)` so this renders
   identically regardless of what a given page's own <style> block
   happens to define — pages on this site have drifted to different
   :root token names (--orange vs --blood-orange, --ink #111 vs
   #020618, etc.). The fallback values here are the canonical ones
   (see assets/editorial.css), so linking this file is enough on its
   own; it does not depend on the host page's tokens.

   Update the partial + this file together; then re-run
   `node scripts/apply-shared-chrome.mjs` to push the change to every
   page that includes them. Do not hand-edit the header/footer markup
   on an individual page — it will be overwritten on the next run.
   ───────────────────────────────────────────────────────────────────── */

.shell{
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
}

.masthead{
  position:sticky;
  top:0;
  z-index:60;
  border-bottom:1px solid var(--line,#d8d6cf);
  background:rgba(255,255,255,.96);
  font-family:var(--sans,"JUST Sans",system-ui,-apple-system,sans-serif);
  transform:translateY(0);
  transition:transform .28s ease;
}
.masthead.masthead--hide{transform:translateY(-100%)}
@media(prefers-reduced-motion:reduce){
  .masthead{transition:none}
}
.mast-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  min-height:76px;
}
.lockup{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.lockup-icon{display:block;height:28px;width:auto;flex:0 0 auto}
.lockup-wordmark{display:block;height:22px;width:auto;flex:0 0 auto}
.site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:24px;
  font-family:var(--sans,"JUST Sans",system-ui,-apple-system,sans-serif);
  font-size:16px;
  font-weight:700;
}
.site-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  color:var(--ink,#111111);
  text-decoration:none;
}
.site-nav a:not(.nav-cta)[aria-current="page"]{
  text-decoration:underline;
  text-underline-offset:3px;
}
.site-nav .nav-cta{
  justify-content:center;
  min-height:42px;
  padding:8px 15px;
  border:1px solid var(--orange,#ff563f);
  background:var(--orange,#ff563f);
  color:var(--ink,#111111);
  font-family:var(--sans,"JUST Sans",system-ui,-apple-system,sans-serif);
  text-decoration:none;
}
.site-nav .nav-cta:hover{
  border-color:var(--ink,#111111);
  background:var(--ink,#111111);
  color:var(--paper,#ffffff);
  text-decoration:none;
}
@media(max-width:760px){
  .site-nav a{font-size:14px}
}

.footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:44px 24px 24px;
  border-top:1px solid var(--line,#d8d6cf);
  font-family:var(--sans,"JUST Sans",system-ui,-apple-system,sans-serif);
  font-size:16px;
  color:var(--ink,#111111);
  text-align:center;
}
.footer p{margin:8px 0 0}
.footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.footer a:hover{color:var(--orange,#ff563f)}
.footer-cols{
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,180px));
  gap:8px 36px;
  width:min(760px,100%);
  margin:0 0 26px;
  text-align:left;
}
.footer-col{display:flex;flex-direction:column;gap:11px}
.footer-col-title{
  font-family:var(--mono,"Azeret Mono","SFMono-Regular",Consolas,monospace);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted,#5b5b57);
  margin:0;
}
.footer-col a{font-size:15px;text-decoration:none}
.footer-col a:hover{text-decoration:underline}
@media(max-width:720px){
  .footer-cols{grid-template-columns:repeat(2,minmax(130px,1fr));gap:26px 28px;width:min(420px,100%)}
}
@media(max-width:460px){
  .footer-cols{grid-template-columns:1fr;text-align:center;justify-items:center}
}
