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

/* ─── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #8a6e2f;
  --gold-pale: #f0dfa0;
  --bg: #0a0804;
  --bg2: #0f0c06;
  --bg3: #141009;
  --bg4: #1a1408;
  --surface: #1a1508;
  --surface2: #201c0e;
  --surface3: #2a2412;
  --border: #2e2510;
  --border2: #3d3218;
  --border3: #524425;
  --text: #ede4cc;
  --text2: #cfc0a0;
  --text3: #8a7a58;
  --text4: #5a4e34;
  --red: #8b2020;
  --shadow: rgba(0,0,0,0.8);
  --ff-display: 'Cinzel', serif;
  --ff-body: 'Crimson Text', serif;
  --ff-verse: 'EB Garamond', serif;
  --radius: 3px;
  --transition: 0.2s ease;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Parchment grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── Links ────────────────────────────────────────────────── */
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ─── Navigation ───────────────────────────────────────────── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8, 6, 2, 0.97);
  border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 60px;
  gap: 4px;
}

.nav-brand {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand .nav-cross {
  font-size: 0.85rem;
  opacity: 0.6;
  color: var(--gold-dim);
}
.nav-brand:hover { color: var(--gold-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 60px;
  font-family: var(--ff-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.nav-search-mini {
  display: flex;
  align-items: center;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  margin-left: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.nav-search-mini:focus-within { border-color: var(--gold-dim); }
.nav-search-mini input {
  background: none;
  border: none;
  outline: none;
  padding: 6px 12px;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--text);
  width: 180px;
  caret-color: var(--gold);
}
.nav-search-mini input::placeholder { color: var(--text4); }
.nav-search-mini button {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text3);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
}
.nav-search-mini button:hover { color: var(--gold); background: rgba(201,168,76,0.06); }

/* ─── Page wrapper ─────────────────────────────────────────── */
.page-wrap {
  min-height: calc(100vh - 60px);
}

/* ─── Ornament divider ─────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-dim);
  font-family: var(--ff-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 28px 0 20px;
  user-select: none;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border3), transparent);
}

/* ─── Gold bordered card ───────────────────────────────────── */
.gold-card {
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.gold-card::before {
  content: '✦';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  padding: 0 10px;
  color: var(--gold-dim);
  font-size: 0.6rem;
  line-height: 1;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--surface2);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}

/* ─── Footer ───────────────────────────────────────────────── */
.main-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 28px 28px;
  background: var(--bg2);
}
.footer-inner { max-width: 1240px; margin: 0 auto; }

.footer-banner {
  text-align: center;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--border);
}
.footer-banner-brand {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.footer-banner-verse {
  font-family: var(--ff-verse);
  font-style: italic;
  color: var(--text3);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-col ul { list-style: none; }
.footer-col ul li a {
  color: var(--text3);
  font-size: 0.92rem;
  line-height: 2.2;
  display: block;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-copy {
  text-align: center;
  color: var(--text4);
  font-size: 0.8rem;
  padding-top: 24px;
  font-family: var(--ff-display);
  letter-spacing: 0.06em;
}

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ─── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-search-mini input { width: 140px; }
}
@media (max-width: 600px) {
  .nav-search-mini { display: none; }
  .nav-inner { padding: 0 16px; }
  .main-footer { padding: 36px 16px 20px; margin-top: 48px; }
}
