.sf-editorial {
  --editorial-blue: #0085ff;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 32px 64px;
  color: var(--foreground);
}
.sf-editorial :is(h1,h2,p) { margin: 0 }
.sf-editorial :is(h1,h2) {
  font-weight: 500;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.sf-editorial-head {
  margin-bottom: 27px;
  text-align: center;
}
.sf-editorial-head h1 { font-size: 52px; line-height: 1.08 }
.sf-editorial-head > p {
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}
.sf-editorial a { color: inherit; text-decoration: none }
.sf-editorial a:focus-visible { outline: 2px solid var(--editorial-blue); outline-offset: 5px }
.sf-editorial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sf-editorial-list > article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--foreground) 2%, var(--background));
}
.sf-editorial-list > article > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border-radius: inherit;
  transition: background .22s;
}
.sf-editorial-list a:hover { background: color-mix(in srgb, var(--foreground) 3%, transparent) }
.sf-editorial-cover {
  display: block;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--foreground) 5%, var(--background));
}
.sf-editorial-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .28s ease-out;
}
.sf-editorial-category {
  margin: 12px 12px 0;
  color: var(--muted-foreground);
  font-family: var(--font-mono,monospace);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sf-editorial-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 9px 12px 17px;
  font-family: var(--font-sans);
}
.sf-editorial:lang(zh) .sf-editorial-copy {
  font-family: var(--font-geist-sans),"PingFang TC","Noto Sans CJK TC","Microsoft JhengHei",system-ui,sans-serif;
}
.sf-editorial .sf-editorial-copy h2 {
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.sf-editorial:lang(zh) .sf-editorial-copy h2 { letter-spacing: normal }
.sf-editorial .sf-editorial-copy > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}
.sf-editorial-time {
  margin-top: auto;
  padding-top: 11px;
  color: color-mix(in srgb, var(--foreground) 64%, var(--background));
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .sf-editorial-head { animation: editorial-enter .4s ease-out both }
  .sf-editorial-list { animation: editorial-enter .45s .06s ease-out both }
  @keyframes editorial-enter {
    from { opacity: 0; transform: translateY(8px) }
    to { opacity: 1; transform: none }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sf-editorial-list a:is(:hover,:focus-visible) .sf-editorial-cover img { transform: scale(1.04) }
}
@media (max-width: 900px) {
  .sf-editorial { padding-inline: 24px }
  .sf-editorial-list { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .sf-editorial .sf-editorial-copy h2 { font-size: 21px }
  .sf-editorial .sf-editorial-copy > p { display: block }
}
@media (max-width: 640px) {
  .sf-editorial { padding: 40px 20px 48px }
  .sf-editorial-head { margin-bottom: 24px }
  .sf-editorial-head h1 { font-size: 40px }
  .sf-editorial-list { grid-template-columns: minmax(0, 1fr); gap: 16px }
}
@media (prefers-reduced-motion: reduce) {
  .sf-editorial * { animation: none!important; transition: none!important }
}
