/* ============================================================
   Aum Infinite Cosmoses — main.css
   ============================================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  background: #fff;
  background-image: linear-gradient(to bottom, #f0ede8 0%, #fff 60px);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.85;
  color: #111;
  text-align: center;
}

a {
  color: rgb(0, 66, 0);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Container ─────────────────────────────────────────────── */
#center_column {
  width: 800px;
  margin: 0 auto;
  background: #fff;
  border: none;
  box-shadow:
    -2px 0 30px rgba(0, 0, 0, 0.04),
     2px 0 30px rgba(0, 0, 0, 0.04),
     0 8px 40px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* ── Site Header ───────────────────────────────────────────── */
#site-header {
  background: linear-gradient(160deg, #004400 0%, #007700 40%, #009900 70%, #006600 100%);
  padding: 28px 32px 22px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

#site-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.8rem;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 0.18em;
  line-height: 1.15;
}
#site-title a {
  color: #fff;
  text-decoration: none;
}
#site-title a:hover {
  text-decoration: underline;
}

#site-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(210, 255, 140, 0.87);
  margin-top: 6px;
  letter-spacing: 0.07em;
  height: 1.6em;
  line-height: 1.6;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
#tagline-text {
  display: block;
  text-align: center;
}
#tagline-text.scrolling {
  display: inline-block;
  text-align: left;
}

/* ── Navigation ────────────────────────────────────────────── */
#menu {
  padding: 7px 16px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 2px 0;
}

.main_menu {
  padding: 3px 0;
  margin: 0;
}

/* ॐ separator before every item except the first in each row */
.nav-row .main_menu + .main_menu::before {
  content: "ॐ";
  color: #5a9a5a;
  font-size: 0.85rem;
  margin: 0 10px;
  font-style: normal;
  opacity: 0.7;
  vertical-align: middle;
}

.main_menu a {
  color: rgb(0, 66, 0);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 5px;
  border-radius: 2px;
  outline: 1px solid transparent;
  outline-offset: 1px;
  transition: color 0.15s ease, outline-color 0.18s ease;
}
.main_menu a:hover,
.main_menu a.is-cycling {
  text-decoration: none;
  outline-color: rgba(0, 100, 0, 0.55);
}
.main_menu a.is-current-section {
  color: #7a2000;
  outline-color: rgba(122, 32, 0, 0.45);
}

/* ── Main content area ─────────────────────────────────────── */
#main-content {
  min-height: 400px;
}

/* ── Homepage — Author panel ───────────────────────────────── */
.author-panel {
  padding: 14px 44px 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.author-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.98rem;
  font-weight: 700;
  color: #004400;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-align: center;
}

.author-photo-wrap {
  position: relative;
  display: block;
  max-width: 546px;
  margin: 0 auto 28px;
}

.author-photo {
  display: block;
  width: 100%;
  /* Vignette: fade top, left, and right edges into white background */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0px, black 60px),
    linear-gradient(to right,  transparent 0px, black 60px),
    linear-gradient(to left,   transparent 0px, black 60px);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0px, black 60px),
    linear-gradient(to right,  transparent 0px, black 60px),
    linear-gradient(to left,   transparent 0px, black 60px);
  mask-composite: intersect, intersect;
}

.slideshow-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0px, black 60px),
    linear-gradient(to right,  transparent 0px, black 60px),
    linear-gradient(to left,   transparent 0px, black 60px);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0px, black 60px),
    linear-gradient(to right,  transparent 0px, black 60px),
    linear-gradient(to left,   transparent 0px, black 60px);
  mask-composite: intersect, intersect;
}

.slideshow-photo.visible {
  opacity: 1;
}

.author-bio {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #111;
  max-width: 680px;
  margin-bottom: 28px;
}
.author-bio p {
  margin-bottom: 0.85em;
}
.author-bio strong {
  color: #111;
  font-weight: 600;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.amazon-link {
  display: inline-block;
  padding: 9px 22px;
  background: linear-gradient(135deg, #007000, #009900);
  color: #fff !important;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 3px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 80, 0, 0.25);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.amazon-link:hover {
  background: linear-gradient(135deg, #005500, #007700);
  box-shadow: 0 3px 12px rgba(0, 80, 0, 0.35);
  text-decoration: none !important;
}

.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  background: #c00;
  color: #fff !important;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 3px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(160, 0, 0, 0.25);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.youtube-link:hover {
  background: #a00;
  box-shadow: 0 3px 12px rgba(160, 0, 0, 0.35);
  text-decoration: none !important;
}
.yt-icon {
  width: 1.1em;
  height: 1.1em;
  fill: #fff;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Inner content padding ─────────────────────────────────── */
.content-inner {
  padding: 14px 32px 36px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.breadcrumb a {
  color: rgb(0, 66, 0);
}
.breadcrumb span {
  margin: 0 5px;
  color: #bbb;
}

/* ── Section / List pages ──────────────────────────────────── */
h1.page-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #7a2000;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.3;
}

.section-description {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.subsections-label,
.pages-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #004200;
  margin: 24px 0 10px;
}

.item-list {
  list-style: none;
}
.item-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.45;
}
.item-list li:last-child {
  border-bottom: none;
}
.item-list a {
  color: #7a2000;
  font-size: 1.05rem;
}
.item-list a:hover {
  text-decoration: underline;
}

.count {
  color: #004200;
  font-size: 0.82rem;
  margin-left: 6px;
}

.date-inline {
  color: #888;
  font-size: 0.82rem;
  margin-left: 6px;
}

/* ── Post / Sheet pages ────────────────────────────────────── */
.post-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.post-header h1 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #7a2000;
  line-height: 1.35;
  margin-bottom: 8px;
}

.date-label {
  color: #004200;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.post-content,
.sheet-content {
  font-size: 1.08rem;
  line-height: 2.0;
  color: #111;
}
.post-content p,
.sheet-content p {
  margin-bottom: 1em;
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}

.post-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #666;
  gap: 16px;
}
.post-nav a {
  color: rgb(0, 66, 0);
}
.post-nav .prev {
  flex: 1;
}
.post-nav .next {
  flex: 1;
  text-align: right;
}

/* ── Audio player ──────────────────────────────────────────── */
.audio-player {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 14px 16px;
  margin: 20px 0;
  background: #faf9f7;
  border-radius: 3px;
}
.audio-player audio {
  width: 100%;
}

/* ── Footer ────────────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  background: #fff;
}
#site-footer a {
  color: rgb(0, 66, 0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 820px) {
  #center_column {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  #site-header {
    padding: 18px 20px 14px;
  }
  #site-title {
    font-size: 2rem;
  }
  .author-panel {
    padding: 28px 20px 24px;
  }
  .content-inner {
    padding: 20px 16px 28px;
  }
  .nav-row {
    flex-wrap: wrap;
    justify-content: center;
  }
}
