/* TriSundari — calm, elegant theme */
:root{
  --bg:#fffdfb;
  --ink:#2a2725;
  --muted:#6c6762;
  --accent:#b07a6d; /* warm rose */
  --card:#fffaf6;
  --border:#efe9e3;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);
  font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.65}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1000px;margin:0 auto;padding:0 20px}
.site-header{border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:10}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding:14px 20px}
.logo a{font-family: 'Georgia', 'Times New Roman', serif; font-weight:700; font-size:26px; color:var(--ink)}
nav a{margin-left:16px;color:var(--ink)}
.hero{padding:48px 0 16px}
.hero h2{font-family: 'Georgia', serif; font-size:32px; line-height:1.2; margin:0 0 10px}
.sub{color:var(--muted)}
.grid{display:grid;gap:20px;margin:30px 0}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.card{background:var(--card);border:1px solid var(--border);padding:20px;border-radius:14px;box-shadow:0 1px 6px rgba(0,0,0,.03)}
.card h3{margin-top:0}
.btn{display:inline-block;background:var(--accent);color:#fff;padding:10px 14px;border-radius:10px;margin-top:8px}
.btn:hover{opacity:.9;text-decoration:none}
.signup{border-top:1px solid var(--border);padding:30px 0;text-align:center}
.site-footer{border-top:1px solid var(--border);margin-top:30px;padding:20px 0;color:var(--muted);font-size:14px}
.article{max-width:760px;margin:0 auto;padding:30px 0}
.article h1{font-family:'Georgia',serif;font-size:34px;line-height:1.2}
.article p{margin:14px 0}
.meta{color:var(--muted);font-size:14px}
blockquote{border-left:4px solid var(--accent);padding:6px 14px;margin:12px 0;background:#fff7f3}
code,pre{background:#f7f2ed;border:1px solid var(--border);padding:2px 6px;border-radius:6px}

/* Bindu after the TriSundari logo */
.logo a { position: relative; }

.logo a::after {
  content: "";
  display: inline-block;
  width: 12px;            /* size of the bindu — adjust if needed */
  height: 12px;
  background: #c4161c;   /* deep red bindu */
  border-radius: 50%;
  margin-left: 6px;      /* space between text and dot */
  vertical-align: middle;
}
/* Add a bindu after standalone TriSundari mentions */
.bindu::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #c4161c;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.subtitle {
  font-style: italic;
  color: #5c504d;
  margin-top: -0.5em;
  margin-bottom: 2em;
}

blockquote {
  border-left: 3px solid #c4161c;
  padding-left: 1em;
  font-style: italic;
  color: #444;
  margin: 2em 0;
}
/* ---- Mobile-friendly tweaks ---- */

/* Prevent iOS from randomly enlarging text */
html { -webkit-text-size-adjust: 100%; }

/* Make images/embeds never overflow */
img, video, iframe { max-width: 100%; height: auto; }

/* So long headlines don’t blow up on small screens */
.hero h2 { word-break: keep-all; }

/* Tablet and down */
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .hero h2 { font-size: 26px; line-height: 1.25; }
  .article h1 { font-size: 26px; }
}

/* Phones */
@media (max-width: 640px) {
  /* Header: stack logo + nav and avoid overflow */
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;        /* lets links wrap to new lines */
    gap: 10px 14px;
    margin-top: 4px;
  }
  nav a { margin: 0; padding: 6px 0; }

  /* Cards: go single-column */
  .grid.two { grid-template-columns: 1fr; }

  /* Comfortable reading sizes */
  .article { padding: 20px 0; }
  .article h1 { font-size: 24px; }
  .article p, .subtitle { font-size: 16px; line-height: 1.7; }

  /* Buttons easier to tap */
  .btn { padding: 12px 16px; border-radius: 12px; }
}

/* Ultra-small phones */
@media (max-width: 380px) {
  .logo a { font-size: 22px; }
  .hero h2 { font-size: 22px; }
}

