:root {
  --cream: #f5f0e8;
  --warm-white: #faf7f2;
  --ink: #1c1a17;
  --terra: #8b5e3c;
  --sage: #7a8c6e;
  --gold: #c9a84c;
  --sand: #d4c4a0;
  --muted: #8a8070;
  --serif-latin: 'Cormorant Garamond', Georgia, serif;
  --serif-he: 'Noto Serif Hebrew', 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--warm-white);
  color: var(--ink);
  font-family: var(--serif-he);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── Grain texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3rem;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: padding 0.3s ease;
}

.nav-logo {
  font-family: var(--serif-latin);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  text-decoration: none;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--serif-he);
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; right: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--terra); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.82rem !important;
  border: 1px solid var(--gold) !important;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  color: var(--terra) !important;
}

.nav-cta:hover { background: var(--gold); color: var(--warm-white) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(122,140,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,94,60,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
    var(--warm-white);
}

.hero-mandala {
  position: absolute;
  width: 520px; height: 520px;
  border: 2px solid rgba(201,168,76,0.15);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateSlow 80s linear infinite;
}

.hero-mandala::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 50%;
}

.hero-mandala::after {
  content: '';
  position: absolute;
  inset: 50px;
  border: 1px solid rgba(122,140,110,0.12);
  border-radius: 50%;
}

@keyframes rotateSlow {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-sanskrit {
  font-family: var(--serif-latin);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: var(--serif-latin);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-subtitle-he {
  font-family: var(--serif-he);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin-top: 1.5rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif-he);
  font-size: 0.95rem;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.hero-cta:hover { color: var(--ink); letter-spacing: 0.03em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}

.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── SECTION BASE ── */
section { padding: 6rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--serif-latin);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif-he);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
}

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--cream);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 5rem 2rem;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

.about-left { position: relative; }

.about-ornament {
  font-family: var(--serif-latin);
  font-size: 9rem;
  line-height: 1;
  color: rgba(201,168,76,0.12);
  position: absolute;
  top: -2rem; right: -1rem;
  user-select: none;
  font-style: italic;
}

.about-tagline {
  font-family: var(--serif-latin);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--terra);
  line-height: 1.3;
}

.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
}

.about-text p + p { margin-top: 1rem; }

/* ── TOPICS ── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3.5rem;
}

.topic-card {
  background: var(--cream);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: default;
}

.topic-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.topic-card:hover { background: #ede7d9; }
.topic-card:hover::before { width: 100%; }

.topic-num {
  font-family: var(--serif-latin);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.25);
  line-height: 1;
  margin-bottom: 1.2rem;
  display: block;
}

.topic-name {
  font-family: var(--serif-he);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.topic-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── BLOG PREVIEW ── */
.blog-section { background: var(--warm-white); }

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.blog-link-all {
  font-family: var(--serif-he);
  font-size: 0.88rem;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.blog-link-all:hover { border-color: var(--gold); }

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  position: relative;
}

.post-item::before {
  content: '';
  position: absolute;
  right: -2rem;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s;
  transform-origin: bottom;
}

.post-item:hover { padding-right: 0.5rem; }
.post-item:hover::before { transform: scaleY(1); }

.post-category {
  font-family: var(--serif-latin);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.post-title {
  font-family: var(--serif-he);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  transition: color 0.3s;
  margin-bottom: 0.8rem;
}

.post-item:hover .post-title { color: var(--terra); }

.post-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

.post-date {
  font-family: var(--serif-latin);
  font-size: 0.8rem;
  color: var(--sand);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  padding-top: 0.3rem;
}

/* ── COMING SOON ── */
.coming-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coming-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.coming-title {
  font-family: var(--serif-latin);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  position: relative;
}

.coming-title strong {
  font-weight: 600;
  color: var(--gold);
  font-style: normal;
}

.coming-sub {
  font-family: var(--serif-he);
  font-size: 0.95rem;
  color: rgba(212,196,160,0.6);
  margin-top: 1rem;
  letter-spacing: 0.05em;
  position: relative;
}

.coming-pills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  position: relative;
}

.pill {
  font-family: var(--serif-he);
  font-size: 0.85rem;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  color: rgba(212,196,160,0.7);
  letter-spacing: 0.05em;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--cream);
  border-top: 1px solid rgba(201,168,76,0.2);
  text-align: center;
  padding: 5rem 2rem;
}

.newsletter-title {
  font-family: var(--serif-he);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.newsletter-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--sand);
  border-left: none;
  background: var(--warm-white);
  font-family: var(--serif-he);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  border-radius: 2px 0 0 2px;
  text-align: right;
  direction: rtl;
}

.newsletter-form input::placeholder { color: var(--sand); }
.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--terra);
  color: var(--warm-white);
  border: none;
  font-family: var(--serif-he);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 0 2px 2px 0;
}

.newsletter-form button:hover { background: var(--ink); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(212,196,160,0.5);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--serif-latin);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--sand);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(212,196,160,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-ornament { display: none; }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .blog-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .post-item { grid-template-columns: 1fr; }
  .post-date { writing-mode: horizontal-tb; }

  .nav-links { gap: 1.2rem; }
  .nav-cta { display: none; }
}

/* ── POPUP ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-box {
  background: var(--warm-white);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 3.5rem 4rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  position: relative;
  animation: fadeUp 0.5s ease forwards;
}

.popup-he {
  font-family: var(--serif-he);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.popup-sub {
  font-family: var(--serif-he);
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.popup-close {
  font-family: var(--serif-he);
  font-size: 0.9rem;
  color: var(--terra);
  background: none;
  border: 1px solid var(--gold);
  padding: 0.6rem 1.8rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s;
}

.popup-close:hover {
  background: var(--terra);
  color: var(--warm-white);
}
