/**
 * Global site header/footer — scoped so app themes are not overridden.
 * Visual parity with portfolio/src/components/{Header,Footer}.tsx
 */

/* Layout shell only — no colors, fonts, or backgrounds on body/main */
.site-chrome-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-chrome-main {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  --site-fg: #1c1917;
  --site-muted: #57534e;
  --site-border: rgba(231, 229, 228, 0.8);
  --site-header-bg: rgba(250, 250, 248, 0.92);
  --site-cta-bg: #1c1917;
  --site-cta-hover: #44403c;
  --site-max-width: 64rem;

  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
  border-bottom: 1px solid var(--site-border);
  background: var(--site-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--site-fg);
}

.site-header__inner {
  box-sizing: border-box;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--site-fg);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__brand:hover {
  color: var(--site-muted);
}

.site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
}

.site-header__link {
  font-size: 0.875rem;
  color: var(--site-muted);
  text-decoration: none;
}

.site-header__link:hover {
  color: var(--site-fg);
}

.site-header__cta {
  display: inline-block;
  border-radius: 9999px;
  background: var(--site-cta-bg);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__cta:hover {
  background: var(--site-cta-hover);
  color: #fff;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  --site-fg: #1c1917;
  --site-muted-light: #78716c;
  --site-footer-bg: #fafaf9;
  --site-max-width: 64rem;

  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid #e7e5e4;
  background: var(--site-footer-bg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--site-muted-light);
}

.site-footer__inner {
  box-sizing: border-box;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
  }
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--site-muted-light);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer__link {
  font-size: 0.875rem;
  color: var(--site-muted-light);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--site-fg);
}
