.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.blog-hero { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.blog-hero__text { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 700px; padding: 0 20px; }
.blog-hero__title { font-size: 48px; line-height: 53px; letter-spacing: -1.92px; font-weight: 500; color: var(--ink); }
.blog-hero__lead { margin-top: -12px; font-size: 18px; line-height: 24px; font-weight: 400; color: var(--ink-60); }

.subscribe { width: 100%; max-width: 520px; display: flex; align-items: center; gap: 20px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); background: var(--white); }
.subscribe__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; cursor: text; }
.subscribe__field img { width: 14px; height: 14px; opacity: 0.6; flex: none; }
.subscribe input, .posts__search input {
  flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; outline: none;
  font: 400 14px/17px var(--font); letter-spacing: -0.14px; color: var(--ink);
}
.subscribe input::placeholder, .posts__search input::placeholder { color: var(--ink-60); }
.subscribe:focus-within, .posts__search:focus-within { border-color: var(--ink-60); }
.subscribe__btn { min-height: 40px; padding: 7px 12px; }
.subscribe__btn:hover, .subscribe__btn:focus-visible { background: rgba(51, 51, 51, 0.85); }

/* ---------- Posts ---------- */
.posts { overflow: hidden; }
.posts__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 20px 40px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.posts__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.chip {
  padding: 9px 13px; background: var(--white); border: 1px solid var(--line);
  font-size: 14px; line-height: 17px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { color: var(--ink); border-color: #e2e2e2; }
.chip:active { background: #f2f2f2; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 500; }
.posts__search { flex: none; width: 180px; display: flex; align-items: center; gap: 8px; padding: 3px 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink-60); cursor: text; transition: border-color 0.2s var(--ease); }
.posts__search svg { flex: none; }

.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.post { display: flex; flex-direction: column; padding: 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.post:nth-child(3n) { border-right: 0; }
.post__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.post__date, .post__author { font-size: 12px; line-height: 14px; font-weight: 400; color: var(--ink); }
.post__tag { padding: 4px 7px; border: 1px solid var(--line); font-size: 12px; line-height: 14px; font-weight: 400; color: var(--ink); white-space: nowrap; transition: background-color 0.2s var(--ease); }
.post__tag:hover { background: var(--surface); }
.post__image { display: block; margin-top: 25px; aspect-ratio: 387 / 202; overflow: hidden; }
.post__image img { width: 100%; height: 100%; object-fit: cover; }
.post__title { margin-top: 20px; font-size: 20px; line-height: 26px; letter-spacing: -0.4px; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.post__title a { transition: color 0.2s var(--ease); }
.post__title a:hover { color: var(--ink-60); }
.post__foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.post__time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 14px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.post__time img { width: 12px; height: 12px; }
.posts__empty { padding: 60px 20px; text-align: center; font-size: 16px; color: var(--ink-60); border-bottom: 1px solid var(--line); }

.pager { position: relative; display: flex; justify-content: center; align-items: center; padding: 20px; min-height: 78px; }
.pager__pages { display: flex; align-items: center; gap: 4px; }
.pager__num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 37px; padding: 0 4px;
  font-size: 14px; line-height: 21px; font-weight: 500; color: var(--ink-60);
  transition: color 0.2s var(--ease);
}
.pager__num:hover, .pager__num:focus-visible, .pager__num.is-current { color: var(--ink); }
.pager__gap { display: inline-flex; width: 29px; justify-content: center; font-size: 14px; line-height: 21px; color: var(--ink-60); }
.pager__next { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 21px; font-weight: 500; color: var(--ink-60); transition: color 0.2s var(--ease); }
.pager__next img { width: 18px; height: 18px; opacity: 0.6; transition: opacity 0.2s var(--ease); }
.pager__next:hover { color: var(--ink); }
.pager__next:hover img { opacity: 1; }

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; border-top: 1px solid var(--line); }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.banner__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); text-wrap: wrap; }
.banner__text { margin-top: 12px; font-size: 16px; line-height: 21.7px; font-weight: 400; color: var(--ink); }
.banner .btn { margin-top: 32px; }

/* ---------- Footer spacing (matches source on this page) ---------- */
@media (min-width: 810px) {
  .site-footer .site-footer__brand { gap: 31px; }
  .site-footer .footer__col { gap: 20px; }
  .site-footer .footer__links { gap: 12px; }
  .site-footer .site-footer__legal { margin-top: 80px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .posts__filters { max-width: 830px; }
  .banner { padding: 116px 40px; }
  .blog-hero__lead { font-size: 16px; line-height: 22px; }
  .posts__bar { flex-direction: column; align-items: stretch; gap: 20px; padding: 20px 39px; }
  .posts__search { width: auto; }
  .posts__grid { grid-template-columns: repeat(2, 1fr); }
  .post { padding: 27px; }
  .post:nth-child(3n) { border-right: 1px solid var(--line); }
  .post:nth-child(2n) { border-right: 0; }
  .banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

/* ---------- Phone ---------- */
@media (max-width: 809px) {
  .blog-hero { padding: 60px 20px; gap: 24px; }
  .blog-hero__text { padding: 0; }
  .blog-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; }
  .blog-hero__lead { font-size: 14px; line-height: 19px; }
  .subscribe { padding: 6px 6px 6px 16px; gap: 12px; }
  .subscribe input { font-size: 14px; }
  .posts__bar { padding: 20px; gap: 16px; }
  .posts__filters { gap: 12px; }
  .chip { font-size: 14px; }
  .posts__search { padding: 9px 16px; }
  .posts__grid { grid-template-columns: 1fr; }
  .post, .post:nth-child(3n) { padding: 20px; border-right: 0; }
  .post__head { min-height: 24px; }
  .post__date, .post__author { font-size: 12px; }
  .post__image { margin-top: 20px; }
  .post__title { margin-top: 20px; }
  .post__foot { padding-top: 40px; }
  .pager { flex-direction: column; gap: 12px; }
  .pager__next { position: static; transform: none; }
  .banner { padding: 38px 20px; }
}
