/* Shared top bar and footer for the public site (landing, articles). Markup lives in /static/js/site-chrome.js. */
@font-face { font-family:"Amstelvar"; src:url("/static/fonts/Amstelvar-Roman.woff2") format("woff2"); font-style:normal; font-weight:100 900; font-display:swap; }
@font-face { font-family:"Figtree"; src:url("/static/fonts/Figtree-Regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Figtree"; src:url("/static/fonts/Figtree-Medium.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }

:root {
  --c-ink:#111; --c-muted:#5c5c5c; --c-faint:#8a8780; --c-line:#d3d1cb;
  --c-card:#e6e4df; --c-raised:#f4f3ef; --c-bg:#fff;
  --c-accent:#0062e0; --c-accent-2:#4d92ee; --c-orange:#dd7a5c; --c-green:#2f9e62;
  --r-sm:6px; --r-md:10px; --r-lg:16px;
}
:root { --fs-hero:clamp(40px, 6vw, 76px); --fs-display:clamp(30px, 4vw, 38px); --fs-title:23px; --fs-body:18px; --fs-small:14px;
  --sp-1:8px; --sp-2:16px; --sp-3:24px; --sp-4:40px; --sp-5:64px; --sp-6:96px; }
:root { --sc-ink:var(--c-ink); --sc-muted:var(--c-muted); --sc-line:var(--c-line); --sc-bg:#fff; --sc-w:1120px; }
#site-header, #site-footer { display:contents; }
.sc-top, .sc-top *, .sc-footer, .sc-footer * { box-sizing:border-box; }
.sc-wrap { max-width:var(--sc-w); margin:0 auto; padding:0 24px; }

.sc-button { --button-ease:.25s cubic-bezier(.2,.7,.2,1); --primary:var(--c-accent); --border-c:#00000026; --hover-tint:#8b8b8b21;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; height:36px; min-height:36px; padding:7px 14px;
  border:1px solid var(--border-c); border-radius:var(--r-md); background:transparent; color:#000; font:500 16px/1 "Figtree",system-ui,sans-serif; white-space:nowrap; text-decoration:none; cursor:pointer; user-select:none;
  transition:background var(--button-ease), border-color var(--button-ease), color var(--button-ease), box-shadow var(--button-ease), transform .12s cubic-bezier(.2,.7,.2,1); }
html, body, a, button, summary, label, input, textarea, select, [role=button] { -webkit-tap-highlight-color:transparent; }
.sc-button:focus { outline:none; } .sc-button:focus-visible { outline:2px solid var(--primary); outline-offset:2px; } .sc-button:active { transform:scale(.98); }
.sc-button.primary { box-shadow:inset 0 0 0 100px var(--primary); color:#fff; border-color:transparent; }
@media (hover:hover) {
  .sc-button:hover { background:none; box-shadow:inset 0 0 0 100px var(--hover-tint); border-color:transparent; }
  .sc-button.primary:hover { box-shadow:inset 0 0 0 100px color-mix(in srgb, var(--primary) 85%, #000); color:#fff; }
}

.sc-top { position:sticky; top:0; z-index:20; padding:12px 16px 0; pointer-events:none; }
.sc-top .sc-wrap { pointer-events:auto; position:relative; max-width:var(--sc-w); display:flex; align-items:center; justify-content:space-between; height:60px; padding:0 10px 0 24px; border:1px solid var(--c-line); border-radius:var(--r-lg); background:color-mix(in srgb, var(--sc-bg) 86%, transparent); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); transition:box-shadow .2s; }
.sc-top.stuck .sc-wrap { box-shadow:0 6px 24px rgba(0,0,0,.08); }
.sc-logo img { display:block; height:30px; width:auto; }
.sc-nav { display:flex; align-items:center; gap:28px; font:400 16px/1.5 "Figtree",system-ui,sans-serif; white-space:nowrap; }
.sc-nav a:not(.sc-button) { text-decoration:none; color:var(--sc-muted); transition:color .15s; }
.sc-nav a:not(.sc-button):hover, .sc-nav a.on { color:var(--sc-ink); }
.sc-burger { display:none; background:none; border:0; padding:8px; cursor:pointer; color:var(--sc-ink); } .sc-burger svg { display:block; width:26px; height:26px; }

.sc-footer { background:var(--c-ink); color:rgba(255,255,255,.62); padding:64px 0 36px; font:400 var(--fs-small)/1.5 "Figtree",-apple-system,"Helvetica Neue",Arial,sans-serif; margin-top:0; }
.sc-footer .sc-cols { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; }
.sc-footer img { display:block; height:28px; width:auto; margin-bottom:14px; filter:invert(1); }
.sc-footer h4 { font-family:"Amstelvar",Georgia,serif; font-variation-settings:"opsz" 18; font-weight:350; font-size:var(--fs-body); color:#fff; margin:0 0 12px; }
.sc-footer a { display:block; text-decoration:none; color:inherit; margin-bottom:8px; } .sc-footer a:hover { color:#fff; }
.sc-footer .sc-copy { margin-top:36px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); font-size:var(--fs-small); }

.sc-nav .sc-button:not(.primary) { --border-c:transparent; }
@media (min-width:1001px) { .sc-top .sc-wrap { justify-content:flex-start; } .sc-nav { flex:1; margin-left:40px; } .sc-nav .sc-button:not(.primary) { margin-left:auto; margin-right:-26px; } }
@media (max-width:1000px) {
  .sc-footer .sc-cols { grid-template-columns:1fr 1fr; }
  .sc-burger { display:block; }
  .sc-nav .sc-button:not(.primary) { box-shadow:inset 0 0 0 100px var(--hover-tint); }
  .sc-burger path { transform-box:fill-box; transform-origin:center; transition:transform .38s cubic-bezier(.4,0,.2,1), opacity .2s ease; }
  .sc-burger[aria-expanded="true"] .b1 { transform:translateY(5px) rotate(45deg); }
  .sc-burger[aria-expanded="true"] .b2 { opacity:0; transform:scaleX(0); }
  .sc-burger[aria-expanded="true"] .b3 { transform:translateY(-5px) rotate(-45deg); }
  .sc-top { height:72px; }
  .sc-top .sc-wrap { height:auto; min-height:60px; flex-wrap:wrap; align-content:flex-start; }
  .sc-top .sc-wrap { transition:box-shadow .3s ease, background-color .3s ease; }
  .sc-top .sc-wrap:has(.sc-nav.open) { background:var(--sc-bg); box-shadow:0 12px 32px rgba(0,0,0,.1); }
  .sc-logo, .sc-burger { display:flex; align-items:center; height:58px; }
  .sc-nav { flex:0 0 100%; order:3; display:flex; flex-flow:row wrap; align-items:stretch; gap:0 10px; padding:0; border-top:1px solid transparent; max-height:0; opacity:0; overflow:hidden; visibility:hidden; transition:max-height .38s cubic-bezier(.4,0,.2,1), opacity .25s ease, padding .38s cubic-bezier(.4,0,.2,1), border-color .25s ease, visibility 0s linear .38s; }
  .sc-nav.open { max-height:340px; opacity:1; padding:0 0 14px; border-top-color:var(--sc-line); visibility:visible; transition-delay:0s; } .sc-nav a:not(.sc-button) { flex:0 0 100%; padding:12px 0; font-size:var(--fs-body); } .sc-nav a.sc-button { flex:1 1 0; min-width:0; margin-top:8px; height:44px; padding-inline:12px; } .sc-nav a.sc-button.primary { flex-grow:1.6; }
}
@media (max-width:560px) { .sc-wrap { padding:0 16px; } .sc-top { padding:8px 10px 0; height:62px; } .sc-top .sc-wrap { padding:0 6px 0 18px; min-height:54px; } .sc-logo, .sc-burger { height:52px; } .sc-footer .sc-cols { grid-template-columns:1fr; } }

#site-page { transition: opacity .18s ease; }
#site-page.sc-leave, #site-page.sc-enter { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #site-page { transition: none; } }
