.fieldwork-page {
  --essay-rule: color-mix(in srgb, var(--ink) 23%, transparent);
  --essay-muted: color-mix(in srgb, var(--ink) 68%, var(--paper));
}
.fieldwork-shell { max-width: 100rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5.5vw, 6rem) }
.fieldwork-page main { padding-block: .65rem 3rem }
.fieldwork-page .back { margin-bottom: clamp(2rem, 5vh, 4.5rem) }
.fieldwork-page .ui-zh { display: none }
.original-language-note { color: var(--essay-muted); font-size: .9rem; line-height: 1.5; text-align: end }
html:lang(zh) .fieldwork-page .ui-en { display: none }
html:lang(zh) .fieldwork-page .ui-zh { display: inline }
.skip-link { position: absolute; top: .5rem; left: 1.25rem; z-index: 5; padding: .6rem; background: var(--paper); transform: translateY(-200%) }
.skip-link:focus { transform: none }
.essay-header { margin-bottom: clamp(3.5rem, 7vw, 7.5rem) }
.fieldwork-page h1 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 450; text-wrap: wrap }
.essay-layout { display: grid; grid-template-columns: minmax(11rem, .24fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start }
.essay-rail { position: sticky; top: 1.5rem; max-height: calc(100svh - 3rem); overflow: auto; scrollbar-width: thin; padding-right: .3rem }
.essay-contents summary { cursor: pointer; width: fit-content; font-size: .85rem; font-weight: 600; line-height: 1.4; padding-block: .5rem; margin-bottom: .55rem }
.essay-contents nav { gap: 0; padding-bottom: .8rem }
.essay-contents a { min-height: 0; padding-block: .45rem; font-size: .86rem; line-height: 1.4; letter-spacing: -.008em; color: var(--essay-muted); max-width: 24ch }
.essay-contents a[aria-current="location"] { color: var(--ink); text-decoration: underline; text-underline-offset: .25em }
.essay-body { min-width: 0; max-width: 76ch; font-size: clamp(1.0625rem, 1.18vw, 1.25rem); line-height: 1.75; overflow-wrap: break-word }
.essay-body p { max-width: 66ch; text-wrap: pretty }
.essay-body .anonymity-note { color: var(--essay-muted); font-size: .84em; line-height: 1.65; margin-bottom: 2.2rem; max-width: 70ch }
.essay-section { scroll-margin-top: 1.8rem }
.essay-section + .essay-section { margin-top: clamp(3.25rem, 5vw, 5.5rem) }
.essay-section h2 { max-width: 30ch; margin: 0 0 1.15rem; font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance }
.essay-section p + p { margin-top: 1.1em }
.essay-body :is(.figure-pair, .figure-single) { margin-block: 2.2rem 2.6rem }
.figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start }
.essay-figure { min-width: 0; margin: 0; scroll-margin-top: 1.5rem }
.figure-link { display: block; width: fit-content; max-width: 100% }
.essay-figure img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain }
.essay-figure figcaption { margin-top: .7rem; font-size: .76em; line-height: 1.5; color: var(--essay-muted); max-width: 45ch }
.figure-single { max-width: 23rem; margin-inline: auto }
.teaware-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-width: 28rem; margin-inline: auto }
.teaware-pair .figure-link { width: 100% }
.teaware-pair img { width: 100%; height: clamp(9rem, 25vw, 11.875rem); object-fit: contain }
.teaware-pair figcaption { max-width: none; text-align: center }
.essay-body a:not(.figure-link) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px }
.essay-body a:not(.figure-link):hover { text-decoration-thickness: 2px }
.essay-body .reference { font-size: .9em; line-height: 1.65; padding-left: 1.25em; text-indent: -1.25em; overflow-wrap: anywhere }
.essay-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--essay-rule) }
.essay-footer a { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; font-size: .85em; line-height: 1.4 }
#article-top { scroll-margin-top: 5rem }
@media (max-width: 1050px) {
  .essay-layout { grid-template-columns: 1fr }
  .essay-rail { position: static; max-height: none; padding: 0; margin-bottom: 2.5rem; overflow: visible }
  .essay-contents { border-block: 1px solid var(--essay-rule) }
  .essay-contents summary { width: 100%; padding-block: .9rem; margin: 0; font-size: .95rem }
  .essay-contents nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; margin-top: .3rem; padding-bottom: 1rem }
  .essay-contents a { min-height: 44px; font-size: .9rem; max-width: none }
  .essay-body { width: min(100%, 70ch); margin-inline: auto }
}
@media (max-width: 600px) {
  .fieldwork-page h1 { font-size: clamp(2.35rem, 8.8vw, 3.3rem) }
  .essay-header { margin-bottom: 2.75rem }
  .essay-contents nav { grid-template-columns: 1fr }
  .essay-section h2 { max-width: 25ch }
  .figure-pair { grid-template-columns: 1fr; gap: 1.75rem; max-width: 27rem; margin-inline: auto }
  .teaware-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem }
  .essay-footer { margin-top: 2.75rem; justify-content: space-between; column-gap: 1rem }
}
@media print {
  :root, :root[data-theme="light"] { --paper: #fff; --ink: #000; color-scheme: light }
  .fieldwork-page :is(header, .original-language-note, .back, .essay-rail, .essay-footer, .skip-link) { display: none }
  .fieldwork-shell { max-width: none; padding: 0 }
  .fieldwork-page main { padding: 0 }
  .essay-layout { display: block }
  .essay-header { margin-bottom: 2rem }
  .essay-body { max-width: none; font-size: 11pt; line-height: 1.55 }
  .essay-body p { max-width: none }
  .essay-section h2 { break-after: avoid }
  .essay-figure { break-inside: avoid }
  .essay-figure img { max-height: 8cm; width: auto }
  .essay-section + .essay-section { margin-top: 2rem }
}
