:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #626266;
  --rule: #d2d2d7;
  --pale: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, blockquote { margin: 0; }
body { line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.frame { width: min(1120px, 88%); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-180%); z-index: 2; background: white; padding: 0 12px; }
.skip:focus { transform: none; }
.masthead { min-height: 68px; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; }
.signature { font-size: 1.25rem; font-weight: 680; letter-spacing: -.045em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 30px); align-items: center; }
.masthead nav a, .language { font-size: .875rem; justify-content: center; }
.language { text-decoration: none; }
.language:hover, .signature:hover { text-decoration: underline; }
.cover { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; padding-block: clamp(40px, 5.2vw, 80px) clamp(48px, 7vw, 106px); }
.greeting { font-size: clamp(1.1rem, 1.55vw, 1.45rem); font-weight: 560; }
.cover h1 { font-size: clamp(4rem, 7.55vw, 6.8rem); line-height: 1.09; letter-spacing: -.045em; font-weight: 660; margin: .02em 0 .18em; }
.intro { font-size: clamp(1.12rem, 1.75vw, 1.45rem); line-height: 1.5; max-width: 36ch; text-wrap: pretty; }
:lang(zh-CN).intro, html:lang(zh-CN) .intro { max-width: 19em; }
.primary { margin-top: 24px; padding: 0 22px; font-size: 1rem; background: #0057b8; color: white; border-radius: 99px; text-decoration: none; font-weight: 520; }
.primary:hover, .primary:active { background: #00458f; }
.opening { margin-top: clamp(32px, 4.3vw, 66px); }
.opening p:first-child { font-size: 1.06rem; font-weight: 550; text-wrap: pretty; }
.opening p + p { color: var(--muted); font-size: .93rem; margin-top: 3px; }
figure img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 16px; }
.cover-picture img { aspect-ratio: 1.12; object-position: 50% 60%; }
figcaption { font-size: .8125rem; color: var(--muted); margin-top: 9px; line-height: 1.45; }
.work-band { background: var(--pale); }
.work { padding-block: clamp(48px, 6.5vw, 96px); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 640; text-wrap: balance; }
html:lang(zh-CN) h2, html:lang(zh-CN) h3 { letter-spacing: -.035em; }
.places { margin: 12px 0 26px; gap: 0; flex-wrap: wrap; }
.places a { margin-right: 1.4em; font-size: .97rem; }
.entry { border-top: 1px solid var(--rule); display: grid; grid-template-columns: 17% 30% 1fr; gap: 3%; padding-block: clamp(24px, 3vw, 44px); align-items: baseline; }
.place { font-weight: 570; font-size: .875rem; color: var(--muted); }
.entry h3 { font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.2; font-weight: 620; letter-spacing: -.04em; }
.entry-copy, .story-copy > p:not(.place), .reply p, .prose, .reading-footer p { font-size: 1.075rem; line-height: 1.65; }
.entry-copy p + p { margin-top: .65em; }
.host-row { border-top: 1px solid var(--rule); padding-top: 12px; }
.text-link { font-weight: 540; }
.story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8%; align-items: center; padding-block: clamp(56px, 8.5vw, 128px); }
.story-picture img { aspect-ratio: 1.47; }
.story-copy h2 { margin: .22em 0 .38em; max-width: 11ch; }
html:lang(zh-CN) .story-copy h2 { max-width: none; }
.story-copy .text-link { margin-top: 14px; }
.reply { border-top: 1px solid var(--rule); padding-block: 36px 60px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8%; }
.reply h2 { font-size: 1.65rem; }
.reading { max-width: min(660px, 88%); margin: 48px auto 80px; }
.reading h1 { font-weight: 640; line-height: 1.08; letter-spacing: -.045em; font-size: clamp(2.25rem, 5vw, 4rem); margin: 12px 0 32px; }
.path { margin-bottom: 24px; }
.prose p + p { margin-top: 1em; }
.reading-footer { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 20px; }
.photo-slot { background: var(--pale); padding: 22px 24px; margin-block: 24px; font-size: .9375rem; color: var(--muted); border-radius: 12px; }
@media (max-width: 720px) {
  .frame { width: 89%; }
  .masthead { min-height: 54px; }
  .cover { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 32px 42px; }
  .cover h1 { font-size: min(clamp(3.6rem, 14vw, 5.1rem), 22vw); }
  .primary { margin-top: 17px; max-width: 100%; }
  .opening { margin-top: 22px; }
  .cover-picture img { aspect-ratio: 1.45; object-position: 50% 64%; border-radius: 12px; }
  .entry { grid-template-columns: 1fr; gap: 7px; }
  .places { margin-bottom: 14px; }
  .entry-copy { margin-top: 4px; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .story-picture img { aspect-ratio: 1.7; }
  .story-copy h2 { max-width: none; }
  .reply { grid-template-columns: 1fr; gap: 12px; }
}

.signature i{font:italic 1rem Georgia,serif;margin-left:.65em;color:var(--muted)}
.cover h1{font-size:clamp(2.8rem,5.1vw,4.7rem);margin:.15em 0 .32em}
.cover .intro{font-size:clamp(1.025rem,1.35vw,1.2rem);max-width:33em}
.opportunity{font-weight:600;margin-top:1em;font-size:1.06rem}
.actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:18px}.actions .primary{margin:0}
.chapter-band{background:#f7f7f4}
.directory{padding-block:clamp(36px,5.7vw,86px)}
.directory h2{margin-bottom:24px;font-size:clamp(1.65rem,3.1vw,2.65rem)}
.door{display:grid;grid-template-columns:minmax(85px,.34fr) 1fr auto;align-items:baseline;gap:20px;border-top:1px solid #d4d5ce;text-decoration:none;padding:clamp(20px,2.5vw,38px) 0}
.door:hover h3{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.door-category,.door p{color:var(--muted)}.door-category{font-size:.9rem}.door h3{font-size:clamp(1.25rem,2.3vw,2rem);line-height:1.25;letter-spacing:-.035em}.door p{margin-top:.4em}.arrow{font-size:1.4rem}
#help h2{margin-bottom:25px}.work-band{background:white}
.site-quote{border-top:1px solid var(--rule);padding-block:26px;color:var(--muted)}.site-quote p+p{font:italic 1rem Georgia,serif;margin-top:6px}
.inner-page{max-width:940px;padding-block:clamp(34px,6vw,95px)}
.inner-page h1{font-size:clamp(2.4rem,5.4vw,4.8rem);line-height:1.15;margin:.25em 0;letter-spacing:-.05em}
.lead{max-width:33em;font-size:1.1rem;line-height:1.8}
.volume{margin:36px 0;border:1px solid #cecec4;border-radius:4px 12px 12px 4px;overflow:hidden;box-shadow:3px 5px 12px #29271c14}
.volume summary{cursor:pointer;min-height:90px;align-content:center;padding:18px 30px;border-left:8px solid #6a745a;background:#e2e6d9;font-size:1.45rem;font-weight:620}
.volume summary:focus-visible{outline-offset:-5px}
.volume article{background:#faf9f4;border-left:8px solid #dedbcf;padding:clamp(18px,4vw,48px)}
.volume article h2,.timeline h2{font-size:clamp(1.45rem,3.4vw,2.8rem);margin:.3em 0}.volume article>a{margin-top:10px}
@media(prefers-reduced-motion:no-preference){.volume[open] article{transform-origin:top;animation:turn-page .45s ease-out}@keyframes turn-page{from{transform:perspective(850px) rotateX(-20deg);opacity:.35}to{transform:none;opacity:1}}}
.tree-intro{display:grid;grid-template-columns:1fr 24%;gap:3%;align-items:center}.tree-intro canvas{width:100%;height:195px}
.timeline{margin:30px 0 24px 7px;border-left:1px solid #a9b29a;list-style:none;padding:0 0 0 25px}.timeline li{padding:0 0 28px;position:relative}.timeline li:last-child{padding-bottom:4px}
.timeline li:before{content:'';position:absolute;left:-30px;top:8px;border-radius:50%;width:9px;height:9px;background:#66735c}.timeline li>p:last-child{max-width:40em}
@media(max-width:720px){.door{grid-template-columns:1fr auto;gap:5px 12px}.door-category{grid-column:1/-1}.door p{font-size:.94rem}.tree-intro{grid-template-columns:1fr}.tree-intro canvas{height:100px;width:138px}.masthead nav{gap:8px}.masthead{flex-wrap:wrap}.cover h1{font-size:clamp(2.25rem,9vw,3.8rem)}}

.alexandria .prose { line-height: 1.85; overflow-wrap: anywhere; }
.alexandria .prose > * + * { margin-top: 1.2em; }
.alexandria .prose > :is(figure, .alexandria-pair) { margin-block: clamp(24px, 5vw, 48px); }
.alexandria .prose > figure { width: min(100%, 440px); margin-inline: auto; }
.alexandria .alexandria-cover img { max-height: 62svh; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
.alexandria-pair, .essay-photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); }
.alexandria blockquote { border-inline-start: 2px solid var(--rule); padding-inline-start: 1em; }

/* The photograph and its caption lead to the same journal entry. */
.editorial-photo a{display:block;text-decoration:none}
.editorial-photo img{object-position:50% 45%}
.photo-caption{display:block;margin-top:10px;color:var(--muted);font-size:.82rem}
.photo-caption strong{display:block;color:var(--ink);font-size:1.1rem}
.editorial-photo a:hover strong,.journal-entry a:hover{text-decoration:underline}
.journal-list{margin-block:clamp(24px,4vw,52px);border-bottom:1px solid var(--rule)}
.journal-entry{padding:clamp(20px,3vw,36px) 0;border-top:1px solid var(--rule)}
.journal-entry h2{font-size:clamp(1.4rem,3vw,2.45rem);margin:.12em 0}
.journal-entry h2 a{text-decoration:none}
.journal-entry>p:last-child{max-width:40em;line-height:1.75}

.essay-photo { width: min(100%, 440px); margin: clamp(24px, 5vw, 44px) auto 18px; }

/* Editorial pages share one measure, warm paper and ink. */
body.journal-shell,body:has(>.reading){background:#fbfaf8;color:#26231f;min-height:100vh;--rule:#dedbd5;--muted:#5d5954}
.journal-invitation a:hover,.journal-entry h2 a:hover{color:#814b3e}
.journal-shell .masthead,.masthead:has(+ .reading){width:min(880px,89%);min-height:60px}
.journal-shell .signature{font:600 1.13rem Georgia,"Songti SC",serif;letter-spacing:0}
.journal-shell .masthead nav a{text-decoration:none}
.journal-shell .masthead nav a:hover,.journal-shell .masthead nav a[aria-current]{text-decoration:underline;text-underline-offset:5px}
.quiet-page{width:min(650px,89%);padding:clamp(30px,5.5vw,70px) 0 60px}
.quiet-page h1,.reading h1{font:600 clamp(1.75rem,3vw,2.05rem)/1.2 Georgia,"Songti SC","STSong",serif;letter-spacing:-.025em;margin:0 0 21px}
.quiet-page article>p,.reading .prose{font-size:1rem;line-height:1.72}
.quiet-page #about>p+p{margin-top:15px}
.quiet-section{margin-block:26px;padding-top:20px;border-top:1px solid var(--rule)}
.quiet-section h2{font:600 clamp(1.25rem,2.6vw,1.5rem)/1.3 Georgia,"Songti SC","STSong",serif;letter-spacing:-.015em;margin-bottom:10px}
.quiet-section p{font-size:1rem;line-height:1.72}
.quiet-section p+p{margin-top:12px}
.quiet-page.teacher-page { width: min(700px, 89%); padding-block-start: clamp(24px, 4.4vw, 58px); }
.teacher-page h1 { margin-block-end: clamp(16px, 2.5vw, 24px); }
.teacher-page h2, .teacher-page h3 { text-wrap: balance; }
.teacher-page dd p, .teacher-page .teaching-details li, .teacher-page .teaching-details p { text-wrap: pretty; }
.teaching-background { margin: 0; }
.teaching-background > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 21%) minmax(0, 1fr);
  gap: 4px clamp(12px, 2.5vw, 24px);
  border-top: 1px solid var(--rule);
  padding-block: 10px;
}
.teaching-background dt { font-weight: 620; }
.teaching-background dd { margin: 0; line-height: 1.6; }
.teaching-background dd > p + p { margin-top: .4rem; }
.teaching-note { color: var(--muted); }
.teaching-inline-group { display: flex; flex-wrap: wrap; gap: .1rem .65rem; }
.teaching-phrase {
  display: inline-block;
  inline-size: max-content;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
.teaching-awards summary {
  color: #0057b8;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  width: fit-content;
  padding-block: 10px;
  line-height: 24px;
  text-decoration: underline;
  text-underline-offset: .24em;
}
.teaching-awards summary:focus-visible { outline-offset: 0; }
.teaching-award-levels { margin: .125rem 0 .55rem; }
.teaching-award-levels > div {
  border-block-start: 1px solid var(--rule);
  padding-block: .5rem;
}
.teaching-award-levels dt {
  color: var(--muted);
  font-size: .875rem;
  margin-block-end: .3rem;
}
.teaching-award-levels ul { list-style: none; margin: 0; padding: 0; }
.teaching-award-levels li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(40%);
  column-gap: .75rem;
  align-items: baseline;
  overflow-wrap: anywhere;
}
.teaching-award-levels li + li { margin-block-start: .35rem; }
.teaching-award-prize { text-align: end; }
.teaching-actions {
  margin: .3rem 0 .55rem;
  padding-inline-start: 1.25em;
}
.teaching-actions li + li { margin-top: .3rem; }
.teaching-languages {
  display: grid;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.teaching-languages li > span {
  display: grid;
  grid-template-columns: min(5.5em, 50%) minmax(0, 1fr);
  column-gap: .45rem;
  align-items: baseline;
  overflow-wrap: anywhere;
}
.teaching-languages li > span:lang(zh-CN) { grid-template-columns: min(3.25em, 42%) minmax(0, 1fr); }
.teaching-languages .language-context { color: var(--muted); }
.teaching-career-path {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: .5rem 0 .65rem;
  padding: 0;
  gap: .25rem .8rem;
  color: var(--muted);
  font-size: .9375rem;
}
.teaching-career-path li {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-inline-start: 1.2rem;
}
.teaching-career-path li + li::before {
  content: "";
  position: absolute;
  inset-inline-start: .15rem;
  color: var(--muted);
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  width: .4em;
  height: .4em;
  transform: rotate(135deg);
}
.teaching-details h2 { margin-bottom: 16px; }
.teaching-details h3 { font-size: 1.0625rem; line-height: 1.4; margin-bottom: 6px; }
.teaching-details > div + div { margin-top: 22px; }
.teaching-experience { margin-block-start: 18px; padding-block-start: 18px; }
.teaching-photo-set { margin-block-start: clamp(16px, 3.4vw, 26px); }
.teaching-photo-set--school,
.teaching-photo-set--theatre { max-width: 560px; }
.teaching-photo-set figcaption {
  margin-block-start: 6px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}
.teaching-photo-set[id], .teaching-photo-series[id] { scroll-margin-block-start: 1.25rem; }
.teaching-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(6px, 1.25vw, 10px);
}
.teaching-photo-grid a { display: block; cursor: zoom-in; }
.teaching-photo-grid a:focus-visible { outline-offset: 2px; }
.teaching-photo-grid img { display: block; width: 100%; height: auto; border-radius: 6px; }
.teaching-photo-grid--school > :first-child { grid-row: span 2; }
.teaching-photo-grid--skydive { grid-template-columns: minmax(44px, 3fr) minmax(44px, 7fr); }
.teaching-photo-grid--dives { grid-template-columns: minmax(44px, 9fr) repeat(2, minmax(44px, 16fr)); }
@media (max-width: 480px) {
  .teaching-photo-grid--dives { grid-template-columns: minmax(44px, 9fr) minmax(44px, 16fr); }
  .teaching-photo-grid--dives > :last-child { grid-column: 1 / -1; }
}
.quiet-page.teaching-profile { width: min(880px, 89%); }
.teaching-profile > article, .teaching-profile-footer { width: min(700px, 100%); margin-inline: auto; }
.teaching-profile .teaching-work + .teaching-work { margin-block-start: clamp(24px, 3vw, 32px); }
.teaching-work h3 { margin-block-end: 4px; }
.teaching-work .teaching-role { font-size: .9375rem; line-height: 1.5; }
.teaching-role .teaching-inline-group > strong { color: var(--ink); }
.teaching-work .teaching-career-path { margin-block: 4px 6px; gap: .16rem .75rem; }
.teaching-work .teaching-brand-scope { font-size: .9375rem; line-height: 1.55; }
.teaching-work .teaching-actions { margin-block-start: 8px; }
.teaching-work .teaching-actions li + li { margin-block-start: 4px; }
.teaching-interests h3 .teaching-inline-group { align-items: baseline; }
.teaching-interests h3 .teaching-note { font-size: .9375rem; font-weight: 400; }
.teaching-offer .teaching-arrangements { margin: 0; }
.teaching-offer .teaching-arrangements h3 { font-size: 1rem; margin-block-end: 4px; }
.teaching-photo-album { margin-block: clamp(28px, 4vw, 42px) 8px; }
.teaching-photo-album .teaching-photo-set { margin: 0; min-width: 0; }
.teaching-photo-album h2 { margin-block-end: 14px; }
.teaching-photo-grid--campus, .teaching-photo-grid--school-pair { grid-template-columns: minmax(0, 1.78fr) minmax(0, 1.5fr); }
.teaching-photo-grid--company { grid-template-columns: minmax(0, .75fr) minmax(0, 1.48fr); }
.teaching-photo-grid--university { grid-template-columns: minmax(0, 1.33fr) minmax(0, 1.42fr); }
.teaching-photo-grid--university-first { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1.33fr); }
.teaching-photo-secondary {
  display: grid;
  grid-template-columns: minmax(0, 2.23fr) minmax(0, 2.75fr);
  gap: clamp(18px, 2.6vw, 26px);
  margin-block-start: clamp(18px, 2.6vw, 26px);
}
.teaching-photo-secondary--travel { grid-template-columns: minmax(0, 2.67fr) minmax(0, 3.28fr); }
@media (max-width: 650px) {
  .teaching-photo-secondary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .teaching-photo-grid--campus, .teaching-photo-grid--university-first { grid-template-columns: minmax(0, 1fr); }
}
#teaching-photos-title { scroll-margin-block-start: 1.25rem; }
@media (min-width: 620px) {
  .teaching-profile .teaching-career-path { flex-flow: row wrap; }
  .teaching-profile .teaching-career-path li { padding-inline-start: 0; }
  .teaching-profile .teaching-career-path li + li::before {
    position: static;
    margin-inline-end: .7rem;
    transform: rotate(45deg);
    flex-shrink: 0;
  }
}
#business-experience { scroll-margin-block-start: 1.25rem; }
.teaching-arrangements { display: grid; gap: 14px 24px; margin-block-end: 12px; }
.teaching-arrangements h2 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.45;
  margin-bottom: 4px;
}
@media (min-width: 721px) {
  .teaching-arrangements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 480px) {
  .teaching-career-path:lang(zh-CN) { flex-flow: row wrap; }
  .teaching-career-path:lang(zh-CN) li { padding-inline-start: 0; }
  .teaching-career-path:lang(zh-CN) li + li::before {
    position: static;
    margin-inline-end: .85rem;
    transform: rotate(45deg);
    flex-shrink: 0;
  }
}
@media (max-width: 560px) {
  .teaching-background > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding-block: 8px;
  }
}
.quiet-page .journal-invitation a{display:inline-flex;min-height:44px;text-underline-offset:.2em}
.quiet-page .mail-reply{padding-top:14px;border-top:1px solid var(--rule);color:var(--muted)}
.journal-index .journal-list{margin:0}
.journal-index .journal-entry{padding:15px 0 17px}
.journal-index .journal-entry h2{margin:.05em 0;font:600 clamp(1.125rem,2vw,1.31rem)/1.35 Georgia,"Songti SC","STSong",serif;letter-spacing:-.015em}
.journal-index .journal-entry h2 a{min-height:44px}
.journal-index .journal-entry .place{font-size:.84rem;line-height:1.5;font-weight:500}
.journal-index .journal-entry>p:last-child{font-size:1rem;line-height:1.55;margin:0}
.reading{max-width:min(650px,89%);margin-top:clamp(24px,4vw,48px)}
.reading .place{margin-bottom:.5rem}
@media (max-width:720px){.quiet-page{padding-top:30px}.journal-index .journal-entry{padding-block:12px}.journal-shell .masthead{min-height:54px}}

.journal-index .entry-info{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 0;font-weight:450}
.entry-date{font-variant-numeric:tabular-nums}
.entry-info>span+span::before{content:"·";padding:0 .55em;color:#77736e}
.paper-entrance{position:fixed;inset:0;z-index:5;display:grid;place-items:center;background:#fbfaf8;pointer-events:none;animation:paper-arrival 1.25s ease-out forwards}
.paper-entrance canvas{display:block;width:min(580px,86vw);aspect-ratio:1.6;filter:drop-shadow(1px 3px 2px #4e483429) drop-shadow(3px 10px 9px #453e2d26)}
@keyframes paper-arrival{0%,50%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.paper-entrance{display:none;animation:none}}

/* A photo accompanies an entry only when that story has a photograph. */
.journal-index { width: min(840px, 89%); }
.journal-index .journal-entry:has(.entry-cover) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(130px, 16vw, 172px);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(18px, 4vw, 42px);
  padding-block: 22px;
}
.journal-index .journal-entry > p:not(.entry-info) { max-width: 40em; font-size: 1rem; line-height: 1.55; }
.entry-cover { display: block; align-self: start; grid-column: 2; grid-row: 1 / 4; }
.entry-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.entry-cover img[src*="dumaluan"] { object-position: 50% 62%; }
.entry-cover img[src*="moscow"] { object-position: 50% 56%; }
@media (max-width: 620px) {
  .journal-index .journal-entry:has(.entry-cover) { display: block; padding-block: 18px; }
  .entry-cover { margin-top: 14px; }
  .entry-cover img { aspect-ratio: 4 / 3; }
}

.album-page {
  width: min(880px, 88%);
  padding-block: clamp(16px, 3.2vw, 42px) 80px;
  --album-serif: Georgia, "Songti SC", "STSong", serif;
  --photo-gap: clamp(12px, 1.7vw, 22px);
}
.album-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.album-places { margin-bottom: clamp(18px, 3vw, 38px); color: var(--muted); }
.album-places summary { width: fit-content; min-height: 44px; line-height: 44px; cursor: pointer; font-size: .875rem; }
.album-places summary::marker { font-size: .75em; }
.album-places[open] summary { margin-bottom: 6px; }
.album-index { gap: 0 clamp(16px, 3vw, 32px); }
.album-index a, .album-story { color: var(--muted); font-size: .875rem; }
.album-index a, .album-story { text-decoration-thickness: 1px; }
.album { scroll-margin-top: clamp(16px, 3vw, 34px); }
.album:focus-visible { outline: none; }
.album:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}
.album + .album { margin-top: clamp(40px, 7vw, 96px); }
.album h2 {
  margin-bottom: 8px;
  font: 400 clamp(1.45rem, 2.6vw, 2rem)/1.3 var(--album-serif);
  letter-spacing: -.02em;
}
.album-intro { max-width: 60ch; color: var(--muted); line-height: 1.6; }
.album-photos {
  margin-top: clamp(20px, 3vw, 36px);
  column-count: 3;
  column-gap: var(--photo-gap);
}
.album-photos a {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--photo-gap);
  cursor: zoom-in;
}
.album-photos a:focus-visible {
  position: relative;
  outline: 3px solid white;
  outline-offset: -6px;
}
.album-photos a:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--ink);
  pointer-events: none;
}
.album-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--photo-ratio, auto);
  object-fit: cover;
  object-position: var(--photo-focus, center);
}
.album-story { display: flex; width: fit-content; margin-left: auto; }
@media (max-width: 620px) {
  .album-photos { column-count: 2; }
}
.photo-viewer {
  color: #fff; background: #171613; border: 0; padding: 12px 16px;
  max-width: 100%; max-height: 100%; width: 100%; height: 100%;
  margin: auto; overscroll-behavior: contain;
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; }
.photo-viewer::backdrop { background: #171613; }
.photo-viewer .viewer-image { width: 100%; height: 100%; object-fit: contain; }
.photo-viewer button {
  background: transparent; color: inherit; border: 1px solid #a29c91; border-radius: 5px;
  min-width: 64px; min-height: 44px; padding: 0 14px; font: inherit; cursor: pointer;
}
.photo-viewer button:focus-visible { outline-color: white; outline-offset: 2px; }
.viewer-close { justify-self: end; }
.viewer-navigation { display: flex; align-items: center; justify-content: center; gap: 20px; }
.viewer-counter { min-width: 4em; text-align: center; font-variant-numeric: tabular-nums; }
html:has(.photo-viewer[open]) { overflow: hidden; }
.viewer-navigation button[aria-disabled="true"] { color: #aaa599; border-color: #68655f; cursor: default; }

/* Keep each photo beside its chosen neighbours, including before scripts load. */
.album-page { container-type: inline-size; }
.album-photos[data-photo-rows] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--photo-gap);
  column-count: auto;
}
.album-photos[data-photo-rows] > a {
  grid-column: span var(--ds);
  height: var(--dh);
  margin: 0;
}
.album-photos[data-photo-rows] img {
  height: 100%;
  aspect-ratio: auto;
  object-position: var(--photo-focus, center);
}
@media (max-width: 620px) {
  .album-photos[data-photo-rows] > a {
    grid-column: span var(--ms);
    height: var(--mh);
  }
}


:root {
  --canvas: #fff;
  --pale: #f4f4f4;
  --ink: #1c1c1c;
  --reading-ink: #303030;
  --secondary-ink: #565656;
  --separator: #e4e4e4;
  --muted: var(--secondary-ink);
  --rule: var(--separator);
  --link: #292929;
  --link-hover: #080808;
  --focus: #355d6e;
  --selection: #e7e7e7;
  --viewer-surface: #ededed;
  --viewer-border: #727272;
  --sub: var(--muted);
  --line: var(--rule);
  color: var(--ink);
  background-color: var(--canvas);
}

body.journal-shell,
body:has(> .reading) {
  --muted: var(--secondary-ink);
  --rule: var(--separator);
  color: var(--reading-ink);
  background-color: var(--canvas);
}

.skip,
.work-band,
.paper-entrance {
  background-color: var(--canvas);
}

.chapter-band,
.volume summary {
  background-color: var(--pale);
}

.door, .volume, .volume article, .mast .signature { border-color: var(--rule); }
.volume { box-shadow: 3px 5px 12px #1c1c1c14; }
.volume summary { border-color: #777; }
.volume article { background-color: var(--canvas); }
.timeline { border-color: #939393; }
.timeline li::before { background-color: var(--link); }
.entry-info > span + span::before { color: var(--muted); }

h1,
h2,
.signature,
.masthead nav a[aria-current] {
  color: var(--ink);
}

.masthead nav a:not([aria-current]),
.mast nav a,
[href][data-language-link] {
  color: var(--muted);
}

.journal-invitation a,
.text-link,
.reading-footer a,
.album-index a,
.album-story,
.compass,
#read-story,
.destination-stories a {
  color: var(--link);
}

.masthead nav a:hover,
.mast nav a:hover,
[href][data-language-link]:hover,
.journal-invitation a:hover,
.journal-entry h2 a:hover,
.text-link:hover,
.reading-footer a:hover,
.album-index a:hover,
.album-story:hover,
.text-action:hover,
#read-story:hover,
.destination-stories a:hover {
  color: var(--link-hover);
}

.primary {
  background-color: #272727;
  color: #fff;
}

.primary:hover,
.primary:active {
  background-color: var(--link-hover);
}

:focus-visible,
a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus-visible {
  outline-color: var(--focus);
}

::selection {
  background-color: var(--selection);
  color: var(--ink);
}

.destinations button[aria-pressed="true"] {
  border-color: var(--viewer-border);
  background-color: var(--pale);
  color: var(--ink);
}

.destinations button:hover:not([aria-pressed="true"]) {
  background-color: var(--pale);
}

.photo-viewer {
  color: var(--ink);
  background-color: var(--viewer-surface);
}

.photo-viewer::backdrop { background-color: var(--viewer-surface); }

.photo-viewer button { border-color: var(--viewer-border); }
.photo-viewer button:hover:not([aria-disabled="true"]) { background-color: #fff; }
.photo-viewer button:focus-visible { outline-color: var(--focus); }

.viewer-navigation button[aria-disabled="true"] {
  color: var(--secondary-ink);
  border-color: #b8b8b8;
}
