@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@300;400;500&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void:       #12141c;
  --deep:       #181a24;
  --surface:    #1e2030;
  --rim:        #24263300;
  --mist:       #c8cad8;
  --silver:     #e8eaf2;
  --dim:        #6b6e80;
  --accent:     #7c9eb8;
  --accent2:    #a87c5a;
  --glow:       rgba(124,158,184,0.15);
  --ff-display: 'Cinzel', serif;
  --ff-body:    'EB Garamond', Georgia, serif;
  --ff-ui:      'Jost', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--mist);
  font-family: var(--ff-body);
  font-size: 1.1rem;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── STARS BACKGROUND (canvas overlay) ── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3.5rem;
  background: rgba(13,14,18,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,158,184,0.1);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(124,158,184,0.1);
  padding: 2rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-social { display: flex; gap: 2rem; }

.footer-social a {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); }

/* ── LAYOUT ── */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; position: relative; overflow: hidden; }
main { flex: 1; padding-top: 5rem; position: relative; z-index: 10; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(124,158,184,0.4);
  padding: 0.85rem 2.2rem;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: -1;
}
.btn:hover { color: var(--void); border-color: var(--accent); }
.btn:hover::before { transform: scaleX(1); }

.btn-warm {
  color: var(--accent2);
  border-color: rgba(168,124,90,0.4);
}
.btn-warm::before { background: var(--accent2); }
.btn-warm:hover { color: var(--void); border-color: var(--accent2); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  display: block;
}

/* ── RULED TITLE ── */
.ruled-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.ruled-title h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--silver);
  white-space: nowrap;
}
.ruled-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(124,158,184,0.3), transparent);
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid rgba(124,158,184,0.1);
  margin: 3.5rem 0;
}

/* ── STATUS BADGES ── */
.badge {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
}
.badge-complete  { color: #8fcf8f; border: 1px solid rgba(100,180,100,0.3); }
.badge-drafting  { color: #c8b87a; border: 1px solid rgba(200,184,122,0.3); }
.badge-revising  { color: #b0a0cc; border: 1px solid rgba(176,160,204,0.3); }
.badge-querying  { color: var(--accent); border: 1px solid rgba(124,158,184,0.35); }
.badge-onhold    { color: #c0844a; border: 1px solid rgba(192,132,74,0.35); }
.badge-upcoming  { color: #8a8da0; border: 1px solid rgba(138,141,160,0.4); }
.badge-na        { color: #555768; border: 1px solid rgba(85,87,104,0.3); }

/* ── FADE-IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.9s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.46s; }
.delay-4 { animation-delay: 0.64s; }
.delay-5 { animation-delay: 0.82s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  footer { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
}
