:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #172333;
  background: #f7f9fc;
  line-height: 1.6;
  --blue: #1d50a1;
  --blue-hover: #173e7e;
  --muted: #465870;
  --line: #dce4ef;
  --blue-surface: #edf3fc;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(68rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: white; }
.bar, .footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.bar { padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; color: inherit; text-decoration: none; font-size: 1.2rem; }
.brand-mark { display: block; width: 2rem; height: 2rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 .4rem; height: 2px; background: currentColor; border-radius: 1px; opacity: 0; transform: scaleX(.55); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.site-header .site-nav a[aria-current="page"] { color: var(--blue); }
.label { color: var(--blue); }
.hero { padding-block: clamp(3rem, 10vw, 8rem); border-bottom: 1px solid var(--line); }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.1; margin-block: 0 .55em; }
.hero h1 { max-width: 13ch; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.05em; }
.hero p:last-child, .intro { font-size: 1.22rem; max-width: 38rem; }
.label { font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: .875rem; }
.prose h2 { font-size: 2rem; }
.reading { max-width: 49rem; margin-inline: auto; padding-block: 3.5rem 4rem; }
.reading h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.035em; }
.has-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-surface);
}
.cover-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cover-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: blur(.7px) contrast(1.16) saturate(1.3);
  transform: scale(1.02);
}
.cover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #fafdfff2 4%, #f7fbffd9 46%, #edf4fd66 78%, #edf4fd1f 100%);
}
.article-banner.has-cover {
  margin-bottom: 1.25rem;
  padding-block: clamp(1.25rem, 4.5vw, 2.75rem);
  overflow: visible;
  background: transparent;
}
.article-banner > .cover-media {
  inset-block: calc(-1 * clamp(1rem, 3vw, 2.5rem)) -1rem;
  inset-inline: 50% auto;
  width: min(66rem, calc(100vw - 1.25rem));
  transform: translateX(-50%);
  overflow: hidden;
  mask-image:
    linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(180deg, transparent, #000 12%, #000 75%, transparent);
  mask-composite: intersect;
}
.article-banner .cover-media img[src$="/tencent-hy4-flash-dfly2.webp"] {
  opacity: .34;
  filter: blur(1.4px) saturate(.85);
}
.article-banner.has-cover > .label { margin-top: 0; }
.article-banner.has-cover > h1 { font-family: inherit; }
.article-banner.has-cover > .byline { margin-bottom: 0; }
.byline { color: var(--muted); }
.partner { background: var(--blue-surface); border-left: 3px solid var(--blue); padding: .65rem 1rem; }
.prose { border-top: 1px solid var(--line); padding-top: 1rem; overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.4em; }
.prose img { max-width: 100%; height: auto; }
pre { overflow-x: auto; padding: 1rem; background: var(--blue-surface); }
.site-footer { padding-block: 2rem 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-copyright { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: inherit; font-size: .875rem; }
.skip-link { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }

@media (prefers-reduced-motion: no-preference) {
  :root {
    --ease-out: cubic-bezier(.2, .75, .25, 1);
    scroll-behavior: smooth;
  }

  .hero > *, .article-banner > .label, .article-banner > h1, .article-banner > .intro, .article-banner > .byline {
    animation: content-enter .56s var(--ease-out) backwards;
  }

  .article-banner > h1 { animation-delay: .05s; }
  .article-banner > .intro { animation-delay: .10s; }
  .article-banner > .byline { animation-delay: .13s; }
  .card-enter { animation: card-enter .5s var(--ease-out) var(--enter-delay, 0ms) backwards; }
  .brand-mark { transition: filter .18s ease; }
  .site-nav a, .card h3 a { transition: color .18s ease; }
  .site-nav a::after { transition: opacity .16s ease, transform .26s var(--ease-out); }
  .card { transition: box-shadow .32s var(--ease-out), border-color .32s var(--ease-out), transform .32s var(--ease-out); }
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark { filter: brightness(1.1); }
  .site-header .site-nav a:hover, .card h3 a:hover { color: var(--blue-hover); }
  .card:hover { border-color: #b8c7d8; box-shadow: 0 .25rem .65rem #1726330b, 0 .65rem 1.8rem #1726330a; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-2px); }
}

@keyframes content-enter {
  from { opacity: .28; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes card-enter {
  from { opacity: .4; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
