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

:root {
  --bg-color: #FCFBF9;
  --text-main: #2d332f;
  --accent-color: #E5879F;
  --border-color: #C9D6C6;
  --text-muted: #8C9F8C;

  --lotus-bud: #f2c6c2;
}

html {
  position: relative;
  min-height: 100vh;
}

body {
  font-family: 'Lato', 'Georgia', serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  max-width: 65ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  
  padding: 2rem 1.5rem 200px 1.5rem; 
}

header {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

header div {
  margin: 0;
}

header div a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.5px;
  font-family: 'Lato';
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  text-transform: lowercase;
  font-size: 1rem !important;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent-color);
}

nav ul li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

nav ul li:not(:last-child)::after {
  content: "/";
  margin-left: 1rem;
  color: var(--lotus-bud);
  font-size: 0.8rem;
  font-family: 'Lato';
  font-weight: 700;
  pointer-events: none;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 1.5rem;
}

li a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.2rem;
}

li a:hover {
  color: var(--accent-color);
}

time {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

article, main {
  flex: 1;
}

article h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

article em {
  color: var(--text-muted);
  font-size: 0.95rem;
}

article div {
  margin-top: 2rem;
}

article img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

article blockquote {
  border-left: 3px solid var(--accent-color);
  margin: 2rem 0;
  padding-left: 1.5rem;
  font-style: italic;
  color: #5a534c;
  
  font-family: 'Tiro Devanagari Sanskrit', 'Yatra One', serif;
  font-size: 1.45rem;
  line-height: 1.5;
}

article ul {
  list-style: none;
  padding-left: 0;
}

article li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

article li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

article a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

article a:hover {
  text-decoration-style: wavy;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

.footer-bg-svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 1440px;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6; 
  mix-blend-mode: multiply;
  margin-bottom: -10px;
}

.devanagari {
  font-family: 'Tiro Devanagari Sanskrit', 'Yatra One', serif;
  font-size: 1.45rem;
  line-height: 1.6;
  font-style: normal;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.om-symbol {
  text-align: center;
  font-size: 1.5rem;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  font-family: 'Tiro Devanagari Sanskrit', 'Yatra One', serif;
}

.optimized-image-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  max-width: 65ch; 
  width: 100%;
  margin: 2.5rem auto;
  
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.optimized-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.optimized-image-wrap figcaption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
  text-transform: lowercase;
}

@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  article {
    padding: 0 1rem;
  }
  
  article h2 {
    font-size: 1.6rem;
  }

  body {
    padding: 1.5rem 0 70px 0;
  }
}