/* ==================================================
   FLORISTJAKOBSON.EE – BLOGI ÜHINE CSS
   Kasutus: /blogi/css/blog.css
   ================================================== */

/* ==================================================
   BLOGI AVALEHT
   ================================================== */

.blog-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.blog-header {
  padding: clamp(72px, 10vw, 130px) 0;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(rgba(13, 25, 34, 0.72), rgba(13, 25, 34, 0.82)),
    url("/images/Matuseparjad-Tallinnas-Lein3.webp") center 42% / cover
      no-repeat;
}

.blog-label {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.blog-header h1 {
  max-width: 850px;
  margin: 0 auto 20px;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  font-weight: 500;
  line-height: 1.08;
}

.blog-header p:last-child {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.blog-posts {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #f5f3ef;
}

.blog-posts h2 {
  margin: 0 0 38px;
  color: #26352f;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(25, 39, 33, 0.1);
}

.blog-card > a {
  display: block;
  overflow: hidden;
}

.blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover img {
  transform: scale(1.025);
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
}

.blog-card-category {
  margin: 0 0 12px;
  color: #6e7d73;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
}

.blog-card h3 a {
  color: #26352f;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: #66776c;
}

.blog-card-content > p:not(.blog-card-category) {
  margin: 0 0 24px;
  color: #4b554f;
  line-height: 1.7;
}

.blog-read-more {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 4px;
  color: #26352f;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.blog-read-more:hover {
  color: #66776c;
}

/* ==================================================
   BLOGI ARTIKLID
   ================================================== */

.article-header {
  padding: 90px 24px 70px;
  background: #f3f0eb;
  color: #1c1c1c;
}

.article-container {
  width: min(780px, 100%);
  margin-inline: auto;
}

.article-back {
  display: inline-block;
  margin-bottom: 42px;
  padding-bottom: 3px;
  color: #4f4944;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.article-back:hover,
.article-link:hover {
  color: #765f4d;
}

.article-label {
  margin: 0 0 14px;
  color: #765f4d;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-header h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
}

.article-date {
  display: block;
  margin-bottom: 32px;
  color: #716a64;
  font-size: 0.92rem;
}

.article-image {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 55px 24px 0;
  box-sizing: border-box;
}

.article-image img,
.article-inline-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-inline-image {
  margin: 48px 0;
}

.article-inline-image figcaption {
  margin-top: 10px;
  color: #716a64;
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-lead {
  max-width: 690px;
  margin: 0;
  color: #4d4844;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.7;
}

.article-content {
  padding: 70px 24px 95px;
  color: #35312e;
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content p {
  margin: 0 0 28px;
}

.article-content h2 {
  margin: 58px 0 20px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 500;
  line-height: 1.25;
}

.article-content blockquote {
  margin: 55px 0;
  padding: 26px 0 26px 30px;
  color: #51483f;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.45;
  border-left: 2px solid #a08a76;
}

.article-link {
  color: #51483f;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-back-bottom {
  margin: 25px 0 0;
}

/* ==================================================
   MOBIILIVAADE
   ================================================== */

@media (max-width: 760px) {
  .blog-container {
    width: min(100% - 28px, 620px);
  }

  .blog-header {
    padding: 68px 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-content {
    padding: 24px 22px 28px;
  }
}

@media (max-width: 620px) {
  .article-header {
    padding: 65px 20px 55px;
  }

  .article-back {
    margin-bottom: 32px;
  }

  .article-content {
    padding: 55px 20px 75px;
    font-size: 1rem;
  }

  .article-image {
    padding: 35px 20px 0;
  }

  .article-content h2 {
    margin-top: 45px;
  }

  .article-content blockquote {
    margin: 42px 0;
    padding-left: 20px;
  }

  .article-inline-image {
    margin: 38px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card img {
    transition: none;
  }
}
