/* "About mandalas" page */
.about {
  max-width: 720px;
}
.about h3 {
  margin: 34px 0 10px;
}
.about p,
.about li {
  line-height: 1.6;
}
.about ul {
  padding-left: 22px;
  margin: 8px 0 16px;
}
.about li {
  margin-bottom: 8px;
}
.about .sources li {
  font-size: 0.9em;
  opacity: 0.9;
}
#emblem {
  width: 180px;
  height: 180px;
  margin: 0 0 18px;
  color: var(--accent, #ffa500);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
}
#emblem:hover {
  fill: none;
}
#omg-header h1 a {
  color: inherit;
  text-decoration: none;
}
.callout {
  background-color: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 10px;
  padding: 2px 18px;
  margin: 0 0 18px;
}
.btn-link {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
@media only screen and (max-width: 560px) {
  #emblem {
    width: 140px;
    height: 140px;
  }
}
/* the dark theme renders <strong> at normal weight */
.about strong {
  font-weight: bold;
}

/* primer: "What is a mandala?" + origins content, themed via the site's variables */
.primer .lede {
  font-size: 1.15em;
  opacity: 0.9;
}
.primer .sanskrit {
  font-style: italic;
  color: var(--accent, #ffa500);
}
.primer .anatomy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0 0 20px;
  padding: 14px 0;
  border-block: 1px solid var(--card-border);
}
.primer .anatomy dt {
  font-weight: bold;
  color: var(--card-strong); /* black in the light theme, white in the dark ones */
}
.primer .anatomy dd {
  margin: 0;
  opacity: 0.85;
}

/* picture strip between the two sections */
.primer .strip {
  margin: 36px 0 8px;
  text-align: center;
}
.primer .strip ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 40px; /* row gap, column gap */
  max-width: 600px;
  margin: 0 auto;
}
@media only screen and (max-width: 480px) {
  .primer .strip ul {
    gap: 36px 18px;
  }
}
.primer .strip li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.primer .strip img {
  display: block;
  max-width: min(112px, 100%); /* 80px + 40% */
  max-height: 112px;
  width: auto;
  height: auto;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, filter 0.2s ease;
}
/* evol-blue: the artwork sits on a very light blue, almost white disc */
html[data-theme="evol-blue"] .primer .strip img {
  background-color: #f4f9ff;
  border-radius: 50%;
}
.primer .strip img:hover {
  z-index: 3;
  transform: scale(2);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.primer .strip .name {
  position: relative;
  z-index: 1;
  transition: opacity 0.15s ease;
  font-size: 0.78em;
  letter-spacing: 0.02em;
  opacity: 0.85;
  text-wrap: balance;
}
.primer .strip img:hover + .name {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .primer .strip img {
    transition: none;
  }
  .primer .strip .name {
    transition: none;
  }
}

.primer .timeline {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.primer .timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--card-border);
  font-size: 0.95em;
  line-height: 1.55;
}
.primer .timeline li:last-child {
  border-bottom: 1px solid var(--card-border);
}
.primer .timeline .when {
  font-weight: bold;
  color: var(--card-strong);
  font-variant-numeric: tabular-nums;
}
@media only screen and (max-width: 480px) {
  .primer .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* "Make one now": a real theme button, without the default top margin so it lines up with the tagline */
.tagline .btn-go {
  margin: 0 0 0 8px;
  white-space: nowrap;
}
