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

:root {
  --maroon:   #6b1a1a;
  --gold:     #c9922a;
  --gold-lt:  #e8c87a;
  --cream:    #fdf6e9;
  --dark:     #1c0f0f;
  --gray:     #3e424b;
  --text:     #3a1f1f;
  --muted:    #8a6a5a;
  --rule:     rgba(201,146,42,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── shared nav pill ─────────────────────────────── */
.page-nav {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 100;
  display: flex;
  gap: .5rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(253,246,233,.92);
  border: 1px solid var(--rule);
  padding: .45rem .9rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-pill:hover,
.nav-pill.active {
  background: var(--maroon);
  color: var(--gold-lt);
  border-color: var(--maroon);
}

/* ── decorative divider ──────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--gold);
  font-size: 1.1rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── kolam SVG background pattern ───────────────── */
.kolam-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%23c9922a' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='18' fill='none' stroke='%23c9922a' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='6' fill='%23c9922a'/%3E%3Cline x1='10' y1='40' x2='70' y2='40' stroke='%23c9922a' stroke-width='.8'/%3E%3Cline x1='40' y1='10' x2='40' y2='70' stroke='%23c9922a' stroke-width='.8'/%3E%3Cline x1='18' y1='18' x2='62' y2='62' stroke='%23c9922a' stroke-width='.6'/%3E%3Cline x1='62' y1='18' x2='18' y2='62' stroke='%23c9922a' stroke-width='.6'/%3E%3C/svg%3E");
}

/* ── gold border frame ───────────────────────────── */
.page-frame {
  position: fixed;
  inset: 10px;
  pointer-events: none;
  z-index: 0;
  border: 1px solid var(--rule);
}
.page-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,146,42,.15);
}

/* ── corner ornaments ────────────────────────────── */
.corner {
  position: fixed;
  width: 48px;
  height: 48px;
  z-index: 2;
  pointer-events: none;
  opacity: .55;
}
.corner svg { width: 100%; height: 100%; }
.corner-tl { top: 10px; left: 10px; }
.corner-tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner-bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner-br { bottom: 10px; right: 10px; transform: scale(-1,-1); }

/* ── animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%,100% { opacity: .7; }
  50%      { opacity: 1; }
}

.anim-1 { animation: fadeUp .8s .1s ease both; }
.anim-2 { animation: fadeUp .8s .25s ease both; }
.anim-3 { animation: fadeUp .8s .4s ease both; }
.anim-4 { animation: fadeUp .8s .55s ease both; }
.anim-5 { animation: fadeUp .8s .7s ease both; }

/* ── responsive helpers ──────────────────────────── */
@media (max-width: 600px) {
  .page-frame, .corner { display: none; }
  body { font-size: 16px; }
}
