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

:root {
  --cream: #FEFAF3;
  --cream-dark: #F4EDD8;
  --deep-rose: #7A1530;
  --rose: #9B2040;
  --rose-light: #C4526A;
  --gold: #BFA06A;
  --gold-light: #D4B87A;
  --gold-pale: #F0E4C4;
  --dark: #14090A;
  --dark2: #2A0E18;
  --text: #2C1510;
  --muted: #7A6045;
  --border: #E0CBAA;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ═══════════════════════════════════
   ORNAMENTS & DECORATIVE
═══════════════════════════════════ */
.ornament {
  text-align: center;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.6rem;
  margin: 1.8rem 0;
  display: block;
}

.rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 2.5rem auto;
  max-width: 300px;
}

/* ═══════════════════════════════════
   NAVIGATION
═══════════════════════════════════ */
nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  text-decoration: none;
  padding: 1rem 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo em { color: var(--rose-light); font-style: italic; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links a {
  display: block;
  padding: 1.25rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #C5B99A;
  text-decoration: none;
  font-family: 'Lora', serif;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(191,160,106,0.07);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 1rem 0;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--gold); }

/* ═══════════════════════════════════
   PAGE HEADER (reusable)
═══════════════════════════════════ */
.page-header {
  background: var(--dark);
  background-image: radial-gradient(ellipse at 30% 60%, rgba(122,21,48,0.45) 0%, transparent 65%),
                    radial-gradient(ellipse at 75% 30%, rgba(191,160,106,0.12) 0%, transparent 55%);
  color: var(--cream);
  padding: 4rem 2rem;
  text-align: center;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.page-header .subtitle {
  color: rgba(254,250,243,0.6);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════
   HERO (index)
═══════════════════════════════════ */
.hero {
  background: var(--dark);
  background-image:
    radial-gradient(ellipse at 25% 55%, rgba(122,21,48,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 25%, rgba(191,160,106,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 85%, rgba(42,14,24,0.6) 0%, transparent 50%);
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  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='1.5' fill='%23BFA06A' fill-opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; max-width: 700px; }

.hero-eyebrow {
  display: inline-block;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.hero h1 em { color: var(--gold); font-style: italic; }

.hero-subtitle-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rose-light);
  margin-bottom: 1.6rem;
  letter-spacing: 0.05em;
}

.hero-desc {
  color: rgba(254,250,243,0.72);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 2.2rem;
  transition: all 0.28s;
  cursor: pointer;
  border: none;
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-filled {
  background: var(--deep-rose);
  color: var(--cream);
  border: 1px solid var(--deep-rose);
}
.btn-filled:hover { background: var(--rose); border-color: var(--rose); }

/* ═══════════════════════════════════
   HOME CONTENT
═══════════════════════════════════ */
.home-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.home-intro-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--deep-rose);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.home-intro-text p {
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.sampradaya-card {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
  border-left: 3px solid var(--gold);
  padding: 2rem 1.8rem;
}
.sampradaya-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(191,160,106,0.2);
  padding-bottom: 0.8rem;
}
.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(191,160,106,0.1);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Lora', serif;
}
.info-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: rgba(254,250,243,0.85);
  font-style: italic;
}

/* pullquote */
blockquote.pullquote {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 1.6rem 2rem;
  margin: 2.5rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-style: italic;
  color: var(--deep-rose);
  line-height: 1.55;
}
blockquote.pullquote cite {
  display: block;
  font-size: 0.83rem;
  font-style: normal;
  font-family: 'Lora', serif;
  color: var(--muted);
  margin-top: 0.8rem;
  letter-spacing: 0.08em;
}

/* ---- home section headings ---- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--deep-rose);
}
.section-head a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.section-head a:hover { color: var(--gold); border-color: var(--gold); }

/* ---- home books preview ---- */
.books-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* ---- home papers preview ---- */
.papers-preview {
  margin-bottom: 4rem;
}
.paper-preview-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.paper-preview-item:first-child { border-top: 1px solid var(--border); }
.paper-preview-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  min-width: 1.8rem;
}
.paper-preview-item a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--deep-rose);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.paper-preview-item a:hover { border-color: var(--rose-light); }

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--dark);
  background-image: radial-gradient(ellipse at 50% 50%, rgba(122,21,48,0.35) 0%, transparent 70%);
  color: var(--cream);
  padding: 4rem 2rem;
  text-align: center;
  margin: 0 -2rem;
}
.cta-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.cta-banner p {
  color: rgba(254,250,243,0.65);
  font-style: italic;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════ */
.about-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.about-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--deep-rose);
  margin: 2.8rem 0 0.9rem;
  line-height: 1.25;
}
.about-body p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.95;
}
.about-body .drop-cap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.8rem;
  font-weight: 600;
  color: var(--deep-rose);
  float: left;
  line-height: 0.75;
  margin: 0.12em 0.1em 0 0;
}

.lineage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2rem 0 3rem;
}
.lineage-card {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
}
.lineage-card .lc-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Lora', serif;
  margin-bottom: 0.35rem;
}
.lineage-card .lc-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--deep-rose);
  font-style: italic;
  line-height: 1.35;
}
.lineage-card .lc-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════
   BOOKS PAGE
═══════════════════════════════════ */
.books-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.books-intro {
  max-width: 620px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.8rem;
  font-size: 0.97rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem;
}

.book-card {
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(122,21,48,0.12);
}
.book-cover-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--deep-rose) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover-placeholder {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.2);
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

.book-info { padding: 1.2rem 1.3rem 1.4rem; }
.book-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
.book-info .book-year {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.book-info .book-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.book-info .book-link {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-rose);
  text-decoration: none;
  border-bottom: 1px solid var(--rose-light);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.book-info .book-link:hover { color: var(--gold); border-color: var(--gold); }

/* ═══════════════════════════════════
   PAPERS PAGE
═══════════════════════════════════ */
.papers-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.papers-intro {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.8rem;
  font-size: 0.97rem;
  max-width: 580px;
}

.papers-list { margin-top: 0.5rem; }
.paper-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.paper-item:first-child { border-top: 1px solid var(--border); }

.paper-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  text-align: right;
}
.paper-body {}
.paper-body a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--deep-rose);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1.4;
}
.paper-body a:hover { border-color: var(--rose-light); color: var(--rose); }
.paper-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-style: italic;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.paper-tag {
  background: var(--gold-pale);
  color: var(--muted);
  padding: 0.1rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
}

/* ═══════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════ */
.contact-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.contact-intro-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.8rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  display: block;
  background: var(--dark);
  padding: 2rem 1.8rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid var(--gold);
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
}
.contact-card.wa { border-top-color: #25D366; }
.contact-card.ig { border-top-color: #E1306C; }

.contact-card .c-icon { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }
.contact-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.contact-card .c-handle {
  font-size: 0.88rem;
  color: rgba(254,250,243,0.55);
}

.contact-note {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  padding: 1.6rem 2rem;
  font-size: 0.9rem;
  line-height: 1.85;
}
.contact-note strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--deep-rose);
  display: block;
  margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  background: var(--dark);
  color: rgba(254,250,243,0.45);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 2;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}
.footer-tradition {
  font-style: italic;
  color: var(--rose-light);
  font-size: 0.83rem;
  margin-bottom: 1rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254,250,243,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
footer .copy { font-size: 0.77rem; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 820px) {
  .home-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sampradaya-card { max-width: 100%; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark);
    border-top: 1px solid rgba(191,160,106,0.15);
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  nav { position: relative; }
  .lineage-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .cta-banner { margin: 0; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }
}
