:root {
  --black: #000000;
  --plum: #4a2c4f;
  --burgundy: #6b0e1e;
  --navy: #0b1c42;
  --olive: #223315;
  --white: #ffffff;

  /* fixed nav & footer heights */
  --nav-h: 72px;
  --footer-h: 48px;
}

/* LOAD FONTS */
@font-face {
  font-family: 'Prida';
  src: url('fonts/prida.woff') format('woff');
}
@font-face {
  font-family: 'Chomsky';
  src: url('fonts/chomsky.woff2') format('woff2');
}
@font-face {
  font-family: 'Fancy';
  src: url('fonts/fancy.woff') format('woff');
}
@font-face {
  font-family: 'Midsaxon';
  src: url('fonts/midsaxon.woff') format('woff');
}
@font-face {
  font-family: 'Aquifer';
  src: url('fonts/aquifer.woff') format('woff');
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Chomsky', serif;
  height: 100svh;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.8); /* white glow */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: 'Chomsky', serif;  /* use your custom font */
  text-decoration: none;
  font-size: 1.75rem;
  color: var(--white);
  transition: color 0.25s ease;
}
nav a:hover { color: var(--plum); 
}

/* HERO (logo area) */
.logo-container {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(-6%); /* nudge logo upward */
}

.logo {
  max-height: calc(100svh - var(--nav-h) - var(--footer-h) - 16px);
  max-height: calc(100vh - var(--nav-h) - var(--footer-h) - 16px);
  max-width: 90vw;
  height: auto;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  image-rendering: auto;
}

/* GLOW behind logo */
.logo-container::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(92vw, 92svh);
  height: min(92vw, 92svh);
  border-radius: 50%;
  background: var(--burgundy);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: normal;
  animation: glowCycle 14s infinite ease-in-out;
  will-change: transform, background-color;
}

/* Glow animation */
@keyframes glowCycle {
  0%   { background: var(--plum);     transform: scale(1);   }
  25%  { background: var(--burgundy); transform: scale(1.12);}
  50%  { background: var(--navy);     transform: scale(1);   }
  75%  { background: var(--olive);    transform: scale(1.12);}
  100% { background: var(--plum);     transform: scale(1);   }
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  text-align: center;
  z-index: 1000;
  background: transparent;
  font-family: 'Prida', serif;
  line-height: 1.4;
  padding: 0 1rem;
}

footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120%;
  background: var(--burgundy);
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
  border-radius: 50%;
  animation: glowCycle 14s infinite ease-in-out;
}

/* MOBILE */
@media (max-width: 600px) {
  :root { --nav-h: 64px; --footer-h: 40px; }

  nav a { font-size: 1.75rem; }

  .logo {
    max-height: calc(100svh - var(--nav-h) - var(--footer-h) - 12px);
    max-height: calc(100vh - var(--nav-h) - var(--footer-h) - 12px);
    max-width: 94vw;
  }

  .logo-container::before {
    filter: blur(100px);
  }

  footer { font-size: 1.1rem; }
  footer::before {
    width: 90%;
    height: 140%;
    filter: blur(30px);
  }
}