/* Template 96 - Ancient Scroll / Mythical Parchment */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Uncial+Antiqua&display=swap');

:root {
  --scroll-parchment: #f4e4c1;
  --scroll-aged: #e8d5a3;
  --scroll-sepia: #d4b982;
  --scroll-ink: #2c1810;
  --scroll-brown: #5c4033;
  --scroll-red: #8b2500;
  --scroll-gold: #b8860b;
  --scroll-blue: #1e3a5f;
  --scroll-green: #2d4a2d;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.8;
  color: var(--scroll-ink);
  background: var(--scroll-parchment);
  background-image: 
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header - Ancient Codex */
.site-header {
  background: var(--scroll-ink);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px double var(--scroll-gold);
}

.site-header::before {
  content: '☙ ANNO DOMINI MMXXIV ❧';
  display: block;
  background: var(--scroll-gold);
  color: var(--scroll-ink);
  text-align: center;
  padding: 5px 0;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.65rem;
  letter-spacing: 6px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.site-logo a {
  font-family: 'Uncial Antiqua', serif;
  font-size: 1.75rem;
  color: var(--scroll-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-logo a::first-letter {
  font-size: 2.5rem;
  color: var(--scroll-red);
}

.site-logo a:hover {
  text-shadow: 0 0 20px rgba(184, 134, 11, 0.5);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

.site-nav li {
  position: relative;
}

.site-nav li::after {
  content: '✦';
  color: var(--scroll-gold);
  font-size: 0.6rem;
  margin-left: 1.5rem;
}

.site-nav li:last-child::after {
  display: none;
}

.site-nav a {
  color: var(--scroll-parchment);
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.site-nav a:hover {
  color: var(--scroll-gold);
}

/* Hero Section */
.section.head {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  margin: 3rem auto;
  max-width: 900px;
  background: var(--scroll-aged);
  border: 2px solid var(--scroll-brown);
  box-shadow: 
    inset 0 0 50px rgba(44, 24, 16, 0.1),
    0 10px 30px rgba(44, 24, 16, 0.2);
}

.section.head::before {
  content: '❦';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: var(--scroll-red);
  background: var(--scroll-parchment);
  padding: 0 20px;
}

.section.head h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--scroll-ink);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.section.head h1::first-letter {
  font-size: 5rem;
  float: left;
  color: var(--scroll-red);
  background: linear-gradient(180deg, var(--scroll-gold) 0%, var(--scroll-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 10px;
  margin-top: 10px;
  line-height: 0.8;
  font-family: 'Uncial Antiqua', serif;
}

.section.head p {
  font-size: 1.2rem;
  color: var(--scroll-brown);
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--scroll-sepia);
  border-bottom: 1px solid var(--scroll-sepia);
}

.section.head p::before {
  content: '"';
  font-family: 'Uncial Antiqua', serif;
  font-size: 3rem;
  color: var(--scroll-gold);
  line-height: 0;
  vertical-align: -20px;
  margin-right: 5px;
}

.section.head p::after {
  content: '"';
  font-family: 'Uncial Antiqua', serif;
  font-size: 3rem;
  color: var(--scroll-gold);
  line-height: 0;
  vertical-align: -20px;
  margin-left: 5px;
}

/* Section Styling */
.section {
  padding: 4rem 0;
}

.section header {
  text-align: center;
  margin-bottom: 3rem;
}

.section header h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--scroll-ink);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section header h2::before,
.section header h2::after {
  content: '✠';
  color: var(--scroll-red);
  margin: 0 20px;
  font-size: 1rem;
  vertical-align: middle;
}

.section header p {
  font-size: 1.1rem;
  color: var(--scroll-brown);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--scroll-ink);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  border-top: 4px double var(--scroll-gold);
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--scroll-brown);
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  color: var(--scroll-sepia);
  font-style: italic;
  line-height: 1.8;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--scroll-parchment);
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--scroll-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
}

.footer-bottom::before {
  content: '☙ FINIS ❧';
  display: block;
  color: var(--scroll-gold);
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.copyright a {
  color: var(--scroll-sepia);
  font-size: 0.85rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: scrollReveal 0.8s ease forwards;
}

@keyframes scrollReveal {
  to {
    opacity: 1;
  }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

body:not(.faq) h3,
:not(section.faq) h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--scroll-ink);
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: left;
}
