/* Blog list + article. Figma "Blog · Desktop 1440" (69:3), "Blog Article (example) · Desktop 1440" (69:317).
   No mobile frames in Figma — mobile follows the patterns of the other mobile frames. */

/* ---------- Shared: tags + post cards ---------- */
.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--sky);
  font-weight: 700; font-size: 13px; line-height: 18px; letter-spacing: .02em;
  color: #4C96FF;
  white-space: nowrap;
}
.tag--fun { background: #FFCCE0; color: #DF1263; }
.tag--corporate-news { background: #E0CEFD; color: #5008C4; }
.tag--early-development { background: #E2F4D7; color: #599E2E; }
.tag--holidays { background: #FFF5CC; color: #C97A03; }
.tag--health { background: #D2F9F0; color: #0E8A6E; }
.tag--traveling { background: #FEEACD; color: #C25A00; }

.post {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 502px;
  padding: 12px 12px 24px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(0, 0, 0, .08); }
.post[hidden] { display: none; }
.post__img { width: 100%; height: auto; aspect-ratio: 360 / 200; border-radius: 22px; object-fit: cover; }
.post__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.post__title { font-weight: 700; font-size: 20px; line-height: 28px; color: var(--ink); }
.post__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is clickable */
.post__title a:focus-visible { outline: none; }
.post:has(.post__title a:focus-visible) { outline: 3px solid #4C96FF; outline-offset: 3px; }
.post__text { font-size: 16px; line-height: 24px; letter-spacing: .03em; color: var(--text); }
.post__more {
  display: inline-flex; align-items: center; gap: 13px;
  align-self: flex-start;
  margin-top: auto; /* "Read more" sits at the bottom of every card, in line across the row */
  padding-top: 4px;
  font-weight: 700; font-size: 15px; line-height: 20px;
  color: #4C96FF;
}


/* ---------- Blog hero (69:69) ---------- */
.blog-hero { background: var(--sky); padding: var(--hero-top) 0 40px; }
.blog-hero__title { font-weight: 700; font-size: 60px; line-height: 66px; text-align: center; color: var(--ink); }
.blog-hero__filters {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 28px;
}
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-chip {
  padding: 8px 14px;
  border-radius: 100px;
  background: #fff;
  font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .03em;
  color: var(--ink);
  white-space: nowrap;
  transition: color .15s, box-shadow .15s;
}
.blog-chip:hover { color: #4C96FF; box-shadow: var(--shadow-soft); }
.blog-chip.is-active { padding: 8px 16px; background: var(--grad); color: #fff; }
.blog-search { flex: none; width: 220px; }
.blog-search__input {
  width: 100%; height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: #fff;
  outline: none;
  transition: border-color .15s;
  font: inherit;
  font-size: 14px; line-height: 20px; letter-spacing: .03em;
  color: var(--ink);
}
.blog-search__input::placeholder { color: #94989E; opacity: 1; }
/* same states as the contact form fields */
.blog-search__input:hover { border-color: #D5D5DA; }
.blog-search__input:focus-visible { border-color: #4C96FF; }


/* ---------- Posts (69:110) ---------- */
.posts { padding: 30px 0 80px; }


.posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.posts__empty { margin-top: 40px; text-align: center; font-size: 18px; line-height: 26px; color: var(--text); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pager__item {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-weight: 700; font-size: 16px; line-height: 24px;
  color: var(--ink);
}
a.pager__item:hover { border-color: #4C96FF; color: #4C96FF; }
.pager__item.is-active { border: 0; background: var(--grad); color: #fff; }
.pager__item.is-active:hover { color: #fff; }
.pager__item--next { padding: 0 18px; }

/* Blog list page: extra space under the subscribe banner (69:224) */
.posts ~ .subscribe { padding-bottom: 110px; }


/* ---------- Article hero (69:383) ---------- */
.article-hero { background: var(--sky); padding: var(--hero-top) 0 40px; }
.article-hero .container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.crumbs {
  display: flex; gap: 8px;
  font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: .03em;
  color: #94989E;
}
.crumbs a { color: #4C96FF; }
.crumbs a:hover { text-decoration: underline; }
.article-hero .tag { align-self: center; }
.article-hero__title {
  max-width: 1000px;
  font-weight: 700; font-size: 48px; line-height: 54px;
  text-align: center; color: var(--ink);
}

/* ---------- Article body (69:407) ---------- */
.article-body { padding-bottom: 80px; }
.article-body .container { max-width: 840px; }
.article-body__cover { width: 100%; height: auto; aspect-ratio: 800 / 444; border-radius: 40px; object-fit: cover; }
.prose { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.prose p { font-size: 18px; line-height: 30px; color: var(--text); }
.prose a { color: #4C96FF; }
.prose a:hover { text-decoration: underline; }
.prose h2 { margin-top: 28px; font-weight: 700; font-size: 32px; line-height: 40px; color: var(--ink); }
.prose h3 { font-weight: 700; font-size: 24px; line-height: 31px; color: var(--ink); }
/* content imported from the old WordPress blog */
.prose h4 { font-weight: 700; font-size: 20px; line-height: 28px; color: var(--ink); }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; font-size: 18px; line-height: 30px; color: var(--text); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: #4C96FF; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose img { width: auto; max-width: 100%; height: auto; margin: 8px auto; border-radius: 24px; }
.prose figure { margin: 8px 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { padding: 16px 24px; border-left: 4px solid #5EDB67; border-radius: 0 16px 16px 0; background: var(--sky); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose sup { font-size: .7em; }
.prose-video {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 8px 0;
  border: 8px solid #fff; border-radius: 32px;
  background: #000; box-shadow: var(--shadow-soft);
}
.prose-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.prose-video__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 103px; height: 73px; translate: -50% -50%; transition: scale .15s ease; }
.prose-video__play img { width: 100%; height: 100%; margin: 0; border-radius: 0; }
.prose-video:hover .prose-video__play { scale: 1.06; }
.article-hero__date { font-size: 15px; line-height: 22px; color: var(--muted); }
.post__img--empty { display: block; aspect-ratio: 360 / 200; border-radius: 24px; background: var(--sky); }

/* ---------- More articles (69:462) ---------- */
.more { background: var(--green-10); padding: 40px 0 100px; }
.more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.more .post { box-shadow: none; }


/* ================= Responsive ================= */
@media (max-width: 1180px) {
  .blog-hero__filters { flex-direction: column; align-items: center; }
  .blog-cats { justify-content: center; }
}

@media (max-width: 1100px) {
  .posts__grid, .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more__grid .post:nth-child(3) { display: none; }
  .post { min-height: 0; }
}

/* Mobile (derived from the other 390 frames) */
@media (max-width: 899px) {
  .blog-hero { padding: var(--hero-top) 0 28px; }
  .blog-hero .container, .posts .container, .more .container { max-width: 600px; }
  .blog-hero__title { font-size: 36px; line-height: 44px; }
  .blog-hero__filters { align-items: stretch; gap: 14px; margin-top: 20px; }
  .blog-cats {
    flex-wrap: nowrap; justify-content: flex-start;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .blog-cats::-webkit-scrollbar { display: none; }
  .blog-chip { flex: none; }
  .blog-search { width: 100%; }
  .blog-search__input { height: 48px; font-size: 16px; }

  .posts { padding: 12px 0 48px; }

  .posts__grid, .more__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .more__grid { margin-top: 24px; }
  .more__grid .post:nth-child(3) { display: flex; }
  .post { padding-bottom: 20px; }
  .post__title { font-size: 18px; line-height: 26px; }
  .post__text { font-size: 15px; line-height: 22px; }
  .posts__empty, .pager { margin-top: 32px; }
  .pager__item { min-width: 40px; height: 40px; font-size: 15px; }
  .pager__item--next { padding: 0 14px; }

  .posts ~ .subscribe { padding-bottom: 24px; }

  .article-hero { padding: var(--hero-top) 0 28px; }
  .article-hero .container { gap: 14px; }
  .article-hero__title { font-size: 28px; line-height: 34px; }
  .article-body { padding-bottom: 48px; }
  .article-body__cover { border-radius: 24px; }
  .prose { gap: 14px; margin-top: 28px; }
  .prose p { font-size: 16px; line-height: 26px; }
  .prose h2 { margin-top: 22px; font-size: 24px; line-height: 30px; }
  .prose h3 { font-size: 20px; line-height: 26px; }
  .prose h4 { font-size: 18px; line-height: 26px; }
  .prose ul, .prose ol { font-size: 16px; line-height: 26px; }
  .prose-video { border-width: 4px; border-radius: 20px; }
  .prose-video__play { width: 72px; height: 51px; }

  .more { padding: 32px 0 48px; }
}

/* Tablet (601–899px): category chips swipe, posts in 2 columns */
@media (min-width: 601px) and (max-width: 899px) {
  .blog-hero .container, .posts .container, .more .container { max-width: none; }
  .blog-hero__title { font-size: 40px; line-height: 1.1; }
  .posts__grid, .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .more__grid .post:nth-child(3) { display: none; }
}
