/* Homepage layout adapted from Jon Barron's public website. */
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: block;
  src: url(https://fonts.gstatic.com/s/lato/v25/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: block;
  src: url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: block;
  src: url(https://fonts.gstatic.com/s/lato/v25/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
}
:root {
  --bg: #ffffff; --text: #000000; --text-muted: #555555;
  --accent: #1772d0; --accent-hover: #f09228; --highlight-bg: #ffffd0;
  --font-sans: 'Lato', Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 14px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:focus, a:hover { color: var(--accent-hover); text-decoration: none; }
h2 { margin: 0; font-weight: 400; font-size: 22px; }
.page { width: 100%; max-width: 816px; margin: 0 auto; padding: 8px; }
.bio { display: flex; align-items: center; }
.bio-text { width: 63%; padding: 2.5%; }
.bio-photo { width: 37%; padding: 2.5%; }
.bio-photo img {
  width: 100%; height: auto; display: block; object-fit: cover; border-radius: 50%;
}
.name { padding-top: 20px; margin: 0; font-weight: 400; font-size: 32px; text-align: center; }
.bio-links { text-align: center; color: var(--text-muted); }
.section-header { padding: 16px; }
.papers { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.paper { display: grid; grid-template-columns: 192px minmax(0, 1fr); align-items: center; }
.paper-media { padding: 16px; }
.paper-info { padding: 8px; }
.papertitle { font-size: inherit; font-weight: 700; }
.paper-links { color: var(--text-muted); }
.paper-authors { text-wrap: balance; margin-top: 4px; }
.paper-authors a, .paper-authors strong, .paper-authors b { white-space: nowrap; }
.paper-authors sup { vertical-align: baseline; line-height: normal; font-size: .85em; font-weight: 700; }
.one { width: 160px; height: 160px; position: relative; }
.one a, .one img { display: block; width: 100%; height: 100%; }
.one img { object-fit: contain; }
.one.archive-date-covered::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3.5%; background: #fff; pointer-events: none;
}
.one.hand-preview::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; transform: translateX(-50%); background: #fff; pointer-events: none; z-index: 1;
}
.site-footer { text-align: right; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
@media (max-width: 640px) {
  .page { padding: 0; }
  .bio { flex-direction: column-reverse; }
  .bio-text { width: 100%; padding: 8px 16px; }
  .bio-photo { width: 100%; padding: 20px 16px 0; text-align: center; }
  .bio-photo img { width: 148px; margin: 0 auto; }
  .name { padding-top: 8px; font-size: 28px; }
  .paper { grid-template-columns: 124px minmax(0, 1fr); }
  .paper-media { padding: 12px 8px 12px 12px; }
  .paper-info { padding: 10px 12px 10px 6px; }
  .one { width: 104px; height: 104px; }
  .site-footer { padding: 0 16px; }
}
