/* Shared styles for Andre Friedel integrated site
   Minimal nav + footer, φ-aware spacing, compatible with both personal and research themes
*/

:root {
  --phi: 1.6180339887;
  --shared-bg: #07080c;
  --shared-text: #f4efe3;
  --shared-muted: rgba(244, 239, 227, 0.65);
  --shared-accent: #00f0ff;
  --shared-gilt: #c4a35a;
  --shared-line: rgba(244, 239, 227, 0.18);
  --shared-radius: 12px;
  --shared-font: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Top navigation */
.integrated-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 8, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--shared-line);
  font-family: var(--shared-font);
  font-size: 0.875rem;
}

.integrated-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.integrated-nav .brand {
  color: var(--shared-text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.integrated-nav .brand span.phi {
  color: var(--shared-gilt);
  font-family: Georgia, serif;
}

.integrated-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.integrated-nav-links a {
  color: var(--shared-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.integrated-nav-links a:hover,
.integrated-nav-links a[aria-current="page"] {
  color: var(--shared-accent);
}

/* Footer */
.integrated-footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--shared-line);
  font-family: var(--shared-font);
  font-size: 0.8rem;
  color: var(--shared-muted);
  text-align: center;
  background: transparent;
}

.integrated-footer a {
  color: var(--shared-gilt);
  text-decoration: none;
}

.integrated-footer a:hover {
  color: var(--shared-accent);
}

.integrated-footer .byline {
  margin-bottom: 0.5rem;
}

/* Utility for pages that need offset for sticky nav */
body.has-integrated-nav {
  /* optional padding-top if needed */
}

@media (max-width: 640px) {
  .integrated-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .integrated-nav-links {
    gap: 0.5rem 0.9rem;
  }
}


/* Constellation background layers */
.constellation-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #07080c url("/assets/constellation.jpg") center / cover no-repeat;
  opacity: 0.55;
}
#constellationel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  contain: strict;
  transform: translateZ(0);
}
.constellation-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(7,8,12,0.55) 100%);
}
body.has-constellation {
  background: #07080c !important;
}
body.has-constellation > *:not(.constellation-photo):not(#constellationel):not(.constellation-overlay) {
  position: relative;
  z-index: 1;
}
