/* Article, writing index and archive styles, appended after the origin CSS. */
@font-face {
  font-family: "Inter Tight";
  src: url("/studio/v4/Inter-Tight.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --ink: #101114;
  --muted: #51525a;
  --line: #c5c7ce;
  --green: #144fe1;
  --panel: #e9eef6;
  --reading-font: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --site-font: "Inter Tight", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--site-font); -webkit-font-smoothing: antialiased; }
::selection { color: #f4f7fb; background: #144fe1; }
.page, .page.writing-page {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: clamp(22px, 5.6vw, 88px);
  background: transparent;
  color: var(--ink);
}
.page > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px; flex-wrap: wrap;
  padding-block: 22px;
  border-block-end: 1px solid var(--line);
  background: var(--bg);
}
.page .identity { font: 700 23px/1 var(--site-font); letter-spacing: -.065em; color: var(--ink); }
.page .identity span { color: var(--green); }
.page header nav { gap: 6px clamp(14px, 2.2vw, 34px); }
.page header nav a { font: 550 13px/1.5 var(--site-font); color: var(--ink); padding-block: 6px; }
.page header nav a[aria-current="page"] { color: var(--green); }
.page a:hover, .page summary:hover { color: var(--green); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.skip-link:focus { z-index: 3; color: var(--bg); background: var(--ink); }
.page .label, .page .media-type, .page .byline {
  font: 600 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .105em;
  color: var(--muted);
}
.page .label, .page .media-type { text-transform: uppercase; }
.page main > .writing-intro, .page main > .archive-intro {
  border: 0;
  padding-block: clamp(54px, 8vw, 120px) clamp(38px, 5.5vw, 84px) !important;
}
.page .writing-intro > .label::before,
.page .archive-intro > .label::before,
.page .essay-heading > .label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 10px;
  vertical-align: .28em;
  background: var(--green);
}
.page .writing-intro h1, .page .archive-intro h1, .page .essay-heading h1 {
  font: 640 clamp(54px, 8.3vw, 126px)/.93 var(--site-font);
  letter-spacing: -.062em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 16ch;
  margin: .22em 0 .26em;
}
.page .writing-intro > p:last-child,
.page .archive-intro > p:not(.label), .page .essay-summary {
  font: 430 clamp(18px, 1.5vw, 22px)/1.55 var(--site-font);
  color: var(--muted);
  max-width: 58ch;
}
.page .text-link, .page .essay-read, .page .media-cta, .page .back-link,
.page .byline a, .page .writing-contact > a, .page .author-links a { color: var(--green); }
.page .essay-grid, .page .publications {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 clamp(30px, 5vw, 78px);
}
.page .essay-card, .page .publication {
  min-width: 0;
  padding: clamp(25px, 3.5vw, 50px) 0;
  background: transparent;
  border-top: 1px solid var(--line);
}
.page .essay-card h3, .page .publication h3 {
  font: 550 clamp(28px, 2.8vw, 44px)/1.06 var(--site-font);
  color: var(--ink);
  letter-spacing: -.043em;
  margin: 15px 0 11px;
  text-wrap: pretty;
}
.page .essay-card h3 a, .page .publication h3 a { color: inherit; }
.page .essay-card h3 a:hover, .page .publication h3 a:hover { color: var(--green); }
.page .essay-card > p:not(.label), .page .publication p:not(.media-type) {
  color: var(--muted);
  font: 430 16px/1.58 var(--site-font);
  max-width: 52ch;
}
.page .essay-read, .page .media-cta, .page .back-link { font-size: 13px; }
.page .essay { max-width: none; }
.page .essay-heading {
  max-width: 1050px;
  margin-inline: auto;
  padding-block: clamp(32px, 5vw, 74px) clamp(32px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
}
.page .essay-heading h1 { font-size: clamp(43px, 6.4vw, 98px); max-width: 21ch; }
.page .byline { color: var(--muted); margin-top: 24px; letter-spacing: .035em; }
.page .essay-prose {
  color: var(--ink);
  max-width: 62ch;
  margin-inline: auto;
  padding-block: clamp(34px, 5vw, 70px) 30px;
  font: 400 clamp(18px, 1.55vw, 22px)/1.65 var(--reading-font);
  overflow-wrap: break-word;
}
.page .essay-prose p, .page .essay-prose li { color: var(--ink); font: inherit; margin-top: 0; }
.page .essay-prose p + p { margin-top: 1.2em; }
.page .essay-prose a { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.page .essay-prose h2, .page .related h2, .page .writing-contact h2, .page .section-title h2 {
  color: var(--ink);
  font: 630 clamp(30px, 3.1vw, 46px)/1.12 var(--site-font);
  letter-spacing: -.047em;
  text-wrap: balance;
}
.page .essay-prose h2 { font-size: clamp(26px, 2.5vw, 37px); margin: 1.7em 0 .5em; }
.page .author-note { max-width: 780px; margin-inline: auto; border-color: var(--line); }
.page .author-note img { border-radius: 50%; width: 54px; height: 54px; }
.page .author-note p, .page .writing-contact p, .page .archive-details { color: var(--muted); }
.page .archive-details { background: var(--panel); border-color: var(--line); }
.page .archive-details summary, .page .author-note strong a { color: var(--ink); }
.page .archive-details a { color: var(--green); }
.page .section-title > span { display: none; }
.page .investment-directory { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.page .investment-directory li { background: #f9fafe; color: #101114; }
.page .investment-directory a { color: #101114; }
.page .investment-directory a:hover { color: #144fe1; }
.page > footer { font: 500 12px/1.6 var(--site-font); color: var(--muted); padding-block: 26px; gap: 12px 24px; }
.page > footer a { color: var(--ink); }
:lang(zh) .page :is(.archive-intro h1, .section-title h2, .publication h3) { letter-spacing: -.015em; line-height: 1.18; }
@media (max-width: 700px) {
  .page > header { align-items: flex-start; flex-wrap: wrap; gap: 10px 18px; padding-block: 18px; min-height: 0; }
  .page header nav { justify-content: flex-start; gap: 6px 12px; }
  .page header nav a[href$="#about"] { display: inline; }
  .page .language-switch { padding-inline-start: 12px; }
  .page .essay-grid, .page .publications { grid-template-columns: minmax(0,1fr); }
  .page .back-link { margin-bottom: 28px; }
  .page .essay-heading h1 { font-size: clamp(40px, 9.3vw, 55px); }
  .page .essay-prose { line-height: 1.68; }
  .page > footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .page :is(.writing-intro, .archive-intro, .essay-heading) { animation: journal-arrive .5s ease-out both; }
  .page a { transition: color .18s ease; }
  .page .essay-read .link-arrow { transition: transform .18s ease; }
  .page .essay-card:hover .essay-read .link-arrow { transform: translate(2px,-2px); }
  @keyframes journal-arrive { from { transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page *, .page *::before, .page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Masthead and table of contents */
.page header nav { display: flex; flex-wrap: wrap; align-items: center; }
.page header a, .page footer a { text-underline-offset: .24em; }
.page header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.page .identity span { color: var(--green); }
.page .writing-intro, .page .archive-intro { position: relative; }
.page .writing-intro > .label, .page .archive-intro > .label, .page .essay-heading > .label { color: var(--green); }
.page .section-title { border-color: var(--ink); }
.page .essay-read, .page .media-cta, .page .back-link, .page .text-link,
.page .byline a, .page .author-links a, .page .writing-contact > a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #88adf6;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.page .essay-card:hover h3 a, .page .publication:hover h3 { color: var(--green); }
.page .essay-grid { border-block-start: 2px solid var(--ink); }
.page .publication, .page .essay-card { border-radius: 0; }
.page .author-note, .page .related, .page .writing-contact { background: transparent; color: var(--ink); }
.page .author-note { border-block: 1px solid var(--line); padding-block: 26px; }
.page .archive-details { border-radius: 0; background: transparent; }
.page .archive-details summary { font-size: 16px; font-weight: 600; color: var(--green); }
.page .archive-details summary:hover, .page .publication:hover .media-cta { text-decoration: underline; text-underline-offset: .2em; }
.page .investment-directory li { background: #f9fafe; min-width: 0; }
.page .essay-prose :is(h2,h3) { scroll-margin-top: 25px; }
.page .essay-prose blockquote { margin: 1.6em 0; padding-inline-start: 1.1em; border-left: .13em solid var(--green); }
.page .essay-prose li + li { margin-top: .4em; }
.page .essay-prose img { max-width: 100%; height: auto; }
.page .essay-heading .byline { font-family: var(--site-font); font-size: 14px; letter-spacing: 0; }
.page .essay-heading { display: block; }
.page .related h2 { margin-bottom: .8em; }
@media (min-width: 880px) {
  .page :is(.writing-intro,.archive-intro)::after {
    content: "";
    position: absolute;
    right: 2%;
    bottom: 16%;
    width: clamp(70px,10vw,145px);
    aspect-ratio: 1.15;
    background: repeating-linear-gradient(112deg,var(--green) 0 2px,transparent 2px 8px);
    clip-path: polygon(45% 0%,100% 0%,55% 100%,0 100%);
    pointer-events: none;
  }
  .page .archive-intro > h1, .page .writing-intro > h1 { max-width: min(16ch,80%); }
}
@media (max-width: 460px) {
  .page { padding-inline: 18px; }
  .page :is(.archive-intro,.writing-intro) h1 { font-size: clamp(45px,12vw,58px); }
  .page header nav { gap: 4px 12px; }
  .page .investment-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.page .investment-directory li { padding-inline: clamp(10px, 1.6vw, 22px); }
