/* ==========================================================================
   Blog listing + post
   ========================================================================== */

/* Search */
.bl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 340px);
  height: 52px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0,0,0,.14);
  color: rgba(0,0,0,.5);
  transition: border-color .3s, box-shadow .3s;
}
.bl-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15,23,240,.12); color: var(--blue); }
.bl-search input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}

/* Featured */
.bl-featured__link {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  min-height: 460px;
}
.bl-featured__art { position: relative; min-height: 300px; }
.bl-featured__art svg, .bl-featured__art img { position: absolute; inset: 0; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.bl-featured__art img { width: 100%; height: 100%; object-fit: cover; }
.bl-featured__link:hover .bl-featured__art svg, .bl-featured__link:hover .bl-featured__art img { transform: scale(1); }
.bl-featured__text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}
.bl-featured__tag {
  align-self: flex-start;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--blue);
  margin-bottom: auto;
}
.bl-featured__title { font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; letter-spacing: var(--track-heading); line-height: 1.1; }
.bl-featured__excerpt { font-size: 17px; line-height: 1.55; opacity: .75; }
.bl-featured__meta { font-size: 14px; opacity: .6; }

/* Browse */
.bl-browse { padding-top: 100px; }
.bl-browse__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.bl-browse__title { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; letter-spacing: var(--track-display); }

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
}
.bl-grid--two { grid-template-columns: 1fr 1fr; }
.bl-card__link { display: block; }
.bl-card__art {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  margin-bottom: 18px;
}
.bl-card__art svg, .bl-card__art img { transition: transform 1s var(--ease-out); transform: scale(1.04); }
.bl-card__art img { width: 100%; height: 100%; object-fit: cover; }
.bl-card__link:hover .bl-card__art svg { transform: scale(1.14) rotate(1deg); }
.bl-card__link:hover .bl-card__art img { transform: scale(1.1); }
.bl-card__meta { display: flex; gap: 10px; font-size: 13px; color: rgba(0,0,0,.55); margin-bottom: 10px; }
.bl-card__meta b { font-weight: 500; color: var(--blue-text); }
.bl-card__title {
  display: inline;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: var(--track-heading);
  line-height: 1.25;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.bl-card__link:hover .bl-card__title { background-size: 100% 1.5px; }
.bl-card__excerpt { font-size: 15px; line-height: 1.55; color: rgba(0,0,0,.6); margin-top: 10px; }
.bl-empty { padding: 60px 0; text-align: center; font-size: 18px; color: rgba(0,0,0,.5); }

/* Medium band */
.bl-medium { display: block; }
.bl-medium .marquee { background: var(--blue); color: #fff; border: 0; padding: 34px 0; }
.bl-medium .marquee__item::after { background: #fff; }
.bl-medium .marquee__item:nth-child(even) { -webkit-text-stroke-color: #fff; }

/* --------------------------------------------------------------------------
   Post
   -------------------------------------------------------------------------- */
.ps-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
}
.ps-progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.ps-head { padding-top: calc(var(--header-h) + 40px); max-width: 960px; }
.ps-back {
  display: inline-flex;
  gap: 8px;
  font-size: 15px;
  color: var(--blue-text);
  margin-bottom: 34px;
}
.ps-back span { transition: transform .4s var(--ease-out); }
.ps-back:hover span { transform: translateX(-4px); }
.ps-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 15px; color: rgba(0,0,0,.55); margin-bottom: 18px; }
.ps-meta b { font-weight: 500; color: var(--blue-text); }
.ps-title {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: var(--track-display);
}
.ps-lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: rgba(0,0,0,.65); margin-top: 24px; max-width: 36em; }
.ps-cover { margin-top: 56px; }
.ps-cover__art { aspect-ratio: 21 / 9; border-radius: var(--r-xl); }
.ps-cover__art svg { transform: scale(1.15); }
.ps-cover__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }

.ps-body { max-width: 720px; margin: 70px auto 0; padding: 0 var(--gutter); }
.ps-body p { font-size: 19px; line-height: 1.75; margin-bottom: 1.2em; }
.ps-body h2 { font-size: 32px; font-weight: 500; letter-spacing: var(--track-heading); line-height: 1.15; margin: 1.6em 0 .6em; }
.ps-body ul { margin: 0 0 1.4em; }
.ps-body li {
  position: relative;
  font-size: 19px;
  line-height: 1.65;
  padding: 10px 0 10px 34px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.ps-body li:last-child { border-bottom: 1px solid rgba(0,0,0,.08); }
.ps-body li::before {
  content: "";
  position: absolute;
  left: 4px; top: 22px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.ps-body blockquote {
  position: relative;
  margin: 1.6em 0;
  padding: 34px 36px;
  border-radius: var(--r-lg);
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--track-heading);
}
.ps-body blockquote::before {
  content: "“";
  position: absolute;
  top: -24px; left: 24px;
  font-size: 100px;
  line-height: 1;
  color: var(--blue);
}
.ps-share {
  max-width: 720px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ps-share p { font-size: 17px; }
.ps-share__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-share .chip { display: inline-flex; align-items: center; }

@media (max-width: 960px) {
  .bl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .bl-featured__link { grid-template-columns: 1fr; }
  .bl-featured__text { padding: 28px; }
  .bl-browse { padding-top: 70px; }
  .ps-cover__art { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .bl-grid, .bl-grid--two { grid-template-columns: 1fr; }
  .ps-body p, .ps-body li { font-size: 18px; }
}
