/* Shared header and footer for every page (homepage public/index.html and the
   Astro pages via src/layouts/Site.astro). One stylesheet, one markup, so the
   chrome is identical everywhere. Classes are prefixed fbc- so neither page's
   own CSS can restyle them. Values follow the ForceBase Design System. */

.fbc-header, .fbc-footer {
  --fbc-ink: #0a0a0b;
  --fbc-ink-800: #2a2a2c;
  --fbc-paper: #f5f1ea;
  --fbc-white: #ffffff;
  --fbc-line: #dcd6cb;
  --fbc-stone-400: #9a948b;
  --fbc-stone-450: #8c857a;
  --fbc-stone-600: #5a564f;
  --fbc-muted-dark: #bfbcb7;
  --fbc-lime: #d4ff4a;
  --fbc-sans: Figtree, "Helvetica Neue", Arial, sans-serif;
  --fbc-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --fbc-gutter: clamp(20px, 4vw, 64px);
  --fbc-ease: cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--fbc-sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
.fbc-header *, .fbc-footer * { box-sizing: border-box; }
.fbc-container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--fbc-gutter); }

/* ---------- Header ---------- */
.fbc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fbc-line);
  color: var(--fbc-ink);
}
.fbc-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.fbc-brand { display: flex; align-items: center; border-radius: 6px; text-decoration: none; }
/* Logo: 148 x 37 (the 160 x 40 version, 8% smaller). */
.fbc-brand img { display: block; width: 148px; height: 37px; max-width: none; }

/* Menu: JetBrains Mono at 13.2px (20% smaller than 16.5px). */
.fbc-links { display: flex; align-items: center; gap: 40px; }
.fbc-links a {
  font-family: var(--fbc-mono);
  font-size: 13.2px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fbc-stone-600);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms var(--fbc-ease), border-color 150ms var(--fbc-ease);
}
.fbc-links a:hover { color: var(--fbc-ink); }
.fbc-links a[aria-current="page"] { color: var(--fbc-ink); border-bottom-color: var(--fbc-ink); }

.fbc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--fbc-ink);
  color: var(--fbc-paper);
  font: 600 13px/1 var(--fbc-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms var(--fbc-ease), background-color 150ms var(--fbc-ease), color 150ms var(--fbc-ease);
}
.fbc-cta:hover { transform: translateY(-1px); background: var(--fbc-lime); color: var(--fbc-ink); }

.fbc-mobile { display: none; }
.fbc-mobile summary {
  list-style: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fbc-stone-450);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fbc-mobile summary::-webkit-details-marker { display: none; }
.fbc-mobile svg { display: block; }
.fbc-mobile .fbc-icon-close { display: none; }
.fbc-mobile[open] .fbc-icon-open { display: none; }
.fbc-mobile[open] .fbc-icon-close { display: block; }
.fbc-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--fbc-white);
  border-bottom: 1px solid var(--fbc-line);
  padding: 8px var(--fbc-gutter) 24px;
  display: flex;
  flex-direction: column;
}
.fbc-mobile-panel .fbc-m-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--fbc-ink);
  font-family: var(--fbc-mono);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--fbc-line);
}
.fbc-mobile-panel .fbc-m-link[aria-current="page"] { font-weight: 600; }
.fbc-mobile-panel .fbc-m-link[aria-current="page"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fbc-ink);
}
.fbc-mobile-panel .fbc-cta { margin-top: 20px; justify-content: center; padding: 18px 28px; }

@media (max-width: 900px) {
  .fbc-links, .fbc-inner > .fbc-cta { display: none; }
  .fbc-mobile { display: block; }
  .fbc-brand img { width: 128px; height: 32px; }
}

/* ---------- Footer ---------- */
.fbc-footer {
  background: var(--fbc-ink);
  color: var(--fbc-paper);
  padding-block: 72px 40px;
  border-top: 0;
  font-size: 17px;
  line-height: 1.6;
}
.fbc-footer a { color: inherit; }
.fbc-ftop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.fbc-fbrand { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.fbc-fbrand img { display: block; width: 152px; height: 38px; max-width: none; }
.fbc-fbrand p, .fbc-fcallout p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fbc-muted-dark); max-width: 360px; }
.fbc-fnav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.fbc-fnav a { color: var(--fbc-muted-dark); text-decoration: none; }
.fbc-fnav a:hover, .fbc-fnav a[aria-current="page"] { color: var(--fbc-paper); }
.fbc-fcallout { flex: 0 1 300px; display: flex; flex-direction: column; gap: 10px; }
.fbc-label {
  font-family: var(--fbc-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fbc-stone-400);
}
.fbc-fcallout a { color: var(--fbc-paper); text-decoration: none; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.fbc-fbottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--fbc-ink-800);
  font-family: var(--fbc-mono);
  font-size: 12px;
  color: var(--fbc-stone-400);
}
.fbc-fbottom nav { display: flex; gap: 20px; }
.fbc-fbottom a { color: var(--fbc-stone-400); text-decoration: none; }
.fbc-fbottom a:hover { color: var(--fbc-paper); }

.fbc-header :focus-visible { outline: 2px solid var(--fbc-ink); outline-offset: 3px; }
.fbc-footer :focus-visible { outline: 2px solid var(--fbc-lime); outline-offset: 3px; }
