/* SofiMagic — individuālo rakstu kartītes noformējums */
.article-page {
  padding: 34px 0 64px;
  background: #fff8f1;
}

.article-page > .container {
  max-width: 900px;
}

.article-page .article-content.article-frame {
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #e8c99f;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(111, 55, 38, .08);
}

/* Attēls atrodas pašā augšā, tāpat kā rakstu kartītē */
.article-page .article-hero-image {
  display: block;
  width: 100%;
  height: clamp(190px, 32vw, 330px);
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 15px;
  box-shadow: none;
}

/* Raksta virsraksts un teksts */
.article-page .article-content h1 {
  margin: 16px 10px 8px;
  color: #8f1834;
  text-align: left;
  font: 600 clamp(1.8rem, 3.6vw, 2.45rem)/1.12 "Cormorant Garamond", Georgia, serif;
}

.article-page .article-date {
  margin: 0 10px 18px;
  color: #98745f;
  text-align: left;
  font: 400 .78rem/1.5 "Montserrat", sans-serif;
}

.article-page .article-text {
  padding: 0 10px 8px;
  color: #65484a;
  font: 400 .94rem/1.85 "Montserrat", sans-serif;
}

.article-page .article-text p {
  margin: 0 0 17px;
}

.article-page .article-text h2,
.article-page .article-content h2 {
  margin: 24px 10px 12px;
  color: #8f1834;
  font: 600 1.65rem/1.2 "Cormorant Garamond", Georgia, serif;
}

.article-page .article-text strong {
  color: #48212a;
}

/* Poga atrodas kartītes apakšā un atgriež rakstu sarakstā */
.article-page .all-articles-wrap {
  display: flex;
  justify-content: flex-start;
  margin: 12px 10px 10px;
  padding-top: 18px;
  border-top: 1px solid #f0dfcf;
}

.article-page .all-articles-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 25px;
  border: 1px solid #c78a36;
  border-radius: 28px;
  background: #ffe0a0;
  color: #68152b;
  text-decoration: none;
  font: 500 .9rem "Cormorant Garamond", Georgia, serif;
  transition: background .2s ease, transform .2s ease;
}

.article-page .all-articles-button:hover {
  background: #f6ce7d;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .article-page {
    padding: 20px 0 42px;
  }

  .article-page .article-content.article-frame {
    padding: 8px;
    border-radius: 18px;
  }

  .article-page .article-hero-image {
    height: 210px;
    border-radius: 12px;
  }

  .article-page .article-content h1 {
    margin: 14px 8px 7px;
    font-size: 2rem;
  }

  .article-page .article-date {
    margin: 0 8px 14px;
  }

  .article-page .article-text {
    padding: 0 8px 5px;
    font-size: .88rem;
    line-height: 1.8;
  }

  .article-page .all-articles-wrap {
    margin: 10px 8px 8px;
  }
}


/* Atgriešanās poga raksta lapas augšpusē */
.article-page .all-articles-top {
  display: flex;
  justify-content: flex-start;
  max-width: 820px;
  margin: 0 auto 16px;
}
.article-page .all-articles-top .all-articles-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid #a96e24;
  border-radius: 28px;
  background: #8f1834;
  color: #fffdf9;
  text-decoration: none;
  font: 500 .9rem "Montserrat", sans-serif;
  transition: background .2s ease, transform .2s ease;
}
.article-page .all-articles-top .all-articles-button:hover {
  background: #68152b;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .article-page .all-articles-top {
    margin: 0 0 12px;
  }
  .article-page .all-articles-top .all-articles-button {
    min-height: 40px;
    padding: 9px 18px;
  }
}