.hero-title{
  font-family: var(--font-heading, 'Georgia', 'Times New Roman', serif);
  font-weight: 700;              /* or 600 if you prefer */
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  margin: 0 0 1rem;
}

/* --- Layout polish --- */
.hero--tight { padding: 36px 0 8px; }
.section { margin: 24px 0 8px; }

.section-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--border);
}
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.section-title { font-family:'Georgia',serif; font-size: 24px; margin: 0 0 6px; }
.section-blurb { margin: 0; color: var(--muted); }

/* Cards grid */
.cards-3 { 
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px){ .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .cards-3 { grid-template-columns: 1fr; } }

.card--link {
  display: flex; flex-direction: column; gap: 12px; transition: transform .12s ease, box-shadow .12s ease;
}
.card--link:hover { transform: translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.06); }
.card-title { margin: 0 0 6px; font-size: 20px; }
.card-text { margin: 0; color: var(--ink); }

/* Buttons */
.btn-pill { border-radius: 999px; padding: 10px 16px; }
.btn-soft {
  background: #e4c6bf; color: #4b3b37;
  border-radius: 10px; padding: 10px 14px; display: inline-block;
}
.btn-soft:hover { opacity:.95; text-decoration:none; }

/* Hero title fix (from earlier) */
.hero-title{
  font-family: var(--font-heading, 'Georgia', 'Times New Roman', serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem);
  margin: 0 0 1rem;
}


/* --- Hero sizing & measure --- */
.hero--tight { padding: 36px 0 8px; }
.hero-inner { max-width: 820px; }        /* keeps lines readable */
.hero-title{
  font-family: var(--font-heading, 'Georgia', 'Times New Roman', serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem);  /* smaller, calmer */
  margin: 0 0 12px;
}
.sub { max-width: 780px; margin: 0; color: var(--muted); }

/* --- Home cards: neat 3-column grid --- */
.grid.home-cards { 
  display: grid; 
  gap: 20px; 
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 8px;
}
.card--link { 
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card--link:hover { transform: translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.06); }
.card-title { margin: 0 0 6px; font-size: 20px; }
.card-text  { margin: 0; color: var(--ink); }

