body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 2rem auto;
  max-width: 900px;
  line-height: 1.6;
  padding: 0 10px;
}

/* Shared brown color */
h2,
.main-header,
.simple-title,
.simple-title h2,
.title-box,
.post-content h2,
.post-content h3,
.post-content h4,
header h1 a {
  color: #663300;
}

header h1 a {
  text-decoration: none;
}

.main-header,
.simple-title,
.simple-title h2,
.title-box,
.site-header,
.site-banner,
.script-cell,
.cover,
.post-content h2,
.post-content h4,
.post-content p.pranam,
.caption {
  text-align: center;
}

.simple-title {
  margin: 1rem 0;
  font-size: 1.6rem;
}

.title-box {
  border: 1px solid #ddd;
  padding: 1rem;
  background: #faf8f4;
  margin-bottom: 1.5rem;
}

.title-box .desc {
  font-weight: 600;
  font-size: 1.25em;
}

.title-box .desc,
.title-box .tithi {
  margin-bottom: 0.2rem;
}

.title-box .date {
  font-size: 0.95em;
  color: #444;
}

.title-box hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.8rem 0;
}

.site-header,
.cover {
  margin-bottom: 1.5rem;
}

.site-banner img,
.cover img {
  height: auto;
}

.site-banner img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.cover img {
  max-width: 40%;
}

.site-banner--vdsp img {
  max-height: 160px;
}

.site-banner--kamakoti img {
  max-height: 140px;
}

/* Script grid */
.script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}

.script-cell img {
  width: 75px;
  height: 75px;
}

/* Post content */
.post-content h1 {
  background-color: #663300;
  color: white;
  border-top: 1px solid #ccc;
  margin: 0.6em 0 0.2em;
  line-height: 1.75;
  text-align: center;
  font-size: 1.4rem;
}

.post-content h2 {
  margin: 0;
  line-height: 1.4;
  font-size: 1.2rem;
}

.post-content :not(h2) + h2 {
  margin-top: 1.2rem;
  padding-top: 0.6rem;
  border-top: 1px solid #ccc;
}

.post-content h2 + :not(h2) {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #ccc;
}

.post-content h3 {
  margin-top: 0.8em;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.gallery-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f6f4ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  padding: 0.6rem;
}

.caption .title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.caption .date {
  font-size: 0.8rem;
  color: #666;
}
