/* ==========================================================================
   THE ASTRA CODEX - GLOBAL STYLES
   (Variables, Backgrounds, Typography, Header, Footer)
   ========================================================================== */

:root {
  --ivory: #f6f1e6;
  --ivory2: #fbf7ef;
  --gold: #d6b35a;
  --gold2: #f1dfaa;
  --ink: #0b0e16;
  --mid: #0f1730;
  --mid2: #141e3a;
  --glass: rgba(15,23,48,.55);
  --line: rgba(214,179,90,.35);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

/* --- GLOBAL TYPOGRAPHY & BACKGROUND --- */
body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(1200px 800px at 70% 30%, rgba(214,179,90,.12), transparent 55%),
    radial-gradient(900px 700px at 15% 20%, rgba(155,205,255,.10), transparent 60%),
    linear-gradient(180deg, #070913 0%, #0b1021 35%, #070913 100%);
  font-family: Georgia, "Times New Roman", Times, serif; /* Locks in the font! */
  overflow-x: hidden;
}

a.emailGold {
  color: #f1dfaa;
  text-decoration: none;
  font-weight: 500;
}
a.emailGold:hover {
  color: #ffd978;
  text-decoration: underline;
}

/* --- STARS & VEIL --- */
.stars, .stars:before, .stars:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  opacity: .55;
  mix-blend-mode: screen;
  filter: blur(.1px);
  z-index: 0;
}
.stars {
  background-image:
    radial-gradient(1px 1px at 15px 20px, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(1px 1px at 90px 120px, rgba(255,255,255,.14), transparent 40%),
    radial-gradient(1px 1px at 210px 80px, rgba(255,255,255,.12), transparent 40%),
    radial-gradient(1px 1px at 330px 190px, rgba(255,255,255,.16), transparent 40%),
    radial-gradient(1px 1px at 520px 140px, rgba(255,255,255,.12), transparent 40%),
    radial-gradient(1px 1px at 680px 40px, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(1px 1px at 820px 220px, rgba(255,255,255,.12), transparent 40%);
  background-size: 900px 260px;
}
.stars:before {
  opacity: .35;
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(241,223,170,.22), transparent 45%),
    radial-gradient(1px 1px at 160px 30px, rgba(241,223,170,.18), transparent 45%),
    radial-gradient(1px 1px at 260px 140px, rgba(241,223,170,.16), transparent 45%),
    radial-gradient(1px 1px at 460px 90px, rgba(241,223,170,.14), transparent 45%),
    radial-gradient(1px 1px at 740px 160px, rgba(241,223,170,.16), transparent 45%);
  background-size: 820px 220px;
  transform: translateY(10px);
}
.stars:after {
  opacity: .20;
  background-image:
    radial-gradient(2px 2px at 100px 70px, rgba(155,205,255,.20), transparent 45%),
    radial-gradient(2px 2px at 420px 120px, rgba(155,205,255,.16), transparent 45%),
    radial-gradient(2px 2px at 700px 40px, rgba(155,205,255,.14), transparent 45%);
  background-size: 900px 240px;
  transform: translateY(-8px);
}
.veil {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 30% 35%, rgba(214,179,90,.12), transparent 60%),
    radial-gradient(800px 520px at 70% 55%, rgba(155,205,255,.10), transparent 62%),
    radial-gradient(900px 720px at 55% 20%, rgba(241,223,170,.08), transparent 64%);
  filter: blur(18px);
  opacity: .9;
  transform: rotate(-6deg);
  z-index: 0;
}

/* --- MASTER HEADER & NAVIGATION --- */
header {
  position: relative;
  z-index: 20;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(246,241,230,.86);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 14px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: rgba(246,241,230,.76);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214,179,90,0);
  transition: all .18s ease;
}
.nav a:hover {
  color: rgba(246,241,230,.95);
  border-color: rgba(214,179,90,.35);
  background: rgba(18,24,42,.35);
}

/* --- PULSATING LOGO ANIMATION (LOCKED IN) --- */
.resMark {
  width: 38px;
  height: 38px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(214,179,90,.28);
  background: radial-gradient(circle at 50% 50%, rgba(241,223,170,.14), rgba(18,24,42,.10) 65%, transparent 72%);
  box-shadow: 0 0 0 8px rgba(214,179,90,.05);
  overflow: hidden;
}
.resMark .core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(155,205,255,.30) 55%, transparent 75%);
  filter: blur(.2px);
  box-shadow: 0 0 18px rgba(155,205,255,.25);
  position: relative;
  z-index: 2;
}
.resMark:before, .resMark:after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(155,205,255,.28);
  transform: translate(-50%,-50%) scale(1);
  opacity: .9;
  filter: blur(.1px);
}
.resMark:before {
  border-color: rgba(155,205,255,.28);
  animation: ripple 2.6s ease-out infinite;
}
.resMark:after {
  border-color: rgba(214,179,90,.30);
  animation: ripple 2.6s ease-out infinite;
  animation-delay: 1.1s;
}
.resMark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .9;
  z-index: 1;
}
.resMark .orbit {
  stroke: rgba(155,205,255,.30);
  stroke-width: 1;
  fill: none;
  filter: drop-shadow(0 0 2px rgba(155,205,255,.10));
  animation: drift 6.5s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.resMark .orbit.gold {
  stroke: rgba(214,179,90,.26);
  animation-duration: 8.5s;
}
@keyframes ripple {
  0%   { transform: translate(-50%,-50%) scale(.8); opacity:.9; }
  65%  { opacity:.25; }
  100% { transform: translate(-50%,-50%) scale(3.4); opacity:0; }
}
@keyframes drift {
  0%   { transform: rotate(0deg) scale(1); opacity:.9; }
  50%  { transform: rotate(18deg) scale(1.03); opacity:.75; }
  100% { transform: rotate(0deg) scale(1); opacity:.9; }
}

/* --- MASTER FOOTER --- */
footer {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(246,241,230,.58);
  font-size: 12px;
}
footer a { color: rgba(241,223,170,.80); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- MOBILE RESPONSIVENESS FOR HEADER/FOOTER --- */
@media (max-width: 720px) {
  header { 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
    padding-top: 25px; 
  }
  .nav { 
    width: 100%; 
    justify-content: center; 
    gap: 10px; 
  }
  .nav a {
    background: rgba(15, 23, 48, 0.4);
    border: 1px solid rgba(214, 179, 90, 0.2);
    padding: 10px 16px;
  }
  footer { 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    text-align: center; 
  }
}