/*
 * Article pages (xo-bazi.ir/maqale/), rendered by the backend
 * (backend/src/article/site/render.ts) on top of landing.css.
 * Served unhashed at /l/article.css with a short cache, since the backend
 * can't know the landing's hashed file names.
 */

.a-page h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.45;
  margin: 8px 0 6px;
}

.a-meta {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-soft);
}

.a-meta a {
  color: inherit;
}

.a-cover {
  margin: 0 0 24px;
}

.a-cover img,
.a-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.a-body {
  font-size: 18px;
  line-height: 2.05;
}

.a-body h2 {
  margin: 1.6em 0 0.4em;
  line-height: 1.5;
}

.a-body h3 {
  font-size: 20px;
  margin: 1.3em 0 0.3em;
}

.a-body p,
.a-body ul,
.a-body ol {
  margin: 0 0 1em;
}

.a-body li + li {
  margin-top: 0.3em;
}

.a-body a {
  color: var(--cyan-deep);
  font-weight: 700;
}

.a-body blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-inline-start: 5px solid var(--sun);
  background: var(--cream);
  border-radius: 14px;
}

.a-body blockquote p:last-child {
  margin-bottom: 0;
}

.a-body figure {
  margin: 1.4em 0;
}

.a-body figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--navy-soft);
  text-align: center;
}

.a-cta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 36px 0 8px;
  padding: 22px;
  border-radius: 24px;
  background: var(--cyan-soft);
}

.a-cta > img {
  flex: none;
  width: 72px;
  height: 72px;
}

.a-cta h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.a-cta p {
  margin: 0 0 12px;
}

.a-related h2,
.a-learn h2 {
  font-size: 22px;
}

.a-learn {
  margin-top: 28px;
  line-height: 2;
}

.a-learn > p {
  margin: 4px 0;
}

.a-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.a-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  transition: translate 0.2s var(--bounce), border-color 0.2s;
}

.a-card a:hover {
  translate: 0 -3px;
  border-color: var(--cyan);
}

.a-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.a-card div {
  padding: 14px 16px 16px;
}

.a-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.6;
}

.a-card p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--navy-soft);
}

.a-card time {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-soft);
}

@media (max-width: 560px) {
  .a-body {
    font-size: 17px;
  }

  .a-cta {
    flex-direction: column;
  }
}
