/* Shared chrome styles for the JS-rendered header/footer (chrome.js).
 * Locked design system: monochrome + red spot. No plum, teal, green, amber,
 * or gold accents. This file is loaded after hatchly.css and styles the
 * .topbar / .site-footer / .navlinks / .brand / .foot-* elements.
 */

/* Top bar (fixed) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 16px 0;
}

.topbar .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: var(--font-display, 'Fraunces'), Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--color-ink, #FFFFFF);
  text-decoration: none;
  line-height: 1;
}

.brand:hover {
  color: var(--color-ink, #FFFFFF);
}

.navlinks {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navlinks a {
  font-family: var(--font-body, 'Newsreader'), Georgia, serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.53);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.navlinks a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-ink, #FFFFFF);
  transition: width 0.3s ease;
}

.navlinks a:hover {
  color: var(--color-ink, #FFFFFF);
}

.navlinks a:hover::after {
  width: 100%;
}

.navlinks a.active {
  color: var(--color-ink, #FFFFFF);
}

.navlinks a.active::after {
  width: 100%;
}

/* Page top padding so the fixed topbar doesn't cover content. */
body:has(#site-chrome) {
  padding-top: 80px;
}

/* Page-product variant: identical to default. Kept for backwards-compat
   with chrome.js's `isProduct` toggle. */
.topbar--product,
.site-footer--product {
  /* intentionally identical to the default chrome */
}

/* Footer */
.site-footer {
  background: var(--color-footer, #000000);
  border-top: 1px solid var(--color-border, #222222);
  padding: 48px 0;
  margin-top: 80px;
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 48px;
  align-items: start;
}

.site-footer .brand {
  display: block;
  margin-bottom: 12px;
}

.foot-sub {
  font-family: var(--font-body, 'Newsreader'), Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-graphite, #888888);
  max-width: 280px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--font-body, 'Newsreader'), Georgia, serif;
  font-size: 14px;
}

.foot-links a {
  color: var(--color-graphite, #888888);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 2px 0;
}

.foot-links a:hover {
  color: var(--color-ink, #FFFFFF);
}

.foot-url {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 12px;
  color: var(--color-graphite, #888888);
  letter-spacing: 0.05em;
  align-self: end;
  white-space: nowrap;
}

/* Mobile CTA bar (landing only) */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border, #222222);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.mobile-cta-bar .btn-primary {
  font-family: var(--font-display, 'Fraunces'), Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  background: var(--color-ink, #FFFFFF);
  color: var(--color-void, #000000);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.mobile-cta-bar .btn-primary:hover {
  background: var(--color-graphite, #888888);
}

.mobile-cta-note {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 11px;
  color: var(--color-graphite, #888888);
  letter-spacing: 0.05em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .navlinks a::after,
  .foot-links a {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .navlinks {
    display: none;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .foot-links {
    gap: 8px 16px;
  }

  .foot-url {
    align-self: start;
  }
}