/* Buttons look lighter on cards */
.btn-soft { background: #e4c6bf; color: #4b3b37; border-radius: 10px; padding: 10px 14px; display: inline-block; }
.btn-soft:hover { opacity:.95; text-decoration:none; }

/* Responsive */
@media (max-width: 900px){ .grid.home-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .grid.home-cards { grid-template-columns: 1fr; } }


/* --- Featured Journal --- */
.featured-journal {
  background: linear-gradient(180deg, #fff7f3, #fffaf6);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  margin: 40px 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.featured-journal:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.featured-journal .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.featured-journal h3 {
  font-family: 'Georgia', serif;
  font-size: 28px;
  margin: 6px 0 10px;
  color: var(--ink);
}
.featured-journal p {
  font-size: 17px;
  max-width: 620px;
  color: var(--ink);
  margin: 0 0 16px;
}
.featured-journal .btn-soft {
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
}

/* --- 3-column grid --- */
.grid.home-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 40px;
}
.card--link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.card-title {
  font-family: 'Georgia', serif;
  font-size: 20px;
  margin: 0 0 6px;
}
.card-text {
  margin: 0 0 12px;
  color: var(--ink);
}
.btn-soft {
  background: #e4c6bf;
  color: #4b3b37;
  border-radius: 10px;
  padding: 10px 14px;
  align-self: flex-start;
  text-decoration: none;
}
.btn-soft:hover {
  opacity: 0.95;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid.home-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid.home-cards {
    grid-template-columns: 1fr;
  }
  .featured-journal {
    padding: 28px 22px;
  }
}
/* ---------- Base mobile-safe defaults ---------- */
html { -webkit-text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
.container { max-width: 1040px; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero--tight { padding: 28px 0 8px; }
.hero-inner { max-width: 820px; }
.hero-title {
  font-family: var(--font-heading, 'Georgia','Times New Roman',serif);
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.2rem);
  margin: 0 0 12px;
}
.sub { max-width: 760px; color: var(--muted); }

/* ---------- Featured Journal block ---------- */
.featured-journal {
  background: linear-gradient(180deg, #fff7f3, #fffaf6);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  margin: 28px 0 24px;
  display: flex; align-items: center; justify-content: center;
  text-align: left; box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.featured-journal h3 { font-size: 26px; margin: 6px 0 8px; }
.featured-journal p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.featured-journal .btn-soft { padding: 10px 16px; border-radius: 12px; }

/* ---------- Cards grid: desktop → tablet → phone ---------- */
.grid.home-cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 36px;
}
@media (max-width: 900px) {            /* tablets */
  .grid.home-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {            /* phones */
  .grid.home-cards { grid-template-columns: 1fr; }
  .featured-journal { padding: 24px 18px; }
}

/* ---------- Card polish ---------- */
.card--link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.card-title { font-size: 20px; margin: 0 0 6px; }
.card-text { font-size: 16px; line-height: 1.65; margin: 0 0 10px; }
.btn-soft { background:#e4c6bf; color:#4b3b37; border-radius:10px; padding:10px 14px; }

/* ---------- Header: stack nav on phones ---------- */
.site-header .container { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; }
@media (max-width: 640px){
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  nav { display:flex; flex-wrap: wrap; gap: 8px 14px; }
  nav a { padding: 6px 0; margin: 0; }
  .logo a { font-size: 22px; }
}

/* ---------- Article pages (readability on small screens) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 22px 0; }
@media (max-width: 640px){
  .article h1 { font-size: 24px; line-height: 1.25; }
  .article p { font-size: 16px; line-height: 1.7; }
}

.logo-img {
  height: 78px;              /* Adjust this to fit your header nicely */
  width: auto;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .logo-img {
    height: 38px;            /* slightly smaller on phones */
  }
}
.logo-img {
  height: 1300px;          /* increase size — try 72px, adjust to taste */
  width: auto;           /* keeps proportions */
  vertical-align: middle;
  margin-top: -4px;      /* optional: aligns better with text */
}


/* Remove the old bindu that was automatically added */
.logo a::after { content: none; }
.site-header .container {
  display: flex;
  align-items: center;    /* vertically centers logo + nav */
  justify-content: space-between;
  padding: 14px 20px;
}

@media (max-width: 640px) {
  .logo-img {
    height: 56px;  /* smaller on phones */
  }
}

.logo-img {
  height: 100px;         /* increase this to your desired size */
  width: auto;           /* keeps proportions correct */
  display: block;
}

.logo a {
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

@media (max-width: 640px) {
  .logo-img {
    height: 72px;   /* smaller but still visible on mobile */
  }
}
.logo-img {
  height: 100px;     /* adjust this until it feels balanced */
  width: auto;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

@media (max-width: 640px) {
  .logo-img {
    height: 72px;   /* scales logo for phone screens */
  }
}

.logo-img {
  height: 120px;      /* adjust between 100–140px to find the sweet spot */
  width: auto;        /* keeps proportions correct */
  display: block;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  margin: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

@media (max-width: 640px) {
  .logo-img {
    height: 80px;     /* resize gracefully for phones */
  }
}
/* Logo sizing */
.logo-img{
  height: 110px !important;   /* adjust to taste: 100–130px works well */
  width: auto !important;
  display: block !important;
  vertical-align: middle;
  max-height: none !important;
  max-width: none !important;
}

/* Keep header aligned */
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
}

/* Turn off the old CSS bindu if you had one */
.logo a::after{ content:none; }

/* Phone */
@media (max-width:640px){
  .logo-img{ height: 76px !important; }
}
