/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* Homepage layout additions: retain the original Jon Barron visual language while
   allowing the content-only research list to work comfortably on narrow screens. */
.site,
.intro,
.content-section,
.research-list {
  width: 100%;
  max-width: 800px;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  margin-right: auto;
  margin-left: auto;
}

.intro-copy {
  padding: 2.5%;
  width: 63%;
  vertical-align: middle;
}

.portrait-cell {
  padding: 2.5%;
  width: 37%;
  max-width: 37%;
}

.portrait {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.links,
.name {
  text-align: center;
}

.content-section td {
  padding: 16px;
  vertical-align: middle;
}

.research-list {
  border-spacing: 0 10px;
}

.publication {
  padding: 16px 20px;
  vertical-align: middle;
}

.publication-links {
  margin-top: 4px;
}

.publication-links span {
  margin: 0 3px;
  color: #777;
}

.publication-detail {
  margin-top: 12px;
  padding: 12px 16px;
  border-left: 2px solid #ddd;
  background: #f8f8f8;
  line-height: 1.6;
}

.publication-detail p,
.publication-detail pre {
  margin: 0;
}

.publication-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.publication-detail code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
}

.publication-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.poetry-body {
  --poem-ink: #303e36;
  --poem-muted: #74796f;
  --poem-rule: #dedfd5;
  margin: 0;
  background: #faf9f5;
  color: var(--poem-ink);
  -webkit-font-smoothing: antialiased;
}

.poetry-body a {
  color: inherit;
}

.poetry-body a:hover {
  color: #6c8066;
}

.poetry-body a:focus-visible {
  outline: 2px solid #73856a;
  outline-offset: 5px;
}

.poem-skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: #faf9f5;
  z-index: 2;
}

.poem-skip:focus {
  top: 12px;
}

.poem-page {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px;
}

.poem-topbar,
.poem-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  color: var(--poem-muted);
}

.poem-topbar {
  border-bottom: 1px solid var(--poem-rule);
}

.poem-topbar a,
.poem-footer a {
  font-size: 12px;
  letter-spacing: .03em;
}

.poem-topbar a:first-child span {
  margin-right: 10px;
}

.poem-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 66px 0 60px;
  border-bottom: 1px solid var(--poem-rule);
}

.poem-header > div {
  min-width: 0;
}

.poem-eyebrow {
  margin: 0 0 24px;
  color: var(--poem-muted);
  font-size: 10px;
  letter-spacing: .18em;
}

.poem-header h1 {
  margin: 0;
  font-family: 'Songti SC', 'Noto Serif CJK SC', SimSun, Georgia, serif;
  font-size: clamp(40px, 5.5vw, 62px);
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.poem-header h1:lang(zh-CN) {
  letter-spacing: .14em;
}

.poem-header .poem-subtitle {
  margin: 14px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-style: italic;
  color: #777e70;
}

.poem-edition {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 32px;
  color: var(--poem-muted);
  font-size: 11px;
  letter-spacing: .02em;
}

.poem-edition a {
  font-size: 11px;
}

.poem-edition a::before {
  content: '';
  display: inline-block;
  height: 10px;
  margin-right: 20px;
  border-left: 1px solid #c9cdc1;
}

.poem-original-link span {
  margin-left: 5px;
}

.poem-artwork {
  width: 156px;
  height: auto;
  margin: -18px 36px -18px 0;
  mix-blend-mode: multiply;
}

.poem-reading-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 64px;
  padding-top: 56px;
}

.poem-contents {
  position: sticky;
  top: 40px;
  align-self: start;
}

.poem-contents .poem-eyebrow {
  margin-bottom: 22px;
}

.poem-contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.poem-contents a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 9px 0;
  font-family: 'Songti SC', SimSun, serif;
  font-size: 14px;
  color: #72796d;
}

.poem-number {
  font-family: 'Lato', Verdana, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .06em;
  color: #808778;
  font-variant-numeric: tabular-nums;
}

.poem-contents a[aria-current="location"],
.poem-contents a[aria-current="location"] .poem-number {
  color: var(--poem-ink);
  font-weight: 700;
}

.poem-entry {
  padding: 0 0 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--poem-rule);
  scroll-margin-top: 40px;
}

.poem-entry:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.poem-entry header {
  margin-bottom: 30px;
}

.poem-entry header .poem-number {
  display: block;
  margin-bottom: 16px;
}

.poem-entry h2 {
  font-family: 'Songti SC', 'Noto Serif CJK SC', SimSun, Georgia, serif;
  font-size: 25px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.poem-stanza {
  margin: 0 0 24px;
  font-family: 'Songti SC', 'Noto Serif CJK SC', SimSun, Georgia, serif;
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: .035em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.poem-stanza:last-child {
  margin-bottom: 0;
}

.poem-date {
  margin: 32px 0 0;
  color: var(--poem-muted);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.poem-pending {
  padding: 72px 0 90px;
}

.poem-pending-mark {
  color: #859178;
}

.poem-pending h2 {
  margin: 24px 0 16px;
  font-family: Georgia, serif;
  font-size: 28px;
}

.poem-pending p {
  margin-bottom: 28px;
  color: var(--poem-muted);
  line-height: 1.8;
}

.poem-pending a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.poem-footer {
  border-top: 1px solid var(--poem-rule);
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .poem-page { padding: 0 24px; }
  .poem-header { padding: 44px 0; gap: 16px; }
  .poem-header-illustrated h1 { font-size: 42px; }
  .poem-artwork { width: 110px; margin: 0; }
  .poem-header .poem-subtitle { font-size: 22px; }
  .poem-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 28px; }
  .poem-contents { position: static; border-bottom: 1px solid var(--poem-rule); padding-bottom: 22px; }
  .poem-contents .poem-eyebrow { margin-bottom: 12px; }
  .poem-contents ol { display: flex; flex-wrap: wrap; gap: 0 22px; }
  .poem-contents a { gap: 8px; padding: 8px 0; }
  .poem-entry { padding-bottom: 40px; margin-bottom: 40px; scroll-margin-top: 24px; }
  .poem-stanza { font-size: 16px; }
}

@media (max-width: 380px) {
  .poem-page { padding: 0 20px; }
  .poem-header-illustrated h1 { font-size: 36px; }
  .poem-artwork { width: 78px; }
  .poem-edition { gap: 12px; }
  .poem-edition a::before { margin-right: 12px; }
}

@media print {
  .poetry-body { background: white; color: black; }
  .poem-page { max-width: none; padding: 0; }
  .poem-topbar, .poem-contents, .poem-footer, .poem-skip, .poem-original-link { display: none; }
  .poem-header { padding: 30px 0; }
  .poem-reading-layout { display: block; }
  .poem-entry { break-inside: avoid; }
}

@media (max-width: 560px) {
  .intro tbody,
  .intro tr,
  .intro-copy,
  .portrait-cell {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
  }

  .portrait-cell {
    padding: 0 15% 6%;
  }
}
