/* The journal adapts to its preview window, including when the studio stacks. */
.co-site.kc-paper {
  --pub-paper: #f6f4ed;
  --pub-ink: #252c29;
  --pub-muted: #58625b;
  --pub-rule: color-mix(in srgb, var(--pub-ink) 22%, transparent);
  --pub-shade: color-mix(in srgb, var(--pub-accent) 16%, #071411);
  --pub-serif: Georgia, "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --pub-gutter: clamp(16px, 3.8cqw, 34px);
  container: publication / inline-size;
  display: flex;
  flex-direction: column;
  background: var(--pub-paper);
  color: var(--pub-ink);
}
html[data-theme=dark] .co-site {
  --pub-paper: #1b211f;
  --pub-ink: #f2f0e7;
  --pub-muted: #b9c1b8;
  color-scheme: dark;
}
.co-site button { border: 0; background: transparent; color: inherit; text-align: start; }
.co-site :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.co-site [tabindex="-1"]:focus { outline: none; }
[data-pub-heading],[data-pub-index] { scroll-margin-block: 90px 20px; }
.pub-masthead,.pub-footer,.pub-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pub-masthead { flex: none; padding: 0 var(--pub-gutter); min-height: 50px; border-bottom: 1px solid var(--pub-rule); }
.co-site .pub-brand { display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; font-size: clamp(13px,2.1cqw,19px); font-weight: 600; letter-spacing: .055em; }
.pub-brand .pub-mark { width: 24px; height: 24px; }
.co-site .pub-index-link,.co-site .pub-return { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.co-site :is(.pub-index-link,.pub-return):hover { text-decoration: underline; text-underline-offset: .25em; }
.pub-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pub-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(252px,38cqw,350px);
  padding: clamp(24px,4.5cqw,42px) var(--pub-gutter);
  background: #263934;
  color: #fffdf7;
}
.pub-cover > .co-image,.pub-cover::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.pub-cover::after {
  content: "";
  background: linear-gradient(90deg, color-mix(in srgb,var(--pub-shade) 95%,transparent),color-mix(in srgb,var(--pub-shade) 72%,transparent) 38%,transparent 85%), linear-gradient(0deg, #0f1d219e, transparent 70%);
}
.pub-cover-copy { width: min(72%, 480px); }
.pub-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 10px; line-height: 1.6; letter-spacing: .085em; text-transform: uppercase; }
.pub-kicker i { width: 23px; height: 1px; background: currentColor; opacity: .65; }
.co-site h4 { font: 500 clamp(29px,5.75cqw,54px)/1.12 var(--pub-serif); letter-spacing: -.043em; margin: 14px 0 12px; color: inherit; text-wrap: balance; }
.kc-creation .co-site .pub-content :is(h4,.pub-section-head h5) { font-family: var(--pub-serif); }
:lang(zh) .co-site h4 { letter-spacing: -.025em; line-height: 1.23; }
.co-site .pub-cover-copy p { max-width: 45ch; color: #f1f2ed; font-size: clamp(12px,1.65cqw,15px); line-height: 1.7; }
.co-site .pub-read { display: inline-flex; align-items: center; gap: 18px; padding: 7px 0; margin-top: 13px; border-bottom: 1px solid #fff9; color: #fff; font-size: 12px; font-weight: 500; }
.pub-read svg,.pub-next svg { width: 16px; height: 16px; }
.pub-read:hover { border-bottom-color: white; }
.pub-plate { position: absolute; inset: auto var(--pub-gutter) 22px auto; font: 11px/1.3 Georgia,serif; letter-spacing: .12em; color: white; }
.pub-index,.pub-story { padding: clamp(20px,3.2cqw,30px) var(--pub-gutter); }
.pub-section-head { padding-bottom: 12px; border-bottom: 1px solid var(--pub-rule); }
.co-site .pub-section-head h5 { color: var(--pub-ink); font: 500 clamp(19px,2.9cqw,25px)/1.25 var(--pub-serif); letter-spacing: -.03em; margin: 0; }
.pub-section-head > span,.pub-footer { color: var(--pub-muted); font-size: 10px; letter-spacing: .055em; }
.pub-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 14px; padding-top: 14px; }
.co-site .pub-item { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 0; }
.pub-thumb { flex: none; width: clamp(45px,7cqw,64px); aspect-ratio: 4/5; overflow: hidden; }
.pub-item-copy { display: grid; gap: 4px; }
.pub-item-copy small { color: var(--pub-muted); font-size: 9px; line-height: 1.4; letter-spacing: .045em; }
.pub-item-copy i { font-style: normal; padding: 0 2px; color: var(--pub-muted); }
.pub-item-copy strong { font-weight: 500; font-size: clamp(13px,1.8cqw,16px); line-height: 1.45; }
.pub-item-arrow { margin-left: auto; font-size: 13px; color: var(--pub-muted); }
.pub-item:hover strong,.pub-next:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.pub-footer { padding: 9px var(--pub-gutter); border-top: 1px solid var(--pub-rule); }
.pub-footer > span { font-weight: 600; }
.pub-story-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(18px,4cqw,40px); align-items: center; }
.pub-story-head > div,.pub-story-head figure { min-width: 0; }
.pub-story-head .pub-kicker { color: var(--pub-muted); }
.co-site .pub-story-head h4 { font-size: clamp(26px,4.7cqw,43px); }
.co-site .pub-story-head p { color: var(--pub-muted); font-size: clamp(13px,2cqw,17px); line-height: 1.65; }
.pub-story-head figure .co-image { height: auto; aspect-ratio: 1.55; }
.pub-story-head figcaption { margin-top: 6px; font-size: 10px; line-height: 1.5; color: var(--pub-muted); }
.pub-story-body { max-width: 64ch; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--pub-rule); }
.pub-story-body > * { margin: 0 0 14px; }
.co-site .pub-story-body :is(p,li,td,th) { color: var(--pub-ink); font-size: 14px; line-height: 1.85; }
.co-site .pub-story-body p { margin-bottom: 16px; white-space: pre-wrap; }
.co-site .pub-story-body h5 { font-size: 16px; color: var(--pub-ink); }
.pub-story-body blockquote { color: var(--pub-ink); padding-left: 15px; border-left: 2px solid var(--pub-accent); font: 19px/1.6 var(--pub-serif); }
.pub-story-body pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; background: color-mix(in srgb,var(--pub-ink) 5%,transparent); font: 12px/1.6 monospace; }
.pub-story-body .kn-bold { font-weight: 700; }.pub-story-body .kn-italic { font-style: italic; }
.pub-story-body .kn-mark { background: color-mix(in srgb,var(--pub-accent) 24%,transparent); }
.pub-story-body .kn-table { overflow: visible; }
.pub-story-body table { table-layout: fixed; }
.pub-story-body .kn-table :is(td,th) { padding-inline: clamp(2px,1cqw,8px); border-color: var(--pub-rule); }
.pub-story-body .kn-tasks [role=img] { color: var(--pub-ink); border-color: var(--pub-muted); }
.co-site .pub-next { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 14px; width: 100%; padding: 16px 0 0; margin-top: 22px; border-top: 1px solid var(--pub-rule); }
.pub-next span { grid-column: 1/-1; color: var(--pub-muted); font-size: 11px; }
.pub-next strong { font-weight: 500; font-size: 16px; }
@container publication (max-width: 550px) {
  .pub-cover-copy { width: 86%; }
  .pub-list { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .co-site .pub-item { padding: 10px 0; }
  .pub-item + .pub-item { border-top: 1px solid var(--pub-rule); }
  .pub-thumb { width: 65px; aspect-ratio: 1.45; }
}
@container publication (max-width: 400px) {
  .pub-masthead { gap: 6px; min-height: 44px; }
  .co-site .pub-brand { font-size: 12px; gap: 5px; }
  .pub-brand .pub-mark { width: 19px; height: 19px; }
  .co-site .pub-index-link { font-size: 11px; }
  .pub-cover-copy { width: 100%; }
  .pub-cover::after { background: linear-gradient(90deg,#11231eab,#11231e60),linear-gradient(0deg,#0b191be8,transparent); }
  .pub-story-head { grid-template-columns: 1fr; gap: 14px; }
  .pub-story-head figure .co-image { aspect-ratio: 2.25; }
}
