/* Shared across guild.html, character.html, market.html, commands.html:
   base reset, the fixed atmospheric backdrop, and the top nav bar. Brand color is
   intentionally hardcoded here rather than tied to each page's --gold, so the nav stays the
   same icy blue no matter what accent color an individual page uses. */

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

body {
  background: transparent;
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

.bg-fixed {
  position: fixed; inset: 0; z-index: -2;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(8,10,14,0.90) 0%, rgba(8,10,14,0.95) 45%, rgba(8,10,14,0.98) 100%),
    url('/grey-banner.png');
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1;
  opacity: 0.035; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 52px;
  background: linear-gradient(180deg, var(--surface), var(--surface-deep));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(169,214,234,0.08);
  position: sticky; top: 0; z-index: 200;
}
.nav-brand { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; color: #a9d6ea; text-decoration: none; letter-spacing: 0.06em; }
.nav-discord {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #5865f2; color: #fff; text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 2px 10px rgba(88,101,242,0.35);
  transition: background 0.2s, transform 0.2s;
}
.nav-discord:hover { background: #6d79f5; transform: translate(-50%, calc(-50% - 1px)); }
/* Too narrow to center on the page without colliding with the links: sit in the normal flow. */
@media (max-width: 1250px) {
  .nav-discord { position: static; transform: none; padding: 6px 10px; font-size: 10px; letter-spacing: 0.06em; }
  .nav-discord:hover { transform: translateY(-1px); }
}
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: 'Cinzel', serif; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #a9d6ea; }

/* In-world flavour text (role-play lines under headings / in empty states) */
p.lore, .intro p.lore, .empty-state p.lore {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent, #8fa0b0);
  max-width: 56ch;
  margin: 10px auto 0;
}
.intro p.lore { margin: 12px 0 0; }
/* Bigger and a touch brighter where the line sits over the page background art. */
.empty-state p.lore { font-size: 19px; max-width: 60ch; color: #a9b8c6; }
