/* GLOBAL TYPOGRAPHY — unified across all languages */
:root {
  --bg: #0b0b0d;
  --fg: #d0d0d0;
  --fg-muted: #8a8a8a;
  --link: #6b8bcf;           /* slightly dulled blue */
  --max-width: 820px;        /* widened by ~20% */

  --font-body: "Noto Sans",
               "Noto Sans Telugu",
               "Noto Sans Devanagari",
               "Noto Naskh Arabic",
               -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;

  --base-size: 17px;
  --line-height: 1.65;
}

/* BASE */
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: var(--line-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 2rem;   /* reduced bottom padding */
}

/* HEADER */
.site-header {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.site-name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* NAVIGATION BUTTONS */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.site-nav a {
  background: #111;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.9rem;
}

.site-nav a:hover {
  background: #222;
}

/* HOMEPAGE — POST LIST */
.post-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.post-list li {
  margin-bottom: 2.6rem;
}

.post-list a {
  color: var(--link);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list .date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  opacity: 0.75;
}

/* POST PAGE */
.post-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--link);
  margin-bottom: 0.3rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.post-content p {
  margin: 1.2rem 0;
}

a {
  color: var(--link);
}

/* CODE BLOCKS */
pre code {
  display: block;
  background: #111;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
}

/* POETRY BLOCK — only for <div class="poem"> */
.poem {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
  font-size: 1.05rem;
  margin: 1.5rem 0;
}

/* FOOTER */
.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 2rem;         /* reduced vertical gap */
  padding: 1.5rem 1rem;     /* tighter footer */
  border-top: 1px solid #222;
  background: #070707;
}

.site-footer p {
  margin: 0.4rem 0;
}

.served {
  font-size: 0.75rem;
  opacity: 0.7;
}
