/* Editorial pages: post cards, article prose, video embeds, quiet layouts. */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-meta,
.post-card .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.post-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.post-card:hover .post-title {
  color: var(--action);
}

.post-excerpt {
  font-size: 15px;
  color: var(--ink-2);
}

.lang-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}

.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 16px;
}

.prose h3 {
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.prose a {
  color: var(--action);
  text-decoration: underline;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  list-style: revert;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose img {
  border-radius: 14px;
}

.prose code {
  background: var(--tint);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 0.9em;
}

.prose pre {
  background: var(--tint);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line);
}

.video-embed img,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-play::before {
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(10, 15, 28, 0.78);
  clip-path: circle(50%);
}

.video-play::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 5px;
}


.quiet-head {
  padding-block: clamp(40px, 6vw, 72px) 0;
}

.quiet-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.quiet-sub {
  font-size: 18px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 48ch;
}

.quiet-body {
  padding-block: 40px 0;
}

.quiet-foot {
  margin-top: 40px;
}

.more-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.article {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.article-cover {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.back-link {
  align-self: flex-start;
}

.back-link::after {
  content: none;
}

.back-link::before {
  content: "\2039";
  font-size: 18px;
  line-height: 1;
}

.notice {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink-2);
}

.empty {
  color: var(--muted);
  font-size: 17px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-card h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.video-card p {
  font-size: 15px;
  color: var(--muted);
}
