/* ===============================
   RESET
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ===============================
   VARIABLES
================================ */
:root {
  --bg: #0e0e12;
  --bg-soft: #14141b;
  --text: #e6e6eb;
  --muted: #a0a0aa;
  --red: #e05863;
  --blue: #7aa2ff;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-title: 'Cinzel', serif;
  --font-whisper: 'Cormorant Garamond', serif;
}

/* ===============================
   BASE
================================ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===============================
   HEADER / NAV
================================ */
.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  letter-spacing: 0.15em;
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* ===============================
   COMMON COMPONENTS
================================ */
.cta {
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta:hover {
  background: var(--red);
  color: #fff;
}

.whisper {
  font-family: var(--font-whisper);
  font-style: italic;
  color: var(--red);

  opacity: 1;
  letter-spacing: 0.02em;

  /* subtle separation from dark background */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.65);
}

/* ===============================
   GLOBAL DEPTH POLISH
================================ */

.site-header,
.site-footer,
.hero,
.lore-container,
.schedule-row,
.offering,
.character {
  backdrop-filter: saturate(1.05);
}

/* ===============================
   PAGE FADE-IN
================================ */

body {
  animation: pageFade 0.4s ease-out;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===============================
   NAV POLISH
================================ */

.nav-links a[aria-current="page"] {
  color: var(--text);
  position: relative;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--red);
}

/* ===============================
   IMAGE CONSISTENCY
================================ */

img {
  image-rendering: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

/* ===============================
   FOOTER
================================ */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;

  display: flex;
  justify-content: center;
}

/* ===============================
   MOBILE NAV (TEMP)
================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ===============================
   MOBILE NAV TOGGLE
================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===============================
   MOBILE MENU OVERLAY
================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.97);
  z-index: 10000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.hidden {
  display: none;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;

  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-close:hover {
  color: var(--red);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: center;
}

.mobile-nav a {
  font-family: var(--font-title);
  letter-spacing: 0.18em;
  font-size: 1.25rem;
}

/* ===============================
   RESPONSIVE RULES
================================ */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }
}

/* ===============================
   ACCESSIBLE FOCUS STYLES
================================ */

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.menu-toggle:focus-visible,
.menu-close:focus-visible,
.mobile-nav a:focus-visible {
  outline-color: var(--red);
}