/* Shared brand chrome for knowledge artifacts: fonts, tokens, site header and footer.
   Link it from every artifact; copy the header/footer markup from an existing artifact. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-display: swap; src: url(fonts/inter-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --ink: #FFFFFF;
  --highlight: #D4D4D4;
  --muted: #A3A3A3;
  --line: #333333;
  --sans: 'Inter', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body > main { flex: 1; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap { padding-left: clamp(1.25rem, 4vw, 4rem); padding-right: clamp(1.25rem, 4vw, 4rem); }
.skip-link { position: absolute; top: -100px; left: 1rem; background: #fff; color: #000; padding: 1rem; z-index: 20; font-weight: 700; }
.skip-link:focus { top: 1rem; }
/* Mirrors the site header and footer in src/styles/global.css and src/layouts/Layout.astro.
   Header (2026-09-26): a meta strip that scrolls away, then a sticky bar of boxed links. */
:root { --strip-h: 2.25rem; --bar-h: 3.5rem; --pad: clamp(1.25rem, 4vw, 4rem); --concrete: #525252; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { position: sticky; top: calc(-1 * var(--strip-h)); z-index: 30; background: var(--bg); }
.meta-strip { display: flex; align-items: center; gap: 1rem; height: var(--strip-h); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; font: 400 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meta-ticker { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.meta-ticker > div { display: inline-block; color: var(--highlight); animation: meta-ticker 90s linear infinite; }
.meta-ticker b { color: var(--ink); font-weight: 700; }
.meta-ticker i { font-style: normal; color: var(--concrete); padding: 0 1rem; }
.meta-ticker:hover > div { animation-play-state: paused; }
@keyframes meta-ticker { to { transform: translateX(-50%); } }
.meta-status { display: inline-flex; align-items: center; gap: .6rem; height: 100%; padding-right: 1.5rem; border-right: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.meta-status:hover .meta-cta { text-decoration: underline; text-underline-offset: .35em; }
.meta-status-phone { display: none; }
.pulse { position: relative; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink); animation: pulse-dot 2s ease-in-out infinite; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes pulse-dot { 50% { opacity: .35; } }
.header-bar { display: flex; align-items: stretch; height: var(--bar-h); border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; margin-right: auto; padding-left: var(--pad); padding-right: 1.5rem; font-size: 1.125rem; font-weight: 900; letter-spacing: -.05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; }
.site-nav a { display: flex; align-items: center; padding: 0 1.5rem; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; transition: background 120ms linear, color 120ms linear; }
.site-nav a:hover { background: #141414; color: var(--ink); }
.site-nav a[aria-current] { background: var(--ink); color: var(--bg); }
.site-nav a.nav-cta { gap: .5rem; background: var(--ink); color: var(--bg); border-left-color: var(--bg); padding: 0 var(--pad) 0 2rem; font-size: .875rem; }
.site-nav a.nav-cta:hover { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.site-nav a:focus-visible { outline-offset: -4px; }
.site-nav a[aria-current]:focus-visible, .site-nav a.nav-cta:focus-visible { outline-color: var(--bg); }
/* Artifact bar (A1, 2026-09-26): one slim mono bar under the header. Title left, links right.
   The Full screen button is added by script only where the Fullscreen API exists. */
.artifact-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8125rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.artifact-bar b { color: var(--ink); }
.artifact-bar nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.artifact-bar a, .artifact-bar button { font: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: 700; color: var(--highlight); background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; transition: color 120ms linear; }
.artifact-bar a:hover, .artifact-bar button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .4em; }
main:fullscreen { background: var(--bg); overflow-y: auto; }
.site-footer { border-top: 1px solid var(--line); }
.footer-bar { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 3rem; padding-bottom: 3rem; }
.footer-bar p { margin: 1rem 0 0; color: var(--muted); font-size: 1.125rem; line-height: 1.5; }
.footer-bar .footer-label, .footer-base p { margin: 0; font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-footer nav { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 1728px) { :root { --pad: calc((100vw - 1600px) / 2); } .wrap { padding-left: var(--pad); padding-right: var(--pad); } }
@media (max-width: 47.99rem) {
  :root { --bar-h: 3rem; }
  .site-header { top: calc(-1 * (var(--strip-h) + 3rem)); }
  .meta-strip > .meta-status { display: none; }
  .header-bar { flex-wrap: wrap; height: auto; border-bottom: 0; }
  .wordmark, .meta-status-phone { height: 3rem; border-bottom: 1px solid var(--line); }
  .wordmark { flex: 1; font-size: 1rem; }
  .meta-status-phone { display: inline-flex; border-left: 0; padding: 0 var(--pad) 0 1rem; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
  .site-nav { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 3rem; border-bottom: 1px solid var(--line); }
  .site-nav a { justify-content: center; padding: 0 .5rem; font-size: .75rem; }
  .site-nav a:first-child { border-left: 0; }
  .site-nav a.nav-cta { padding: 0 .5rem; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .meta-ticker > div, .pulse, .pulse::after { animation: none; } }
@media print { .skip-link, .site-nav, .meta-strip, .meta-status-phone, .site-footer nav { display: none; } .site-header { position: static; } }
