﻿:root{
  --blog-bg:#fff;
  --blog-surface:#fff;
  --blog-text:#1f2638;
  --blog-muted:#4d5261;
  --blog-line:#d8d8d8;
  --blog-accent:#d90000;
  --blog-soft:#f6f6f6;
}

.blog-page{
  width:min(100% - 40px, 980px);
  margin:0 auto;
  padding:30px 0 100px;
  color:var(--blog-text);
  background:var(--blog-bg);
  font-family:Montserrat, Arial, sans-serif;
}

.blog-toolbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom:34px;
}

.blog-filters{
  display:flex;
  flex-wrap:wrap;
  gap:36px;
  align-items:center;
  padding-top:72px;
  font-size:20px;
  line-height:1.2;
}

.blog-filters a{
  color:var(--blog-text);
  text-decoration:none;
}

.blog-filters a.is-active{
  color:var(--blog-text);
}

.blog-toolbar__actions{
  display:flex;
  flex-direction:column;
  gap:26px;
  width:306px;
}

.blog-search{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border:1px solid var(--blog-line);
  border-radius:999px;
  background:#fff;
  color:#737887;
  font-size:16px;
}

.blog-search svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.blog-search input{
  width:100%;
  border:0;
  outline:0;
  color:var(--blog-text);
  font:inherit;
  background:transparent;
}

.blog-login{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  border:1px solid var(--blog-text);
  color:var(--blog-text);
  font-size:16px;
  line-height:1;
  text-decoration:none;
}

.blog-archive-header{
  width:min(100%, 900px);
  margin:0 auto 42px;
  text-align:center;
}

.blog-archive-kicker{
  margin:0 0 12px;
  color:var(--blog-muted);
  font-size:17px;
  line-height:1;
}

.blog-archive-title,
.blog-page > h1{
  margin:0;
  font-size:clamp(28px, 4vw, 42px);
  line-height:1.18;
  font-weight:400;
  letter-spacing:0;
}

.blog-archive-title span{
  color:var(--blog-text);
  font-weight:400;
}

.post-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:32px;
}

.post-grid:has(.post-card:only-child),
.post-grid--count-1{
  grid-template-columns:minmax(0, 306px);
  justify-content:center;
}

.post-grid:has(.post-card:first-child:nth-last-child(2)),
.post-grid--count-2{
  grid-template-columns:repeat(2, minmax(0, 306px));
  justify-content:center;
}

.post-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  min-height:540px;
  border:1px solid var(--blog-line);
  background:var(--blog-surface);
  overflow:hidden;
  box-shadow:none;
}

.post-card__image-link{
  display:block;
  overflow:hidden;
  background:#e9e9e9;
}

.post-card__image-link img{
  width:100%;
  aspect-ratio:306 / 229;
  object-fit:cover;
}

.post-card__body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:30px 25px 24px;
}

.post-card__meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:18px;
  color:var(--blog-muted);
  font-size:13px;
  line-height:18px;
  text-align:center;
}

.post-card__avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
  background:var(--blog-soft);
}

.post-card__author{
  color:var(--blog-text);
  font-weight:400;
}

.post-card__title{
  margin:0 0 16px;
  font-size:23px;
  line-height:1.22;
  font-weight:400;
  letter-spacing:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.post-card__title a{
  color:inherit;
  text-decoration:none;
}

.post-card__excerpt{
  margin:0;
  color:var(--blog-muted);
  font-size:16px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.post-card__footer{
  margin-top:auto;
  padding-top:34px;
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--blog-line);
}

.post-card__footer span{
  width:28px;
  height:9px;
  border-radius:999px;
  background:#e1e1e1;
}

.pagination{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:54px;
}

.pagination a,
.pagination span{
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--blog-line);
  border-radius:0;
  color:var(--blog-text);
  background:var(--blog-surface);
  font-size:1.6rem;
  line-height:1;
  text-decoration:none;
}

.pagination span{
  color:#b4ad9f;
  background:#f0ece5;
}

.pagination .pagination__current{
  width:auto;
  min-width:110px;
  padding:0 18px;
  color:var(--blog-text);
  background:var(--blog-surface);
  font-size:15px;
  font-weight:500;
}

.blog-empty{
  width:min(100%, 640px);
  margin:0 auto;
  padding:38px;
  border:1px solid var(--blog-line);
  text-align:center;
  background:var(--blog-surface);
}

.blog-empty h2{
  margin:0 0 10px;
  font-size:1.4rem;
}

.blog-empty p{
  margin:0;
  color:var(--blog-muted);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

@media (max-width: 960px){
  .post-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .blog-toolbar{
    justify-content:stretch;
  }

  .blog-toolbar__actions{
    width:100%;
  }
}

@media (max-width: 640px){
  .blog-page{
    width:min(100% - 24px, 1160px);
    padding:24px 0 62px;
  }

  .blog-filters{
    gap:18px;
    font-size:17px;
  }

  .blog-archive-header{
    margin-bottom:30px;
    text-align:left;
  }

  .blog-archive-kicker{
    margin-left:0;
  }

  .post-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
}

.post-grid.post-grid--count-1{
  grid-template-columns:minmax(0, 306px) !important;
  justify-content:center !important;
}

.post-grid.post-grid--count-2{
  grid-template-columns:repeat(2, minmax(0, 306px)) !important;
  justify-content:center !important;
}

@media (max-width: 640px){
  .post-grid.post-grid--count-1,
  .post-grid.post-grid--count-2{
    grid-template-columns:1fr !important;
  }
}


.blog-page{
  width:min(100% - 48px, 1040px);
  min-height:calc(100vh - 360px);
}

.post-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:28px 30px;
}

.post-card{
  min-height:520px;
}

.post-card__image-link img{
  aspect-ratio:306 / 226;
}

.post-card__body{
  padding:28px 24px 24px;
}

.post-card__meta{
  min-height:42px;
}

.post-card__title{
  min-height:84px;
}

.post-card__footer{
  padding-top:24px;
}

@media (max-width: 960px){
  .post-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px){
  .post-grid,
  .post-grid.post-grid--count-1,
  .post-grid.post-grid--count-2{
    grid-template-columns:1fr !important;
  }

  .post-card__title{
    min-height:auto;
  }
}

